jjorge created this revision. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. jjorge requested review of this revision.
REVISION SUMMARY Since kernel 2.6.24 in 2008, the /proc/acpi/battery interface is deprecated. There is for years no updated kernel which wouldn't provide the /sys/class/power_supply/BAT0 in a laptop This patch removes the useless old path, and uses the sysfs to provide 3 informations : - current flow in mA (charge or discharge) - charge percent against last completed full charge - charge percent against battery by design charge Ref: https://cateee.net/lkddb/web-lkddb/ACPI_PROCFS_POWER.html https://bbs.archlinux.org/viewtopic.php?id=97761 REPOSITORY R106 KSysguard BRANCH acpi-move-battery-to-sysfs REVISION DETAIL https://phabricator.kde.org/D25018 AFFECTED FILES ksysguardd/Linux/acpi.c ksysguardd/Linux/acpi.h ksysguardd/modules.h To: jjorge Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart