Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 263959

Summary: sys-apps/devicekit-power should warn about missing /sys interface for battery
Product: Gentoo Linux Reporter: Tommaso Pasini <tommaso.pasini>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: enhancement CC: relson
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 263083    
Attachments: Output of gnome-power-bugreport

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.