changing LED trigger on wt88047 fails
Describe your issue
What's the expected behaviour?
Setting an LED trigger, should work.
What's the current behaviour?
The trigger stays on pattern
and there are two identical errors in dmesg:
[54812.120073] leds red:indicator: Setting an LED's brightness failed (-6)
[54812.153271] leds red:indicator: Setting an LED's brightness failed (-6)
How to reproduce your issue?
$ sudo su
$ echo "cpu" > /sys/class/leds/red:indicator/trigger
$ cat /sys/class/leds/red:indicator/trigger
none usb-gadget usb-host bluetooth-power rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock timer heartbeat cpu cpu0 cpu1 cpu2 cpu3 default-on panic mmc0 mmc1 smb1360-battery-charging-or-full smb1360-battery-charging smb1360-battery-full smb1360-battery-charging-blink-full-solid [pattern] hci0-power rfkill0 phy0rx phy0tx phy0assoc phy0radio rfkill1
$
What device are you using?
xiaomi-wt88047
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Years ago.
Additional information
The LED worksfine without a trigger:
echo 255 > /sys/class/leds/red:indicator/brightness
There does not appear to be any pattern set:
$ cat /sys/class/leds/red:indicator/pattern
$