Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-08-2013, 07:36 PM
|
#1
|
Member
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 95
Rep:
|
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.
|
|
|
11-08-2013, 11:05 PM
|
#2
|
Member
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 95
Original Poster
Rep:
|
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...
|
|
|
11-09-2013, 02:04 AM
|
#3
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875
|
0.99.0 is a beta release for upower 1.0 with API changes and more so avoid that
0.9.23 should work but the 95-upower-hid.rules file is out of date and you can get the new version from the 0.99.0 src package.
That new rules file enables usbmisc as well as usb, I don;t know why it is not included when the rest of the patch to fix the problem is included.
See here for more :-
http://cgit.freedesktop.org/upower/c...8b0eb262effbf1
EDIT
Tested fix and it works here
ATTN Pat fix for 14.1 No. 2
Last edited by wildwizard; 11-09-2013 at 02:10 AM.
|
|
|
11-09-2013, 12:27 PM
|
#4
|
Member
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 95
Original Poster
Rep:
|
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.
|
|
|
11-09-2013, 04:05 PM
|
#5
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875
|
I did note an issue on my system where suspend and hibernate disappear, as I never use them I have no idea if that should or should not happen.
|
|
|
11-19-2013, 11:09 AM
|
#6
|
Member
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 95
Original Poster
Rep:
|
[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!
|
|
|
All times are GMT -5. The time now is 09:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|