I’ve used it on LXQt and KDE, then I stopped using it when I moved to sway (the status bar just greps for the upower output automatically). This will show you an indicator of your power and charging / discharging state. In windows I can limit my ROG GL503GE laptops battery charging to 60 using ASUS Battery Health Charging software. There are more options under there, but those are the ones that sound like it would show what you would like.īy the way, if you don’t want to mess around with the terminal, just install lxqt-powermanagement and run it once you login. Other ones would show you total capacity, design and minimum specs. I would assume either status, energy_now or power_now. One of these should show you the battery level. But the bellow, I haven’t tested myself: cat /sys/class/power_supply/BAT0/capacityĬat /sys/class/power_supply/BAT0/capacity_levelĬat /sys/class/power_supply/BAT0/energy_fullĬat /sys/class/power_supply/BAT0/energy_full_designĬat /sys/class/power_supply/BAT0/energy_nowĬat /sys/class/power_supply/BAT0/power_nowĬat /sys/class/power_supply/BAT0/voltage_min_designĬat /sys/class/power_supply/BAT0/voltage_now There should be a way to just cat things under /sys/class/power_supply/BAT0 and get some info. Upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|to\ full|to\ empty|percentage" On my Dell laptop, when I used both Arch and Fedora, I could use upower to grab the battery level: upower -i /org/freedesktop/UPower/devices/battery_BAT0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |