Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when read /sys/class/power_supply/BAT0/energy_full_design #209

Open
RiKkzu opened this issue Mar 28, 2024 · 0 comments
Open

Error when read /sys/class/power_supply/BAT0/energy_full_design #209

RiKkzu opened this issue Mar 28, 2024 · 0 comments

Comments

@RiKkzu
Copy link

RiKkzu commented Mar 28, 2024

systemctl status laptop-mode.service
× laptop-mode.service - Laptop Mode Tools
Loaded: loaded (/lib/systemd/system/laptop-mode.service; disabled; preset: enabled)
Active: failed (Result: exit-code) since Fri 2024-03-29 00:59:40 +05; 1h 22min ago
Docs: man:laptop_mode(8)
man:laptop-mode.conf(8)
http://github.com/rickysarraf/laptop-mode-tools
Process: 841 ExecStartPre=/bin/rm -f /var/run/laptop-mode-tools/enabled (code=exited, status=0/SUCCESS)
Process: 857 ExecStartPre=/bin/rm -f /var/run/laptop-mode-tools/state (code=exited, status=0/SUCCESS)
Process: 864 ExecStart=/usr/sbin/laptop_mode init force (code=exited, status=2)
Process: 981 ExecStopPost=/bin/rm -f /var/run/laptop-mode-tools/enabled (code=exited, status=0/SUCCESS)
Process: 987 ExecStopPost=/bin/rm -f /var/run/laptop-mode-tools/state (code=exited, status=0/SUCCESS)
Main PID: 864 (code=exited, status=2)
CPU: 95ms
29 00:59:39 debian2 systemd[1]: Starting laptop-mode.service - Laptop Mode Tools...
29 00:59:40 debian2 laptop_mode[978]: cat: /sys/class/power_supply/BAT0/energy_full_design: No such device
29 00:59:40 debian2 systemd[1]: laptop-mode.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
29 00:59:40 debian2 laptop_mode[864]: /usr/sbin/laptop_mode: 793: [: Illegal number:
29 00:59:40 debian2 laptop_mode[864]: /usr/sbin/laptop_mode: 812: [: Illegal number:
29 00:59:40 debian2 laptop_mode[864]: /usr/sbin/laptop_mode: 816: arithmetic expression: expecting primary: "42000000 * 100 / "
29 00:59:40 debian2 systemd[1]: laptop-mode.service: Failed with result 'exit-code'.
29 00:59:40 debian2 systemd[1]: Failed to start laptop-mode.service - Laptop Mode Tools.

ls -l /sys/class/power_supply/BAT0/
-rw-r--r-- 1 root root 4096 мар 29 01:07 alarm
-r--r--r-- 1 root root 4096 мар 29 00:59 capacity
-r--r--r-- 1 root root 4096 мар 29 01:07 capacity_level
-r--r--r-- 1 root root 4096 мар 29 00:59 cycle_count
lrwxrwxrwx 1 root root 0 мар 29 01:07 device -> ../../../PNP0C0A:00
-r--r--r-- 1 root root 4096 мар 29 00:59 energy_full
-r--r--r-- 1 root root 4096 мар 29 00:59 energy_full_design
-r--r--r-- 1 root root 4096 мар 29 00:59 energy_now
drwxr-xr-x 3 root root 0 мар 29 00:59 hwmon1
-r--r--r-- 1 root root 4096 мар 29 00:59 manufacturer
-r--r--r-- 1 root root 4096 мар 29 00:59 model_name
drwxr-xr-x 2 root root 0 мар 29 01:07 power
-r--r--r-- 1 root root 4096 мар 29 00:59 power_now
-r--r--r-- 1 root root 4096 мар 29 00:59 present
-r--r--r-- 1 root root 4096 мар 29 00:59 serial_number
-r--r--r-- 1 root root 4096 мар 29 00:59 status
lrwxrwxrwx 1 root root 0 мар 29 00:59 subsystem -> ../../../../../../../../../class/power_supply
-r--r--r-- 1 root root 4096 мар 29 00:59 technology
-r--r--r-- 1 root root 4096 мар 29 00:59 type
-rw-r--r-- 1 root root 4096 мар 29 00:59 uevent
-r--r--r-- 1 root root 4096 мар 29 00:59 voltage_min_design
-r--r--r-- 1 root root 4096 мар 29 00:59 voltage_now

cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Unknown
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_NOW=7400000
POWER_SUPPLY_POWER_NOW=4158000
POWER_SUPPLY_ENERGY_FULL=50000000
POWER_SUPPLY_ENERGY_NOW=30000000
POWER_SUPPLY_CAPACITY=60
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=SR Real Battery
POWER_SUPPLY_MANUFACTURER=Intel SR 1
POWER_SUPPLY_SERIAL_NUMBER=123456789

uname -a
Linux debian2 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

Notebook Prestigio 133S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant