LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-09-2005, 01:07 PM   #1
davelk
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
apcupsd cannot find usb ups on Debian Sarge


I have an apc smart-ups 750 connected via usb to an old rev. a bondi blue imac running Debian Sarge. When I try to start apcupsd I get the following message:

Tue Aug 09 11:54:53 EDT 2005 apcupsd FATAL ERROR in linux-usb.c at line 575
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see (URL redacted so that I can post this message).
Tue Aug 09 11:54:53 EDT 2005 apcupsd error shutdown completed

I've made the necessary /dev files using the examples/make-hiddev script. I've gone through the USB troubleshooting page at Checking-Out-Your-USB-Subsystem.html (sorry, haven't posted enough to include the full url) with the following results.

> cat /proc/bus/usb/devices
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 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=Smart-UPS 750 FW:651.12.D USB FW:4.2
S: SerialNumber=QS0451144323
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 30mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100ms

> ls -l /sys/bus/usb/drivers
total 0
drwxr-xr-x 7 root root 0 2005-08-09 11:45 .
drwxr-xr-x 4 root root 0 2005-08-09 11:45 ..
drwxr-xr-x 2 root root 0 2005-08-09 11:45 hiddev
drwxr-xr-x 2 root root 0 2005-08-09 11:45 hub
drwxr-xr-x 2 root root 0 2005-08-09 11:54 usb
drwxr-xr-x 2 root root 0 2005-08-09 11:45 usbfs
drwxr-xr-x 2 root root 0 2005-08-09 11:54 usbhid

> ls /dev/usb/hid*
crw-rw---- 1 root root 180, 96 2005-02-27 18:35 /dev/usb/hiddev0
crw-rw---- 1 root root 180, 97 2005-02-27 18:35 /dev/usb/hiddev1
crw-rw---- 1 root root 180, 106 2005-02-27 18:35 /dev/usb/hiddev10
crw-rw---- 1 root root 180, 107 2005-02-27 18:35 /dev/usb/hiddev11
crw-rw---- 1 root root 180, 108 2005-02-27 18:35 /dev/usb/hiddev12
crw-rw---- 1 root root 180, 109 2005-02-27 18:35 /dev/usb/hiddev13
crw-rw---- 1 root root 180, 110 2005-02-27 18:35 /dev/usb/hiddev14
crw-rw---- 1 root root 180, 111 2005-02-27 18:35 /dev/usb/hiddev15
crw-rw---- 1 root root 180, 98 2005-02-27 18:35 /dev/usb/hiddev2
crw-rw---- 1 root root 180, 99 2005-02-27 18:35 /dev/usb/hiddev3
crw-rw---- 1 root root 180, 100 2005-02-27 18:35 /dev/usb/hiddev4
crw-rw---- 1 root root 180, 101 2005-02-27 18:35 /dev/usb/hiddev5
crw-rw---- 1 root root 180, 102 2005-02-27 18:35 /dev/usb/hiddev6
crw-rw---- 1 root root 180, 103 2005-02-27 18:35 /dev/usb/hiddev7
crw-rw---- 1 root root 180, 104 2005-02-27 18:35 /dev/usb/hiddev8
crw-rw---- 1 root root 180, 105 2005-02-27 18:35 /dev/usb/hiddev9

and for good measure because this point is a little quirky on Debian:

> ls -l /dev/usb/hid/hid*
crw-r--r-- 1 root root 180, 96 2005-08-09 11:08 /dev/usb/hid/hiddev0
crw-r--r-- 1 root root 180, 97 2005-08-09 11:08 /dev/usb/hid/hiddev1
crw-r--r-- 1 root root 180, 106 2005-08-09 11:08 /dev/usb/hid/hiddev10
crw-r--r-- 1 root root 180, 107 2005-08-09 11:08 /dev/usb/hid/hiddev11
crw-r--r-- 1 root root 180, 108 2005-08-09 11:08 /dev/usb/hid/hiddev12
crw-r--r-- 1 root root 180, 109 2005-08-09 11:08 /dev/usb/hid/hiddev13
crw-r--r-- 1 root root 180, 110 2005-08-09 11:08 /dev/usb/hid/hiddev14
crw-r--r-- 1 root root 180, 111 2005-08-09 11:08 /dev/usb/hid/hiddev15
crw-r--r-- 1 root root 180, 98 2005-08-09 11:08 /dev/usb/hid/hiddev2
crw-r--r-- 1 root root 180, 99 2005-08-09 11:08 /dev/usb/hid/hiddev3
crw-r--r-- 1 root root 180, 100 2005-08-09 11:08 /dev/usb/hid/hiddev4
crw-r--r-- 1 root root 180, 101 2005-08-09 11:08 /dev/usb/hid/hiddev5
crw-r--r-- 1 root root 180, 102 2005-08-09 11:08 /dev/usb/hid/hiddev6
crw-r--r-- 1 root root 180, 103 2005-08-09 11:08 /dev/usb/hid/hiddev7
crw-r--r-- 1 root root 180, 104 2005-08-09 11:08 /dev/usb/hid/hiddev8
crw-r--r-- 1 root root 180, 105 2005-08-09 11:08 /dev/usb/hid/hiddev9

And finally, here's where the trouble starts:

> ./hid-ups
Couldn't find USB UPS device, check your /dev.

Here's a synopsis of my apcupsd.conf file:
UPSNAME apc
UPSCABLE usb
UPSTYPE usb
DEVICE /dev/usb/hid/hiddev[0-15]

I've also tried changing DEVICE to /dev/usb/hiddev[0-15] and leaving it blank with the same result.

Any ideas?

--dlk
 
Old 10-10-2006, 12:53 PM   #2
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 105
Blog Entries: 1

Rep: Reputation: 15
Did you solve the problem?

I know you posted a long time ago but I have exactly the same problem on Gentoo. Did you manage to solve it and how?

Cheers

Tim.
 
Old 10-14-2006, 12:28 PM   #3
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 105
Blog Entries: 1

Rep: Reputation: 15
Solved it myself.

The problem was that I do not have a USB mouse or keyboard. So I excluded USB HID (Human Interface Device) from my kernel. The UPS daemon uses the HID drivers to control the UPS. I recompiled the kernel with the USB HID options built in (one option's help notes even mentioned the UPS!). The system then worked perfectly. I even leave the DEVICE setting blank.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
APCUPSD - Unable to create UPS lock file sirpimpsalot Linux - Software 6 11-18-2012 12:24 PM
usb joystick problem on debian sarge(3.1)..... aerian Linux - Hardware 1 10-22-2005 03:23 AM
Debian Sarge PowerPC can't find module for harddrive GT3NE1 Linux - Hardware 0 10-04-2004 01:05 PM
installing apcupsd! where is usb device?? sueisfine Slackware 4 05-28-2004 04:06 AM
apcupsd says it installed but can't find it alksys7 Linux - Software 1 04-02-2004 11:33 AM


All times are GMT -5. The time now is 08:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration