LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-13-2022, 10:46 AM   #1
makem
Member
 
Registered: Nov 2013
Posts: 209

Rep: Reputation: Disabled
Niggling trait of lightdm


I am using lightdm with dual monitors on Ubuntu 21.10 and it's very annoying that grub appears on monitor 1 but login appears on monitor 2 which is invariably turned off when I start up.

I know I could just move the mouse and login on monitor 1 but gdm3 display manager gets it right so there must be a way to persuade lightdm to do the same. I prefer lightdm over gdm3.

I have configured nvidia-settings and made sure ubuntu Display settings match and searched some of lightdm settings for a clue but I cannot find one.

Right path anybody?

Edit: I have also found that RealVNC Viewer also starts up on monitor 2. This means I have to turn on that monitor to move the viewer to monitor 1 for further use. A real pain

Last edited by makem; 01-14-2022 at 07:01 AM.
 
Old 01-14-2022, 08:21 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,898

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
I guess monitor 2 is set as default (or primary) for your X server, you need to change it (to the other one).
 
Old 01-14-2022, 10:01 AM   #3
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I guess monitor 2 is set as default (or primary) for your X server, you need to change it (to the other one).
The monitors are set Primary = 1, Secondary = 2 in both Nvidia settings and Ubuntu Display settings.

If as you suggest then grub would appear on the wrong one. I want both on same one, the Primary, number 1

Also Monitor 1 is a much better monitor.

Last edited by makem; 01-14-2022 at 12:13 PM.
 
Old 01-15-2022, 12:10 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
If possible, the simplest fix could be swapping the cables between the two displays on one end or the other but not both. LightDM is hardly the only greeter I've seen get this wrong. It's no doubt annoying.

DE settings (probably NVidia settings too) come into play after a session type is selected in the greeter. Try putting an xrandr --output NAME --primary script in /etc/X11/Xsession.d/.
 
Old 01-15-2022, 06:12 AM   #5
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
If possible, the simplest fix could be swapping the cables between the two displays on one end or the other but not both. LightDM is hardly the only greeter I've seen get this wrong. It's no doubt annoying.

DE settings (probably NVidia settings too) come into play after a session type is selected in the greeter. Try putting an xrandr --output NAME --primary script in /etc/X11/Xsession.d/.
Thank you, can you suggest how to do that?

The secondary monitor only has HDMI connection and the primary one has display port which I prefer to use.

Last edited by makem; 01-15-2022 at 06:17 AM.
 
Old 01-15-2022, 06:15 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Test it "manually" first, to see if it does what you want.
 
Old 01-15-2022, 06:33 AM   #7
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Test it "manually" first, to see if it does what you want.
Test what manually and how?
 
Old 01-15-2022, 08:59 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,898

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
you can remove the second monitor to see if that works (for example).
 
Old 01-15-2022, 12:27 PM   #9
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you can remove the second monitor to see if that works (for example).
I removed the second monitor without making any changes and as would be expected, both grub and login appeared on the primary monitor. Even if I had made changes I think it would be the same result. However, I do need 2 monitors.

I must be missing something.
 
Old 01-15-2022, 09:21 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Instead of xrandr, try /etc/X11/xorg.conf:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "amdIGP"
	Option  "Monitor-DisplayPort-0" "amdDP"   # amdgpu DP
	Option  "Monitor-HDMI-A-0"	"amdHDMI" # amdgpu HDMI
EndSection
Section "Monitor"
        Identifier      "amdDP"
        Option          "Primary"       "true"
EndSection
Section "Monitor"
        Identifier      "amdHDMI"
        Option          "above"       "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenLower"
        Device          "amdIGP"
        Monitor         "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenUpper"
        Device          "amdIGP"
        Monitor         "amdHDMI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.10.0-10-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
    parameters: BOOT_IMAGE=/vmlinuz root=LABEL=<filter> noresume
    ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0
    radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity R14.0.12 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
    dm: TDM Distro: Debian GNU/Linux 11 (bullseye)
Machine:
  Type: Desktop Mobo: ASRock model: FM2A88X Extreme6+ serial: <filter>
    UEFI: American Megatrends v: P4.20 date: 01/13/2016
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu
    v: kernel alternate: radeon bus-ID: 00:01.0 chip-ID: 1002:1313
    class-ID: 0300
  Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x2520 s-dpi: 120 s-size: 541x533mm (21.3x21.0")
    s-diag: 759mm (29.9")
  Monitor-1: DisplayPort-0 res: 2560x1440 hz: 60 dpi: 109
    size: 598x336mm (23.5x13.2") diag: 686mm (27")
  Monitor-2: HDMI-A-0 res: 2560x1080 hz: 60 dpi: 97
    size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: AMD KAVERI (DRM 3.40.0 5.10.0-10-amd64 LLVM 11.0.1)
    v: 4.6 Mesa 20.3.5 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 2560 x 2520, maximum 16384 x 16384
HDMI-A-0 connected 2560x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm
DisplayPort-0 connected primary 2560x1440+0+1080 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95*+  74.92  
   2560x1080     60.00*+
#
Naturally you'll need the subsitute the appropriate device Option names for mine. I have no NVidia cards with both DP and HDMI ports to test with. Substitute right-of for above. I used above to verify it actually works, as right-of for secondary display is the default. Then I tried another PC without any location option, resulting in the secondary to the right of the primary:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "amdIGP"
	Option  "Monitor-DisplayPort-0"	"amdDP"   # amdgpu DP
	Option  "Monitor-HDMI-A-0"	"amdHDMI" # amdgpu HDMI
EndSection
Section "Monitor"
        Identifier      "amdDP"
        Option          "Primary"       "true"
EndSection
Section "Monitor"
        Identifier      "amdHDMI"
#        Option          "above"       "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenLeft"
        Device          "amdIGP"
        Monitor         "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenRight"
        Device          "amdIGP"
        Monitor         "amdHDMI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
    parameters: BOOT_IMAGE=/vmlinuz root=LABEL=<filter> noresume
    ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0
    radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity R14.0.12 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
    dm: TDM Distro: Debian GNU/Linux 11 (bullseye)
Machine:
  Type: Desktop Mobo: ASUSTeK model: A88X-PRO v: Rev X.0x serial: <filter>
    UEFI: American Megatrends v: 2603 date: 03/10/2016
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASUSTeK driver: amdgpu
    v: kernel alternate: radeon bus-ID: 00:01.0 chip-ID: 1002:130f
    class-ID: 0300
  Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa alternate: ati display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 96 s-size: 1354x381mm (53.3x15.0")
    s-diag: 1407mm (55.4")
  Monitor-1: DisplayPort-0 res: 2560x1440 hz: 60 dpi: 109
    size: 598x336mm (23.5x13.2") diag: 686mm (27")
  Monitor-2: HDMI-A-0 res: 2560x1080 hz: 60 dpi: 97
    size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: AMD KAVERI (DRM 3.40.0 5.10.0-9-amd64 LLVM 11.0.1)
    v: 4.6 Mesa 20.3.5 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 5120 x 1440, maximum 16384 x 16384
HDMI-A-0 connected 2560x1080+2560+0 (normal left inverted right x axis y axis) 673mm x 284mm
DisplayPort-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95*+  74.92  
   2560x1080     60.00*+
#
Here's one using an NVidia GPU, HDMI & DVI, where by default the DVI acts as primary:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "nvGPU"
	Option  "Monitor-DVI-I-1"	"secDVI"  # nvidia DVI
	Option  "Monitor-HDMI-1"	"priHDMI" # nvidia HDMI
EndSection
Section "Monitor"
        Identifier	"priHDMI"
        Option		"Primary"	"true"
EndSection
Section "Monitor"
        Identifier	"secDVI
        Option		"right-of"	"priHDMI"
EndSection
Section "Screen"
        Identifier	"ScreenLeft"
        Device		"nvGPU"
        Monitor		"priHDMI"
EndSection
Section "Screen"
        Identifier	"ScreenRight"
        Device		"nvGPU"
        Monitor		"secDVI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.15.14-200.fc35.x86_64 x86_64 bits: 64 compiler: gcc
  v: 2.37-10.fc35
  parameters: ro root=LABEL=<filter> audit=0 ipv6.disable=1 net.ifnames=0
  audit=0 plymouth.enable=0 noresume mitigations=auto consoleblank=0 selinux=0
  Desktop: Trinity R14.0.11 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
  dm: TDM Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Desktop Mobo: Gigabyte model: GA-970A-D3 serial: N/A BIOS: Award
  v: F10 date: 05/30/2012
Graphics:
  Device-1: NVIDIA GF108 [GeForce GT 630] vendor: Gigabyte driver: nouveau
  v: kernel bus-ID: 01:00.0 chip-ID: 10de:0f00 class-ID: 0300
  Display: x11 server: X.Org 1.20.14 driver: loaded: modesetting
  unloaded: fbdev,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 120 s-size: 812x254mm (32.0x10.0")
  s-diag: 851mm (33.5")
  Monitor-1: HDMI-1 res: 1920x1200 hz: 60 dpi: 94 size: 519x324mm (20.4x12.8")
  diag: 612mm (24.1")
  Monitor-2: DVI-I-1 res: 1920x1080 hz: 60 dpi: 72
  size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: NVC1 v: 4.3 Mesa 21.3.3 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 16384 x 16384
HDMI-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 324mm
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 673mm x 284mm
   1920x1200     59.95*+
   1920x1080     59.96*   60.00    59.93  
#
Each of these three installations by default put the login greeter on the default secondary display, but using /etc/X11/xorg.conf, moved it to the configured primary display. The DE also used the /etc/X11/xorg.conf configured primary display as primary. In none did I have anything in the DE's configuration specifying the primary, nor the relative display positions.
 
Old 01-16-2022, 06:14 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by makem View Post
Test what manually and how?
The command:
Code:
xrandr --output NAME --primary
in a terminal.
 
Old 01-16-2022, 07:32 AM   #12
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Instead of xrandr, try /etc/X11/xorg.conf:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "amdIGP"
	Option  "Monitor-DisplayPort-0" "amdDP"   # amdgpu DP
	Option  "Monitor-HDMI-A-0"	"amdHDMI" # amdgpu HDMI
EndSection
Section "Monitor"
        Identifier      "amdDP"
        Option          "Primary"       "true"
EndSection
Section "Monitor"
        Identifier      "amdHDMI"
        Option          "above"       "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenLower"
        Device          "amdIGP"
        Monitor         "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenUpper"
        Device          "amdIGP"
        Monitor         "amdHDMI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.10.0-10-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
    parameters: BOOT_IMAGE=/vmlinuz root=LABEL=<filter> noresume
    ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0
    radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity R14.0.12 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
    dm: TDM Distro: Debian GNU/Linux 11 (bullseye)
Machine:
  Type: Desktop Mobo: ASRock model: FM2A88X Extreme6+ serial: <filter>
    UEFI: American Megatrends v: P4.20 date: 01/13/2016
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu
    v: kernel alternate: radeon bus-ID: 00:01.0 chip-ID: 1002:1313
    class-ID: 0300
  Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x2520 s-dpi: 120 s-size: 541x533mm (21.3x21.0")
    s-diag: 759mm (29.9")
  Monitor-1: DisplayPort-0 res: 2560x1440 hz: 60 dpi: 109
    size: 598x336mm (23.5x13.2") diag: 686mm (27")
  Monitor-2: HDMI-A-0 res: 2560x1080 hz: 60 dpi: 97
    size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: AMD KAVERI (DRM 3.40.0 5.10.0-10-amd64 LLVM 11.0.1)
    v: 4.6 Mesa 20.3.5 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 2560 x 2520, maximum 16384 x 16384
HDMI-A-0 connected 2560x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm
DisplayPort-0 connected primary 2560x1440+0+1080 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95*+  74.92  
   2560x1080     60.00*+
#
Naturally you'll need the subsitute the appropriate device Option names for mine. I have no NVidia cards with both DP and HDMI ports to test with. Substitute right-of for above. I used above to verify it actually works, as right-of for secondary display is the default. Then I tried another PC without any location option, resulting in the secondary to the right of the primary:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "amdIGP"
	Option  "Monitor-DisplayPort-0"	"amdDP"   # amdgpu DP
	Option  "Monitor-HDMI-A-0"	"amdHDMI" # amdgpu HDMI
EndSection
Section "Monitor"
        Identifier      "amdDP"
        Option          "Primary"       "true"
EndSection
Section "Monitor"
        Identifier      "amdHDMI"
#        Option          "above"       "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenLeft"
        Device          "amdIGP"
        Monitor         "amdDP"
EndSection
Section "Screen"
        Identifier      "ScreenRight"
        Device          "amdIGP"
        Monitor         "amdHDMI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
    parameters: BOOT_IMAGE=/vmlinuz root=LABEL=<filter> noresume
    ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0
    radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity R14.0.12 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
    dm: TDM Distro: Debian GNU/Linux 11 (bullseye)
Machine:
  Type: Desktop Mobo: ASUSTeK model: A88X-PRO v: Rev X.0x serial: <filter>
    UEFI: American Megatrends v: 2603 date: 03/10/2016
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASUSTeK driver: amdgpu
    v: kernel alternate: radeon bus-ID: 00:01.0 chip-ID: 1002:130f
    class-ID: 0300
  Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa alternate: ati display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 96 s-size: 1354x381mm (53.3x15.0")
    s-diag: 1407mm (55.4")
  Monitor-1: DisplayPort-0 res: 2560x1440 hz: 60 dpi: 109
    size: 598x336mm (23.5x13.2") diag: 686mm (27")
  Monitor-2: HDMI-A-0 res: 2560x1080 hz: 60 dpi: 97
    size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: AMD KAVERI (DRM 3.40.0 5.10.0-9-amd64 LLVM 11.0.1)
    v: 4.6 Mesa 20.3.5 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 5120 x 1440, maximum 16384 x 16384
HDMI-A-0 connected 2560x1080+2560+0 (normal left inverted right x axis y axis) 673mm x 284mm
DisplayPort-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   2560x1440     59.95*+  74.92  
   2560x1080     60.00*+
#
Here's one using an NVidia GPU, HDMI & DVI, where by default the DVI acts as primary:
Code:
# cat /etc/X11/xorg.conf
Section "Device"
	Identifier      "nvGPU"
	Option  "Monitor-DVI-I-1"	"secDVI"  # nvidia DVI
	Option  "Monitor-HDMI-1"	"priHDMI" # nvidia HDMI
EndSection
Section "Monitor"
        Identifier	"priHDMI"
        Option		"Primary"	"true"
EndSection
Section "Monitor"
        Identifier	"secDVI
        Option		"right-of"	"priHDMI"
EndSection
Section "Screen"
        Identifier	"ScreenLeft"
        Device		"nvGPU"
        Monitor		"priHDMI"
EndSection
Section "Screen"
        Identifier	"ScreenRight"
        Device		"nvGPU"
        Monitor		"secDVI"
EndSection
# inxi -GMSayz
System:
  Kernel: 5.15.14-200.fc35.x86_64 x86_64 bits: 64 compiler: gcc
  v: 2.37-10.fc35
  parameters: ro root=LABEL=<filter> audit=0 ipv6.disable=1 net.ifnames=0
  audit=0 plymouth.enable=0 noresume mitigations=auto consoleblank=0 selinux=0
  Desktop: Trinity R14.0.11 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 vt: 7
  dm: TDM Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Desktop Mobo: Gigabyte model: GA-970A-D3 serial: N/A BIOS: Award
  v: F10 date: 05/30/2012
Graphics:
  Device-1: NVIDIA GF108 [GeForce GT 630] vendor: Gigabyte driver: nouveau
  v: kernel bus-ID: 01:00.0 chip-ID: 10de:0f00 class-ID: 0300
  Display: x11 server: X.Org 1.20.14 driver: loaded: modesetting
  unloaded: fbdev,vesa display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 120 s-size: 812x254mm (32.0x10.0")
  s-diag: 851mm (33.5")
  Monitor-1: HDMI-1 res: 1920x1200 hz: 60 dpi: 94 size: 519x324mm (20.4x12.8")
  diag: 612mm (24.1")
  Monitor-2: DVI-I-1 res: 1920x1080 hz: 60 dpi: 72
  size: 673x284mm (26.5x11.2") diag: 730mm (28.8")
  OpenGL: renderer: NVC1 v: 4.3 Mesa 21.3.3 direct render: Yes
# xrandr | egrep 'onnect|creen|\*' | grep -v disconn | sort -r
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 16384 x 16384
HDMI-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 324mm
DVI-I-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 673mm x 284mm
   1920x1200     59.95*+
   1920x1080     59.96*   60.00    59.93  
#
Each of these three installations by default put the login greeter on the default secondary display, but using /etc/X11/xorg.conf, moved it to the configured primary display. The DE also used the /etc/X11/xorg.conf configured primary display as primary. In none did I have anything in the DE's configuration specifying the primary, nor the relative display positions.
This is my xorg.conf:

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Microstep MSI G241"
    HorizSync       180.0 - 180.0
    VertRefresh     48.0 - 144.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3060"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DP-0: 1920x1080_144 +0+0, HDMI-0: 1920x1080_60 +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Everything refers to "0" and I don't see a separate mention of the second monitor except under metamodes

Last edited by makem; 01-16-2022 at 07:35 AM.
 
Old 01-16-2022, 07:14 PM   #13
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
The command:
Code:
xrandr --output NAME --primary
in a terminal.
Code:
makem@makems-TUF:~$ xrandr --output Microstep 24 --primary
xrandr: unrecognized option '24'
Try 'xrandr --help' for more information.
makem@makems-TUF:~$ xrandr --output "Microstep 24" --primary
warning: output Microstep 24 not found; ignoring
makem@makems-TUF:~$ xrandr --output Microstep24 --primary
warning: output Microstep24 not found; ignoring
makem@makems-TUF:~$xrandr --output Microstep --primary
warning: output Microstep not found; ignoring
makem@makems-TUF:~$xrandr --output "Microstep MSI G241" --primary
warning: output Microstep MSI G241 not found; ignoring
makem@makems-TUF:~$
In Ubuntu "Display" settings the primary monitor NAME is Microstep 24 (space between Microstep and 24)

In xorg.conf the primary monitor name is Microstep MSI G241
 
Old 01-16-2022, 08:04 PM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Possible output names are found as xrandr --listproviders output, so in your case probably DP-1 and HDMI-1.

Sometimes 0 means "off" or "no", sometimes it means a starting location, while other times it really means the first something or other, which often means the only something or other. Seeing 0 as a component of an identifier is a personal annoyance. Identifiers don't have any intrinsic meaning, just like one's parents can name a child anything, because it's no more than a moniker.

I never use NVidia's drivers, so can't know exactly what to expect in one of its xorg.conf files. Normally for a two display configuration, one expects two 'Section "Monitor"'s and two 'Section "Screen"'s. Was your file generated while only one display was connected?

Mentions of input devices in xorg.conf are wholly unnecessary, as Xorg manages those automagically.

I'd try running without any xorg.conf file if you haven't already. If that doesn't work any better, I'd try commenting out the Xinerama line and trying, but instead of any more alteration of the existing file, I'd try having NVidia's setup tool generate a new file to see if it contains pairs of Monitor & Screen sections, and if it works any better.

Beyond the above, the only recommendations I have left to make are:
  1. trying without NVidia's drivers installed
  2. contacting NVidia support
  3. building your own xorg.conf based on one of mine

Last edited by mrmazda; 01-16-2022 at 08:06 PM.
 
Old 01-17-2022, 07:32 AM   #15
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Possible output names are found as xrandr --listproviders output, so in your case probably DP-1 and HDMI-1.

Sometimes 0 means "off" or "no", sometimes it means a starting location, while other times it really means the first something or other, which often means the only something or other. Seeing 0 as a component of an identifier is a personal annoyance. Identifiers don't have any intrinsic meaning, just like one's parents can name a child anything, because it's no more than a moniker.

I never use NVidia's drivers, so can't know exactly what to expect in one of its xorg.conf files. Normally for a two display configuration, one expects two 'Section "Monitor"'s and two 'Section "Screen"'s. Was your file generated while only one display was connected?

Mentions of input devices in xorg.conf are wholly unnecessary, as Xorg manages those automagically.

I'd try running without any xorg.conf file if you haven't already. If that doesn't work any better, I'd try commenting out the Xinerama line and trying, but instead of any more alteration of the existing file, I'd try having NVidia's setup tool generate a new file to see if it contains pairs of Monitor & Screen sections, and if it works any better.

Beyond the above, the only recommendations I have left to make are:
  1. trying without NVidia's drivers installed
  2. contacting NVidia support
  3. building your own xorg.conf based on one of mine
I thank you for your time and help, however I have tried all your suggestions except making my own xorg.conf. Two reasons for that, 1. I don't need an xorg.conf - it does nothing to change the circumstances. 2. I am not confident enough have been shut out without a display twice in other attempts.

Yes, I have always had both monitors powered up at every attempt. Like you, I expected two entries for each subject. I even tried adding my own based on what was already there but on boot, after grub a red warning error popped up and disappeared. I was without a display but know how to fix that.

Nvidia's tool only repeats what is/was in xorg.conf from the beginning - no dual entries.

I used Nouveau drivers and they only found the primary screen so I gave up on them.

I have not tried your "commenting out the Xinerama line" but will have one last try and if it fails I will not be back to this thread.

Last edited by makem; 01-17-2022 at 07:36 AM.
 
  


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] lightdm-session error message after removal of lightdm rng Linux - General 3 08-28-2017 02:48 PM
LXer: Simple LightDM Manager: Change The LightDM Background Or Logo Using A GUI LXer Syndicated Linux News 0 10-05-2011 05:41 PM
LXer: Ubuntu 11.10 Latest Updates Revealed The New LightDM Login Theme | Video Preview LXer Syndicated Linux News 0 08-12-2011 12:21 AM
LXer: LightDM Display Manager In Ubuntu 11.10 Oneiric Ocelot | Screenshots | Video Preview LXer Syndicated Linux News 0 07-13-2011 11:30 PM
LXer: The Three Button Mouse Phenomenon: A cultural trait found in those who love the LXer Syndicated Linux News 0 08-14-2009 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10: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