LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2018, 01:42 AM   #1
The_Dark_Passenger
Member
 
Registered: Apr 2018
Distribution: Slackware64 14.2 & -Current
Posts: 93

Rep: Reputation: Disabled
Possible to move KDM login window to other display?


Hello,

I have Slackware64 -current running KDE 4.14.38 installed on my desktop that has two monitors attached. The KDM login credential window is displaying on my secondary display instead of my primary one. Is there anyway to select which display I want the KDM login window shown on?

Any help would be greatly appreciated!
 
Old 08-16-2018, 02:58 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

As root, open /etc/kde/kdm/kdmrc, then in section [X-*-Greeter], search for key GreeterScreen. It should be commented and set to -1 by default. Uncomment it, set it to 1 and restart X.

Note that in some case (ex: reset of X), the greeter can be displayed on the wrong screen even with this setting. To fix that, the best solution is to set GreeterScreen to -1 or to simply comment it, then create a file 10-monitors.conf in /etc/X11/xorg.conf.d/ with a content like as below :

Code:
Section "Monitor"
  Identifier "<ID-OF-PRIMARY-MONITORY>"
  Option "Primary" "true"
EndSection

Section "Monitor"
  Identifier "<ID-OF-SECONDARY-MONITORY>"
  Option "RightOf" "<ID-OF-PRIMARY-MONITORY>"
EndSection
Attention, do not forget to change the identifiers <ID-OF-PRIMARY-MONITORY> and <ID-OF-SECONDARY-MONITORY> to match the identifiers of your monitors. You'll find them by running xrandr -q (in bold in example below) :

Code:
Screen 0: minimum 8 x 8, current 3200 x 1080, maximum 16384 x 16384
VGA-0 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024     60.02*+  75.02  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
HDMI-0 disconnected (normal left inverted right x axis y axis)
Note that in some case, in might be required to add, in /etc/X11/xorg.conf.d/10-monitors.conf, section(s) like as below to force the monitor(s) to use the native resolution by default :

Code:
Section "Screen"
  Identifier "Primary-Screen"
  Monitor "<ID-OF-MONITOR>"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "<NATIVE_RESOLUTION>" "<ALTERNATE_RESOLUTION>" ...
  EndSubSection
EndSection
Attention, do not forget to change the identifiers <ID-OF-MONITOR> to match the identifier(s) of your monitor(s), and <NATIVE_RESOLUTION/ALTERNATE_RESOLUTION> to mach the right resolutions.

For instance, one of my Slackware computer has the following configuration :

Code:
# This configuration defines the display *LG W2242S* (on VGA1)
# as primary monitor with integrated LCD display (on LVDS1) on
# the right.
#
# The section 'Screen' ensures that monitor *LG W2242S* always use
# its native resolution by default. In case this monitor is replaced
# by another, this section will have to be modified accordingly.

Section "Monitor"
  Identifier "VGA1"
  Option "Primary" "true"
EndSection

Section "Monitor"
  Identifier "LVDS1"
  Option "RightOf" "VGA1"
EndSection


Section "Screen"
  Identifier "Primary-Screen"
  Monitor "VGA1"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "1680x1050" "1280x1024"  "1152x864" "1024x768" "800x600"
  EndSubSection
EndSection
Hope this helps.

--
SeB

Last edited by phenixia2003; 08-16-2018 at 03:11 AM.
 
2 members found this post helpful.
Old 08-16-2018, 03:30 AM   #3
The_Dark_Passenger
Member
 
Registered: Apr 2018
Distribution: Slackware64 14.2 & -Current
Posts: 93

Original Poster
Rep: Reputation: Disabled
After adapting your 10-monitors.conf file to fit my system, and in my case changing the GreeterScreen key to be -1, the greeter and login animation are now properly displayed on my primary monitor! Thank you so much for helping solve this, phenixia2003!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kdm causes Can't connect to X11 window server using ':0' as the value of the DISPLAY mattca Slackware 7 12-02-2013 11:24 AM
Can I remotely login to remotely display data (remote X-window issue)? polishweasel Linux - Networking 2 06-29-2011 03:21 PM
Need to login twice to start KDE with compiz and kde-window-decorator from kdm allend Slackware 3 06-16-2008 06:54 PM
How to move a running window to a different DISPLAY? mtford Linux - Desktop 2 03-13-2007 05:32 PM
Dual head display, can I move window from one screen to another? Navyblue Linux - Newbie 13 12-05-2005 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration