Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the battery state? #34

Closed
schmunk42 opened this issue Feb 8, 2019 · 6 comments
Closed

How to get the battery state? #34

schmunk42 opened this issue Feb 8, 2019 · 6 comments

Comments

@schmunk42
Copy link

My problem is that I currently need to have my touchpad almost always connected via USB to have it working. I suppose this is due a low battery state, but I am not sure since I can't see the loading percentage at the moment.

I found only #19 when looking for "battery", do you have any advice how to get the actual battery level?

@dos1
Copy link

dos1 commented Feb 21, 2019

#19 (comment) describes it pretty well. You have to do it manually, as it's not implemented in the driver yet.

@aleksfadini
Copy link

aleksfadini commented Mar 11, 2021

I also would like to have any way to know the battery state of my magic trackpad 2 on linux. Even if it means being able to check only when it is connected to a wire, that would still be a big improvement. As things stand now, we have no way to tell really.

[edit- OT] Thank you for making the trackpad work, it's fantastic.

@alexanderadam
Copy link

alexanderadam commented Aug 10, 2023

For anyone stumbling over this.
In Gnome you can check the power state of devices under Settings > Power > Devices without having to install or configure anything nowadays:

image

As the README states the driver was merged in 2018.

Therefore I think that this issue can be closed. 😉

@mwyborski
Copy link
Owner

@alexanderadam is right, that modifications should be made in the official linux kernel if necessary. Thank you

@alexanderadam
Copy link

@mwyborski I think that you can close this issue here, too, right?

@NicoWeio
Copy link

For future reference, battery level reporting (USB only) was added in torvalds/linux@0b91b4e.
It also works for me on KDE Plasma, so this issue could indeed be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants