I just installed Bluefin for the very first time, so totally new user and also new to atomic OS concepts.
I have a problem with my laptop which is a new model. It is a Lenovo Yoga Pro 9i 2024 model (16" version). The thing is my syslog is filled with these messages:
Apr 14 10:22:38 myhost (udev-worker)[26944]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_control_start_threshold' failed with exit code 1.
Apr 14 10:22:38 myhost (udev-worker)[26944]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_control_end_threshold' failed with exit code 1.
Apr 14 10:22:38 myhost (udev-worker)[26944]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_start_threshold' failed with exit code 1.
Apr 14 10:22:38 myhost (udev-worker)[26944]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_stop_threshold' failed with exit code 1.
This is to the tune of 30,000 lines per hour!
It seems some software is trying to configure battery charging thresholds and failing? This is what I find in that location:
Since I am new to this, I am not sure if this is the sort of forum to discuss what seems to be kernel/driver issues. Is Bluefin a derivative of Silverblue or is it completely independent? Would this also occur on Silverblue as the core OS and kernels are identical, or does Bluefin deviate and thus needs to be discussed here?
I listed the contents of the directory above: the two files do NOT exist so the command fails with “No such file or directory”.
This is my kernel info:
~# uname -a
Linux myhost 6.8.4-100.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 20:40:57 UTC 2024 x86_64 GNU/Linux
# cat /etc/redhat-release
Fedora release 38 (Thirty Eight)
I’m a bit surprised this is based on Fedora 38. I am pretty sure I downloaded the Beta image so was expecting 40, though the kernel is a somewhat reasonably new version. Do I need to download a newer bluefin image?
~# rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: last run 2h 0min ago
Deployments:
â—Ź ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx-nvidia:gts
Digest: sha256:5034d6d799ecc2fcbe13a5b39d756fe1f63ae8651fef68054e7955869586da3b
Version: 38.20240413.0 (2024-04-13T23:31:15Z)
LayeredPackages: oddjob-mkhomedir
ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx-nvidia:gts
Digest: sha256:3447e938a01c83287dda8953865ebcb7102f70d506bf57ee0f4464569f657184
Version: 38.20240413.0 (2024-04-13T23:16:38Z)
LayeredPackages: oddjob-mkhomedir
I did install the extra package oddjob-mkhomedir because I run a “home” AD domain using Samba and wanted to be able to join domain. That is the only extra addition.
This did the trick, though I opted to go for the bleeding edge version 40 (hoping it might have newer drivers).
The good news is that the message only shows 6 times now. Obviously the charging threshold files are still missing, so apparently my laptop model still doesn’t support controlling the battery charge level, but hopefully in the future drivers will be added for it.
Either way, seems like the service gives up after a few failures. so it is no longer spamming my logs:
❯ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
â—Ź ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:40
Digest: sha256:4f5e410a355f3a07bf7fe9d625107aa7b385986d4952a59564be42b7317211a8
Version: 40.20240413.0 (2024-04-13T23:27:40Z)
LayeredPackages: adcli oddjob-mkhomedir sssd-ad
ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:40
Digest: sha256:4f5e410a355f3a07bf7fe9d625107aa7b385986d4952a59564be42b7317211a8
Version: 40.20240413.0 (2024-04-13T23:27:40Z)
LayeredPackages: oddjob-mkhomedir
~
❯ cat /etc/redhat-release
Fedora release 40 (Forty)
----------------- only 6 messages logged:
~
❯ journalctl -b | grep BAT | wc -l
6
~
❯ journalctl -b | grep BAT | tail -n 2
Apr 14 15:02:36 myhost (udev-worker)[1174]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_start_threshold' failed with exit code 1.
Apr 14 15:02:36 myhost (udev-worker)[1174]: BAT0: Process '/bin/chmod 666 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_stop_threshold' failed with exit code 1.
---- the six messages are after 10 minutes, so definitely gave up since 15:02:36
❯ uptime
15:13:00 up 10 min, 1 user, load average: 1.91, 1.98, 1.18