WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.37k stars 176 forks source link

Add IPC event for switching TTYs #2476

Open mark-herbert42 opened 2 hours ago

mark-herbert42 commented 2 hours ago

I use light command to change brtightness mapped to a keyboard shortcuts. So it works.

But when I switch to text console (Alt-F) and back - the screen is much brighter. But when I run light to show the brightness - it shows the same as before switch. So switching to console and back causes the hardware to go to higher brightness level somehow, and it is not restored.

Not sure if it is afeature or a bug and what but it is , and is it possible to have a workaround to call save and restore brightness when switching between text console and wayfire session?

ammen99 commented 2 hours ago

Wayfire does not control brightness in any way, but I suppose we could add an IPC event for when switching between TTYs and then you can store/restore brightness with a script.

mark-herbert42 commented 1 hour ago

same story happens when returning from "dpms" state that entered with idle plugin. Screen goes to sleep from dim night mode but when touch mouse it wakes up bright. And again light program does not see the brtightness change but it happens somewhere deep in hardware.