Closed biplobsd closed 1 week ago
Hi @sebanc . I fixed powerd
unable to detect the power supply state. Somehow power supply status conflicts with chromeos-config and then powerd
and ChromeOS UI can't detect power supply details if it is on AC or battery. I searched about chromeos-config and this config exists in the /run/chromeos-config/v1/
and /usr/share/chromeos-config/
directory. And this files modified by 80-unibuild.sh file. Then I mount sdz7 and changed the file extension .bk so that this brunch patch should not be executed. After boot powerd
, setting
successfully detects the AC and battery state.
I liked the brunch framework. If you have enough time please patch this issue. It might be more helpful for laptop users..
Here is the step to now fix this issue:
sudo fdisk -l
Look for brunch kernel and patch partition. Mine is /dev/sdz7
sudo mount /dev/sdz7 /mnt/empty
cd /mnt/empty/patches
mv 80-unibuild.sh 80-unibuild.sh.bk
for disabling execution.sudo nano 80-unibuild.sh
echo "external" > /tmp/configfs/v1/chromeos/configs/0/hardware-properties/stylus-category
. Make sure the line is indent correctly by tab.
mkdir -p /tmp/configfs/v1/chromeos/configs/0/power
echo "1" > /tmp/configfs/v1/chromeos/configs/0/power/has-barreljack
cd ~ && sudo umount /mnt/empty
sudo edit-brunch-config
Make any change for triggering brunch rebuildBecause of configs changed. I saw build name also changed in the Diagnostics tool on the top. In my test all of now ok. But without @sebanc patched it might be issue when upgrading ChromeOS or Brunch. I didn't test yet..
Related issues: #1875 #1792 #1770
Edit: I found a specific power config flag has-barreljack
. When this file exists with value 1 the powerd detect power supply state.
Kernel log:
powerd log:
After chatting with chatgpt. Chatgpt said that
ChromeOS Embedded Controller (EC) driver does not support your hardware.
. Is it correct @sebanc ? if then how to manually configure that driver? is it possible?Environment: Brunch r125 unstable 20240610 OS: ChromeOS Flex reven R125 Version 125.0.6422.169 (Official Build) (64-bit)