openrazer / openrazer

Open source driver and user-space daemon to control Razer lighting and other features on GNU/Linux
https://openrazer.github.io
GNU General Public License v2.0
3.57k stars 520 forks source link

upower support #87

Open z3ntu opened 7 years ago

z3ntu commented 7 years ago

UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics.

https://upower.freedesktop.org/

(for mice (or other devices) with a built-in battery)

terricain commented 7 years ago

This'll be good but its going to be low on the priority list

z3ntu commented 6 years ago

Actually this might really be possible. When doing something with /sys/bus/hid/devices//power_supply/ , see https://github.com/atar-axis/xpadneo/issues/21 the battery should be registered

Aasikki commented 1 year ago

This would be really nice to have. It's annoying to have to quess my mouses battery level.

babbaj commented 9 months ago

implemented this in https://github.com/openrazer/openrazer/pull/2160 with a power_supply. The xpadneo code was a very helpful reference.