I mean the error log a post above, seems helpful? Also maybe it could enter hmb
each time the screen gets turned on? I don’t know.
But as for your hacky workaround, I turned it into a script:
#!/bin/bash
dbus-monitor --system sender=com.nokia.mce,interface=com.nokia.mce.signal,member=display_status_ind |
while read -r line; do
if [[ "$line" == *"\"on\""* ]]
then echo 1 > /sys/devices/dsi_panel_driver/hbm_mode ; sleep 0.1 ; echo 0 > /sys/devices/dsi_panel_driver/hbm_mode;
fi
done
I put it in my home directory, nano ~/bin/FixBrightness.sh
, but you can choose any location you like.
Then create a systemd service to start it at boot. nano /usr/lib/systemd/system/FixBrightness.service
[Unit]
Description=FixBrightness
After=ofono.service lipstick.service
[Service]
ExecStart=/home/defaultuser/bin/FixBrightness.sh
Restart=always
[Install]
WantedBy=user-session.target
Then systemctl start FixBrightness.service
to test it, and systemctl enable FixBrightness.service
to start it at boot. And voila! Brigthness fixed with a hacky workaround!