I have an old B&W CRT monitor connected to a Raspberry Pi via a HDMI to VGA adapter.
The CRT monitor works correctly (and not with a garbled output) only after booting with another standard LCD monitor (connected directly via a HDMI cable) and then switching to the HDMI to VGA adapter while running. If I boot with the CRT attached via the HDMI to VGA adapter, the output on the CRT is garbled.
If I boot with the LCD monitor and then switch to the CRT (resulting in a working configuration), the output of xrandr -q is as follows:
Screen 0: minimum 320 x 200, current 640 x 480, maximum 2048 x 2048
HDMI-1 connected primary 640x480+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95 +
1920x1080 60.00
1600x1200 60.00
1680x1050 59.88
1280x1024 60.02
1280x960 60.00
1024x768 60.00
800x600 60.32
640x480 59.94*
720x400 70.08
If I boot with the CRT monitor (resulting in a garbled output), the output of xrandr -q is as follows:
Screen 0: minimum 320 x 200, current 640 x 480, maximum 2048 x 2048
HDMI-1 connected primary 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 59.94*
How can I get xrandr to use the first configuration for the second situation of booting with the CRT attached?