Comments (10)
Register 0x0D is not valid for M510, however 0x07 appears to return a battery status.
Same behavious in Performance MX.
from solaar.
Register 07 also returns the battery status for the K800 keyboard. I have documented it at https://git.lekensteyn.nl/ltunify/tree/registers.txt:
Format: 10 DEVID 07 <battery level> <some magic> 00 00
(or: response to reading register, 10 DEVID 81 07 07 <batlvl> <magic> 00)
Battery level:
00 is not possible for battery level, when the keyboard went off because of zero
power, 01 was still the reported value
01 - red zone
03 - one bar
05 - two bars
07 - three bars
Some magic:
00 - after unplugging/when not connected
25 - after plugging in USB power
Currently the return value is ignored. What about this mapping (I do not know the percentages, but the below seems the best we can get):
07 Full
05 Good
03 Low
01 Critical
I see there is a regular polling for register 07 within the GUI tool for the HID++ 1.0 keyboard device, can't the Battery notifications flag be used instead of plain polling? The logitech software definitely does not poll like this for batteries.
from solaar.
@pwr Do you have this mouse? Can you test whether it works for you or not?
from solaar.
I'm afraid not. I don't have any device that uses the 07 register.
from solaar.
Which devices do you own, are those all HID++ 2.0 devices? What do you think of maintaining a table somewhere with devices, their HID++ version and possible other attributes such as firmware/bootloader version?
from solaar.
Yeah, I was thinking of expanding the 'Supported Devices' section on the web page into its own separate page. Didn't get around to it yet.
from solaar.
I've confirmed in some older captures that I had that 0x07 is indeed the battery register used by M510. Should work now with the latest trunk.
from solaar.
@pwr
I'm still experiencing this issue with Solaar and the M510. My Solaar version is 0.9.2 The battery level has never worked, Ubuntu 16.04
from solaar.
@mattacc does upower -d
show the battery status for you?
from solaar.
@Lekensteyn
mouse
present: yes
rechargeable: yes
state: unknown
warning-level: none
percentage: 0%
icon-name: 'battery-missing-symbolic'
from solaar.
Related Issues (20)
- Dark theme HOT 1
- Logitech G Pro X Superlight 2 support HOT 59
- Solaar icon switched to show battery icon instead of the Solaar icon HOT 2
- MX Keys S Compatiblity (FeatureCallError When Trying to Change Backlight) HOT 31
- Logitech MX Master Gesture button on Fedora for continuous volume slider HOT 8
- [ICON][GNOME] Missing tray icon on bazzite HOT 3
- Is the Logitech MX Master 3S suported? HOT 1
- Solaar can't detect mouse HOT 1
- A logi bolt doesn't get detected on Nvidia Orin Nano with JetPack 6 HOT 6
- POP mouse is not on the compatibility list yet works (as far as I can tell) pretty much flawlessly HOT 1
- Help for edit rule configuration HOT 15
- How to use "depress" and "release" option in KeyPress action in Rule Editor? HOT 5
- Pairing a keypad HOT 2
- Write failure on solaar config, solaar show... HOT 10
- Logitech G Powerplay is reported as "Candy Companion Chip" HOT 14
- Duplicate entries when a keyboard G915 is wireless connected and plugged via USB at the same time HOT 9
- rules file with no rules causes exception in Solaar
- Chorded key press doesn't always hit all keys (?) HOT 6
- [New device] G435 Lightspeed gaming headset HOT 11
- Difference between rules.d-uinput and rules.d udev rules HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solaar.