středa 29. dubna 2026

vynuceni opravy detekce monitoru na NVIDIA karte

 

for i in `pgrep -u $USER gnome-shell`  ; do echo $i: ; cat /proc/$i/environ | tr '\0' '\n' | grep -E 'DISPLAY|XAUTHORITY' ; done

pripadne:

ps -C gnome-shell -o pid=


#
# asi pri vypnutem monitoru:
#
export DISPLAY=:1
export XAUTHORITY=/run/user/$(id -u $USER)/gdm/Xauthority
xrandr --query
xrandr --output DP-0 --off
sleep 2
xrandr --output DP-0 --auto