SparkyLinux Forums

Software & hardware support => Desktops => Topic started by: foormanek on December 09, 2019, 02:55:29 PM

Title: [Solved] How to set desktop resolution without monitor?
Post by: foormanek on December 09, 2019, 02:55:29 PM
Hello,
I connect to headless sparky box via x11vnc. X11vnc starts as my autologin user autorun command. After connecting I see my desktop and everything works, only the resolution is too small, some 1024x768 or so. I can not change resolution normally - there is no monitor to choose from and I have no resolutions to choose.  I can change resolution via "xrandr --fb 1920x1080" command, resolution changes, but with black bands right and down to old blue sparky wallpaper. I even could use that, but status panel remains in the middle of the screen and gets in the way.
How to change resolution and have desktop do resize itself to it? Or set a higher resolution upfront, when my desktop starts?

Title: Re: How to set desktop resolution without monitor?
Post by: jidan on December 09, 2019, 05:48:15 PM
What's your desktop environment?
Title: Re: How to set desktop resolution without monitor?
Post by: foormanek on December 09, 2019, 07:06:31 PM
Quote from: jidan on December 09, 2019, 05:48:15 PM
What's your desktop environment?
LXQt, as recommended with sparky. Everything is on defaults.
In the meantime LXQt guy posted a solution how to resize desktop after resizing framebuffer
https://forum.lxqt.org/t/resize-desktop-after-resizing-framebuffer/1034
so this trick I know now, but I would like to do it better. Higher resolution from the start or a script to do it with one click or else...
Title: Re: How to set desktop resolution without monitor?
Post by: jidan on December 09, 2019, 09:33:17 PM
You can use a dummy monitor. Install it with:
sudo apt-get install xserver-xorg-video-dummy
Then you can configure it using xorg.conf (driver "dummy") or using monitor configuration.
Title: Re: How to set desktop resolution without monitor?
Post by: foormanek on December 10, 2019, 09:28:05 AM
Quote from: jidan on December 09, 2019, 09:33:17 PM
You can use a dummy monitor.
I did what you wrote. I have put "dummy-1920x1080.conf" in /etc/X11/xorg.conf.d, config found here:
https://techoverflow.net/2019/02/23/how-to-run-x-server-using-xserver-xorg-video-dummy-driver-on-ubuntu/
Now my headless sparky starts with 1920x1080 desktop, just as I needed.
Thank you!
Title: Re: [Solved] How to set desktop resolution without monitor?
Post by: jidan on December 11, 2019, 03:59:18 AM
Welcome :)
Just remember to deactivate it when you decide to plug a real monitor.