I figured it out! Turns out that user-session.target is not present on SFOS! All I had to do is to change it to any other target, and it now works!
So the fixed instruction is:
#!/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
Then sudo systemctl start FixBrightness.service to test it, and sudo systemctl enable FixBrightness.service to start it at boot. And voila! Brigthness fixed with a hacky workaround!
nemo@PGXperiiia10:~ $ systemctl status post-user-session.target
Unit post-user-session.target could not be found.
nemo@PGXperiiia10:~ $ systemctl status --user user-session.target
● user-session.target - User session
Loaded: loaded (/usr/lib/systemd/user/user-session.target; static; vendor preset: enabled)
Drop-In: /usr/lib/systemd/user/user-session.target.d
└─ 50-jolla-camera.conf, 50-jolla-email.conf, 50-sailfish-browser.
Active: active since Wed 2022-10-26 10:35:37 CEST; 2 weeks 5 days ago
What I’ve tried:
chmod +x on the sh file andI added /bin/bash into the exec line in the service file
then the service was working but the screen was still washed out
then i removed busybox-symlinks-bash and rebooted the device but the display colors were still greenish
Then I executed
Hey guys
Is there any fix for the washed out colors that is easy to implement and hopefully “set it and forget it” type of fix?
Not an expert so im having a hard time following the conversation here!
But what doesn’t work?
I just noticed that I used sudo in my instruction, that some people don’t have installed. You need to replace sudo with devel-su.
Did you do devel-su systemctl start FixBrightness.service and devel-su systemctl enable FixBrightness.service?
If you did, what does devel-su systemctl status FixBrightness.service return?
Must be my case, i.e. the service (and the script) itself works fine (and does change the brightness to max and back as intended), but it doesn’t fix the issue. No matter what. I remember that we came to the conclusion that it may be a different panel version…
I am sorry, my instruction is not great and I can’t edit it anymore.
The .sh file should be in /usr/bin/X10IIIFixBrightness.sh, not in home folder. And after you create this file (using the nano command) you need to make it executable, using devel-su chmod +x /usr/bin/X10IIIFixBrightness.sh.
The service part seems to be working well.
After that you could do and then devel-su systemctl restart FixBrightness.service.
If you can wait for a few days, I’ll turn this into a little RPM package you can simply download and install. There are so many struggling with installing this, and to be fair, it’s not an easy task.