LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-08-2021, 11:05 AM   #1
max.b
Member
 
Registered: Feb 2013
Distribution: Debian 11, GNOME
Posts: 100

Rep: Reputation: 5
Question KDE can't change screen resolution in a VM


I'm trying a bunch of alternative desktops that come with Debian 11 in a VM (gnome-boxes).

All of the desktops I tried (XFCE, Gnome Flashback, Cinnamon) can change the screen resolution, but if I do it in KDE, the screen just flickers a bit and gives up -- doesn't even show a prompt to keep the new resolution.

Is this a known problem, and is there a solution to this?
 
Old 11-08-2021, 07:27 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
This is a shot in the dark, as I've never used gnome-boxes, but I have encountered a similar issue in VirtualBox a smattering of times.

I have been able to resolve it (with one exception, I think) by cycling through the display types (VMSVGA, VBoxVGA, VBoxSVGA, etc.) in the settings for the VM. I would shut down the VM, change the display type, and reboot to test the new selection.
 
Old 11-08-2021, 08:00 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Might be all that's needed is disabling KScreen.
 
Old 11-11-2021, 11:26 AM   #4
max.b
Member
 
Registered: Feb 2013
Distribution: Debian 11, GNOME
Posts: 100

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by frankbell View Post
This is a shot in the dark, as I've never used gnome-boxes, but I have encountered a similar issue in VirtualBox a smattering of times.

I have been able to resolve it (with one exception, I think) by cycling through the display types (VMSVGA, VBoxVGA, VBoxSVGA, etc.) in the settings for the VM. I would shut down the VM, change the display type, and reboot to test the new selection.
I don't think Gnome Boxes has this option (I couldn't find it). Debian 11 dropped VirtualBox. So I can't use it (easily).
 
Old 11-11-2021, 11:27 AM   #5
max.b
Member
 
Registered: Feb 2013
Distribution: Debian 11, GNOME
Posts: 100

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by mrmazda View Post
Might be all that's needed is disabling KScreen.
Isn't that what actually allows you to change screen resolutions in KDE?

I tried changing RAM from 2GB to 8GB, but that made no difference.
 
Old 11-11-2021, 01:07 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I have openSUSE (with KDE desktop) running in a VM, and needed to provide an explicit display mode for it. I first used xrandr to create and set the required display mode (1920x1080) on the fly, and subsequently made it permanent with a minimal xorg.conf...

Code:
Section "Device"
  Identifier      "Configured Video Device" 
EndSection

Section "Monitor" 
  Identifier      "Configured Monitor"
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
EndSection 

Section "Screen"  
  Identifier      "Default Screen" 
  Monitor         "Configured Monitor"
  Device          "Configured Video Device" 
  SubSection "Display"
    Modes "1920x1080_60.00" 
  EndSubSection
EndSection
Of course this approach will only work for desktops running within an X-server environment.
 
Old 11-11-2021, 01:30 PM   #7
max.b
Member
 
Registered: Feb 2013
Distribution: Debian 11, GNOME
Posts: 100

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by ferrari View Post
I have openSUSE (with KDE desktop) running in a VM, and needed to provide an explicit display mode for it. I first used xrandr to create and set the required display mode (1920x1080) on the fly, and subsequently made it permanent with a minimal xorg.conf...

Code:
Section "Device"
  Identifier      "Configured Video Device" 
EndSection

Section "Monitor" 
  Identifier      "Configured Monitor"
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
EndSection 

Section "Screen"  
  Identifier      "Default Screen" 
  Monitor         "Configured Monitor"
  Device          "Configured Video Device" 
  SubSection "Display"
    Modes "1920x1080_60.00" 
  EndSubSection
EndSection
Of course this approach will only work for desktops running within an X-server environment.
I remember doing stuff like this when installing Debian >10 years ago (and what drove me to Ubuntu at the time). But I thought we were past this?
 
Old 11-11-2021, 02:49 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by max.b View Post
Isn't that what actually allows you to change screen resolutions in KDE?
KScreen is KDE's tool for managing X display configuration. It doesn't always work as expected. There are other tools, including the originals, /etc/X11/xorg.conf, and its newer variant, /etc/X11/xorg.conf.d/*.conf. It can take as little as the following /etc/X11/xorg.conf to override broken automagic failing to use a display's native 1920x1080 mode:
Code:
Section "Device"
	Identifier "DDev"
EndSection

Section "Monitor"
	Identifier	"DMon"
#	HorizSync	30-86	# may be needed if EDID broken
#	VertRefresh	56-76	# may be needed if EDID broken
	Option	"PreferredMode" "1920x1080"
EndSection

Section "Screen"
	Identifier	"DScr"
	Device		"DDev"
	Monitor		"DMon"
EndSection
 
Old 11-11-2021, 04:18 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Originally Posted by max.b View Post
I remember doing stuff like this when installing Debian >10 years ago (and what drove me to Ubuntu at the time). But I thought we were past this?
For the most part yes (courtesy of EDID), but I just documented what I found necessary when VirtualBox didn't advertise the native display resolution of my laptop.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux Mint can't change screen resolution & can't set brightness JamesS7 Linux - Hardware 5 09-12-2020 07:50 AM
Changed screen resolution and now can't see screen to change it back in Ubuntu lmb6832 Linux - Newbie 1 09-28-2010 10:52 PM
change screen resolution of xdm login screen in suse linux anon104 Linux - Desktop 2 04-02-2007 09:26 AM
How can I change the screen resolution for KDE? ozymandias Linux - Newbie 13 11-11-2005 07:15 AM
Can't change screen resolution RH9/KDE thoand Linux - Newbie 3 11-14-2003 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration