LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-06-2004, 10:08 AM   #1
sueisfine
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 33

Rep: Reputation: 15
installing apcupsd! where is usb device??


i got myself an APS Backups, which connects PC through USB. i installed apcupsd for controlling my UPS. i ran into problem when i wanted to configure the program.

Code:
#   NOTE!!! for USB devices, please use a form indicated below
#      including the [0-15] as written!
#
# Driver   Device                    Description
# dumb     /dev/tty**                Serial character device
# apcsmart /dev/tty**                Serial character device
# usb      /dev/usb/hiddev[0-15]     On most systems
# net      hostname:port             Network link to a master apcupsd
#                                    through NIS
DEVICE /dev/ttyS0 # default
but in /dev/usb there is no hiddev's

Code:
bash-2.05b# ls /dev/usb/
ez0   ez15  ez8   lp13  lp6      mouse11  mouse4  scanner0   scanner15  scanner8
ez1   ez2   ez9   lp14  lp7      mouse12  mouse5  scanner1   scanner2   scanner9
ez10  ez3   lp0   lp15  lp8      mouse13  mouse6  scanner10  scanner3
ez11  ez4   lp1   lp2   lp9      mouse14  mouse7  scanner11  scanner4
ez12  ez5   lp10  lp3   mouse0   mouse15  mouse8  scanner12  scanner5
ez13  ez6   lp11  lp4   mouse1   mouse2   mouse9  scanner13  scanner6
ez14  ez7   lp12  lp5   mouse10  mouse3   rio500  scanner14  scanner7
i use hotplug to detect my usb devices.

Code:
bash-2.05b# lsusb
Bus 003 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro 500
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 049f:0083 Compaq Computer Corp.
Bus 002 Device 002: ID 046d:c00e Logitech, Inc. Optical Mouse
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


bash-2.05b# cat /proc/bus/usb/devices

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=051d ProdID=0002 Rev= 0.06
S:  Manufacturer=American Power Conversion
S:  Product=Back-UPS CS 500 FW:808.q3.I USB FW:q3
S:  SerialNumber=BB0408051895
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   6 Ivl=100ms

where i can find the propriate device to use it in conf file?
 
Old 05-06-2004, 10:14 AM   #2
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Use dmesg to see where the device was added. I don't know if that's any help.
 
Old 05-06-2004, 10:17 AM   #3
sueisfine
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
Code:
usb 3-1: new low speed USB device using address 2
USB Universal Host Controller Interface driver v2.2
hiddev96: USB HID v1.10 Device [American Power Conversion Back-UPS CS 500 FW:808.q3.I USB FW:q3] on usb-0000:00:02.1-1
 
Old 05-28-2004, 02:55 AM   #4
Toscana
LQ Newbie
 
Registered: May 2004
Location: Mechelen, Belgium
Distribution: Debian unstable kernel 2.6.6
Posts: 4

Rep: Reputation: 0
Hi,

I am having the same problem. I think I just found the solution, but haven't yet tried it. If you read through the documentation of kernel 2.6.6 (the kernel I am having this problem with), look at the file /Documentation/usb/hiddev. This document states:

The hiddev interface is a char interface using the normal USB major,
with the minor numbers starting at 96 and finishing at 111. Therefore,
you need the following commands:
mknod /dev/usb/hiddev0 c 180 96
mknod /dev/usb/hiddev1 c 180 97
mknod /dev/usb/hiddev2 c 180 98
mknod /dev/usb/hiddev3 c 180 99
mknod /dev/usb/hiddev4 c 180 100
mknod /dev/usb/hiddev5 c 180 101
mknod /dev/usb/hiddev6 c 180 102
mknod /dev/usb/hiddev7 c 180 103
mknod /dev/usb/hiddev8 c 180 104
mknod /dev/usb/hiddev9 c 180 105
mknod /dev/usb/hiddev10 c 180 106
mknod /dev/usb/hiddev11 c 180 107
mknod /dev/usb/hiddev12 c 180 108
mknod /dev/usb/hiddev13 c 180 109
mknod /dev/usb/hiddev14 c 180 110
mknod /dev/usb/hiddev15 c 180 111


Maybe you can check this document (e.g. in http://www.kernel.org/pub/linux/kern...x-2.6.6.tar.gz)

Hope this helps (if it works I'll post another post here)


Quote:
Originally posted by sueisfine
Code:
usb 3-1: new low speed USB device using address 2
USB Universal Host Controller Interface driver v2.2
hiddev96: USB HID v1.10 Device [American Power Conversion Back-UPS CS 500 FW:808.q3.I USB FW:q3] on usb-0000:00:02.1-1
 
Old 05-28-2004, 03:06 AM   #5
sueisfine
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
thanks man! i have 2.6.6 too. i don't know when i have time to test it, but i let know, if i achieve anything.

is this 96-111 range optional? what is those numbers all about?

...

but anyways. it works! i just did the real power-failure test successfully!

Last edited by sueisfine; 05-28-2004 at 04:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
apcupsd cannot find usb ups on Debian Sarge davelk Linux - Hardware 2 10-14-2006 11:28 AM
Installing Linux on an USB Device LkNsngth Linux - Hardware 3 02-12-2005 11:56 PM
Installing Linux on external USB 2.0 device k_wjss Linux - Newbie 9 09-30-2004 04:07 AM
apcupsd /sys/bus/usb/drivers/hiddev missing Toscana Linux - Hardware 3 07-16-2004 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration