Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503176 - xfce-extra/xfce4-battery-plugin uses deprecated /proc/acpi
Summary: xfce-extra/xfce4-battery-plugin uses deprecated /proc/acpi
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-02 01:49 UTC by account-removed
Modified: 2020-07-17 16:40 UTC (History)
3 users (show)

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 account-removed 2014-03-02 01:49:05 UTC
Shows correct information upon startup, then no longer updates whatsoever.
After a bit of research, it seems probable that it's because the plugin is trying to read it from /proc/acpi, which is no longer the location to look at (it's /sys/class).
Note that acpid and acpi are installed and enabled, and acpi -b shows correct information.
Comment 1 Dan Johnson 2014-03-02 20:44:38 UTC
A quick reading of the source code shows that it does at least try to use /sys/class/power_supply entries:

(line 197 of http://git.xfce.org/panel-plugins/xfce4-battery-plugin/tree/panel-plugin/libacpi.c#n197 )

It's possible that this code is simply broken, but I would suspect that something else is wrong here. Unfortunately, I don't have any insight on what that might be, I just looked into it a bit because I was curious.

Something to check might be to see if the entries in /sys/class/power_supply exist and are working. (on my system, /sys/class/power_supply/BAT0/charge_now )
Comment 2 account-removed 2014-03-03 04:21:43 UTC
It is working.
I checked and procfs has no such entries, while sysfs does.
Moreover, acpi uses sysfs, so if acpi shows correct information, it should be fine.
Comment 3 account-removed 2014-03-18 16:37:46 UTC
Additional information:
I moved over to gnome3, their battery widget works fine, so this is definitely an xfce issue.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-06-21 10:32:11 UTC
Report this to http://bugzilla.xfce.org/ and provide the link to the bug here, in the "See Also: " field