Randr scaling downwards after the display has been closed, delivers a black screen
It happens in Xorg 1.20.4 for sure, but IIRC it wasn't happening at 1.20.1.
However assuming you've a fix for #14 (!80 (closed) or !101, otherwise you'd get a crash anyways), if you run a script like this (it assumes you've also ran an X display in
:2, so with just
sudo Xorg :2 vt8:
out=$(xrandr --listmonitors -d :2 | grep -o " [A-Za-z0-1_-]\+$"); xterm -d :2 -e "sleep 0.1 && xrandr --output $out --scale 2x2 && sleep 2"; xterm -d :2 -e "sleep 0.1; echo Setting the scaling... I will disappear soon, while running... bye\!; sleep 3 && xrandr --output $out --scale 2x2 && sleep 3 && xrandr --output $out --scale 1x1; echo I am back... And unscaled. && sleep 5d"
- Opens an Xterm, sets the downscaling at 0.5
- Closes the terminal so that the display closes
- Opens a new terminal, sets the downscaling again (BUGGY MOMENT!)
- The screen is now black, until the script will reset the scaling at 1.
- Reiterating, will keep the bug again...
If you instead do the same with upscaling (i.e. setting the scale at something like
0.5x0.5) everything works as expected.