Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

apcupsd usb problem [CLOSED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
39 posts
  • 1
  • 2
  • Next
Author
Message
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

apcupsd usb problem [CLOSED]

  • Quote

Post by bumpert » Wed Jan 14, 2004 2:37 am

Hi i emerge apcupsd to be able to have details from my ups
when i try to start apcupsd with the apcupsd command i got this error:

FATAL ERROR in linux-usb.c at line 656
Cannot open UPS device:


how can i solve this? is it because my usb port isnt detected correctly? Maybe because i have a pci card to give me more usb port?

thx
Last edited by bumpert on Fri Dec 30, 2005 9:36 pm, edited 1 time in total.
Top
zhen
Developer
Developer
Posts: 65
Joined: Wed Aug 06, 2003 10:54 pm
Location: Cleveland, OH
Contact:
Contact zhen
Website

  • Quote

Post by zhen » Wed Jan 14, 2004 7:13 pm

Usually, when USB is not working, the first place to look is your kernel to make sure you have the correct controller type installed (EHCI, OHCI, UHCI, etc). Read the kernel documentation for those to see which you need (they are all under the USB section).

If you have the correct host adapter and the problem persists, then make sure that you have all USB HID (Human Interface Device) support compiled into the kernel as well. Your UPS is considered a HID device.
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Fri Jan 16, 2004 12:30 am

hi, all the controller si in the kernel and all the HID too :(
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Sat Jun 26, 2004 1:41 pm

my problem isn't solved, could someone could help me? thx
Top
A Hired Goon
n00b
n00b
Posts: 66
Joined: Sun Apr 25, 2004 8:22 pm
Location: Alberta, Canada

  • Quote

Post by A Hired Goon » Sat Jun 26, 2004 3:15 pm

You need to have only the one controller in the kernel. I have heard reports that if more then one are in USB does not work. so only compile the driver you actually need for your system (lspci should help).

A Hired Goon
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Sat Jun 26, 2004 3:36 pm

000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
0000:00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4200] (rev a3)
0000:02:00.0 USB Controller: NEC Corporation USB (rev 41)
0000:02:00.1 USB Controller: NEC Corporation USB (rev 41)
0000:02:00.2 USB Controller: NEC Corporation USB 2.0 (rev 02)
0000:02:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
0000:02:01.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 04)
0000:02:01.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
0000:02:08.0 Ethernet controller: Intel Corp. 82562EZ 10/100 Ethernet Controller (rev 02)




which controller do i need?
sorry i'm newbie :)

(but it's weird cause my printer that is on usb work well)
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Thu Jul 01, 2004 12:39 am

nothing?
Top
whiskeypriest
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Thu Feb 05, 2004 6:18 pm

  • Quote

Post by whiskeypriest » Thu Jul 01, 2004 6:40 am

I'll add one more post to this thread in the hopes we can put it to bed.

First, what kernel are you using? I only ask because there are still kernels out there (e.g. gaming-sources) which fall below the recommended version of 2.4.22. From the USB Subsystem section of the apcupsd User's Manual:
One common cause is having a Linux kernel older than 2.4.22 (such as a stock RedHat 9 kernel). If this is the case for your system, please upgrade to at least kernel version 2.4.22 and try again.
If you're still below the recommended version, I'd upgrade as advised.

Second, since you mention that your printer is working, have you tried swapping USB ports? Plug the UPS into the port your printer occupies and see if you get a response after restarting apcupsd.

Finally, to answer the question most recently asked: the USB host controller driver you need in the kernel is either UHCI (if you plug your UPS in directly) and/or OHCI (if you plug it into your USB PCI card, which I'm assuming is the NEC USB Controller listed in your previous post). I myself haven't heard about the problems AHG mentioned with multiple USB drivers, but if your problem persists, that may be the cause and you should choose your driver accordingly.

I've written a HOWTO on exactly this subject if you're looking for a step-by-step walkthrough. For the sake of convenience, however, here's what your kernel configuration might want to resemble:

Code: Select all

USB support  --->
 	<M> Support for USB
 	[ ]   USB verbose debug messages
 	--- Miscellaneous USB options
 	[*]   Preliminary USB device filesystem
 	[ ]   Enforce USB bandwidth allocation (EXPERIMENTAL)
 	--- USB Host Controller Drivers
 	< >   EHCI HCD (USB 2.0) support (EXPERIMENTAL)
 	<M>   UHCI (Intel PIIX4, VIA, ...) support
 	< >   UHCI Alternate Driver (JE) support
 	<M>   OHCI (Compaq, iMacs, OPTi, SiS, ALi, ...) support
 	< >   SL811HS Alternate (x86, StrongARM, isosynchronous mode)
 	< >   SL811HS (x86, StrongARM) support, old driver
 	--- USB Device Class drivers
 	< >   USB Audio support
 	< >   USB Bluetooth support (EXPERIMENTAL)
 	< >   USB MIDI support
 	---   SCSI support is needed for USB Storage
 	< >   USB Modem (CDC ACM) support
 	< >   USB Printer support
 	--- USB Human Interface Devices (HID)
 	<M>   USB Human Interface Device (full HID) support
 	---     Input core support is needed for USB HID input layer or HIDBP
 	[*]     /dev/hiddev raw HID device support
 	< >   USB HIDBP Keyboard (basic) support
 	< >   USB HIDBP Mouse (basic) support
 	< >   Aiptek 6000U/8000U tablet support
 	< >   Wacom Intuos/Graphire tablet support
 	< >   KB Gear JamStudio tablet support
 	< >   Griffin Technology PowerMate support
Hope this helps.
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Mon Jul 19, 2004 11:26 pm

thx for the reply, sorry for the late answer...

i have a newer version of the kernel: 2.4.25-gentoo-r4

the usb port is workling, i tried on the printer usb port

my kernel options looks like this, so i'll check your tutorial and give you feedback

thx
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Mon Jul 26, 2004 2:16 am

i tried your tutorial and when i tried to start it i had problem... :(

apcupsd FATAL ERROR in linux-usb.c at line 686
Cannot open UPS device:


weird.. is there a way to see if my ups is really detected?

maybe energizer ups isnt supported by apcusd
Programmer always try to make software idiotproof, but God always making better idiot
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Mon Jul 26, 2004 8:08 pm

its called apcupsd for a reason. it's for apc brand ups systems. Take a look at the apcupsd website for supported hardware.

chris
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Fri Jul 30, 2004 2:07 am

oh.... sorry for the trouble.. someone know a program for energizer ups?

thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
whiskeypriest
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Thu Feb 05, 2004 6:18 pm

  • Quote

Post by whiskeypriest » Fri Jul 30, 2004 8:54 pm

ctford0 is correct, unfortunately…I didn’t realize you were using a non-APC UPS unit.

You might have a look at NUT (Network UPS Tools). A cursory glance doesn’t seem to indicate support for Energizer UPS units, but I could be wrong.

Good luck with it; I’m afraid that’s the best guidance I can offer at this time.
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Thu Aug 05, 2004 1:55 am

whiskeypriest wrote:ctford0 is correct, unfortunately…I didn’t realize you were using a non-APC UPS unit.

You might have a look at NUT (Network UPS Tools). A cursory glance doesn’t seem to indicate support for Energizer UPS units, but I could be wrong.

Good luck with it; I’m afraid that’s the best guidance I can offer at this time.
i'll give a check, and give you feedback... but my ups isn't listed in the supported one
thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Mon Sep 06, 2004 9:17 pm

sorry for the late answer, i'm very busy, i'll give a check and give you feedback

thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Sat Sep 11, 2004 4:10 am

Energizer isn't supported by nut, so i'll give a check, if somone could give me a hint on energizer ups... thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Mon Sep 13, 2004 5:16 am

try a google search...

energizer ups linux

if you dont find anything then it probably isnt supported.

chris
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Tue Sep 14, 2004 12:18 am

yes already did this, found something: http://www.vttoth.com/ER-OF800.htm

didn't have time to check, but i'll give you feedback
Programmer always try to make software idiotproof, but God always making better idiot
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Tue Sep 14, 2004 3:00 am

Update (September 2, 2003): A driver I wrote for the Energizer UPS is now officially part of the NUT (Network UPS Tools) system (starting with version 1.5.4). It is recommended that you use NUT instead of the experimental code below with your Energizer UPS.
I think this is your answer. Good luck!

chris
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Tue Sep 14, 2004 2:56 pm

ok i'll try NUT when i'll be at home
thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Thu Oct 14, 2004 1:14 am

i emerged nut but didn't find any doc or howto on how make it work, somebody?

thx for help
Programmer always try to make software idiotproof, but God always making better idiot
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Sat Oct 23, 2004 3:08 pm

nobody?
Programmer always try to make software idiotproof, but God always making better idiot
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Sat Oct 23, 2004 8:10 pm

bumpert wrote:i emerged nut but didn't find any doc or howto on how make it work, somebody?

thx for help
The website that you posted a few posts above tells you how to configure it. What to type in on the cl to see that it is working properly and how to make it run in the background. It says that everything right now should be considered very experimental but it's better than nothing I suppose. Maybe you could write an init script if there isn't one already.

chris
Top
bumpert
Guru
Guru
Posts: 430
Joined: Mon Dec 22, 2003 3:03 pm
Location: Montréal, Québec, Canada
Contact:
Contact bumpert
Website

  • Quote

Post by bumpert » Tue Oct 26, 2004 2:38 am

lol it's true, i'll give a check as soon as i have time and give you feedback
thx
Programmer always try to make software idiotproof, but God always making better idiot
Top
bluesea
n00b
n00b
User avatar
Posts: 27
Joined: Mon May 10, 2004 9:54 pm

Same symptom, same problem?

  • Quote

Post by bluesea » Wed Oct 27, 2004 9:54 pm

For what it's worth, I'm having a similar problem. I have an APC UPS which was working flawlessly with 2.6.8-gentoo-r3. Ever since my upgrade to 2.6.9-gentoo-r1, I get a USB error message on boot, and fgrep -i usb /var/log/messages looks like this:

Code: Select all

Oct 25 23:41:00 ouzo usbcore: registered new driver usbfs
Oct 25 23:41:00 ouzo usbcore: registered new driver hub
Oct 25 23:41:00 ouzo usbcore: registered new driver ub
Oct 25 23:41:00 ouzo USB Universal Host Controller Interface driver v2.2
Oct 25 23:41:00 ouzo uhci_hcd 0000:00:1f.2: Intel Corp. 82801BA/BAM USB (Hub #1)
Oct 25 23:41:00 ouzo uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
Oct 25 23:41:00 ouzo hub 1-0:1.0: USB hub found
Oct 25 23:41:00 ouzo uhci_hcd 0000:00:1f.4: Intel Corp. 82801BA/BAM USB (Hub #2)
Oct 25 23:41:00 ouzo uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
Oct 25 23:41:00 ouzo hub 2-0:1.0: USB hub found
Oct 25 23:41:00 ouzo SLPB PCI0 HUB0 USB0 USB1 MODM UAR1 UAR2
Oct 25 23:41:00 ouzo usb 1-1: new low speed USB device using address 2
Oct 25 23:41:00 ouzo usb 1-2: new full speed USB device using address 3
Oct 25 23:41:04 ouzo ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Oct 25 23:41:43 ouzo apcupsd[7500]: apcupsd FATAL ERROR in linux-usb.c at line 781 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.
Oct 26 18:28:44 ouzo usb 1-2: USB disconnect, address 3
Oct 26 18:28:51 ouzo usb 1-2: new full speed USB device using address 4
Kernel config changes relevant to USB:

Code: Select all

boot # diff config-2.6.8-gentoo-r3 config-2.6.9-gentoo-r1| fgrep -i usb
> # CONFIG_SND_USB_USX2Y is not set
> # CONFIG_USB_SUSPEND is not set
> # CONFIG_USB_OTG is not set
< # CONFIG_USB_PWC is not set
It seems that 2.6.9-r1 has definitely done something to USB... ?

Thanks

-Mike.
erutangiS
Top
Post Reply

39 posts
  • 1
  • 2
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic