Replies: 2 comments 6 replies
-
Hmm, so let me somewhat take back my comment in the PR. Why would you want separate power states for outputs, like, as a user? I think so far we've been fine with unified state, so let's go with the unified state like in your PR? And then if there's a problem, we can think about it knowing more context. |
Beta Was this translation helpful? Give feedback.
-
(c) Reuse the code for
|
Beta Was this translation helpful? Give feedback.
-
Follow-up from #1108 (comment) , I think if Niri is going to implement the wlr-output-power-management protocol, it needs to be able to control each output individually. However, Niri's current implementation of power management has some behaviors that conflict with this:
PowerOffMonitors
andPowerOnMonitors
, which set the state of all monitors.There are a few resolutions that we could consider:
(a) Share the same state / unify?
For example, if the per-output power management stores a power state for each output,
PowerOffMonitors
andPowerOnMonitors
could set all of those states. But in that case, behavior 2 would constantly override the per-output values, defeating the point of adding per-output power management. In this case, it would make sense to remove behavior 2, or at least make it possible to disable it.(b) Separate states?
If we want to keep the current behaviors (in particular, behavior 2) as a built-in "screensaver" feature, it could keep its state separate from the per-output states. When not in screensaver mode, each output uses its own state to set its power mode. When the screensaver mode is turned on, it overrides the per-output states, blanking all displays.
(How should this interact with the state reported by wlr-output-power-management? If it reports the displays as "off" during screensaver mode (as they really are off), and a wayland client tries to turn on a display in that state, what should happen?)
Beta Was this translation helpful? Give feedback.
All reactions