How to use the native resolution of the machine TightVNC is running on when connecting to a CentOS/x11vnc machine
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Gist of the question, how do I get TightVNC (v1.3.10) running on Windows 10 that connects to x11vnc on a CentOS to use the native resolution of the Windows 10 machine?
The resolution of the Windows 10 machine is 1280x1200. The CentOS machine is not headless, per se, as the machine is connected to a 10 port KVM device. I ssh into the CentOS to perform all the configuration. Currently, when TightVNC establishes the connection the resolution is 1024x768.
On the CentOS v7 machine the x11vnc server is configured to run by systemd which is in the file /etc/systemd/system/va-vnc.service
. The contents of the file is:
[Unit]
Description=Valarch VNC service
After=graphical.target
[Service]
Environment="DISPLAY=:0"
LimitCORE=infinity
ExecStart=/usr/local/micron/bin/x11vnc -display :0 -forever -repeat
#User=mtap
Type=simple
[Install]
WantedBy=default.target
After some searching my first attempts was adding -geom 1280x1200
then -scale 1280x1200
as command line arguments for x11vnc, but that really doesn't work. As imagined it just scales (i.e., magnifies) the original resolution to 1280x1200. I tried searching through the command line arguments (found here) looking for "resolution", "width", "size", but really didn't find anything.
After some additional googling I found these Stack Exchange questions and discovered the xrandr command.
headless x11vnc - higher resolution
How to add display resolution for an LCD in Ubuntu 12.04? xrandr problem
My thought was I needed to add a specific screen resolution to the system configuration. After running "sudo xrandr -q" initially the output was
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
Following the instructions outlined by zvineyard in the second link, I executed "sudo cvt 1920 1200 60" and the output was:
Modeline "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Next was to declare the resolution which was performed by the following:
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
The last step was to add the mode using the --addmode
option, but first needed to determine its name which is should be reported by sudo xrandr -q
. The output of the xrandr command was:
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
1920x1200_60.00 (0xec) 193.250MHz
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
I don't see the name of the video device or I am blind to it, so I can't add the mode to the system.
Perhaps I am going about this the wrong way??? Thus, here I am. How can I configure x11vnc or TightVNC to use the native resolution of the Windows 10 machine instead of default to 1024x768?
linux x11vnc tightvnc
add a comment |Â
up vote
0
down vote
favorite
Gist of the question, how do I get TightVNC (v1.3.10) running on Windows 10 that connects to x11vnc on a CentOS to use the native resolution of the Windows 10 machine?
The resolution of the Windows 10 machine is 1280x1200. The CentOS machine is not headless, per se, as the machine is connected to a 10 port KVM device. I ssh into the CentOS to perform all the configuration. Currently, when TightVNC establishes the connection the resolution is 1024x768.
On the CentOS v7 machine the x11vnc server is configured to run by systemd which is in the file /etc/systemd/system/va-vnc.service
. The contents of the file is:
[Unit]
Description=Valarch VNC service
After=graphical.target
[Service]
Environment="DISPLAY=:0"
LimitCORE=infinity
ExecStart=/usr/local/micron/bin/x11vnc -display :0 -forever -repeat
#User=mtap
Type=simple
[Install]
WantedBy=default.target
After some searching my first attempts was adding -geom 1280x1200
then -scale 1280x1200
as command line arguments for x11vnc, but that really doesn't work. As imagined it just scales (i.e., magnifies) the original resolution to 1280x1200. I tried searching through the command line arguments (found here) looking for "resolution", "width", "size", but really didn't find anything.
After some additional googling I found these Stack Exchange questions and discovered the xrandr command.
headless x11vnc - higher resolution
How to add display resolution for an LCD in Ubuntu 12.04? xrandr problem
My thought was I needed to add a specific screen resolution to the system configuration. After running "sudo xrandr -q" initially the output was
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
Following the instructions outlined by zvineyard in the second link, I executed "sudo cvt 1920 1200 60" and the output was:
Modeline "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Next was to declare the resolution which was performed by the following:
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
The last step was to add the mode using the --addmode
option, but first needed to determine its name which is should be reported by sudo xrandr -q
. The output of the xrandr command was:
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
1920x1200_60.00 (0xec) 193.250MHz
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
I don't see the name of the video device or I am blind to it, so I can't add the mode to the system.
Perhaps I am going about this the wrong way??? Thus, here I am. How can I configure x11vnc or TightVNC to use the native resolution of the Windows 10 machine instead of default to 1024x768?
linux x11vnc tightvnc
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Gist of the question, how do I get TightVNC (v1.3.10) running on Windows 10 that connects to x11vnc on a CentOS to use the native resolution of the Windows 10 machine?
The resolution of the Windows 10 machine is 1280x1200. The CentOS machine is not headless, per se, as the machine is connected to a 10 port KVM device. I ssh into the CentOS to perform all the configuration. Currently, when TightVNC establishes the connection the resolution is 1024x768.
On the CentOS v7 machine the x11vnc server is configured to run by systemd which is in the file /etc/systemd/system/va-vnc.service
. The contents of the file is:
[Unit]
Description=Valarch VNC service
After=graphical.target
[Service]
Environment="DISPLAY=:0"
LimitCORE=infinity
ExecStart=/usr/local/micron/bin/x11vnc -display :0 -forever -repeat
#User=mtap
Type=simple
[Install]
WantedBy=default.target
After some searching my first attempts was adding -geom 1280x1200
then -scale 1280x1200
as command line arguments for x11vnc, but that really doesn't work. As imagined it just scales (i.e., magnifies) the original resolution to 1280x1200. I tried searching through the command line arguments (found here) looking for "resolution", "width", "size", but really didn't find anything.
After some additional googling I found these Stack Exchange questions and discovered the xrandr command.
headless x11vnc - higher resolution
How to add display resolution for an LCD in Ubuntu 12.04? xrandr problem
My thought was I needed to add a specific screen resolution to the system configuration. After running "sudo xrandr -q" initially the output was
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
Following the instructions outlined by zvineyard in the second link, I executed "sudo cvt 1920 1200 60" and the output was:
Modeline "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Next was to declare the resolution which was performed by the following:
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
The last step was to add the mode using the --addmode
option, but first needed to determine its name which is should be reported by sudo xrandr -q
. The output of the xrandr command was:
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
1920x1200_60.00 (0xec) 193.250MHz
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
I don't see the name of the video device or I am blind to it, so I can't add the mode to the system.
Perhaps I am going about this the wrong way??? Thus, here I am. How can I configure x11vnc or TightVNC to use the native resolution of the Windows 10 machine instead of default to 1024x768?
linux x11vnc tightvnc
Gist of the question, how do I get TightVNC (v1.3.10) running on Windows 10 that connects to x11vnc on a CentOS to use the native resolution of the Windows 10 machine?
The resolution of the Windows 10 machine is 1280x1200. The CentOS machine is not headless, per se, as the machine is connected to a 10 port KVM device. I ssh into the CentOS to perform all the configuration. Currently, when TightVNC establishes the connection the resolution is 1024x768.
On the CentOS v7 machine the x11vnc server is configured to run by systemd which is in the file /etc/systemd/system/va-vnc.service
. The contents of the file is:
[Unit]
Description=Valarch VNC service
After=graphical.target
[Service]
Environment="DISPLAY=:0"
LimitCORE=infinity
ExecStart=/usr/local/micron/bin/x11vnc -display :0 -forever -repeat
#User=mtap
Type=simple
[Install]
WantedBy=default.target
After some searching my first attempts was adding -geom 1280x1200
then -scale 1280x1200
as command line arguments for x11vnc, but that really doesn't work. As imagined it just scales (i.e., magnifies) the original resolution to 1280x1200. I tried searching through the command line arguments (found here) looking for "resolution", "width", "size", but really didn't find anything.
After some additional googling I found these Stack Exchange questions and discovered the xrandr command.
headless x11vnc - higher resolution
How to add display resolution for an LCD in Ubuntu 12.04? xrandr problem
My thought was I needed to add a specific screen resolution to the system configuration. After running "sudo xrandr -q" initially the output was
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
Following the instructions outlined by zvineyard in the second link, I executed "sudo cvt 1920 1200 60" and the output was:
Modeline "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Next was to declare the resolution which was performed by the following:
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
The last step was to add the mode using the --addmode
option, but first needed to determine its name which is should be reported by sudo xrandr -q
. The output of the xrandr command was:
Screen 0: minimum 0 x 0, current 3840 x 1200, maximum 4096 x 4096
1920x1200_60.00 (0xec) 193.250MHz
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
I don't see the name of the video device or I am blind to it, so I can't add the mode to the system.
Perhaps I am going about this the wrong way??? Thus, here I am. How can I configure x11vnc or TightVNC to use the native resolution of the Windows 10 machine instead of default to 1024x768?
linux x11vnc tightvnc
asked Apr 20 at 9:35
lordhog
14816
14816
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438896%2fhow-to-use-the-native-resolution-of-the-machine-tightvnc-is-running-on-when-conn%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password