Items with no label
3335 Discussions

Change VNC resolution for Euclid without HDMI plugged in

kfind
New Contributor I
2,393 Views

Hello,

Because the Euclid's VNC server comes pre-installed, I have no idea what it is or where the configuration for it can be found. When I VNC into the Euclid without a monitor connected, I get a very low ~640x480 resolution which is making development of code on the target quite arduous. I don't want to have a monitor plugged into it in order to make the X Server's resolution go up.

Please let me know where the scripts are on the Euclid filesystem that launch the VNC server, so i can try to add options for forcing a higher resolution when 'headless'.

0 Kudos
7 Replies
MartyG
Honored Contributor III
670 Views

Whilst I don't have knowledge of how to do a headless change of the Euclid VNC resolution specifically, some Linux users change resolution in headless mode using a system called xrandr. I believe the VNC software has to support xandr for it to work though - RealVNC and TeamViewer do, but I do not know about the VNC solution Euclid uses.

https://askubuntu.com/questions/679135/how-do-i-set-new-screen-resolution-for-a-headless-server-using-teamviewer-10 display - How do I set new screen resolution for a headless server (using teamviewer 10 ) - Ask Ubuntu

I'm sure one of the Euclid team will soon give an official response to your question.

0 Kudos
idata
Employee
670 Views

Hello Kyran,

We've just sent you an email regarding your service ticket 03064676. We recommend you to check your inbox (and your junk/spam folder) to check our message.

Best regards,

Josh B.

Intel Customer Support

0 Kudos
Bolous_A_Intel
Employee
670 Views

Hello,

So in-order to set a specific resolution, you need to access the X11VNC daemon configuration files.

The Daemon is loaded using systemd, the service config file is found under

/etc/systemd/system/multi-user.target.wants/x11vnc.service

you can change the line:

ExecStart=/usr/bin/x11vnc .....

Add the -geometry option to set the resolution of the server. for example:

xllvnc -scale 1280x720 -geometry 1280x720

Note: Please don't change or remove any of the other options.

Good luck,

Bolous

0 Kudos
kfind
New Contributor I
670 Views

I have just tried many times doing the changes you suggest, with and without the -scale option, but it always boots and launches x11vnc with 1024x768. I've tried putting -geometry 1920x1080 (as well as the -scale option in the same way as your example) and also the -geometry 1280x720 just in case it couldn't output 1920x1080.

Is there something else I can do?

edit: So I have proven that the following works to re-size the X11 desktop session once it has started:

xrandr --fb 1920x1080

This can be done while remote desktop viewing. this will work for me for now, but it would be nice for a working result

0 Kudos
idata
Employee
670 Views

Hello Kyran,

 

 

We have reproduced this issue and also noticed that it works until the next reboot, then it goes back to the original, low resolution. After an extensive web search, it seems that this is a known issue with Ubuntu desktops. Many people have encountered this problem in one form or another and have posted workarounds. None of those workarounds worked for me. It is not a Euclid issue, it is an Ubuntu issue.

 

 

I'm sorry we couldn't be more helpful. If you find a solution, please feel free to update this thread.

 

 

Regards,

 

Jesus G.

 

Intel Customer Support
0 Kudos
kfind
New Contributor I
670 Views

That's unfortunate.

If we know the command line function which when run in user-space works well enough, is there not a simple script that can be auto-run AFTER the X11VNC desktop is spawned which just contains the xrandr --fb widthxheight line in it?

0 Kudos
idata
Employee
670 Views

Hello Kyran,

 

 

After much searching I finally found the solution. In a terminal window type:

 

gedit ~/.profile

 

 

At the end of the file .profile, enter:

 

 

/bin/bash -c 'sleep 15 && xrandr --fb 1920x1080 -display :0'

 

 

Save the .profile file. Next time you reboot and log in the display will be set to 1920x1080.

 

 

The attached file shows a screenshot of what this should look like.

 

 

Regards,

 

Jesus G.

 

Intel Customer Support

 

0 Kudos
Reply