Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: [Solved] How to set desktop resolution without monitor?  (Read 276 times)

Offline foormanek

  • Newbie
  • *
  • Posts: 3
[Solved] How to set desktop resolution without monitor?
« 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?

« Last Edit: December 10, 2019, 09:33:05 am by foormanek »

Offline jidan

  • Newbie
  • *
  • Posts: 40
Re: How to set desktop resolution without monitor?
« Reply #1 on: December 09, 2019, 05:48:15 pm »
What's your desktop environment?

Offline foormanek

  • Newbie
  • *
  • Posts: 3
Re: How to set desktop resolution without monitor?
« Reply #2 on: December 09, 2019, 07:06:31 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...
« Last Edit: December 09, 2019, 07:14:34 pm by foormanek »

Offline jidan

  • Newbie
  • *
  • Posts: 40
Re: How to set desktop resolution without monitor?
« Reply #3 on: December 09, 2019, 09:33:17 pm »
You can use a dummy monitor. Install it with:
Code: [Select]
sudo apt-get install xserver-xorg-video-dummyThen you can configure it using xorg.conf (driver "dummy") or using monitor configuration.

Offline foormanek

  • Newbie
  • *
  • Posts: 3
Re: How to set desktop resolution without monitor?
« Reply #4 on: December 10, 2019, 09:28:05 am »
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!

Offline jidan

  • Newbie
  • *
  • Posts: 40
Re: [Solved] How to set desktop resolution without monitor?
« Reply #5 on: December 11, 2019, 03:59:18 am »
Welcome :)
Just remember to deactivate it when you decide to plug a real monitor.