[QtExtended] Latest and greatest
Radek Polak
psonek2 at seznam.cz
Sun Apr 5 12:14:05 CEST 2009
Franky Van Liedekerke wrote:
> I think I found the suspending thing. In the patch provided by
> Radek (0001-patch-for-2.6.28-kernels.patch), the file
> devices/neo/server/neohardware.cpp gets patched:
>
> + else if (QFileInfo("/sys/class/power_supply/usb/online").exists())
> {
> + //freerunner kernel > 2.6.28
> + chargeFile = "/sys/class/power_supply/usb/online";
> + }
>
> but this file gives me "0" as result, even when the usb is connected ...
> So it should be (as for neo/server/neobattery.cpp):
>
> + else if
> (QFileInfo("/sys/class/power_supply/battery/status").exists()) {
> + //freerunner kernel > 2.6.28
> + chargeFile = "/sys/class/power_supply/battery/status";
> + }
>
> This file (/sys/class/power_supply/battery/status) gives the correct
> status ("Charging") when plugged in ...
> Filip, can you confirm this?
>
> Franky
Hi Franky,
fixed this in my tree [1].
Thanks
Radek
[1]
http://github.com/radekp/qtextended/commit/0df47d3ef72597251187fc535efbc9a0b876d745
More information about the community
mailing list