Bug 246298 - krandrrc is ignored on login
Summary: krandrrc is ignored on login
Status: RESOLVED FIXED
Alias: None
Product: krandr
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Gustavo Pichorim Boiko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 18:38 UTC by Anthony Youngman
Modified: 2012-06-20 07:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Youngman 2010-07-30 18:38:23 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

The following is the contents of my user's krandrrc...

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

[Screen_0_Output_VGA-0]
Active=true
Rect=0,0,1024,768
RefreshRate=75.0285797119141
Rotation=1

But when she logs in her screen is at the default resolution of 1280x1024.

Reproducible: Always

Steps to Reproduce:
Log out, log in, check resolution by eye, cat the krandrrc file.



Actual Results:  
Note that the file was (presumably) written by KRandRTray, and the last time I tried, I cat'd the file, rebooted, logged in and cat'd the file again. The file was fine every time, but on login I had both (a) the default, unwanted, resolution, and KRandRTray running happily in my system tray.

Expected Results:  
The screen should have changed to 1024x768 resolution on login, not stayed at the default 1280x1024.

Note that the help page is also wrong. It states that KRandRTray updates /etc/X11/xorg.conf, which it doesn't! On my system (a) that file doesn't exist (the X default is it no longer exists ...) and (b) this is a *user* level utility afaict so it doesn't have the necessary permissions to edit the file even if it DID exist. Lastly (c) This is a multi-user system so resolution should be configurable on a per-user basis, not a system basis.

I found bug 209909 which appears to be related ...

THIS IS SPECULATION but I'm guessing the problem may be related to the fact that xorg.conf has disappeared and the .kde directory has been renamed. Bug 209909 went on about the config file being in .kde. My config file is ~/.kde4/share/config/krandrrc. Is it possible different parts of the system are looking in different places for the file?

Please note that this bug will interact very unpleasantly with another bug (that has cost me a linux install :-( There are some screens out there (HP, anyone?) that report their *maximum* resolution then default to a *smaller* resolution. This will result in stuff like the start menu, widgets like KRandRTray, etc, disappearing off the screen at login!

NB there might be a half-complete bug submission a number or two earlier - I don't know what happened but I think the data got submitted while I was starting to fill it in.
Comment 1 Lubos Lunak 2010-08-31 15:55:55 UTC
SVN commit 1170315 by lunakl:

- move the somewhat long krandr setup code from startkde
  into its own separate script that is called from startkde
- use properly krandrrc instead of kcmrandrrc in the script
- implement support for randr1.2 (non-legacy) setup, which
  is done by kcm_krandr simply saving a list of CLI xrandr commands
  and those are executed by the script
- add a buttom to kcm_krandr to save the current setup
  as the default to be used during desktop startup

FEATURE: 157839
FEATURE: 219704
FEATURE: 235883
FEATURE: 238278
FEATURE: 163707
FEATURE: 141999
FEATURE: 229529
BUG: 246298
FEATURE: 183143



 M  +5 -0      kcontrol/randr/CMakeLists.txt  
 AM            kcontrol/randr/krandrstartup  
 M  +5 -1      kcontrol/randr/legacyrandrconfig.cpp  
 M  +22 -0     kcontrol/randr/legacyrandrscreen.cpp  
 M  +1 -0      kcontrol/randr/legacyrandrscreen.h  
 M  +46 -0     kcontrol/randr/randrconfig.cpp  
 M  +2 -0      kcontrol/randr/randrconfig.h  
 M  +8 -1      kcontrol/randr/randrconfigbase.ui  
 M  +31 -2     kcontrol/randr/randrdisplay.cpp  
 M  +3 -1      kcontrol/randr/randrdisplay.h  
 M  +31 -0     kcontrol/randr/randroutput.cpp  
 M  +1 -0      kcontrol/randr/randroutput.h  
 M  +11 -0     kcontrol/randr/randrscreen.cpp  
 M  +1 -0      kcontrol/randr/randrscreen.h  
 M  +7 -48     startkde.cmake  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1170315