X11: 1280x768

Polytropon freebsd at edvax.de
Tue Nov 11 01:26:00 PST 2008

On Tue, 11 Nov 2008 10:08:54 +0100 (CET), Pieter Donche <Pieter.Donche at ua.ac.be> wrote:
> OK, that was it for the keyboard matter. Thx..

No problem, it's all standard stuff. :-)

> Similar question:
> my portable is 1280x768 pixels, but KDE comes up in 1024x768, making 
> 'wide' icons and text :-(
> I tried to add in the /etc/X11/xorg.conf in Section "Screen" for
> all entries in Subsection "Display" (different Depths), a line
> Modes "1280x784" ... but this does not help..
> In KDE menu / Settings / peripherals / Display / the only choice
> for Screen Size remains 1024x768 without alternatives (as before) ...
> How to remedy?

I'd suggest to do something similar like with the keyboard: Put
it explicitely into xorg.conf; I mean, autodetect is all fine, but
in some cases, just crap comes out. :-)

I had a similar problem here: X would only run 1024x768 or 1152x864,
but not 1400x1050 as I would have liked it on a 21" CRT. So I
did this:

First, modify /etc/X11/xorg.conf:

	Section "Screen"
	        Identifier      "Screen0"
	        Device          "Card0"
	        Monitor         "Monitor0"
	        Option          "Accel"
	        DefaultDepth    24
	        SubSection      "Display"
	                Depth   24
	                Visual  "TrueColor"
	                Modes   "1152x864"

This starts X in 1152x864. You'll see that there's not the usual
bunch of depths and modes, just the one I want.

Then, I put this into ~/.xinitrc:

	xrandr --size 1400x1050 &
	xrandr --fb 1400x1050 &

Put it before any other program starts, and it leads to the desired
screen dimension of 1400x1050.

I'm sure you can play a bit with xrandr from within KDE in order
to adjust the screen dimensions, and when you found it working,
put it into your ~/.xinitrc so it will take effect after login.
But NB that xdm / kdm won't be affected - it will run as xorg.conf
specifies. You can check with xrandr's information options (refer
to "man xrandr") and xvidtune.

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list