This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] 1024x768 resolution at each kde start

Tags: None
(comma "," separated)
michroute
Registered Member
Posts
9
Karma
0
Hello,
I use mageia 3 and kde10.02 (i73700 and hd4000) and at each start the default reolution is 1024x768.
I have to go in system conf to change to 1920x1200 wich is my screen native resolution.
But at next start up the resolution is back on 1024x768.
This is my xorg.conf file:
# File generated by XFdrake (rev 262502)

# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************

Section "ServerFlags"
Option "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
#DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection

Section "Module"
Load "v4l" # Video for Linux
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Iiyama"
ModelName "Iiyama Prolite E2607WS"
HorizSync 29-81
VertRefresh 55.0-76.0
Option "PreferredMode" "1920x1200"

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_120" 412.34 1920 2080 2296 2672 1200 1201 1204 1286 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_100" 337.58 1920 2072 2288 2656 1200 1201 1204 1271 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_85" 282.74 1920 2072 2280 2640 1200 1201 1204 1260 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_75" 246.59 1920 2064 2272 2624 1200 1201 1204 1253 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_60" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1920x1200_50" 158.08 1920 2032 2240 2560 1200 1201 1204 1235 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_120" 313.20 1680 1816 2000 2320 1050 1051 1054 1125 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_100" 256.20 1680 1808 1992 2304 1050 1051 1054 1112 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_85" 214.51 1680 1800 1984 2288 1050 1051 1054 1103 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_75" 188.07 1680 1800 1984 2288 1050 1051 1054 1096 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_60" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1680x1050_50" 120.21 1680 1776 1952 2224 1050 1051 1054 1081 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_120" 284.04 1600 1728 1904 2208 1000 1001 1004 1072 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_100" 232.13 1600 1720 1896 2192 1000 1001 1004 1059 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_85" 194.21 1600 1712 1888 2176 1000 1001 1004 1050 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_75" 169.13 1600 1704 1880 2160 1000 1001 1004 1044 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_60" 133.14 1600 1704 1872 2144 1000 1001 1004 1035 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1600x1000_50" 108.66 1600 1688 1856 2112 1000 1001 1004 1029 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_120" 229.75 1440 1552 1712 1984 900 901 904 965 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_100" 187.55 1440 1544 1704 1968 900 901 904 953 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_85" 156.79 1440 1536 1696 1952 900 901 904 945 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_75" 136.49 1440 1536 1688 1936 900 901 904 940 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_60" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1440x900_50" 87.41 1440 1512 1664 1888 900 901 904 926 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_120" 181.21 1280 1376 1520 1760 800 801 804 858 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_100" 147.89 1280 1376 1512 1744 800 801 804 848 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_85" 123.38 1280 1368 1504 1728 800 801 804 840 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_75" 107.21 1280 1360 1496 1712 800 801 804 835 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_60" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync

# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_50" 68.56 1280 1336 1472 1664 800 801 804 824 -HSync +Vsync
EndSection

Section "Device"
Identifier "device1"
VendorName "Intel Corporation"
BoardName "Intel 810 and later"
Driver "intel"
Option "DPMS"
Option "MetaModes" "1920x1200_60"
EndSection

Section "Screen"
Identifier "screen1"●●●●●●●●
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubsection

Subsection "Display"
Depth 15
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubsection

Subsection "Display"
Depth 16
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubsection

Subsection "Display"
Depth 24
Modes "1920x1200" "1680x1050" "1600x1000" "1440x900" "1280x800"
EndSubsection
EndSection

Section "ServerLayout"
Identifier "layout1"
Screen "screen1"
EndSection
What i don't understand is that this file doesn't even mention 1024x768 resolution.
I'm a little bit lost here. It's like KDE finds it's startup info somewhere else. But where?

Thanks in advance for your help.

Romaric

Last edited by michroute on Tue Jun 25, 2013 2:17 pm, edited 1 time in total.
luebking
Karma
0
"kcmshell4 randr", maybe "kcmshell4 kscreen" - you should be able to store the default resolution for your user/session there.
michroute
Registered Member
Posts
9
Karma
0
Hello,
and thanks for your answer
Can u tell me where are these files, please?
wolfi323
Registered Member
Posts
1129
Karma
11
OS
michroute wrote:Hello,
and thanks for your answer
Can u tell me where are these files, please?

Just run "kcmshell4 randr" or "kcmshell4 kscreen" (depending on your distro it would be the one or the other) on the command line.

And this configuration is saved in ~/.kde4/share/config/krandrrc (or, depending on your distro, in ~/.kde/share/config/krandrrc), so you could try to delete this file.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
With regards to a command line, this can be accessed through Konsole, or alternately through the "Command Line" runner in KRunner (Alt + F2).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
michroute
Registered Member
Posts
9
Karma
0
Hello,
I tried it it doesn't work.
It opens the same config tool than in system config and the changes i do in it are not saved after reboot.
I'm sure there is a file somewhere that saves these config but which one........?
luebking
Karma
0
~/.kde/share/config/krandrrc, resp. ~/.kde/share/config/kscreenrc (or similar, eg. ~/kde4 - "kde4-config --path config" tells you where the configs are stored.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
To debug this further, we need to know if you are using KScreen or krandr.
Loading of the configuration on login with krandr has been known to have reliability problems in the past however.
KScreen is not affected by this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
michroute
Registered Member
Posts
9
Karma
0
Hello,
i do have that file ~/.kde/share/config/krandrrc. Here what's in it:

[i][b][b][b][Display]
ApplyOnStartup=true
StartupCommands=xrandr --output VGA1 --pos 0x0 --mode 1920x1200 --refresh 60.0013\nxrandr --output VGA1 --primary

[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1

[Screen_0_Output_VGA1]
Active=true
Rect=0,0,1920,1200

RefreshRate=60.001293182373
Rotation=1


and this is what i get when i type kde4-config --path config in konsole.

[sam@localhost ~]$ kde4-config --path config
/home/sam/.kde4/share/config/:/var/lib/mageia/kde4-profiles/Default/share/config/:/var/lib/mageia/kde4-profiles/common/share/config/:/usr/share/config/
luebking
Karma
0
i do have that file ~/.kde/share/config/krandrrc

If that's not a typo or ~/.kde and ~/.kde4 point the same inode (any symlink?), it's irrelevant.
kde4-config --path config
/home/sam/.kde4/share/config/:/var/lib/mageia/kde4-profiles/Default/share/config/:/var/lib/mageia/kde4-profiles/common/share/config/:/usr/share/config/


Also please check whether krandr or kscreen is loaded by kded
Code: Select all
qdbus org.kde.kded /kded loadedModules
michroute
Registered Member
Posts
9
Karma
0
Hello,
it's a typo. It's .kde4

Here what's the command qdbus org.kde.kded /kded loadedModules says:

[[b]sam@localhost ~]$ qdbus org.kde.kded /kded loadedModules
networkstatus
bluedevil
remotedirnotify
ktouchpadenabler
obexftpdaemon
powerdevil
device_automounter
keyboard
favicons
nepomuksearchmodule
khotkeys
dnssdwatcher
solidautoeject
randrmonitor
kwrited
kmixd
freespacenotifier
desktopnotifier
ktimezoned
statusnotifierwatcher


Is that correct?
luebking
Karma
0
yes, you're using (legacy) randr - try to just move away that file and logout/in to prevent it from any distinct action.
Also, please post the output of "xrandr -q"
michroute
Registered Member
Posts
9
Karma
0
Hello,
I moved away "krandrrc" but it doesn't work.
and the file is recreated each time i reconfigure the resolution.
[sam@localhost ~]$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 8192 x 8192
VGA1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1920x1200_60 60.0*
1680x1050_60 60.0
1600x1000_75 75.0
1600x1000_60 60.0
1440x900_75 75.0
1440x900_60 60.0
1280x800_75 75.0
1280x800_60 60.0
1024x768 60.0
800x600 60.3 56.2
848x480 60.0
640x480 59.9
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)

Thank you

Romaric
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately the lack of resolution being set on start is a fairly known defect in the old krandr system - a defect which is fixed with KScreen (among other things it fixes).

What resolution do you prefer? Running the following command as a startup script should change your resolution (with the right parameter). I've used 1920x1200 @ 60Hz as an example here, as it is the current resolution of your screen.
Code: Select all
xrandr --output VGA1 --mode 1920x1200_60


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
michroute
Registered Member
Posts
9
Karma
0
OK i just did it and it works perfectly. Thanks.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]