-
Notifications
You must be signed in to change notification settings - Fork 0
Description
[captain@captain-notebook system]$ systemctl status chargelimit.service
× chargelimit.service - Set battery charge threshold
Loaded: loaded (/etc/systemd/system/chargelimit.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-07-19 16:02:39 CST; 20s ago
Process: 56073 ExecStart=/bin/bash -c echo 75 > /sys/class/power_supply/BAT0/charge_control_end_threshold (code=exited, status=1/FAILURE)
Main PID: 56073 (code=exited, status=1/FAILURE)
CPU: 2ms
7月 19 16:02:39 captain-notebook systemd[1]: Starting Set battery charge threshold...
7月 19 16:02:39 captain-notebook bash[56073]: /bin/bash:行1: /sys/class/power_supply/BAT0/charge_control_end_threshold: 权限不够
7月 19 16:02:39 captain-notebook systemd[1]: chargelimit.service: Main process exited, code=exited, status=1/FAILURE
7月 19 16:02:39 captain-notebook systemd[1]: chargelimit.service: Failed with result 'exit-code'.
7月 19 16:02:39 captain-notebook systemd[1]: Failed to start Set battery charge threshold.