LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-08-2013, 07:36 PM   #1
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-14.1
Posts: 34
Blog Entries: 8

Rep: Reputation: 0
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.
 
Old 11-08-2013, 11:05 PM   #2
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-14.1
Posts: 34
Blog Entries: 8

Original Poster
Rep: Reputation: 0
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...
 
Old 11-09-2013, 02:04 AM   #3
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
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.
 
Old 11-09-2013, 12:27 PM   #4
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-14.1
Posts: 34
Blog Entries: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 11-09-2013, 04:05 PM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
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.
 
Old 11-19-2013, 11:09 AM   #6
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-14.1
Posts: 34
Blog Entries: 8

Original Poster
Rep: Reputation: 0
[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!
 
  


Reply

Tags
daemons, slackware 14.1, xfce4.10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] xfce4-power-manager does not detect battery nonamedotc Linux - Software 1 01-15-2013 10:14 PM
APC Power-Saving Back-UPS Pro 550 simeon.mattes Linux - Hardware 4 03-24-2011 12:30 PM
APC UPS backup-ups ES RJ-45 augurseer Linux - Hardware 3 11-18-2009 11:32 PM
hooks in xfce4-power-manager TwinReverb Linux - Desktop 1 09-21-2009 05:44 AM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration