Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289017 - sys-apps/devicekit-power: support for non-acpi systems required in check_battery function
Summary: sys-apps/devicekit-power: support for non-acpi systems required in check_batt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 296548
  Show dependency tree
 
Reported: 2009-10-14 08:24 UTC by gringo
Modified: 2010-07-28 08:40 UTC (History)
1 user (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 gringo 2009-10-14 08:24:56 UTC
One thing that has been happening for some time now with the devicekit-power ebuilds : function check_battery checks for ACPI_SYSFS_POWER which isn´t available for systems without acpi ( like my ppc powerbook f.ex.).

I don´t know what would be the best workaround,  maybe checking for CONFIG_APM or CONFIG_APM_EMULATION too ?

thanks !

Reproducible: Always
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-01 00:55:23 UTC
I don't even remember if I asked you the simple question. Does dk-p actually works on your ppc system ?
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-07 23:16:11 UTC
please get back to us
Comment 3 gringo 2009-11-17 11:42:44 UTC
sorry for the delayed answer. 

looking to the mailexchange i see you are right and i didn´t make this clear : nope, devkit-power doesn´t work here. It detects the initial state of things but that´s it, no new events are registered here, or at least --monitor doesn´t show anything.
I thought that maybe there is some extra support in devkit-power for events triggered by PMU or APM ( and therefore the ebuild should check for it) but i have no clue actually. Searching a bit doesn´t even make clear this is supported by upstream.

If you want me to do some testing let me know, but it will take some time, i have very limited access to this lappy.

thanks !
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-09 23:16:40 UTC
Ok, read a bit of code, it seems dk-power is reading through /sys/class/power_supply/
so if non-acpi systems still expose something via /sys, it should work out of the box. Could you list what you have under /sys/class/power_supply ?
Comment 5 gringo 2010-01-12 15:41:39 UTC
sorry again for the delayed answer :

this is what i have in /sys/class/power_supply/ :

drwxr-xr-x  2 root root 0 ene 12 13:50 .
drwxr-xr-x 30 root root 0 ene 12 13:50 ..
lrwxrwxrwx  1 root root 0 ene 12 13:50 pmu-ac -> ../../devices/platform/pmu-battery.0/power_supply/pmu-ac
lrwxrwxrwx  1 root root 0 ene 12 13:50 PMU_battery_0 -> ../../devices/platform/pmu-battery.0/power_supply/PMU_battery_0

let me know if you need anything else. 
Gnome isn´t installed anymore i this lappy but i would install a few bits in case you want me to test some stuff.

thanks !
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-07-28 08:40:57 UTC
no arch actually wants to test this and upower got keyworded anyway. Closing.