Too few values in _battery_line
Created by: skitt
Information
- Solaar version (
solaar --version
orgit describe --tags
if cloned from this repository): 1.1.5 - Distribution: Debian 11
- Kernel version (ex.
uname -srmo
): 5.10.140-1 - Output of
solaar show
:
Solaar version 1.1.5
Unifying Receiver
Device path : /dev/hidraw0
USB id : 046d:C52B
Serial : D4A19232
Firmware : 12.10.B0032
Bootloader : 02.14
Other : AA.AA
Has 1 paired device(s) out of a maximum of 6.
Notifications: wireless (0x000100)
Device activity counters: 1=198
1: Marathon Mouse M705 (M-R0009)
Device path : /dev/hidraw1
WPID : 101B
Codename : M705 (M-R0009)
Kind : mouse
Protocol : HID++ 1.0
Polling rate : 8 ms (125Hz)
Serial number: 23691D3D
Firmware: 17.01.B0017
Bootloader: 02.06
Other: 00.04
The power switch is located on the base.
Notifications: battery status (0x100000).
Features: special buttons, scroll accel (0x420000)
solaar: error: Traceback (most recent call last):
File "/usr/share/solaar/lib/solaar/cli/__init__.py", line 210, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 296, in run
_print_device(dev)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 273, in _print_device
_battery_line(dev)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 72, in _battery_line
level, nextLevel, status, voltage = battery
ValueError: not enough values to unpack (expected 4, got 3)
- Contents of
~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):
{
"101B:23691D3D": {
"_name": "Marathon Mouse M705 (M-R0009)",
"_sensitive": {
"smooth-scroll": true
},
"_serial": "23691D3D",
"side-scroll": true,
"smooth-scroll": true
},
"_version": "1.0.7"
}
- Errors or warrnings from Solaar:
Describe the bug
solaar show
fails with the following error:
solaar: error: Traceback (most recent call last):
File "/usr/share/solaar/lib/solaar/cli/__init__.py", line 210, in run
m.run(c, args, _find_receiver, _find_device)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 296, in run
_print_device(dev)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 273, in _print_device
_battery_line(dev)
File "/usr/share/solaar/lib/solaar/cli/show.py", line 72, in _battery_line
level, nextLevel, status, voltage = battery
ValueError: not enough values to unpack (expected 4, got 3)
To Reproduce Steps to reproduce the behavior:
- Run
solaar show
with a Logitech M705 mouse connected.