RehabMan / OS-X-ACPI-Battery-Driver

Implements an Advanced Configuration and Power Interface (ACPI) based battery manager kernel extension (kext/driver) for non-Apple laptops running OS X.
Other
177 stars 57 forks source link

Anyway to support UART batteries? (Surface Gen 5 devices) #36

Open wdhwg001 opened 4 years ago

wdhwg001 commented 4 years ago

Hi,

Surface Gen 5 devices (Surface Book 2 / Surface Pro 6 / Surface Laptop, etc.) uses UART to fetch its battery status, which makes their DSDT does not contain "EmbeddedControl" at all.

However, in jakeday/linux-surface#28 , some legendary hackers finished the research and provided a proof of concept: https://gist.github.com/qzed/01a93568efb863f1b7887f0f375c03fc

It then becomes a linux kernel patch ( jakeday/linux-surface#321 ). But before that, people are using cron jobs to run the POC script and update their battery status using its output.

Is there a way we could achieve something similar? Or should we work with https://github.com/VoodooI2C/VoodooI2C as they may have some experiences dealing with UART?

Thanks!

davidkathy commented 3 years ago

I have the same issue, the system can't detec the power supply input status.