Re: [arch-general] confirm LTS kernel / usb printer permission issues

2009-10-11 Thread Evangelos Foutras

Evangelos Foutras wrote:

Evangelos Foutras wrote:

Andreas Radke wrote:

btw: do you have problems using an usb printer and "lp" group
permission like I posted to the mailing lists? I could only workaround
it.

-Andy


It happens here too. However, the printer device ends up in the 
vboxusers group, regardless of whether the printer is on during boot 
or started afterwards.


/etc/udev/rules.d/10-vboxdrv.rules contains:

 KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", 
MODE="0660"

 SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", 
MODE="0664"


I'm not familiar with the way udev rules are evaluated, but it 
appears that the rule that's supposed to set the printer's group to 
"lp" isn't being applied, for some reason.


I can further confirm that, after moving the 10-vboxdrv.rules file out 
of the rules.d directory and starting the printer, it ends up in the 
root group. If I then run `udevadm trigger' like you did, the printer 
switches to the lp group.


This is weird. :)


One more thing I just noticed is that the output of `udevadm monitor' 
when starting the printer after boot on each kernel differs greatly.


Output of main kernel:

 KERNEL[1255295569.533848] add  
/devices/pci:00/:00:0b.0/usb2/2-3 (usb)
 UDEV  [1255295569.537766] add  
/devices/pci:00/:00:0b.0/usb2/2-3 (usb)
 KERNEL[1255295569.538878] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0 (usb)
 UDEV  [1255295569.538904] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_device/usbdev2.2 (usb_device)
 KERNEL[1255295569.538925] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_device/usbdev2.2 (usb_device)
 UDEV  [1255295569.580559] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0 (usb)


Output of lts kernel:

 KERNEL[1255295761.541586] add  
/devices/pci:00/:00:0b.0/usb2/2-3 (usb)
 KERNEL[1255295761.544490] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0 (usb)
 KERNEL[1255295761.544514] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0/usb_endpoint/usbdev2.2_ep01 
(usb_endpoint)
 KERNEL[1255295761.544533] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0/usb_endpoint/usbdev2.2_ep82 
(usb_endpoint)
 KERNEL[1255295761.544551] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_device/usbdev2.2 (usb_device)
 KERNEL[1255295761.544568] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_endpoint/usbdev2.2_ep00 
(usb_endpoint)
 UDEV  [1255295761.546607] add  
/devices/pci:00/:00:0b.0/usb2/2-3 (usb)
 UDEV  [1255295761.546639] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_endpoint/usbdev2.2_ep00 
(usb_endpoint)
 UDEV  [1255295761.546819] add  
/devices/pci:00/:00:0b.0/usb2/2-3/usb_device/usbdev2.2 (usb_device)
 UDEV  [1255295761.585708] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0 (usb)
 UDEV  [1255295761.586338] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0/usb_endpoint/usbdev2.2_ep01 
(usb_endpoint)
 UDEV  [1255295761.586368] add  
/devices/pci:00/:00:0b.0/usb2/2-3/2-3:1.0/usb_endpoint/usbdev2.2_ep82 
(usb_endpoint)


Not sure if the above is important, but it struck me as a bit strange. :>

PS: Moving the discussion to the arch-general mailing list, in case 
anyone wants to chime in. :)


Re: [arch-general] confirm LTS kernel / usb printer permission issues

2009-10-11 Thread Andreas Radke
Am Sat, 10 Oct 2009 23:49:49 +0200
schrieb Andreas Radke :

> I have a permission issue when using the kernel26-lts with my usb
> printer. The device doesn't always get "lp" group. Especially when I
> switch it off and on again. Then new cups 1.4.x can't find the
> printer. With kernel 2.6.30 and 2.6.31 the group is always set well.
> 
> I already asked a few udev upstream devs without a solution so far.
> 
> See http://www.spinics.net/lists/hotplug/msg02798.html
> 
> It would be nice if some of you could try confirming my problem and
> maybe you can help me to find the reason why it fails on my server.
> 
> Thanks.
> 
> -Andy
> 

anyone? this problem is holding back cups moving to extra.

-Andy


[arch-general] confirm LTS kernel / usb printer permission issues

2009-10-10 Thread Andreas Radke
I have a permission issue when using the kernel26-lts with my usb
printer. The device doesn't always get "lp" group. Especially when I
switch it off and on again. Then new cups 1.4.x can't find the printer.
With kernel 2.6.30 and 2.6.31 the group is always set well.

I already asked a few udev upstream devs without a solution so far.

See http://www.spinics.net/lists/hotplug/msg02798.html

It would be nice if some of you could try confirming my problem and
maybe you can help me to find the reason why it fails on my server.

Thanks.

-Andy