Solved How to display the login screen on a specific monitor?

laptop with a external monitor, I'd like to use only the external monitor and keep the laptop's lid closed. In XFCE4 Display Setting, the external monitor is set as primary display, and the laptop's monitor is disabled, tt works as expected after login. But the login screen displays on the laptop's monitor, how to make the login screen display on the external monitor?
 
You could write a custom monitor file for Xorg.
There is special significance for screen0. It is the default screen everything uses.
So you need to force the current screen0 (Which I am guessing is the laptop LVDS screen) to screen1(external monitor).
To do that you write a custom monitor file.
Arch wiki also has a good section on that too.
FreeBSD default Xorg path is different though: /usr/local/etc/X11/xorg.conf.d/10-monitor.conf
 
Stackexchange has a real good section on the directives for 10-monitor.conf with laptop displays:
https://unix.stackexchange.com/ques...ent-xorg-using-my-linux-laptops-display-panel

Thank you, solved.

/usr/local/etc/X11/xorg.conf.d/monitor.conf
Code:
Section "Monitor"
        Identifier "laptop monitor"
        Option "ignore" "true"
EndSection
Section "Monitor"
        Identifier "external monitor"
EndSection  
Section "Device"
        Identifier "onboard"
        Option "Monitor-eDP-1" "laptop monitor"
        Option "Monitor-HDMI-1" "external monitor"
EndSection

Remark:
  1. Identifier is arbitrary, Monitor-* is a pattern
  2. when this , xfce4 only discovers one monitor
 
Last edited:
Back
Top