Comment 4 for bug 1394653

Revision history for this message
solazs (solazs) wrote :

I must mention that to make things work, I've written a bash script to add and set 1600x900 mode to the virtual crt screen at login, so it matches the resolution of my laptop's screen.

The script is the following:
(VGA-0 is the non-existent display recognized by the nvidia driver)
#!/bin/bash

if prime-select query | grep -q "nvidia"; then
 if xrandr | grep -q "HDMI-0 connected"; then
  xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
  xrandr --addmode VGA-0 "1600x900"
  xrandr --output VGA-0 --mode "1600x900"
 fi
fi