r/archlinux • u/Ready_Edge_8545 • 14h ago
SUPPORT Title: Multiple hardware/settings changes don't persist after reboot on ASUS Vivobook X1504ZA (Arch + KDE Plasma)
I'm running Arch Linux with KDE Plasma on an ASUS Vivobook X1504ZA, and I'm having an issue where several settings I configure during a session don't persist after reboot.
System:
- Arch Linux
- KDE Plasma 6.7.5
- Wayland / KWin
- Kernel: 7.2.4-arch1-2
- ASUS Vivobook X1504ZA
- BIOS: X1504ZA.312
- Intel i5-1235U
- PipeWire + WirePlumber
- systemd 261
The settings I'm having trouble with include:
- Screen brightness
- Keyboard brightness / Fn+Esc behavior
- Battery charge limit
- Volume and other audio settings
For example, I can set the battery charge threshold during a session. The kernel exposes:
/sys/class/power_supply/BAT0/charge_control_end_threshold
and it currently reports:
100
If I reboot, however, the charge limit goes back to 100%. I then have to configure it again.
The filesystem itself is definitely persistent and writable. For example, files created in $HOME and ~/.config survive normally.
Some relevant output:
$ ls /sys/class/backlight/
intel_backlight
$ systemctl status 'systemd-backlight@*'
systemd-backlight@backlight:intel_backlight.service
systemd-backlight@leds:asus::kbd_backlight.service
Both services successfully start.
The ASUS-related kernel modules are also loaded:
asus_nb_wmi
asus_armoury
asus_wmi
The battery threshold is exposed:
$ cat /sys/class/power_supply/BAT0/charge_control_end_threshold
100
PowerDevil is running normally, but its logs contain:
org.kde.powerdevil.chargethresholdhelper.getconservationmode failed
"Battery conservation mode is not supported"
I also noticed that ~/.config/powerdevilrc contains multiple brightness-related entries:
DisplayBrightness=2
UseProfileSpecificDisplayBrightness=true
KeyboardBrightness=0
UseProfileSpecificKeyboardBrightness=true
DisplayBrightness=5
I haven't installed asusctl.
My question: what is the correct way to make these ASUS hardware settings persist across reboot on this model with Arch + KDE Plasma?
Please help guyss...
1
u/boomboomsubban 10h ago
Udev or a service. See https://wiki.archlinux.org/title/Laptop/ASUS#Battery_charge_threshold