~mil/sxmo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH sxmo-utils] Wileyfox Swift battery level icon fix

Alex O
Details
Message ID
<20210518131309.9807-1-alex.o.alex.o@bk.ru>
DKIM signature
pass
Download raw message
Patch: +6 -2
---
 scripts/core/sxmo_statusbar.sh                         | 5 +++--
 scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh | 3 +++
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh

diff --git a/scripts/core/sxmo_statusbar.sh b/scripts/core/sxmo_statusbar.sh
index ae62a9d..b1c7e32 100755
--- a/scripts/core/sxmo_statusbar.sh
+++ b/scripts/core/sxmo_statusbar.sh
@@ -54,9 +54,10 @@ update() {
	fi

	# Battery pct
	PCT="$(cat /sys/class/power_supply/*-battery/capacity)"
	BATTERY_DEVICE="${BATTERY_DEVICE:-"/sys/class/power_supply/*-battery"}"
	PCT="$(cat "$BATTERY_DEVICE"/capacity)"
	BATSTATUS="$(
		cat /sys/class/power_supply/*-battery/status |
		cat "$BATTERY_DEVICE"/status |
		cut -c1
	)"
	if [ "$BATSTATUS" = "C" ]; then
diff --git a/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh b/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh
new file mode 100644
index 0000000..12ed601
--- /dev/null
+++ b/scripts/deviceprofiles/sxmo_deviceprofile_l8150qcom.sh
@@ -0,0 +1,3 @@
#!/bin/sh

export BATTERY_DEVICE="/sys/class/power_supply/pm8916-bms-vm"
-- 
2.25.1

[sxmo-utils/patches/.build.yml] build failed

builds.sr.ht
Details
Message ID
<CBGECJKACWZC.3OAAGBPGR99HX@cirno>
In-Reply-To
<20210518131309.9807-1-alex.o.alex.o@bk.ru> (view parent)
DKIM signature
missing
Download raw message
sxmo-utils/patches/.build.yml: FAILED in 20s

[Wileyfox Swift battery level icon fix][0] from [Alex O][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/22787
[1]: mailto:alex.o.alex.o@bk.ru

✗ #508836 FAILED sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/508836
Details
Message ID
<87bl97bfrr.fsf@momi.ca>
In-Reply-To
<20210518131309.9807-1-alex.o.alex.o@bk.ru> (view parent)
DKIM signature
pass
Download raw message
Hi,

Thanks for this patch! I have fixed the shellcheck error and merged:

To git.sr.ht:~mil/sxmo-utils
   51815ac..b2fad74  master -> master

Cheers,
Anjan Momi
--
w:] www.momi.ca
pgp:] https://momi.ca/publickey.txt
Reply to thread Export thread (mbox)