On 26/03/2021 19.09, Daniel Morris wrote:
A slightly off-the-wall request, but does anyone know how to tame the mouse/peripheral battery nags under Plasma with Leap 15.2?
I've a Logitech M705 mouse which has 2xAA 2450mAh rechargeable batteries. Somewhere in the Leap 15.1 update cycle (I think) I started getting nags about low-battery in the mouse. At first I thought "how helpful" as the same type of geniunely flat batteries in my wireless keyboard sent me on an epic wild-goose chase a few years ago (hint, no probs in the graphic driver). Twice. Here's the notification message:
Mouse Battery Low (10% Remaining) The battery in ("Marathon Mouse/Performance Plus M705") is running low, and the device may turn off at any time. Please recharge or replace the battery.
I'm guessing the slightly lower voltage in low self-discharge rechargeable batteries is confusing upower, but I can't find where/if it can be tuned. The level is reported regularly by the mouse itself, as it returns from low power/auto sleep mode. Yes, I've tried a fresh set of rechargeables, after their 20hr topup. Regular AA's are rated for three years in the mouse, so would expect at least 12 with high capacity rechargeables.
upower --dump reports (for this device):
Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_1 native-path: hidpp_battery_1 model: Marathon Mouse/Performance Plus M705 serial: 406d-13-d9-8d-16 power supply: no updated: Fri 26 Mar 2021 18:07:57 GMT (12 seconds ago) has history: yes has statistics: yes mouse present: yes rechargeable: yes state: discharging warning-level: low battery-level: low percentage: 10% (should be ignored) icon-name: 'battery-caution-symbolic'
10% is clearly wrong and something needs re-calibrating.
I understand that you are using rechargeable AA batteries, but the mouse "expects" normal AA batteries. Normal batteries deliver about 1.6 volts when new, while rechargeable batteries deliver 1.2 when fully charged, which for a normal battery means "dead". The mouse is reading the voltage as "the battery is dead". I don't think the computer can do anything about that. I have one machine with a wireless keyboard, and I get: Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_0 native-path: hidpp_battery_0 model: Wireless Touch Keyboard K400 Plus serial: 404d-21-39-2b-7f power supply: no updated: Fri Mar 26 20:25:40 2021 (98 seconds ago) has history: yes has statistics: yes mouse present: yes rechargeable: yes state: unknown warning-level: none battery-level: unknown percentage: 50% (should be ignored) icon-name: 'battery-missing-symbolic' There is nothing I can do, but 50% is better result than 10%, so I'm just lucky. But you can search the files to see if there is any configuration possible: Isengard:~ # rpm -ql upower /etc/UPower /etc/UPower/UPower.conf /usr/bin/upower /usr/lib/systemd/system/upower.service /usr/lib/udev/rules.d/95-upower-csr.rules /usr/lib/udev/rules.d/95-upower-hid.rules /usr/lib/udev/rules.d/95-upower-hidpp.rules /usr/lib/udev/rules.d/95-upower-wup.rules /usr/lib/upower /usr/lib/upower/upowerd /usr/sbin/rcupower /usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml /usr/share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml /usr/share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml /usr/share/dbus-1/interfaces/org.freedesktop.UPower.xml /usr/share/dbus-1/system-services/org.freedesktop.UPower.service /usr/share/dbus-1/system.d/org.freedesktop.UPower.conf /usr/share/doc/packages/upower /usr/share/doc/packages/upower/AUTHORS /usr/share/doc/packages/upower/NEWS /usr/share/doc/packages/upower/README /usr/share/licenses/upower /usr/share/licenses/upower/COPYING /usr/share/man/man1/upower.1.gz /usr/share/man/man7/UPower.7.gz /usr/share/man/man8/upowerd.8.gz /var/lib/upower Isengard:~ # -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)