device-oneplus-enchilada: charge in initramfs

If your enchilada turns off because the battery is drained and you plug
it in and walk away you will come back to a phone that is still empty
(at least with FDE). With these modules running in the initramfs
charging works. I verified this by pressing the Volume-Down while
booting and in the debug shell I typed:

$ cat /sys/class/power_supply/bq27411-0/current_now

... which returns a negative number while unplugged and a number close
to but below 1500000 if plugged in.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9201>
This commit is contained in:
DrRac27
2026-08-05 20:54:36 +00:00
parent 806726e2bc
commit a5a7883caa
2 changed files with 6 additions and 2 deletions
@@ -3,7 +3,7 @@
maintainer="Casey Connolly <kcxt@postmarketos.org>"
pkgname=device-oneplus-enchilada
pkgdesc="OnePlus 6"
pkgver=29
pkgver=30
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@@ -76,7 +76,7 @@ sha512sums="
73088bcff276b1e2f03efc3776be4c7d9a367ef898031686b88e5a853f8910373eb9f77b8e035d58149947929e908e745f255fbd24d02bed7bdc816afd703d2b deviceinfo
f16e550f623522be29027954c69a956eb6543f2f608a4c6b37c1a3983403a3edaa24e70aa42dbe88e76216991aba867b48c7341c9b8a81f675902d6223937b51 kernel-cmdline.conf
c8d3026e9f803ea823e35f83dab66fa8545e99af9655576476c194567113084d78200feab46f84983a2dad608ca55c0a4a66e36406c6d64023c0aec59307d146 hexagonrpcd.confd
ea8709aa214cffaefb1d486c0c47044537446faebff16efb3b015623f043f730b7121e401c676e43aa8868bd6c630fc8a2d7dbf5fb082490e9b5493e0405b66d modules-initfs
1bc047142cfaec31238a0bd594f7a0a412c5a82f55f413ef728f49bf467e2c4f2901593ade55f384ec100db27a7011665ed511b6cf40e64607a610548a9859fc modules-initfs
fe9871c325a38c0cadc9631870801ec15ab9f5b786ee854325b93eb3d23e7d8b1ac4f1075572ffcd225d8ec514dec09b986972ddff12a89260c0218af6de7887 q6voiced.conf
a72de3293bc59e0afa0114d74030e4e725959f7619879ab616b0164595d57033affc3d1d4ccc9d8bc191b177a4c1593c1ad0a19fe7e452c3e0c9c847135c1102 80-device-oneplus-enchilada.preset
"
@@ -1,4 +1,8 @@
bq27xxx_battery_i2c
bq27xxx_battery
i2c_qcom_geni
rmi_core
rmi_i2c
qcom_spmi_haptics
qcom_spmi_rradc
qcom_smbx