LinuxQuestions.org
Visit Jeremy's Blog.
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 03-14-2011, 10:56 AM   #1
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
apcupsd - no hiddevx created


I have been trying to get a APC Back-UPS ES 750 to talk to my main system for about six months without success.

The problem, I never see a hiddevx created when I plug in the usb cable from the UPS supply.

What I know so far.

The UPS works on my HP netbook running Ubuntu. ( I can provide more details if required ). The monitoring software works fine with the netbook.

On my main desktop, its a no go.

The desktop system board is a Gigabyte GA-M61SME-S2 running the latest BIOS available. I updated the BIOS with no effect on this problem. I can hot plug many other USB devices on the system and all are recognized properly. This includes a Brother printer, three digital cameras, a web cam, and two USB memory sticks.

I have been through the documentation here -->http://www.apcupsd.com/ for the daemon. I can find nothing wrong. I have all the necessary modules loaded.

Quote:
ls -l /sys/bus/usb/drivers
total 0
drwxr-xr-x 2 root root 0 2011-03-14 09:16 hiddev/
drwxr-xr-x 2 root root 0 2011-03-14 09:16 hub/
drwxr-xr-x 2 root root 0 2011-03-14 09:16 usb/
drwxr-xr-x 2 root root 0 2011-03-14 11:42 usbfs/
drwxr-xr-x 2 root root 0 2011-03-14 09:16 usbhid/
drwxr-xr-x 2 root root 0 2011-03-14 05:16 usblp/
Still, the device never shows up. Here is what I see from dmesg.

Quote:
usb 2-5: new low speed USB device using ohci_hcd and address 7
usb 2-5: device not accepting address 7, error -71
usb 2-5: new low speed USB device using ohci_hcd and address 8
usb 2-5: device descriptor read/all, error -71
usb 2-5: new low speed USB device using ohci_hcd and address 9
usb 2-5: device not accepting address 9, error -71
usb 2-5: new low speed USB device using ohci_hcd and address 10
usb 2-5: device descriptor read/all, error -71
hub 2-0:1.0: unable to enumerate USB device on port 5
I have no idea how to further trouble shoot this problem. I' open for suggestions.

System info.

Slackware 13.1.
Quote:
uname -a
Linux duelie 2.6.33.4-smp #1 SMP Wed Feb 9 13:52:01 EST 2011 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux
I compiled the kernel after install. I only changed the CPU type to match my hardware.

APCUPSD version.

Quote:
apcupsd -V
apcupsd 3.14.8 (16 January 2010) slackware
This is the latest version as far as I know.

I also have Mandriva 2010.1 installed, I'm dual booting. Mandy was my main system for the a long time. The UPS does not work on Mandy either, same problem. I installed Slackware in hopes of fixing this problem. Nope, nothing has changed, other than now I know a lot more about Slackware.
 
Old 03-15-2011, 04:48 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Still, the device never shows up. Here is what I see from dmesg.
Here is what I see with mine :-

Code:
usb 6-2: new low speed USB device using uhci_hcd and address 2
usb 6-2: New USB device found, idVendor=051d, idProduct=0002
usb 6-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 6-2: Product: Smart-UPS 1500 RM FW:617.3.I USB FW:8.1
usb 6-2: Manufacturer: American Power Conversion
usb 6-2: SerialNumber: AS0624130553
Note that mine is using uhci_hcd and yours uses ohci_hcd, perhaps yours is using the wrong driver?
 
Old 03-15-2011, 08:16 AM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
Note that mine is using uhci_hcd and yours uses ohci_hcd, perhaps yours is using the wrong driver?
There are a lot of things about how USB works I have no understanding of. The one you have pointed out is just one. How a device is connected to the correct driver is a mystery to me. As far as I know, you can plug a USB 1.1 or 2.0 device in to any available usb port, the system determines ( some how ) how to talk to it. I know of no way a user can control this.

BTW, your UPS is a 'Smart' model. Mine is not. Thank-you for your interest.
 
Old 03-15-2011, 10:31 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
There was a similar thread http://www.linuxquestions.org/questi...-nodes-848132/
Quote:
Solved - adding CONFIG_USB_HIDDEV=Y to the kernel's config was all that was needed.
 
Old 03-17-2011, 02:03 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I have gone to the effort of re-compiling the kernel. I now have all drivers in the kernel. Yes, I enabled CONFIG_USB_HIDDEV=y.

I still do not get a hiddev0 created. I turned on extended USB reporting. Here is what I see when I plug in the APCUPS usb cable.

Quote:
ehci_hcd 0000:00:02.1: suspend root hub
usb usb1: usb resume
ehci_hcd 0000:00:02.1: resume root hub
hub 1-0:1.0: hub_resume
ehci_hcd 0000:00:02.1: GetStatus port 5 status 001403 POWER sig=k CSC CONNECT
hub 1-0:1.0: port 5: status 0501 change 0001
hub 1-0:1.0: state 7 ports 10 chg 0020 evt 0000
hub 1-0:1.0: port 5, status 0501, change 0000, 480 Mb/s
ehci_hcd 0000:00:02.1: port 5 low speed --> companion
ehci_hcd 0000:00:02.1: GetStatus port 5 status 003402 POWER OWNER sig=k CSC
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0020
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00010301 CSC LSDA PPS CCS
hub 2-0:1.0: port 5, status 0301, change 0001, 1.5 Mb/s
hub 2-0:1.0: debounce: port 5: total 100ms stable 100ms status 0x301
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
usb 2-5: new low speed USB device using ohci_hcd and address 20
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ec20000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ed60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0out 6ec20000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0out 6f120000 cc 6 --> status -71
usb 2-5: device not accepting address 20, error -71
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
usb 2-5: new low speed USB device using ohci_hcd and address 21
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6fd60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ed60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
ohci_hcd 0000:00:02.0: urb f2063c00 path 5 ep0out 6ec20000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0out 6f120000 cc 6 --> status -71
usb 2-5: device not accepting address 21, error -71
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
usb 2-5: new low speed USB device using ohci_hcd and address 22
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
usb 2-5: device descriptor read/8, error -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6fd60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ed60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ed60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6ed60000 cc 6 --> status -71
usb 2-5: device descriptor read/all, error -71
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [4] = 0x00100303 PRSC LSDA PPS PES CCS
usb 2-5: new low speed USB device using ohci_hcd and address 23
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
usb 2-5: device descriptor read/8, error -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6fd60000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
ohci_hcd 0000:00:02.0: urb f2063000 path 5 ep0in 6f0a0000 cc 6 --> status -71
usb 2-5: device descriptor read/8, error -71
hub 2-0:1.0: unable to enumerate USB device on port 5
hub 1-0:1.0: state 7 ports 10 chg 0000 evt 0020
hub 2-0:1.0: state 7 ports 10 chg 0000 evt 0020
hub 1-0:1.0: hub_suspend
usb usb1: bus auto-suspend
ehci_hcd 0000:00:02.1: suspend root hub
Can anyone give me some guidance as to what might be wrong? I'm thinking this is a BIOS bug, and I can't fix it.
 
Old 03-17-2011, 04:05 PM   #6
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by camorri View Post
Can anyone give me some guidance as to what might be wrong? I'm thinking this is a BIOS bug, and I can't fix it.
What happens if you boot your desktop using an Ubuntu Live CD? Considering the UPS works with Ubuntu on your netbook this would tell you pretty quickly whether or not your problem was hardware or BIOS related.

The only other advice I can suggest is to try setting your USB to the lower 1.1 speed in the BIOS. I'm not sure if adding a PCI USB expansion card is an option for you, or perhaps connecting front USB ports to your motherboard headers if indeed such a thing exists on this board. If these ports were on a different controller they just might do the trick.
 
Old 03-18-2011, 05:57 AM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
What happens if you boot your desktop using an Ubuntu Live CD? Considering the UPS works with Ubuntu on your netbook this would tell you pretty quickly whether or not your problem was hardware or BIOS related.
I booted the system with Kubuntu 10.10. Loading the modules is no problem, however, to get the UPS detected, hiddev0 created, I need to add a udev rule, its in the doc for apcupsd. This I have not figured out if there is a way without installing. So, the test is inconclusive.

Quote:
The only other advice I can suggest is to try setting your USB to the lower 1.1 speed in the BIOS
I have been throught the Award BIOS and can not find a way to lower the speed. I suppose a usb expansion card is a possibility.

Before I do that, I'm going to dig up a Ubuntu 32bit 10.04 CD, and install that to the HD. My second disk has empty space. That will take some time.

Thank-you for the thoughts.
 
Old 03-18-2011, 06:44 AM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by camorri View Post
I booted the system with Kubuntu 10.10. Loading the modules is no problem, however, to get the UPS detected, hiddev0 created, I need to add a udev rule, its in the doc for apcupsd. This I have not figured out if there is a way without installing. So, the test is inconclusive.
You can of course install software in a LiveCD session, once you don't have to reboot. And it is preferable to use a Live CD of exactly the same Ubuntu version you have working on your Netbook.
Quote:
I have been throught the Award BIOS and can not find a way to lower the speed. I suppose a usb expansion card is a possibility.
According to the manual for this board you can change to the V1.1 controller under the On-Chip USB submenu on the Integrated Peripherals screen of your BIOS setup. The default is V1.1 and V2.0.
While you're there it might be an idea to experiment with two other values: the USB Memory Type value and the USB Legacy value.
There are two headers on this board to connect the USB ports at the front/side/top of your case. Are you using them? Sometimes front USB ports don't have sufficient power output compared with rear ports integrated on the board.
 
Old 03-18-2011, 12:57 PM   #9
trillobyte
Member
 
Registered: Apr 2007
Location: USA
Distribution: Slackware, FreeBSD, Trisquel
Posts: 105
Blog Entries: 1

Rep: Reputation: 33
I have a APC Back-UPS ES 750 communicating to my main system. I am running Slackware 3.1 32bit.

quote:
Code:
s /sys/bus/usb/drivers
total 0
drwxr-xr-x 2 root root 0 2011-03-18 08:52 hiddev
drwxr-xr-x 2 root root 0 2011-03-18 12:52 hub
drwxr-xr-x 2 root root 0 2011-03-18 08:52 ibmcam
drwxr-xr-x 2 root root 0 2011-03-18 12:52 usb
drwxr-xr-x 2 root root 0 2011-03-18 08:52 usb-storage
drwxr-xr-x 2 root root 0 2011-03-18 13:06 usbfs
drwxr-xr-x 2 root root 0 2011-03-18 08:52 usbhid
drwxr-xr-x 2 root root 0 2011-03-18 08:52 usblp
Code:
apcupsd -V
apcupsd 3.14.8 (16 January 2010) slackware
dmesg reports:
Code:
usb 2-3: New USB device found, idVendor=051d, idProduct=0002
usb 2-3: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 2-3: Product: Back-UPS ES 750 FW:841.I3 .D USB FW:I3 
usb 2-3: Manufacturer: American Power Conversion
usb 2-3: SerialNumber: 3B1005X47717  
usbcore: registered new interface driver hiddev
Code:
uname -r
2.6.33.4-smp
Code:
apcaccess status
APC      : 001,037,0913
DATE     : 2011-03-18 13:43:27 -0400  
HOSTNAME : galactus
VERSION  : 3.14.8 (16 January 2010) slackware
UPSNAME  : galactus
CABLE    : USB Cable
MODEL    : Back-UPS ES 750 
UPSMODE  : Stand Alone
STARTTIME: 2011-03-18 12:52:38 -0400  
STATUS   : ONLINE 
LINEV    : 126.0 Volts
LOADPCT  :  30.0 Percent Load Capacity
BCHARGE  : 100.0 Percent
TIMELEFT :  13.2 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME  : 0 Seconds
SENSE    : Medium
LOTRANS  : 092.0 Volts
HITRANS  : 139.0 Volts
ALARMDEL : Always
BATTV    : 13.7 Volts
LASTXFER : Low line voltage
NUMXFERS : 0
TONBATT  : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x07000008 Status Flag
MANDATE  : 2010-01-29
SERIALNO : 3B1005X47717  
BATTDATE : 2010-01-29
NOMINV   : 120 Volts
NOMBATTV :  12.0 Volts
NOMPOWER : 450 Watts
FIRMWARE : 841.I3 .D USB FW:I3
APCMODEL : Back-UPS ES 750 
END APC  : 2011-03-18 13:43:32 -0400
The only difference I see is, I created an initrd to boot the generic SMP kernel.

Hope this helps.
 
  


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
apcupsd help ahh_username_taken Slackware 2 08-29-2008 01:38 PM
Help with apcupsd Rustylinux Red Hat 1 07-31-2008 10:13 PM
How to config apcupsd riverplate Linux - Hardware 1 06-07-2007 09:24 AM
apcupsd problem JSLayton Linux - Software 1 01-24-2006 10:38 AM
I have a problema using APCUPSD Dapernia Linux - Hardware 0 07-21-2003 04:46 PM

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

All times are GMT -5. The time now is 09:55 PM.

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