S
S
Sencis2019-09-19 18:49:04
linux
Sencis, 2019-09-19 18:49:04

How to change Xrandr screen resolution to x11vnc?

After launching x11vns, it is impossible to change the screen resolution to 1024x768 using the standard LXDE methods:

[email protected]:~$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
HDMI-1 disconnected primary (normal left inverted right x axis y axis)

Changing the vnc startup key does not change the resolution, but creates an interpolation:
x11vnc -noxrecord -dontdisconnect -display :0 <b>-scale 1920x1080</b> -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/linaro/.vnc/passwd

or
x11vnc -noxrecord -dontdisconnect -display :0 <b>-geometry 1920x1080</b> -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/linaro/.vnc/passwd

Manually changing xrandr -s or xrandr --output HDMI-1 --mode 1920x1080 does not work without the screen itself either.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex F, 2019-09-26
@delvin-fil

As an example:

xrandr --newmode "1792x1344"  204.75  1792 1920 2120 2448  1344 1345 1348 1394
xrandr --addmode HDMI-0 1792x1344
xrandr --output HDMI-0--mode 1792x1344
xrandr --output VGA-0 --primary --mode 1792x1344 --pos 0x0 --rotate normal --output DVI-0 --off --output HDMI-0 --mode 1792x1344 --pos 1792x0 --rotate normal

VNC
x11vnc -rfbport 5900 -display :0 -dontdisconnect -noxfixes -xdamage -shared -forever -clip 1024x768+1920+0 -scale 1024x768 -bg -cursor X -o /home/delvin/x11vnc.log -repeat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question