APC UPS not found by xfce4-power-manager or upower in slackware 14.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
APC UPS not found by xfce4-power-manager or upower in slackware 14.1
In slackware-14.0, the command 'upower -d' lists both information
about the upowerd daemon configuration and a USB-attached APC UPS.
In slackware-14.1, only the upowerd info is listed by this command. apcupsd and apcaccess work normally on both systems (same machine, same hardware, dual boot). 14.1 (kernel 3.10.17) loads a module named 'hid_generic' which doesn't exist in 14.0 (kernel 3.2.45), but otherwise the module differences are what one would expect.
In 3.2.45, the APC device is /org/freedesktop/UPower/devices/ups_hiddev0. Both slackwares run the same upower slackpackage version(0.9.17), as released.
more info: In kernel-3.2.45, the USB interface for the UPS is in /sys/class/usb.
In kernel-3.10.17, it is in /sys/class/usbmisc.
Obviously, the format of sysfs has changed, and perhaps upower needs upstream repair. For what it's worth, I tried compiling upower-0.9.23 from upower.freedesktop.org. It compiles, but fails the same way. Their latest version - upower-0.99 - won't compile on slackware-14.1
BTW, on slackware-14.0, my USB printer shows up in /sys/class/usb also. Don't know where it went in 14.1 So there may be printing issues ahead with 14.1 as well...
As wildwizard points out, the udev rules have changed. upower-0.9.23 worked fine once I rebooted. I erroneously assumed that the problem was in the code itself, not the exported rules. Installpkg updates the code and the rules, but doesn't restart udev (duh!) so it looked like the newer version didn't work. My bad.
[NOT SOLVED] The recent(11/19/13) upgrade of upower ( -1) is still upower-0.9.17 and is still broken.
[SOLVED] Reinstalled upower-0.9.23 to get the correct udev rules.
[BTW] I'll bet a number of the other threads reporting problems with HID devices (headsets,etc) are tied to other packages not coping with the changes to sysfs in kernel 3.10.17!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.