Change screen size

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Jul 12 23:44:51 CEST 2016


By using an xorg.conf you get the the desired screen resolution all the
times, everywhere, not only after launching a desktop environment
session. An example:

[weremouse at moonstudio ~]$ cat /etc/X11/xorg.conf
Section "Module"
	Load  "extmod"
	Load  "dri"
	Load  "dbe"
	Load  "dri2"
	Load  "glx"
	Load  "record"
	Load  "GLcore"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Plug 'n' Play"
	ModelName    "Plug 'n' Play"
	DisplaySize  305 230
	HorizSync    29-98
	VertRefresh  50-120
	modeline 	 "1152x864" 128.42 1152 1232 1360 1568 864 865
868 910 Gamma	     1.0
EndSection

Section "Device"
	Identifier   "Card0"
        Driver   "radeon"
       #Driver   "vesa"
EndSection

Section "Screen"
	Identifier   "Screen0"
	Device       "Card0"
	Monitor      "Monitor0"

	Defaultdepth 24
	SubSection   "Display"
		Depth    24
		Modes    "1152x864"
	EndSubSection
EndSection

You still could use xrandr to switch to another resolution, I'm doing
it by menu entries (not a xfce4-panel menu, I just want to show how I
use the xrandr command):

[weremouse at moonstudio ~]$ grep xrand .config/fbpanel/default 
	    action = xrandr -s 1152x864
	    action = xrandr -s 1024x768


More information about the Xfce mailing list