Then you did something wrong.
What exactly did you put in there?
You need to uncomment/add the “Section “Monitor””, “Identifier “Default Monitor”” (or whatever) and “EndSection” as well of course.
And just to be sure: you need to put the whole output of “cvt” in there, between “Section “Monitor”” and “EndSection”.
Something like this:
Section "Monitor"
Identifier "Default Monitor"
## If your monitor doesn't support DDC you may override the
## defaults here
#HorizSync 28-85
#VertRefresh 50-100
## Add your mode lines here, use e.g the cvt tool
# 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
(I left in the original comments from this file. Those, i.e. the lines starting with ‘#’ are not necessary and can be omitted)
Some notes:
- In my experience you need a corresponding 50-screen.conf (or 50-myscreen.conf or whatever
) as well that references that Monitor section. I.e. with the above 50-monitor.conf, this should work
Section "Screen"
Identifier "Default Screen"
Device "Default Device"
## Doesn't help for radeon/radeonhd drivers; use magic in
## 50-device.conf instead
Monitor "Default Monitor"
EndSection
(which is the default one with all lines uncommented)
Not doing this will not make Xorg failing to start though. Your resolution will just not be added.
-
This will only add a new mode. You still will have to select it in KDE’s settings then. I’m not sure whether it will be the default for a new user, a “PreferredMode” option might help.
-
The new mode will show up as “1920x1080_60.00” in the settings and in xrandr’s output. Personally I would prefer to omit the “_60.00”. The part in the quotes is just a name anyway, so you could theoretically change it to anything you like I think.
- Creating a specific .xinitrc file with the xrandr lines that works in my home directory. No changes in resolution.
Did you mark the file as “executable”?
Btw, there should be a file “.xinitrc.template” in your home directory.
You could rename/copy that to ~/.xinitrc as a starting point.
- Adding the lines in the xinitrc script at /etc/X11/xinit directory like this:
You shouldn’t change this file.
Better create a new one in /etc/X11/xinitrc.d/. This way you can easily revert your changes by just deleting the file, and you can be sure that you don’t get problems when installing updates.
but i will not work as normal user. As root I had a short glipse of the right resolution, before the Xserver was falling back to a very low resolution.
So I am close - but still not quite there…
This might be caused by KScreen, i.e. KDE’s screen resolution settings.
Try to disable it in “Configure Desktop”->“Startup and Shutdown”->“Service Management”.
Or you should be able to select the higher resolution in “Configure Desktop”->Display and Monitor" now, this might help as well.
One idea was to make a startup script that simply runs the xrandr commands at the right time. But I am not sure where to put it.
When using KDE, you can just drop it into ~/.kde4/env/. Or use “Configure Desktop”->“Startup and Shutdown”->Autostart to tell KDE to run it during login.
Or create a .desktop file in ~/.config/autostart/ to call the script, this would apply to all (well, most at least) desktops.
You could of course even put it into /usr/share/kde4/env/ or /usr/share/autostart/ resp. for system-wide effect.