#39 statusd_linuxbatt.lua uses deprecated battery interface

v1.0 (example)
closed-fixed
nobody
None
5
2014-03-18
2012-04-26
Michael
No

statusd_linuxbatt.lua does not work on my system (up-to-date Debian Testing) because /proc/acpi/battery no longer exists. Instead programs should use the informations provided in /sys/class/power_supply/BAT{0-9}. I changed statusd_linuxbatt.lua to work with sys/class/power_supply and renamed it to „statusd_sysbatt.lua“ but since I’m not familiar with lua it might be a quick&dirty hack. At least it works though.

There are several script which use the even older /proc/apm file, maybe a „deprecated“-note should be placed.

Discussion

  • Michael
    Michael
    2012-04-26

     
    Attachments
  • Arnout Engelen
    Arnout Engelen
    2014-03-18

    statusd/statusd_laptopstatus.lua uses power_supply, so that's OK now, right?

     
  • Arnout Engelen
    Arnout Engelen
    2014-03-18

    • status: open --> open-fixed
    • Group: --> v1.0 (example)
     
  • Arnout Engelen
    Arnout Engelen
    2014-03-18

    • status: open-fixed --> closed-fixed