Public bug reported:

Binary package hint: udev

After connecting my SCSI Scanner Epson Perfection 1200S, I found that a
/dev/sg? is created, but with the wrong permissions (group root). It
looks like the current udev rules in
/etc/udev/rules.d/40-permissions.rules are using the wrong
upper/lowercase mix or Epson uses different cases in their vendor
strings.

This is the original line in 40-permissions.rules which did NOT work for my 
scanner:
ATTRS{type}=="3", ATTRS{vendor}=="Epson", GROUP="scanner"

And this is the line I had to add:
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", GROUP="scanner"

After adding this simple line, the scanner worked out-of-the-box with
Kubuntu 7.04.

For the sake of completeness, here's the output of udevinfo:
$ udevinfo -a -p /sys/class/scsi_generic/sg3

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/scsi_generic/sg3':
    KERNEL=="sg3"
    SUBSYSTEM=="scsi_generic"
    DRIVER==""
    ATTR{dev}=="21:3"

  looking at parent device 
'/devices/pci0000:00/0000:00:1e.0/0000:0b:05.0/host3/target3:0:2/3:0:2:0':
    KERNELS=="3:0:2:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{iodone_cnt}=="0x9"
    ATTRS{iorequest_cnt}=="0x9"
    ATTRS{iocounterbits}=="32"
    ATTRS{timeout}=="0"
    ATTRS{state}=="running"
    ATTRS{rev}=="1.03"
    ATTRS{model}=="Perfection1200  "
    ATTRS{vendor}=="EPSON   "
    ATTRS{scsi_level}=="3"
    ATTRS{type}=="3"
    ATTRS{queue_type}=="none"
    ATTRS{queue_depth}=="2"
    ATTRS{device_blocked}=="0"

  looking at parent device 
'/devices/pci0000:00/0000:00:1e.0/0000:0b:05.0/host3/target3:0:2':
    KERNELS=="target3:0:2"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device 
'/devices/pci0000:00/0000:00:1e.0/0000:0b:05.0/host3':
    KERNELS=="host3"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:0b:05.0':
    KERNELS=="0000:0b:05.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="aic7xxx"
    ATTRS{msi_bus}==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{modalias}=="pci:v00009004d00005078sv00009004sd00007850bc01sc00i00"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="10"
    ATTRS{class}=="0x010000"
    ATTRS{subsystem_device}=="0x7850"
    ATTRS{subsystem_vendor}=="0x9004"
    ATTRS{device}=="0x5078"
    ATTRS{vendor}=="0x9004"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{msi_bus}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{modalias}=="pci:v00008086d0000244Esv00000000sd00000000bc06sc04i01"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{device}=="0x244e"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

** Affects: udev (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
udev 40-permissions.rules: wrong case in vendor string for Epson Perfection1200 
scanner
https://bugs.launchpad.net/bugs/119351
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to