Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263959 - sys-apps/devicekit-power should warn about missing /sys interface for battery
Summary: sys-apps/devicekit-power should warn about missing /sys interface for battery
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome2.26
  Show dependency tree
 
Reported: 2009-03-27 11:31 UTC by Tommaso Pasini
Modified: 2010-05-03 03:31 UTC (History)
1 user (show)

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


Attachments
Output of gnome-power-bugreport (gnome-power-bugreport.txt,2.84 KB, text/plain)
2009-03-27 11:33 UTC, Tommaso Pasini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pasini 2009-03-27 11:31:37 UTC
I upgraded to gnome-power-manager-2.26 with the ebuilds I found on the overlay and here on bugzilla: now inside the capplet gnome-power-preferences the tab 'battery alimentation' is missing, and if I plug/unplug the ac connector nothing happens (e.g. the display should darken a bit).

I downgraded to 2.24 and everything went back correctly, then to 2.26 again and the issue reappeared.
The issue happens on the stable gentoo-sources-2.6.27-r8 and also on the new 2.6.29.

As a (maybe useful) note, I disabled the policykit USE flag.
Comment 1 Tommaso Pasini 2009-03-27 11:33:35 UTC
Created attachment 186409 [details]
Output of gnome-power-bugreport
Comment 2 Tommaso Pasini 2009-03-27 11:57:30 UTC
I found the cause of the issue: in the last months I disabled the 'Future power /sys interface' inside the kernel because it made gnome-power-manager report double values.
Now the behaviour seems fixed, and that kernel option is actually needed to make gnome-power-manager aware of the battery.

I'm changing the bug severity to 'enhancement' because it isn't a real bug; but I think you should warn the users inside the ebuild.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-27 12:43:01 UTC
devicekit-power would be a proper place to put this warning, not gpm itself.
Comment 4 Tommaso Pasini 2009-03-27 15:51:33 UTC
Ok, will you take care of it or should I open a new bugreport?
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-28 22:57:08 UTC
sys-apps/devicekit-power should warn about missing /sys interface for battery or whatever other interfaces are needed to get this working like what hal might currently be doing.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-23 22:32:09 UTC
fixed and pushed without a bump. Thanks for reporting.
Comment 7 David Relson 2010-05-03 03:31:11 UTC
The devicekit-power ebuild has the following lines:
  CONFIG_CHECK="ACPI_SYSFS_POWER"
  check_extra_config

These lines cause the build to fail on my amd64 system which does not have ACPI_SYSFS_POWER enabled and, as best I can tell, has no need for that kernel option.