How can I add a virtual monitor with Nvidia proprietary driver? Previously I used an Intel card with this solution, which worked fine: Add VIRTUAL output to Xorg.
Now I want to switch to new hardware, without an Intel card.
The solution mentioned in VNC-Server as a virtual X11 monitor to expand screen doesn't work in my case. When I want to add the mode to an output, xrandr
throws an error.
xrandr --newmode test 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode "DP-1" test
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 41
Current serial number in output stream: 42
Basic data:
- Hardware: HP ZBook 15 G3, configured for discrete graphics (Optimus doesn't work!)
- Software: Debian 10.0.2; Kernel: 4.19.0, Nvidia-Driver-Module: xserver-xorg-video-nvidia-legacy-390xx
If you ask, why I am doing this: I use a software to transfer the virtual screen to another machine via ethernet to achieve dual monitors with two notebooks. (https://github.com/B-LechCode/sooScreenShare)
Update: There is now a proposed solution which works on my machine, but it's unable to add new modes like 1920x1200. Maybe someone has an idea?