[Nut-upsuser] Re: MGE Protection Center and Suse
Johannes Schatz
johannes at dung.de
Thu Jul 21 09:24:23 UTC 2005
Am 21.07.2005 um 10:51 schrieb arnaud.quette at mgeups.com:
> So, 2 things:
> 1) why this hasn't been set?
> I really don't know! but check this:
> - /etc/hotplug/libhidups should be 755 (rwxr-xr-x)
> - hotplug should call libhidups when the USB cord
> is plugged back (try to unplug / replug the USB cord
> and check the syslog)
Jul 21 11:13:26 backup kernel: usb 2-1: new low speed USB device using
ohci_hcd and address 2
Jul 21 11:13:27 backup syslog-ng[3731]: Changing permissions on special
file /dev/xconsole
Jul 21 11:13:27 backup syslog-ng[3731]: Changing permissions on special
file /dev/tty10
Jul 21 11:13:27 backup kernel: usbhid: probe of 2-1:1.0 failed with
error -5
>
> 2) simple tests
> - call "export ACTION=add && export TYPE=USB && export
> DEVICE=/proc/bus/usb/001/002 && /etc/hotplug/libhidups"
> The result must be that /proc/bus/usb/001/002" is set to "660
> root:nobody"
backup:~ # export ACTION=add && export TYPE=USB && export
DEVICE=/proc/bus/usb/001/002 && /etc/hotplug/libhidups
-bash: /etc/hotplug/libhidups: No such file or directory
> Note that you need to adapt "001/002" as it changes
> upon unplug/replug. You can check it with "lsusb"
backup:~ # lsusb
usb_set_debug: Setting debugging level to 3 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
Bus 002 Device 002: ID 0463:ffff MGE UPS Systems UPS
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
> - if the above is ok, then start newhidups in verbose mode
> (having done an "export USB_DEBUG=3" before to get
> libusb trace)
backup:~ # ls -lR /proc/bus/usb/
/proc/bus/usb/:
total 0
drwxr-xr-x 4 root root 0 Jul 5 16:01 .
dr-xr-xr-x 5 root root 0 Jul 5 16:01 ..
dr-xr-xr-x 2 root root 0 Jul 5 16:01 001
dr-xr-xr-x 2 root root 0 Jul 5 16:01 002
-r--r--r-- 1 root root 0 Jul 21 11:13 devices
/proc/bus/usb/001:
total 0
dr-xr-xr-x 2 root root 0 Jul 5 16:01 .
drwxr-xr-x 4 root root 0 Jul 5 16:01 ..
-rw-r--r-- 1 root root 43 Jul 5 16:01 001
/proc/bus/usb/002:
total 0
dr-xr-xr-x 2 root root 0 Jul 5 16:01 .
drwxr-xr-x 4 root root 0 Jul 5 16:01 ..
-rw-r--r-- 1 root root 43 Jul 5 16:01 001
-rw-r--r-- 1 root root 52 Jul 21 11:13 002
> One thing is fine is that we are now sure that this is a hotplug
> problem. The only remaining point is "how to solve this", and
> it depends on "why this hasn't been set"...
hope you got an idea ;)
Johannes Schatz
Dung Marketig GmbH & Co KG
More information about the Nut-upsuser
mailing list