Skip to content

Enabling battery monitoring #19

Answered by smedir
smedir asked this question in Q&A
Sep 12, 2024 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

The json files in intird.img did the trick.

Had to install pd-mapper binary, as well as activate the service with a new service file, and the battery level and charging shows.

Here is the complete hook file I used in intramfs to generate the correct initrd.img-

set -e

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case \\$1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

#mv /lib/firmware/qcom/x1e80100/LENOVO/83ED/qcadsp8380.mbn.disabled /lib/firmware/qcom/x1e80100/LENOVO/83ED/qcadsp8380.mbn

# Define a list of firmware files to be included

FIRMWARE_FILES="\
qcom/x1e80100/LENOVO/83ED/adsp_dtbs.elf \
qcom/x1e80100/LENOVO/83ED/adspr.jsn …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@smedir
Comment options

@smedir
Comment options

@jglathe
Comment options

@smedir
Comment options

Answer selected by smedir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants