VirtScreen
VirtScreen copied to clipboard
X Error of failed request: BadName (named color or font does not exist)
I cannot seem to make a virtual screen i am on arch running kernel 5.0.8
Creating a Virtual Screen... Error: ['xrandr', '--newmode', '1440x900_virt', '106.50', '1440', '1528', '1672', '1904', '900', '903', '909', '934', '-hsync', '+vsync'] X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) Serial number of failed request: 45 Current serial number in output stream: 45
Same error on Manjaro:
['xrandr', '--newmode', '1367x1024_virt', '115.50', '1368', '1448', '1592', '1816', '1024', '1027', '1037', '1063', '-hsync', '+vsync'] X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) Serial number of failed request: 37 Current serial number in output stream: 37
Did you find a fix?
Hi guys, could you tell me the desktop environment (e.g. Gnome, KDE...) you use?
I am using kde
I'm having the same error using Gnome. Some Google suggested that, for some reason, it's caused by an underscore in the mode name. Sure enough, running xrandr --newmode "1368x1024_virt" 115.50 1368 1448 1592 1816 1024 1027 1037 1063 -hsync +vsync (the same command VirtScreen runs) fails, while running xrandr --newmode "1368x1024-virt" 115.50 1368 1448 1592 1816 1024 1027 1037 1063 -hsync +vsync (same thing but with the _ replaced with -) worked fine.
Thank for your great job first, and I wonder is there any progress about this, I have the same mistake on ubuntu 18.04. @kbumsik
xrandr does not like the name for the mode, reran the exact command in terminal just replacing the name and it runs fine.
Any chance you could change the suffix VIRT_SCREEN_SUFFIX = "_virt" to VIRT_SCREEN_SUFFIX = "-virt" ? in xrandr.py
I also got the same problem on ubuntu 18.04
Ping! Same on Ubuntu 20.04, Gnome 3.36
Same issue on Ubuntu 20.04 no solution yet!
Any solution for this?
Curently same error on pop_os 20.10
same problem
Hey,
Y'all might want to check ~/.profile of your user account --uid 1000 for something like this:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode LVDS-1 1920x1080_60.00 xrandr --output LVDS-1 --mode "1920x1080_60.00"
Comment all three of those out or remove from .profile and add to .xprofile instead if not already there. I duplicated the problem the other day while force setting my resolution on my laptop and stumbled across your forum while looking for the cause of that same annoying error message.
Hope this helps.
THANK YOU!!!!!!!!!!
I'm having the same error using Gnome. Some Google suggested that, for some reason, it's caused by an underscore in the mode name. Sure enough, running
xrandr --newmode "1368x1024_virt" 115.50 1368 1448 1592 1816 1024 1027 1037 1063 -hsync +vsync(the same command VirtScreen runs) fails, while runningxrandr --newmode "1368x1024-virt" 115.50 1368 1448 1592 1816 1024 1027 1037 1063 -hsync +vsync(same thing but with the _ replaced with -) worked fine.
Confirmed again on 07/10/2023 - in this case, here it is verbatim:
after
$ cvt 2160 1215 90
# 2160x1215 89.93 Hz (CVT) hsync: 115.29 kHz; pclk: 341.25 MHz
# Modeline "2160x1215_90.00" 341.25 2160 2328 2560 2960 1215 1218 1223 1282 -hsync +vsync
then
$ xrandr --newmode "2160x1215_90.00" 341.25 2160 2328 2560 2960 1215 1218 1223 1282 -hsync +vsync
$ xrandr --addmode DP-1 "2160x1215_90.00"
doesn't work, but -
xrandr --newmode "2160x1215-90.00" 341.25 2160 2328 2560 2960 1215 1218 1223 1282 -hsync +vsync
xrandr --addmode DP-1 "2160x1215-90.00"
works.