Bug 368542

Summary: wrong login resolution
Product: [Unmaintained] kdm Reporter: Cristian Tarsoaga <cristian.tarsoaga>
Component: generalAssignee: kdm bugs tracker <kdm-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: cfeck
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Cristian Tarsoaga 2016-09-10 10:22:30 UTC
I have configured kde settings to use a custom resolution (other than the default one)

when booting, kdm login still uses the default resolution

once logged in, everything is fine
after sleep, everything is fine

Reproducible: Always

Steps to Reproduce:
1. set custom resolution in kde settings
2. reboot
3. go to kdm login screen

Actual Results:  
default resolution is used at the first kdm login, inspite of my custom kde settings

Expected Results:  
kdm login should always use the custom resolution specified in kde settings
problem happens at the first kdm login only, after reboot (not after sleep/logout)


kubuntu 16.04, all updates included

as a workaround: I passed my custom monitor modeline in xorg.conf.d/50-monitor.conf to X, which solves the problem
Comment 1 Christoph Feck 2016-09-10 16:22:54 UTC
The KScreen component cannot change the xrandr settings before the session starts, because there is no global xrandr settings file.
Comment 2 Cristian Tarsoaga 2016-09-11 23:26:53 UTC
When I see kdm on screen, session is not yet started? Starts when? After login?
Comment 3 Cristian Tarsoaga 2016-09-11 23:28:09 UTC
And it cannot use xrandr dynamiccally to switch the modeline?
Comment 4 Christoph Feck 2016-09-12 00:42:48 UTC
There are ways to run scripts after the X server starts, but before the display manager starts. Please ask in a forum of your distribution which locations it uses. For example, openSUSE uses /etc/X11/xinit/xinitrc.d/