![]() |
Determine battery status and other woes. - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Pinebook Pro Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=116) +--- Thread: Determine battery status and other woes. (/showthread.php?tid=10336) |
Determine battery status and other woes. - hvdkooij - 06-19-2020 Hi, I just got my PBP this week. And I was trying to determine the battery status. For that I have seen some scripts online but it seems they refer to different battery types. They point to another battery device and not the cw2015-battery I have in the PBP. And once the unit drains the battery and you restore power the Wifi interface seems be left disabled. Even toggling it and a reboot will not fix it. The output of `acpi -V` is not very clear. So it seems the specs of the PBP change per batch. How can I diig up the relevant information? Regards, Hugo. The battery status is in /sys/class/power_supply/cw2015-battery/capacity That is the level in %. But I haven't yet been able to restore WiFi. There is nothing on the WLAN adapter now. Had the same issue yesterday. It took me a lot of tinkering to get it back on. RE: Determine battery status and other woes. - hvdkooij - 06-19-2020 $ pwd /sys/class/power_supply $ ls -l totaal 0 lrwxrwxrwx 1 root root 0 11 jun 21:30 cw2015-battery -> ../../devices/platform/ff3d0000.i2c/i2c-4/4-0062/power_supply/cw2015-battery lrwxrwxrwx 1 root root 0 18 jan 2013 dc-charger -> ../../devices/platform/dc-charger/power_supply/dc-charger lrwxrwxrwx 1 root root 0 18 jan 2013 tcpm-source-psy-4-0022 -> ../../devices/platform/ff3d0000.i2c/i2c-4/4-0022/power_supply/tcpm-source-psy-4-0022 $ cd cw2015-battery $ ls -l totaal 0 -r--r--r-- 1 root root 4096 19 jun 05:22 capacity -r--r--r-- 1 root root 4096 19 jun 14:07 charge_counter -r--r--r-- 1 root root 4096 19 jun 05:22 charge_full -r--r--r-- 1 root root 4096 19 jun 05:22 charge_full_design -r--r--r-- 1 root root 4096 19 jun 05:22 current_now lrwxrwxrwx 1 root root 0 19 jun 14:07 device -> ../../../4-0062 drwxr-xr-x 3 root root 0 11 jun 21:30 hwmon4 drwxr-xr-x 2 root root 0 19 jun 14:07 power -r--r--r-- 1 root root 4096 19 jun 05:22 present -r--r--r-- 1 root root 4096 11 jun 21:30 status lrwxrwxrwx 1 root root 0 11 jun 21:30 subsystem -> ../../../../../../../class/power_supply -r--r--r-- 1 root root 4096 19 jun 05:22 technology -r--r--r-- 1 root root 4096 19 jun 14:07 time_to_empty_now -r--r--r-- 1 root root 4096 11 jun 21:30 type -rw-r--r-- 1 root root 4096 11 jun 21:30 uevent -r--r--r-- 1 root root 4096 19 jun 05:22 voltage_now drwxr-xr-x 2 root root 0 11 jun 21:30 wakeup9 $ cat capacity 40 It seems Wifi is only started if I login as normall user on the graphical console. Is there a way to change that? |