I'm running a Proxmox VE on a laptop computer and because it's always on 24/7 I'd like to make sure the battery lasts long.
I figured our that Linux OS has a built in support for limiting battery threshold simply by: (for example to 80%)
My issue is, though, that this file does not exist on my laptop running Proxmox VE. (It does exist on another laptop running pure Debian)
These are my files under /sys/class/power_supply/BAT0/:
Anyone has had luck with making this work?
I figured our that Linux OS has a built in support for limiting battery threshold simply by: (for example to 80%)
Code:
cat 80 > /sys/class/power_supply/BAT0/charge_stop_threshold
My issue is, though, that this file does not exist on my laptop running Proxmox VE. (It does exist on another laptop running pure Debian)
These are my files under /sys/class/power_supply/BAT0/:
Code:
root@proxmox:/sys/class/power_supply/BAT0# ls -l
total 0
-rw-r--r-- 1 root root 4096 Sep 29 18:09 alarm
-r--r--r-- 1 root root 4096 Sep 29 18:09 capacity
-r--r--r-- 1 root root 4096 Sep 29 18:09 capacity_level
-r--r--r-- 1 root root 4096 Sep 29 18:09 charge_full
-r--r--r-- 1 root root 4096 Sep 29 18:09 charge_full_design
-r--r--r-- 1 root root 4096 Sep 29 18:09 charge_now
-r--r--r-- 1 root root 4096 Sep 29 18:09 current_now
-r--r--r-- 1 root root 4096 Sep 29 18:09 cycle_count
lrwxrwxrwx 1 root root 0 Sep 29 18:09 device -> ../../../PNP0C0A:00
drwxr-xr-x 3 root root 0 Sep 29 18:09 hwmon2
-r--r--r-- 1 root root 4096 Sep 29 18:09 manufacturer
-r--r--r-- 1 root root 4096 Sep 29 18:09 model_name
drwxr-xr-x 2 root root 0 Sep 29 18:09 power
-r--r--r-- 1 root root 4096 Sep 29 18:09 present
-r--r--r-- 1 root root 4096 Sep 29 18:09 serial_number
-r--r--r-- 1 root root 4096 Sep 29 18:09 status
lrwxrwxrwx 1 root root 0 Sep 29 18:09 subsystem -> ../../../../../../class/power_supply
-r--r--r-- 1 root root 4096 Sep 29 18:09 technology
-r--r--r-- 1 root root 4096 Sep 29 18:09 type
-rw-r--r-- 1 root root 4096 Sep 29 18:09 uevent
-r--r--r-- 1 root root 4096 Sep 29 18:09 voltage_min_design
-r--r--r-- 1 root root 4096 Sep 29 18:09 voltage_now
Anyone has had luck with making this work?