Open kars0n777 opened 3 years ago
Please run xrandr
and let me know the output.
Please run
xrandr
and let me know the output.
Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 16384 x 16384
DVI-I-0 connected 1280x1024+0+28 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.02+ 75.02
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+1280+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00+ 74.97 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x1200 60.00
1440x900 59.89
1366x768 59.79
1360x765 60.00
1280x1024 75.02 60.02
1280x960 60.00
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
1440x900_60.00 (0x3ca) 106.500MHz -HSync +VSync
h: width 1440 start 1528 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
I've got the same issue. I've got dual monitors, and I wished to add my tablet as a little third one.
The xrandr output (the last 2000x1200 entry is my tablet)
Screen 0: minimum 320 x 200, current 5840 x 1200, maximum 16384 x 16384
HDMI-A-0 connected primary 1920x1080+2000+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+ 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 60.02
1440x900 59.90
1280x800 59.91
1280x720 60.00 50.00 59.94
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 60.00 59.94
640x480 60.00 59.94
DisplayPort-0 connected 1920x1080+3920+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00 + 144.00* 120.00 119.88 119.98 99.93 74.97 50.00 59.94
1680x1050 60.00
1280x1024 75.02 60.02
1440x900 60.00
1280x800 60.00
1280x720 60.00 50.00 59.94
1024x768 119.93 99.99 75.03 70.07 60.00
832x624 74.55
800x600 119.93 99.86 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 119.80 99.83 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DisplayPort-1 disconnected 2000x1200+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
2000x1200_60.00 59.91*
Okay. Now I need the contents of this file ~/.haxguru/startvnc.sh
~/.haxguru/startvnc.sh
:
#!/bin/bash
xrandr --newmode "2000x1200_60.00" 200.50 2000 2136 2344 2688 1200 1203 1213 1245 -hsync +vsync
xrandr --addmode DisplayPort-1 2000x1200_60.00
xrandr --output DisplayPort-1 --mode 2000x1200_60.00 --left-of HDMI-A-0
adb reverse tcp:5900 tcp:5900
notify-send --app-name="Use Android as Monitor" "Details For VNC" "1) IP Address: `ifconfig | grep inet | grep broadcast | awk 'NR==1{print $2}' | tr -d \n`\n2) VNC Password: **********\n3) Port (optional): 5900\n Please run 'Close VNC' to turn the monitor off."
x11vnc -rfbauth ~/.vnc/passwd -clip xinerama1%
Have you tried changing the position to anything other than "left"?
Have you tried changing the position to anything other than "left"?
No, I have not. Left is the ideal position for my desk. If there is no apparent error in xrandr parameters, I will try it out different locations in the evening (European time).
Selecting right leads to the very same problem, but selecting bottom, will extend the display as intended.
Config files for right:
~/.haxguru/startvnc.sh
:
#!/bin/bash
xrandr --newmode "2000x1200_60.00" 200.50 2000 2136 2344 2688 1200 1203 1213 1245 -hsync +vsync
xrandr --addmode DisplayPort-1 2000x1200_60.00
xrandr --output DisplayPort-1 --mode 2000x1200_60.00 --right-of HDMI-A-0
adb reverse tcp:5900 tcp:5900
notify-send --app-name="Use Android as Monitor" "Details For VNC" "1) IP Address: `ifconfig | grep inet | grep broadcast | awk 'NR==1{print $2}' | tr -d \n`\n2) VNC Password: **********\n3) Port (optional): 5900\n Please run 'Close VNC' to turn the monitor off."
x11vnc -rfbauth ~/.vnc/passwd -clip xinerama1
xrandr
:
Screen 0: minimum 320 x 200, current 3920 x 1200, maximum 16384 x 16384
HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+ 50.00 59.94
...
DisplayPort-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 144.00 120.00 119.88 119.98 99.93 74.97 50.00 59.94
...
DisplayPort-1 disconnected 2000x1200+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
2000x1200_60.00 59.91*
Config files for bottom:
~/.haxguru/startvnc.sh
:
#!/bin/bash
xrandr --newmode "2000x1200_60.00" 200.50 2000 2136 2344 2688 1200 1203 1213 1245 -hsync +vsync
xrandr --addmode DisplayPort-1 2000x1200_60.00
xrandr --output DisplayPort-1 --mode 2000x1200_60.00 --below HDMI-A-0
adb reverse tcp:5900 tcp:5900
notify-send --app-name="Use Android as Monitor" "Details For VNC" "1) IP Address: `ifconfig | grep inet | grep broadcast | awk 'NR==1{print $2}' | tr -d \n`\n2) VNC Password: *********\n3) Port (optional): 5900\n Please run 'Close VNC' to turn the monitor off."
x11vnc -rfbauth ~/.vnc/passwd -clip xinerama1
xrandr
:
Screen 0: minimum 320 x 200, current 3840 x 2280, maximum 16384 x 16384
HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+ 50.00 59.94
...
DisplayPort-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 144.00 120.00 119.88 119.98 99.93 74.97 50.00 59.94
...
DisplayPort-1 disconnected 2000x1200+0+1080 (normal left inverted right x axis y axis) 0mm x 0mm
2000x1200_60.00 59.91*
Hmm. Try changing the last word in ~/.haxguru/startvnc.sh
from xinerama1
to xinerama2
or xinerama0
or xinerama3
. Please let me know if it works.
I've tried it with the right position (code 0). It has not worked.
The following happened for the given xinerama values: 0: left monitor was mirrored 1: right monitor was mirrored 2: right monitor was mirrored 3: both screens were mirrored
What was the position?
I've selected "right", i.e. code 0 in setup.sh.
I have to investigate a bit further. I need to know the layout of your current monitor setup, their resolutions, and which one is your primary monitor. I'll have to remove the xinerama
part and manually calculate the width, height and position of the screen.
Hi, I need the layout of your setup to fix this bug because I don't have a dual monitor setup. How are your monitors placed? Which one is your primary monitor? Where are you placing your android device?
I am also having the same problem but with only 1 monitor?
Facing the same issue, I only have a single monitor and when i try using my tablet it only mirrors the screen
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
1366x768 60.00*+
1280x720 59.74
1024x768 60.00
1024x576 60.00 59.90 59.82
960x540 60.00 59.63 59.82
800x600 60.32 56.25
864x486 60.00 59.92 59.57
640x480 59.94
720x405 59.51 60.00 58.99
680x384 60.00
640x360 59.84 59.32 60.00
DP1 disconnected (normal left inverted right x axis y axis)
1280x800_40.00 39.90
1280x800_60.00 59.81
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Hello, I have the same problems.
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.00+ 59.97 59.96 59.93
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
1280x800_60.00 59.81
HDMI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00 + 74.99 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
1368x1024_virt (0x6d6) 115.500MHz -HSync +VSync
h: width 1368 start 1448 end 1592 total 1816 skew 0 clock 63.60KHz
v: height 1024 start 1027 end 1037 total 1063 clock 59.83Hz
xrandr --newmode "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
xrandr --addmode DP-1 1280x800_60.00
xrandr --output DP-1 --mode 1280x800_60.00 --left-of eDP-1
adb reverse tcp:5900 tcp:5900
notify-send --app-name="Use Android as Monitor" "Details For VNC" "1) IP Address: ifconfig | grep inet | grep broadcast | awk 'NR==1{print $2}' | tr -d \n
\n2) VNC Password: **\n3) Port (optional): 5900\n Please run 'Close VNC' to turn the monitor off."
x11vnc -rfbauth ~/.vnc/passwd -clip xinerama3
(I tried from xinerama0 to 3, )
./startvnc.sh 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: 32 Current serial number in output stream: 32 xrandr: Configure crtc 2 failed error: no devices/emulators found 22/05/2022 11:13:32 passing arg to libvncserver: -rfbauth 22/05/2022 11:13:32 passing arg to libvncserver: /home/ptitludo64/.vnc/passwd 22/05/2022 11:13:32 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 12010 22/05/2022 11:13:32 Using X display :0 22/05/2022 11:13:32 rootwin: 0x6c0 reswin: 0x3200001 dpy: 0xf42f8dc0 22/05/2022 11:13:32 22/05/2022 11:13:32 ------------------ USEFUL INFORMATION ------------------ ...
hope this will help.
There isn't a option to use this script as a third monitor, currently it only mirrors my second display