Although I have it defined in the params but the logs indicate that it's
searching for the default file names
2019-11-27 21:34:20,959 ERROR libqtile battery.py:_load_file():L235 Failed
to get current_now
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/libqtile/widget/battery.py", line
233, in _load_file
return f.read().strip(), value_type
OSError: [Errno 19] No such device
2019-11-27 21:34:20,960 ERROR libqtile battery.py:_load_file():L235 Failed
to get current_now
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/libqtile/widget/battery.py", line
233, in _load_file
return f.read().strip(), value_type
OSError: [Errno 19] No such device
2019-11-27 21:34:20,961 ERROR libqtile battery.py:_load_file():L235 Failed
to get power_now
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/libqtile/widget/battery.py", line
232, in _load_file
with open(path, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory:
'/sys/class/power_supply/BAT0/power_now'
2019-11-27 21:34:20,962 ERROR libqtile battery.py:_load_file():L235 Failed
to get current_now
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/libqtile/widget/battery.py", line
233, in _load_file
return f.read().strip(), value_type
OSError: [Errno 19] No such device
And my call is
widget.Battery(
energy_now_file='charge_now',
energy_full_file='charge_full',
power_now_file='current_now',
format='{char} {percent:2.0%}',
foreground=colors['yellow'],
low_foreground=colors['red']
)
and my files in "/sys/class/power_supply/BAT0" are:
alarm charge_full current_now hwmon2 power
status type voltage_now
capacity charge_full_design cycle_count manufacturer present
subsystem uevent
capacity_level charge_now device model_name
serial_number technology voltage_min_design
I can't seem to figure that out.
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/aa6e24e0-6178-496b-b5c8-d0cacf3c2532%40googlegroups.com.