Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
APC Back-ups and USB port
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
contigab
n00b
n00b


Joined: 18 Dec 2002
Posts: 57
Location: Italy

PostPosted: Tue Jan 28, 2003 10:27 pm    Post subject: APC Back-ups and USB port Reply with quote

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
View user's profile Send private message
kamo
n00b
n00b


Joined: 12 Feb 2003
Posts: 4

PostPosted: Thu Apr 10, 2003 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum