YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

Check if drm force scan fixes suspended dGPU monitor hotplug and if so do it on some commands #678

Open YaLTeR opened 2 months ago

YaLTeR commented 2 months ago

On my laptop, as it turns out, the AMD dGPU can get in some sort of power saving state where it doesn't detect hotplugged monitors until a TTY switch or, apparently, even simply running lspci. I should check if force-probbing connectors with DrmScanner helps this (same thing as in device_changed()). If so, maybe it would be worth to force-probe when trying to run niri msg outputs and such.