View previous topic :: View next topic |
Author |
Message |
contigab n00b
Joined: 18 Dec 2002 Posts: 57 Location: Italy
|
Posted: Tue Jan 28, 2003 10:27 pm Post subject: APC Back-ups and USB port |
|
|
Hi, i recently bought a new device for my pc, it is apc back-ups model es 350. It is controlled via USB cable and there is a driver for linux
called apcupsd (http://www.sibbald.com/apcupsd).
The problem is that it uses the HID interface and in the howto i found some poor informations about how to make them working.
I watched the source code and at a certain point it calls an open(device, O_RDONLY)
And this call fails.
The devices are supposed to be created in the following way:
mknod /dev/usb/hid/hiddev0 c 180 96
mknod /dev/usb/hid/hiddev1 c 180 97
...........
The fact is that I created the devices but the system call open fails while attempting to open the devices /dev/usb/hid/hiddev[0-4]
I have gentoo linux with redhat kernel and I have hotplug running.
When I dmesg or cat /proc/bus/usb/devices i can see my device
but that's all...
It looks like HID interface is not properly working cos i think (am i right?) i should obtain something if i manually try:
cat /dev/usb/hid/hiddev[0-15]
Does anyone know about all that? Is my kernel misconfigured? (i used a standard redhat configuration file) or maybe did i forget to load some driver? (hotplug should think about loading drivers!?!)
Thanks to everyone for the help _________________ Linux! |
|
Back to top |
|
|
kamo n00b
Joined: 12 Feb 2003 Posts: 4
|
Posted: Thu Apr 10, 2003 4:19 am Post subject: |
|
|
I've just got an APC BackUPS ES and emerged apcupsd.
I had the same problem: the daemon didn't want to start
because it couldn't find the device file.
The solution: change the UPSTYPE to usb in apcupsd.conf.
It's not the correct setting according to the apcupsd docs,
but it works!
Hope this helps,
Kamo |
|
Back to top |
|
|
|