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

Add support for the rM2 battery #51

Merged
merged 1 commit into from
Dec 25, 2020

Conversation

LinusCDE
Copy link
Collaborator

Commit message: This was not tested. Though by viewing the file tree of /sys provided by @torwag here (file tree.txt line 3166) it seems that all methods are supported.

I didn't test whether this actually works on a rM 2 as I don't own that device. I'm confident though that it should work. I added the compiled demo binary that also reports that battery data. Please test whether it displays Charging/Discharging and the percentage on the reMarkable 2.


This was not tested. Though by viewing the file
tree of /sys provided by @torwag
(Eeems-Org/oxide#48 (comment)
file tree.txt line 3166) it seems that all
methods are supported.
@raisjn
Copy link

raisjn commented Dec 25, 2020

looks good to me, shows 'Full - 99%'. I don't see anything about charging / discharging

@LinusCDE
Copy link
Collaborator Author

Thanks for testing! Seems to work then. I guess that "Full" is a third state I didn't know about meaning "would charge if battery allowed for it". It's just the file content of the sysfs battery interface.

This PR is then mergable in my opinion since it is now tested on an actual rM 2.

@canselcik canselcik merged commit 075c050 into canselcik:master Dec 25, 2020
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

Successfully merging this pull request may close these issues.

3 participants