Hello,
I am using Fedora 24 with kscreen 5.6.5 and i want to set a predefined resolution when users login for the first time. I tried to copy a file generated by kscreen to the following path without success: /usr/share/kde-settings/kde-profile/default/share/applications/kscreen
Is there any way to get this?
Thanks in advance.
Ubay Dorta Guerra composed on 2016-06-29 12:05 (UTC):
I am using Fedora 24 with kscreen 5.6.5 and i want to set a predefined resolution when users login for the first time. I tried to copy a file generated by kscreen to the following path without success: /usr/share/kde-settings/kde-profile/default/share/applications/kscreen
What is its content?
Is there any way to get this?
Disabling kscreen from starting session start gets KDE to obey the resolution set either in a global X startup script containing xrandr to set a mode, or via PreferredMode in /etc/X11/xorg.conf*.
To disable kscreen on an individual user basis has worked for me by placing:
[Module-kscreen] autoload=false
in ~/.config/kdedrc or ~/.config/kded5rc. You might try that same content in /etc/kde/share/config/kdedrc (or kded5rc?), or in /usr/share/kde-settings/kde-profile/default/share/kdedrc (or kded5rc?), or /usr/share/kde-settings/kde-profile/default/share/applications/kdedrc (or kscreen?).
Possibly the X config wouldn't be necessary if the display's native mode is the mode you desire as default for new users.
If none of this works for you, you might ask in the kde-linux@kde.org mailing list and get a definitive answer.
On 30/06/16 01:08, Felix Miata wrote:
Ubay Dorta Guerra composed on 2016-06-29 12:05 (UTC):
I am using Fedora 24 with kscreen 5.6.5 and i want to set a predefined resolution when users login for the first time. I tried to copy a file generated by kscreen to the following path without success: /usr/share/kde-settings/kde-profile/default/share/applications/kscreen
What is its content?
Is there any way to get this?
Disabling kscreen from starting session start gets KDE to obey the resolution set either in a global X startup script containing xrandr to set a mode, or via PreferredMode in /etc/X11/xorg.conf*.
To disable kscreen on an individual user basis has worked for me by placing:
[Module-kscreen] autoload=false
in ~/.config/kdedrc or ~/.config/kded5rc. You might try that same content in /etc/kde/share/config/kdedrc (or kded5rc?), or in /usr/share/kde-settings/kde-profile/default/share/kdedrc (or kded5rc?), or /usr/share/kde-settings/kde-profile/default/share/applications/kdedrc (or kscreen?).
Possibly the X config wouldn't be necessary if the display's native mode is the mode you desire as default for new users.
If none of this works for you, you might ask in the kde-linux@kde.org mailing list and get a definitive answer.
Note that kscreen currently has some issues with users configuration. On reboot it often resets any configuration set by the user. See: https://bugs.kde.org/show_bug.cgi?id=346961
Thank you very much Felix and Terry.
The solution provided by Felix worked!
The steps I followed for F24 were:
- I got the configuration path with:
# kf5-config --path config /root/.config/:/etc/xdg/
- I created the file /etc/xdg/kded5rc with the next content: [Module-kscreen] autoload=false
- I created the file /etc/X11/xorg.conf.d/10-monitor.conf for specifying a resolution:
# cat /etc/X11/xorg.conf.d/10-monitor.conf Section "Monitor" Identifier "DVI-1" Option "PreferredMode" "1024x768" EndSection
- Now, all users start the KDE session with the 1024x768 resolution.
If a user wants to define their own resolution has to launch "Display Configuration" and create the following file in his profile:
$ cat ~/.config/kded5rc [Module-kscreen] autoload=true
But as Terry has stated, there is a bug and the configuration resets on reboot.
Thanks.