Brigthness sensor override possible?
-
Hello,
I have an issue with screen flickering after ending calls on the fairphone 3. Is it possible to override sensor values under certain conditions e.g. Via script?
It might help with this issue.
Thanks. -
@Homer3
The issue is only present when auto brightness is active.So, maybe it is possible to create a script (as service) which turns auto brightness off during a call and turn it on when the call is finished...
Never thought about this possibility.
But maybe I or someone else can create one and I could integrate it in the port. -
This post is deleted! -
This post is deleted! -
@Homer3 we already have a systemd service, which reactivates the microphone for other apps, after a call. Its located in /usr/lib/systemd which calls the check-microphone script in /usr/libexec.
I could imagine something similar for the autobrightness issue.
-
This post is deleted! -
@Luksus said in Brigthness sensor override possible?:
So, maybe it is possible to create a script (as service) which turns auto brightness off during a call and turn it on when the call is finished
Don't know if that's useful ... I ran some tests with dbus-monitor,
disable auto brightness :dbus-send --system --print-reply --type=method_call --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.userAutobrightnessEnable boolean:false
enable auto brightness :
dbus-send --system --print-reply --type=method_call --dest=com.canonical.Unity.Screen /com/canonical/Unity/Screen com.canonical.Unity.Screen.userAutobrightnessEnable boolean:true
wait for timeout end, works.
-
@Br1 oh nice, I will try to make something out of it.