You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enable_unknown_outputs true # default, current behavior
enable_unknown_outputs false # New behavior
Currently Niri will automatically enable any monitor it finds, even if it is not configured in config.kdl. This is a perfectly reasonable and sane default. This may not however always be desired.
Gotcha
Will need to make sure that at least 1 screen is always turned on, even if it is not configured when this option is set to false. Would not want to end up with no outputs.
My use case:
I have an AMD gpu that causes OOMs when connected to multiple monitors while idle and screens off. So if I lock my screen and leave for ~6 hours I will come back to find everything has been closed by the OOM killer. This is a known issue with AMD cards, and is not a niri issue. There was a kernel fix, but it added new bugs and was reverted.
Anyway, I have a fix where my lock script is this:
#!/usr/bin/sh
ln -sf /home/exodist/.config/niri/screens_locked.kdl /home/exodist/.config/niri/screens.kdl
dms ipc call lock lock &
niri msg action power-off-monitors &
sleep 2;
while [ 1 ]; do
if [ `dms ipc call lock isLocked` = 'false' ]; then
ln -sf /home/exodist/.config/niri/screens_unlocked.kdl /home/exodist/.config/niri/screens.kdl
exit 0;
fi
sleep 1;
done
And it works. Problem is I move between multiple docking stations, and I also sometimes use various external monitors.
Currently I have to add a section to mt screens_locked.kdl for every monitor I want to turn off. If I end up on a dock I have not been on before, or a new external monitor, I need to add a section. This is tedious. I would prefer if I could configure screens_locked.kdl to just disable any unconfigured monitor, and list only the main one as being on.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I would like a config options like one of these:
Currently Niri will automatically enable any monitor it finds, even if it is not configured in config.kdl. This is a perfectly reasonable and sane default. This may not however always be desired.
Gotcha
Will need to make sure that at least 1 screen is always turned on, even if it is not configured when this option is set to false. Would not want to end up with no outputs.
My use case:
I have an AMD gpu that causes OOMs when connected to multiple monitors while idle and screens off. So if I lock my screen and leave for ~6 hours I will come back to find everything has been closed by the OOM killer. This is a known issue with AMD cards, and is not a niri issue. There was a kernel fix, but it added new bugs and was reverted.
Anyway, I have a fix where my lock script is this:
And it works. Problem is I move between multiple docking stations, and I also sometimes use various external monitors.
Currently I have to add a section to mt screens_locked.kdl for every monitor I want to turn off. If I end up on a dock I have not been on before, or a new external monitor, I need to add a section. This is tedious. I would prefer if I could configure screens_locked.kdl to just disable any unconfigured monitor, and list only the main one as being on.
All reactions