Skip to content

how to tell if scanner is simply not supported hp scanjet pro 2500 f1 #5

Description

@garberw

# installation howto for fedora users  (some steps may be missing) plus I need  help with my bug
# first install the scanner with hplip rpm package and run hp-setup and hp-plugin
sudo dnf install libusb-devel libconfuse-devel libudev-devel dbus-devel sane-backends-devel sane-backends-daemon
# sane-backends-daemon installs saned user and group
# see README for scanbd
./configure --disable-Werror
# do not use --enable-scanbuttond ; this just enables older drivers which mask the ones we want
make all
sudo make install
# backup the following two files to .orig
/etc/sane.d/saned.conf   (two line file)
------------>
connect_timeout = 3
localhost
<--------------
/etc/sane.d/dll.conf  (one line file)
------------->
net
<-------------
sudo cp integration/scanbd_dbus.conf    /etc/dbus-1/system.d
# reboot
# turn on scanner
sudo cp -a /etc/sane.d/dll.d   /usr/local/etc/scanbd/
sudo cp -a /etc/sane.d/hp*    /usr/local/etc/scanbd/
sudo cp -a /etc/sane.d/dll.conf.orig /usr/local/etc/scanbd/dll.conf
# edit and remove "net" line from previous file dll.conf; this is the original file ...
# from /etc/sane.d with the driver for the hp scanner uncommented;
edit /usr/local/etc/scanbd/scanbd.conf     (this is for fedora)  (only changes to defaults are shown)
------------->
user = saned
group = saned
# group = scanner ??????
# hp drivers
scanbuttond_backends_dir = "/usr/lib/sane"
environment {
  device = "dbus device"
  action = "insert"
}
function function_knob {
  filter = "^source.*"
  desc = "The value of the function knob / wheel / selector"
# fixme
  env = "SCANBD_FUNCTION"
}
action preview {
  filter = "^preview.*"
  numerical-trigger {
    from-value = 0
    to-value = 1
  }
  desc = "Preview"
  script = "test.script"
}
# include(scanner.d/hp.conf)
include(scanner.d/myscanner.conf)
<-------------
/usr/local/etc/scanbd/scanner.d/myscanner.conf   is the same as /usr/local/etc/scanbd/scanner.d/hp.conf     except:
------------->
device hp2500 {
  filter = "^hpgt2500.*"
  desc = "HP"
  action test {
    filter = ".*preview.*"
    desc = "test"
    script = "test.script"
  }
}
<-------------
sudo systemctl enable --now saned.socket
sudo systemctl enable --now scanbd     # also sets up another socket
sudo systemctl status scanbd
journalctl -f 
# try scanning buttons nothing happens

wg.scanlog.2021-08-25T08:20:31-07:00.log
can anyone help or show me why this scanner does not work please?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions