Codebase list battery-stats / b089724
Add patch for supporting XPS 13 power adapter. Aurélien COUDERC 4 years ago
3 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1313 * Switch to debhelper-compat build dependency, bump compatibility level to
1414 12.
1515 * Add systemd unit in addition to init script.
16 * Add patch for supporting XPS 13 power adapter.
1617
1718 -- Ondřej Nový <onovy@debian.org> Mon, 01 Oct 2018 09:56:14 +0200
1819
0 --- a/src/battery-stats-collector
1 +++ b/src/battery-stats-collector
2 @@ -26,6 +26,8 @@
3 aconline=$(cat /sys/class/power_supply/AC/online)
4 elif [ -f /sys/class/power_supply/ACAD/online ]; then
5 aconline=$(cat /sys/class/power_supply/ACAD/online)
6 + elif [ -f /sys/class/power_supply/ADP0/online ]; then
7 + aconline=$(cat /sys/class/power_supply/ADP0/online)
8 elif [ -f /sys/class/power_supply/ADP1/online ]; then
9 aconline=$(cat /sys/class/power_supply/ADP1/online)
10 else
00 fix-python3-compatibility
1 add-xps13-adapter-support