Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114062 - sys-power/apcupsd - USB (usbhid) does not claim APC UPS
Summary: sys-power/apcupsd - USB (usbhid) does not claim APC UPS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 11:56 UTC by ivo welch
Modified: 2005-12-02 19:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivo welch 2005-11-30 11:56:15 UTC
while trying to get apccupsd to work, I thought I had followed all the required
items, but something is wrong in the kernel part that is supposed to claim the UPS:

OS: Linux version 2.6.14 (root@iaw) (gcc version 3.4.4 (Gentoo 3.4.4-r1,
ssp-3.4.4-1.0, pie-8.7.8)) #2 Wed Nov 30 10:47:10 EST 2005

Model APC Back-UPS ES 725

first attempt:
Nov 30 11:15:34 iaw apcupsd[15104]: apcupsd FATAL ERROR in linux-usb.c at line
597 Cannot find UPS device -- For a link to detailed USB trouble shooting
information, please see <http://www.apcupsd.com/support.html>.
Nov 30 11:15:35 iaw apcupsd[15104]: apcupsd error shutdown completed


# lsusb
Bus 004 Device 003: ID 051d:0002 American Power Conversion Back-UPS Pro
500/1000/1500

# ls -l /sys/bus/usb/drivers/ '
total 0
drwxr-xr-x  2 root root 0 Nov 30 11:32 hub
drwxr-xr-x  2 root root 0 Nov 30 11:32 usb
drwxr-xr-x  2 root root 0 Nov 30 11:32 usbfs
drwxr-xr-x  2 root root 0 Nov 30 11:32 usbhid
drwxr-xr-x  2 root root 0 Nov 30 11:32 usblp

[after a hot plug, in /var/log/messages]
Nov 30 11:22:25 iaw usb 4-1: new low speed USB device using uhci_hcd and address 3
Nov 30 11:22:26 iaw HID device not claimed by input or hiddev

Regards,

/iaw


Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14 x86_64)
=================================================================
System uname: 2.6.14 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/p ub/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LC_ALL="POSIX"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa amd64 arts audiofile avi berkdb bitmap-fonts bonobo
bzip2 calendar cdr crypt cups curl directfb dv dvd dvdr eds emacs emboss encode
esd exif expat f77 fam fbcon ffmpeg flac foomaticdb fortran ftp g77 gd gdbm ggi
gif glut gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn ieee1394
imagemagick imlib ipv6 java javascript jpeg junit kde kdeenablefinal lcms ldap
libedit libwww lm_sensors lzw lzw-tiff mad mbox mhash mikmod mime mng motif
mozilla mp3 mpeg mval mysql nas ncurses nls ogg opengl pam pcre pdflib perl png
postgres ppds python qt quicktime readline ruby samba scanner sdl session slang
snmp soap spell ssl symlink tcltk tcpd tetex tidy tiff truetype truetype-fonts
type1-fonts udev ungif usb userlocales vorbis xine xinerama xml xml2 xmms xpm xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 ivo welch 2005-12-02 11:42:12 UTC
more info:  after a kernel upgrade to 2.6.15-rc4, the APC UPS is still unclaimed.

usb 4-1: USB disconnect, address 2
usb 4-2: new low speed USB device using uhci_hcd and address 3
HID device not claimed by input or hiddev



alas, the same APC UPS device is claimed nicely on a different i386 machine,
same kernel version:

usbcore: registered new driver hiddev
hiddev96: USB HID v1.10 Device [APC Back-UPS ES 725 FW:802.n2.D USB FW:n2] on
usb-0000:00:03.0-2
input: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-0000:00:03.2-1
usbcore: registered new driver usbhid


so, I wonder if there is something in usbhid that does not work under an AMD64,
or something else on my AMD64 machine that interferes here.

interesting.

/iaw
Comment 2 Bruno Dufour 2005-12-02 19:27:58 UTC
Maybe a silly question, but did you enable CONFIG_USB_HIDDEV in your kernel?

-- Bruno
Comment 3 ivo welch 2005-12-02 19:36:57 UTC
from the gentoo wiki:

Second, the Preliminary USB device filesystem is very important (as I found when
I took my first swing at this project). I had neglected to build this in; the
result gave me a seemingly functional installation with full communication
between apcupsd and the UPS. I just couldn
Comment 4 ivo welch 2005-12-02 19:36:57 UTC
from the gentoo wiki:

Second, the Preliminary USB device filesystem is very important (as I found when
I took my first swing at this project). I had neglected to build this in; the
result gave me a seemingly functional installation with full communication
between apcupsd and the UPS. I just couldnt get apcupsd to shutdown the
machine, which I viewed as a rather important piece of functionality. Make sure
its there.

...and, of course, it was not there.  mea culpa.  (thought I had it covered with
usbhid).