Posted: Sat Jun 07, 2008 20:42 Post subject: USB HID driver?
Hi all,
I have a Linksys WRT350N running dd-wrt mega 2.4, hooked up to a 1TB usb drive that contains optware and a network backup drive. The equipment is plugged into an APC UPS, and I was hoping to get apcupsd working so that the router will shut itself down (ie mostly unmount the drives) when the ups battery is running low.
I plugged the ups usb cable into the usb hub, and it is recognized. I installed the apcupsd optware package. However, there are no usb hid or hiddev drivers loaded, and they are not in /lib/modules, so it doesn't work. Do I have to recompile the firmware to get these, or are they available in some package?
Btw, it's impossible to fsck a 1TB ext2 file system on this router, e2fsck just uses so much memory that everything grinds to a halt, swapping like crazy, and eventually locking the device up. Make sure you are running ext3 if you do this. (It also makes me more motivated to get proper shutdown working, since if something were to really get screwed up, I have to plug the drive into a linux machine to fsck the fs...)
Joined: 18 Jun 2006 Posts: 1110 Location: Kiel (54.4247,10.1721)
Posted: Sun Jun 08, 2008 0:01 Post subject:
Quote:
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
hub.c: new USB device 00:02.0-1, assigned address 2
hiddev0: USB HID v10.01 Mouse [Razer Razer Copperhead Laser Mouse] on usb1:2.0
hiddev1: USB HID v10.01 Keyboard [Razer Razer Copperhead Laser Mouse] on usb1:2.1
Only had a mouse for testing... but somehow works
Enabled the hiddev support for you as i think you will need that one, right?
hid-linux-2.4.35-mips.tar.gz
Description:
USB Human Interface Device (full HID) support --- Input core support is needed for USB HID input layer or HIDBP [*] /dev/hiddev raw HID device support
Joined: 18 Jun 2006 Posts: 1110 Location: Kiel (54.4247,10.1721)
Posted: Sun Jun 08, 2008 9:48 Post subject:
Write yourself a shellscript and let the daemon execute it?
Something that kills all optware processes and afterwards unmounts the devices... shouldn't be that hard to do...
But glad the stuff works for you
So could you edit the topic so it has an [SOLVED] or something like it in the front? Would be cool... _________________ DD-WRT F.A.Q. Webcam Kiel
hmm, the default optware installation doesn't come with "-cgi" switch. There is no *.cgi files being installed under /opt/etc/apcupsd/. anyone got it working ?