Re: R: beep on slug
Gordon Farquharson schrieb am Montag, 15. September 2008 07:28:
> On Sun, Sep 14, 2008 at 03:09, Michael Glockenstein
> <neues.nx6c4@glockenstein.de> wrote:
>
> > Hello,
> > I don't have the mail with the disk light bug anymore, so I want answer
> > here.
> >
> > I changed the udev rules like suggested to
> >
> > SUBSYSTEM=="usb", DEVPATH=="*/usb1/1-[12]", ACTION=="add",
> > PROGRAM="/usr/bin/leds disk-%n on"
> > SUBSYSTEM=="usb", DEVPATH=="*/usb1/1-[12]", ACTION=="remove",
> > PROGRAM="/usr/bin/leds disk-%n off"
> >
> > and first it worked for me but since yesterday it fails again.
> > I do not understand much of udev, but I think the bus number
> > is not constant.
> >
> > Now again the following is working:
> > SUBSYSTEM=="usb", DEVPATH=="*/usb3/3-[12]", ACTION=="add",
> > PROGRAM="/usr/bin/leds disk-%n on"
> > SUBSYSTEM=="usb", DEVPATH=="*/usb3/3-[12]", ACTION=="remove",
> > PROGRAM="/usr/bin/leds disk-%n off"
>
> Have a look at 497305 for an update on this problem. Let's continue
> the discussion there.
Hello Gordon, that's what in my devices directory:
# ls /sys/bus/usb/devices
1-0:1.0 1-1 1-1:1.0 1-2 1-2:1.0 1-2.4 1-2.4:1.0 2-0:1.0 3-0:1.0
I don't know what are the right names to use now, are you really sure
regarding the names in your patch, I don't see a 2-1 or 3-1 device here.
But with the following
#ls /sys/class/usb_device
usbdev1.1 usbdev1.2 usbdev1.23 usbdev1.24 usbdev2.1 usbdev3.1
I can see them.
So what is the right directory for udev, and why it is not noted exactly in
the rules and a wildcard is used?
And today the lights are off, because yesterday they were at 3-1/3-2 (so
at least I remember) and today again 1-1/1-2.
So I think it is a bus numbering problem and changed my rules to
SUBSYSTEM=="usb", DEVPATH=="*/[13]-[12]", ACTION=="add", PROGRAM="/usr/bin/leds disk-%n on"
SUBSYSTEM=="usb", DEVPATH=="*/[13]-[12]", ACTION=="remove", PROGRAM="/usr/bin/leds disk-%n off"
I will further investigate.
Regards Michael
Reply to: