Skip to content

Support smart charging and battery authentication status#167

Open
petm5 wants to merge 2 commits into
linux-surface:v6.18-surface-develfrom
petm5:v6.18-surface-devel-battery-features
Open

Support smart charging and battery authentication status#167
petm5 wants to merge 2 commits into
linux-surface:v6.18-surface-develfrom
petm5:v6.18-surface-devel-battery-features

Conversation

@petm5

@petm5 petm5 commented Jul 7, 2026

Copy link
Copy Markdown

Added support for battery features reverse-engineered from the Windows drivers.

Authentic batteries in Surface devices are verified and paired with the motherboard during manufacturing or repair for quality assurance. Windows reads the authentication status and shows a warning message if the battery isn't genuine. This status can now be read from Linux.

Newer Surface devices limit the battery charge to 80% based on usage patterns. The Surface app on Windows has a button that disables the limit temporarily and charges the battery to 100%, but Linux previously had no way to control it. The battery driver now reports the smart charging status as a charge limit and lets users disable it by setting it to 100%. The charge limit is controlled by the SAM and gets re-enabled automatically after a few days, and re-enabling the limit manually doesn't seem to be possible.

Fixes linux-surface/linux-surface#1781, linux-surface/linux-surface#2070.

petm5 added 2 commits July 7, 2026 16:11
Authentic batteries in Surface devices are verified and paired with the
motherboard during manufacturing or repair for quality assurance. Read
the authentication status from the SAM and report it.
Newer Surface devices limit the battery charge to 80% based on usage
patterns. Report the charge limit status and disengage it if requested.

The charge limit is always controlled by the SAM and will be re-enabled
after a few days depending on use.
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.

Surface Pro 9 charging stopped working after Ubuntu 24.04 updates (June 3, 2025)

1 participant