SDL_GetPowerInfo undetermined result w. Debian |
SDL_GetPowerInfo undetermined result w. Debian |
Ryan C. Gordon
Guest
|
On 4/1/14, 1:50 AM, jmcfarlane wrote:
What does "uname -a" report for Wheezy? (Specifically, what kernel version does Wheezy use?) --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL_GetPowerInfo undetermined result w. Debian |
Daniel Gibson
Guest
|
Am 01.04.2014 18:09, schrieb Ryan C. Gordon:
By default Wheezy uses 3.2, there are backports of newer Kernels though. See also https://packages.debian.org/wheezy/linux-image-amd64 Cheers, Daniel
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||
|
jmcfarlane
|
Yup:
|
|||||||||||||
|
SDL_GetPowerInfo undetermined result w. Debian |
Ryan C. Gordon
Guest
|
Ah, okay, apparently /proc/acpi is deprecated (too!), and now they want us to use D-Bus or something. I'll put it on the TODO list. --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL_GetPowerInfo undetermined result w. Debian |
Daniel Gibson
Guest
|
Am 01.04.2014 19:16, schrieb Ryan C. Gordon:
Percentage: $ cat /sys/class/power_supply/BAT0/energy_full 53650000 $ cat /sys/class/power_supply/BAT0/energy_now 52500000 Generic: $ cat /sys/class/power_supply/BAT0/type Battery caedes@Cyberdemon:~$ cat /sys/class/power_supply/AC/type Mains # power cable currently not plugged in: $ cat /sys/class/power_supply/AC/online 0 $ cat /sys/class/power_supply/BAT0/status Discharging Not sure about seconds, seems like you have to calculate that yourself (get energy_now, wait a minute, get it again, interpolate remaining time from delta) Cheers, Daniel _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|