]> www.infradead.org Git - users/dwmw2/linux.git/commit
HID: steelseries: Add capacity_level mapping
authorBastien Nocera <hadess@hadess.net>
Wed, 23 Oct 2024 11:24:38 +0000 (13:24 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 6 Nov 2024 14:10:32 +0000 (15:10 +0100)
commit8ee0f23e2672f004e217b38d4fac956cee251c7f
tree4c56fe8423317b707ee6e5ef211227af9c5e8fb2
parent138a339e39bb5acf6b0d0d1da91387f5f0a7dabd
HID: steelseries: Add capacity_level mapping

The capacity level mappings are taken from:
https://support.steelseries.com/hc/en-us/articles/360049205612-How-do-I-know-the-Arctis-battery-level-how-do-I-charge-the-Arctis

Even if we have a percentage, exporting a capacity_level that matches
with the hardware warning levels means that upower can show warnings at
the same time as the hardware. So the headset starts beeping at the same
time as the critical warning notification appears :eyeroll:

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steelseries.c