Bug#500837: libsane's udev rules not recognised

2008-10-02 Thread Julien BLACHE
Dave Page [EMAIL PROTECTED] wrote:

Hi,

 I had to manually restart udev to get it to read the rules file; after
 that (and unplugging and replugging the scanner) the permissions were
 correct and everything was fine.

Actually, udev watches for changes to the rules files (and for
additions/deletions) and reloads them on the fly.

 libsane should do this for you when it is installed so installation is
 more transparent.

Triggering a coldplug is not recommended AFAIK.

JB.

-- 
 Julien BLACHE - Debian  GNU/Linux Developer - [EMAIL PROTECTED] 
 
 Public key available on http://www.jblache.org - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500837: libsane's udev rules not recognised

2008-10-02 Thread Dave Page
On Thursday 02 October 2008 09:40:03 Julien BLACHE wrote:

  I had to manually restart udev to get it to read the rules file; after
  that (and unplugging and replugging the scanner) the permissions were
  correct and everything was fine.

 Actually, udev watches for changes to the rules files (and for
 additions/deletions) and reloads them on the fly.

Perhaps this bug should be reassigned to udev then, because it clearly did not 
do this for me.

  libsane should do this for you when it is installed so installation is
  more transparent.

 Triggering a coldplug is not recommended AFAIK.

I'm not sure what you mean by triggering a coldplug, sorry.

Dave
-- 
Dave Page [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500837: libsane's udev rules not recognised

2008-10-02 Thread Julien BLACHE
Dave Page [EMAIL PROTECTED] wrote:

Hi,

 Actually, udev watches for changes to the rules files (and for
 additions/deletions) and reloads them on the fly.

 Perhaps this bug should be reassigned to udev then, because it clearly did 
 not 
 do this for me.

Reloading the rules does not mean processing/applying them.

 Triggering a coldplug is not recommended AFAIK.

 I'm not sure what you mean by triggering a coldplug, sorry.

Applying the rules on the system in its current state, outside of an
hotplug event.

The current policy regarding udev is to install the rules without
triggering a coldplug event.

JB.

-- 
 Julien BLACHE - Debian  GNU/Linux Developer - [EMAIL PROTECTED] 
 
 Public key available on http://www.jblache.org - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500837: libsane's udev rules not recognised

2008-10-02 Thread Dave Page
On Thursday 02 October 2008 20:52:27 Julien BLACHE wrote:

  Triggering a coldplug is not recommended AFAIK.
 
  I'm not sure what you mean by triggering a coldplug, sorry.

 Applying the rules on the system in its current state, outside of an
 hotplug event.

 The current policy regarding udev is to install the rules without
 triggering a coldplug event.

That's fair enough. But after installing libsane, and before I restarted udev, 
unplugging the USB scanner and plugging it back in (which should trigger a 
hotplug event?) did not allow me to see the scanner as a non-root user in 
group saned. After I restarted udev, I could.

Dave
-- 
Dave Page [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500837: libsane's udev rules not recognised

2008-10-02 Thread Julien BLACHE
Dave Page [EMAIL PROTECTED] wrote:

Hi,

 That's fair enough. But after installing libsane, and before I restarted 
 udev, 
 unplugging the USB scanner and plugging it back in (which should trigger a 
 hotplug event?) did not allow me to see the scanner as a non-root user in 
 group saned. After I restarted udev, I could.

The best thing would be to try to reproduce this and confirm it's a
udev issue.

Try commenting out the rule for your scanner, then restart udev, then
uncomment it and plug your scanner. Check the permissions on the
device node.

If it doesn't work, rinse, repeat while running udevadm monitor.


strace()ing udevd and touching a file under /etc/udev/rules.d shows
udev reloading the rules just fine.

JB.

-- 
 Julien BLACHE [EMAIL PROTECTED]  |  Debian, because code matters more 
 Debian  GNU/Linux Developer|   http://www.debian.org
 Public key available on http://www.jblache.org - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500837: libsane's udev rules not recognised

2008-10-01 Thread Dave Page
Package: libsane
Version: 1.0.19-20
Severity: minor


I installed libsane (as a dependency of kooka) and then connected my USB
scanner (a Mustek 1248UB). The device nodes in /dev/usbdev* were owned
by root:root and hence the scanner was not accessible by me -
scanimage -L showed the scanner as root but not as the normal user.

I had to manually restart udev to get it to read the rules file; after
that (and unplugging and replugging the scanner) the permissions were
correct and everything was fine.

libsane should do this for you when it is installed so installation is
more transparent.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsane depends on:
ii  adduser  3.110   add and remove users and groups
ii  libavahi-client3 0.6.22-3Avahi client library
ii  libavahi-common3 0.6.22-3Avahi common library
ii  libc62.7-13  GNU C Library: Shared libraries
ii  libexif120.6.16-2.1  library to parse EXIF files
ii  libgphoto2-2 2.4.1-3 gphoto2 digital camera library
ii  libgphoto2-port0 2.4.1-3 gphoto2 digital camera port librar
ii  libieee1284-30.2.11-5cross-platform library for paralle
ii  libjpeg626b-14   The Independent JPEG Group's JPEG 
ii  libsane-extras   1.0.19.10   API library for scanners -- extra 
ii  libtiff4 3.8.2-11Tag Image File Format (TIFF) libra
ii  libusb-0.1-4 2:0.1.12-12 userspace USB programming library
ii  makedev  2.3.1-88creates device files in /dev
ii  udev 0.125-6 /dev/ and hotplug management daemo

Versions of packages libsane recommends:
ii  avahi-daemon  0.6.22-3   Avahi mDNS/DNS-SD daemon
ii  sane-utils1.0.19-20  API library for scanners -- utilit

Versions of packages libsane suggests:
pn  hplip none (no description available)
pn  hpoj  none (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]