Coder Social home page Coder Social logo

Comments (10)

pwr avatar pwr commented on August 16, 2024

Register 0x0D is not valid for M510, however 0x07 appears to return a battery status.

Same behavious in Performance MX.

from solaar.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

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.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

@pwr Do you have this mouse? Can you test whether it works for you or not?

from solaar.

pwr avatar pwr commented on August 16, 2024

I'm afraid not. I don't have any device that uses the 07 register.

from solaar.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

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.

pwr avatar pwr commented on August 16, 2024

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.

pwr avatar pwr commented on August 16, 2024

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.

mattacc avatar mattacc commented on August 16, 2024

@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.

Lekensteyn avatar Lekensteyn commented on August 16, 2024

@mattacc does upower -d show the battery status for you?

from solaar.

mattacc avatar mattacc commented on August 16, 2024

@Lekensteyn
mouse
present: yes
rechargeable: yes
state: unknown
warning-level: none
percentage: 0%
icon-name: 'battery-missing-symbolic'

from solaar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.