<table><tr><td style="">jjorge created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />jjorge requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25018">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since kernel 2.6.24 in 2008, the /proc/acpi/battery interface is deprecated.<br />
There is for years no updated kernel which wouldn't provide the /sys/class/power_supply/BAT0 in a laptop <br />
This patch removes the useless old path, and uses the sysfs to provide 3 informations :</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">current flow in mA (charge or discharge)</li>
<li class="remarkup-list-item">charge percent against last completed full charge</li>
<li class="remarkup-list-item">charge percent against battery by design charge</li>
</ul>

<p>Ref:<br />
<a href="https://cateee.net/lkddb/web-lkddb/ACPI_PROCFS_POWER.html" class="remarkup-link" target="_blank" rel="noreferrer">https://cateee.net/lkddb/web-lkddb/ACPI_PROCFS_POWER.html</a><br />
<a href="https://bbs.archlinux.org/viewtopic.php?id=97761" class="remarkup-link" target="_blank" rel="noreferrer">https://bbs.archlinux.org/viewtopic.php?id=97761</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R106 KSysguard</div></div></div><br /><div><strong>BRANCH</strong><div><div>acpi-move-battery-to-sysfs</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25018">https://phabricator.kde.org/D25018</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ksysguardd/Linux/acpi.c<br />
ksysguardd/Linux/acpi.h<br />
ksysguardd/modules.h</div></div></div><br /><div><strong>To: </strong>jjorge<br /><strong>Cc: </strong>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<br /></div>