It may not be working for usb scanners because it runs as the "saned"
user by default but the scanner device is owned by "root"

In the file /lib/udev/rules.d/40-libsane.rules
You will need to add "chown saned:saned $env{DEVNAME}" 

Like here...

ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'chown saned:saned
$env{DEVNAME}; if test -e /sys/$env{DEVPATH}/power/control; then echo on
> /sys/$env{DEVPATH}/power/control; elif test -e
/sys/$env{DEVPATH}/power/level; then echo on >
/sys/$env{DEVPATH}/power/level; fi'"

LABEL="libsane_usb_rules_end"


...then remove and plug in the usb scanner again.


Also, some scanners like my Canon LiDE needs to run a scan first before
buttons will work so I use the  -S option to run the initscanner.sh
script.


And it'd be nice if you can set DAEMON_OPTS in /etc/defaults/scanbuttond
Maybe change the DAEMON_OPTS line in /etc/init.d/scanbuttond

if test -z "$DAEMON_OPTS"; then
  DAEMON_OPTS=""
fi;


Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160520

Title:
  scanbuttond package doesn't have an init script [patch included]

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to