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

Bug #160520 reported by Martijn vdS
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
scanbuttond (Ubuntu)
Won't Fix
Undecided
Rolf Leggewie

Bug Description

Binary package hint: scanbuttond

I've attached my scanner to a headless machine, but scanbuttond doesn't have an init script, so I have to write one myself if I want to start it on boot.

Revision history for this message
Andreas Schildbach (schildbach) wrote :

This is certainly no rocket science, but it works. Copy to /etc/init.d, make executable and enable via "sudo update-rc.d scanbuttond defaults".

Changed in scanbuttond:
status: New → Confirmed
Revision history for this message
reitzmichnicht (reitzmichnicht) wrote :

This can be closed as the package has now an init script included in 10.04

Revision history for this message
Paco Riviere (pacoriviere) wrote :

It does not work for me on 10.04 LTS neither:
$ uname -a
Linux phenix 2.6.32-24-generic-pae #42-Ubuntu SMP Fri Aug 20 15:37:22 UTC 2010 i686 GNU/Linux

Revision history for this message
niknah (hankin0) wrote :

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

Revision history for this message
Rolf Leggewie (r0lf) wrote :

scanbuttond has been superseded by the scanbd package. Please install that and report any problems you might find. If you are not on vivid, you can get the package from my stable LTS PPA.

scanbd DOES have an init script ;-)

Changed in scanbuttond (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.