ChipCE / Smartphone-tablet-as-second-monitor-for-linux

Use android as second monitor for linux
123 stars 9 forks source link

xrandr: cannot find output "VIRTUAL1" #1

Open dbnaruto opened 4 years ago

dbnaruto commented 4 years ago

First of all thanks for making this script. It's very cool! I ran across it while attempting to do the same thing manually.

I've run into similar issues try manually as well as running these scripts. I'm not convinced the issue is the script, but maybe a second brain will help.

I don't see the VIRTUAL1 when I run xrandr, and running the command xrandr --addmode VIRTUAL1 1920x1200_60.00 just errors at as xrandr: cannot find output "VIRTUAL1"

I did create the 20-intel.conf file and reboot, just in case, but no effect. I used NVIDIA and have a 10-nvidia.conf file in the same folder already, so I'm not sure with that affects it.

System Info: Operating System: KDE neon 5.19 (Ubuntu 18.04) Graphics Processor: GeForce GTX 1070/PCIe/SSE2

Error: (this repeats for each of the profiles)

Adding proflie for 600 x 960
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:  43
  Current serial number in output stream:  43
xrandr: cannot find output "VIRTUAL1"
ChipCE commented 4 years ago

@dbnaruto Sorry for the late response! It's seem like NVIDIA proprietary drivers don't support xrandr. There is a package called xserver-xorg-video-dummy that might work in your situation .

stuaxo commented 4 years ago

Hi Thanks, This is a very cool script, I have an AMD Ryzen CPU/APU and have exactly the same error.

Adding proflie for 600 x 960
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:  33
  Current serial number in output stream:  33
xrandr: cannot find output "VIRTUAL1"
Adding proflie for 720 x 1080
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:  33
  Current serial number in output stream:  33
xrandr: cannot find output "VIRTUAL1"

I thought maybe it was because I was running under Wayland, but it looks session type is x11

$ loginctl
SESSION  UID USER SEAT  TTY 
      4 1000 stu  seat0 tty2
     c1    7 lp             
     c9 1000 stu            

3 sessions listed.
 ~/projects/external/Smartphone-tablet-as-second-monitor-for-linux $ loginctl show-session 4
 Id=4
User=1000
Name=stu
Timestamp=Mon 2020-09-07 12:48:20 BST
TimestampMonotonic=20070302
VTNr=2
Seat=seat0
TTY=tty2
Remote=no
Service=gdm-password
Scope=session-4.scope
Leader=9810
Audit=4
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=1599502925760792
IdleSinceHintMonotonic=22668424257
LockedHint=no
ChipCE commented 4 years ago

@stuaxo @dbnaruto I just checked on my pc with dedicated graphic, the VIRTUAL1 does not exist, but other unused hardware output is listed. I wonder if we should use one of those output as virtual screen. Can i have the output of you guys xrandr ?

stuaxo commented 4 years ago

Interesting.

I do sometimes use both HDMI and Displayport, but not at same time as I need to use this.

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.16*+
   1680x1050     60.16  
   1280x1024     60.16  
   1440x900      60.16  
   1280x800      60.16  
   1280x720      60.16  
   1024x768      60.16  
   800x600       60.16  
   640x480       60.16  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
ChipCE commented 4 years ago

@stuaxo I made a simple test in testing branch. This will use DisplayPort-0 instead of VIRTUAL0. Can you try it and give me the result please?.

shaikharfan7 commented 3 years ago

How can i make this run on an AMD processor? Looks like virtual1 error is mostly occuring on AMD chipsets.

stuaxo commented 3 years ago

I couldn't get this working, though not sure where I left things and now all my free time disappeared for a bit :)

@shaikharfan7 can you try the testing branch linked above and let us know if it works?

uxtops commented 9 months ago

here on debian 12 with kde with same issue... Is there really still no solution to this "xrandr: cannot find output "VIRTUAL1"" error??? The solution with the /usr/share/X11/xorg.conf.d/no-20-intel file didn't work out for me, the system didn't boot anymore...