Repository navigation
linux-omarchy: let UPower see the Snapdragon laptops' charger come and go - #1030
turbineBMW wants to merge 1 commit into
Conversation
birkskyum
left a comment
There was a problem hiding this comment.
Thanks @turbineBMW. We'll carry this in the kernel instead of the udev rule from omacom/omarchy#15332, so this is the one to land.
n1x went into master with #930 and the kernel now lives in pkgbuilds/linux-omarchy-aarch64, so this PR has to move too.
- Retarget it to
masterand put the patch inlinux-omarchy-aarch64. - Number it
2002, since #990 takes2001there. - Bump
pkgrelto 12, or the change won't ship.
That's ready at birkskyum/omarchy-pkgs@22972cfe41cc, with you as the author, if you want to take it as is. Once the base is master I can also push it to your branch.
#975 needs the same move.
|
#1160 took master to |
c744b5d to
fabbbb0
Compare
birkskyum
left a comment
There was a problem hiding this comment.
@turbineBMW thanks, this now has everything from my review. The build and test checks haven't run on this head, only the two bookkeeping jobs from the retarget, so build-approved has no build to start. Push once more, an empty commit is enough, or close and reopen the PR to start them.
fabbbb0 to
66a19c2
Compare
66a19c2 to
c93854e
Compare
…d go qcom_battmgr takes the charger supplies' online state from the battery's status response and never announces it, so UPower kept the charger state it read at startup. Patch 2002, applied to the power-supply tree as 87fd20da8ca8, announces the change. Validated on a Surface Pro 11 with the patched module built against 7.2.8-7: OnBattery follows plugging in and out with Omarchy's udev rule turned off.
c93854e to
d182b9f
Compare
Adds
2002tolinux-omarchy-aarch64, aqcom_battmgrfix that makes the X1 and X2 laptops announce their charger being plugged in or out. pkgrel 16.Why
qcom_battmgrtakes the AC, USB and wireless supplies' online state from the battery's status response. The firmware sends no notification for those supplies, and the driver only announces the battery, so userspace never hears that the charger changed. UPower keeps the state it read at startup: a laptop booted on the charger never goes on battery, and Omarchy stays on its AC power profile.omacom/omarchy#15332 works around it with a udev rule. This fixes it in the kernel. Sebastian Reichel applied the patch to the power-supply tree on 17 October as 87fd20da8ca8: https://lore.kernel.org/all/20261013-upstream-battmgr-charger-online-v1-1-731973e133a0@gmail.com/
What changes
2002-power-supply-qcom_battmgr-Notify-charger-supplies-of-online-changes.patch: callspower_supply_changed()for a charger supply whose online state changes when a status response is parsed. Glymur (X2) uses the X1E variant, so it covers both.2001is left to linux-omarchy-n1x: carry the I2C timing fix for the Snapdragon keyboard #990.No other patch touches
qcom_battmgr. It applies with--fuzz=0to 7.2.8 in the recipe'sprepare(), and #975's2133still applies after it.Tested
On a Surface Pro 11 (X1E80100), with the patched module built against 7.2.8-7 and loaded in place of the stock one, and the udev rule from #15332 turned off:
qcom-battmgr-ac.OnBatterywithin seconds. Without the patch it stayed on AC.The patch also builds with
W=1on linux-next and passescheckpatch --strict. The full package was not rebuilt.