You are not logged in.

#1 2022-02-19 02:36:03

AngryBeing
Member
Registered: 2020-05-05
Posts: 12

[SOLVED] Laptop only outputting graphical session on HDMI display

Hello,

My Arch install is failing to boot into a graphical session on the undocked mode (laptop detached to monitor) after I performed a full system upgrade with:

# pacman -Syyu

It updated several packages, including the kernel and possibly Xorg and the (proprietary) Nvidia drivers. However, this might have done something funny to my settings (I was connected to an external display through HDMI at the time) and now my Arch session only boots to KDE if I am connected to said monitor. If the HDMI is detached and I attempt to run "exec startplasma-x11" on tty, then my screen flashes and quickly returns to tty without outputting any errors. I tried checking the logs with journalctl but nothing really helpful came out of it; no errors related to sddm or Xorg.
If I manually attempted to run sddm, it throwed "Could not start Display server on vt 1" error messages.
I managed to log again on Plasma through X11 using the HDMI monitor, but Plasma ONLY detects the external display, and not my laptop's native display for some odd reason. My laptop's display gets stuck on the "Starting version (...) -arch (...)" boot screen while the external display starts the Plasma session normally. Sddm also simply fails to boot if I'm not connected to the monitor.

I am trying to get my system working as it should, getting my laptop to display to its native screen on both docked and undocked modes.

My laptop is a Dell G15 with dual GPUs (Nvidia and Intel iGPU), which are:

01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)

Kernel version:

uname -r          
5.16.10-arch1-1

Plasma version:

plasmashell -v
plasmashell 5.24.1

X :


sudo X -version

X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux user-dellg155511 5.16.10-arch1-1 #1 SMP PREEMPT Wed, 16 Feb 2022 19:35:18 +0000 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=fa38849e-625d-484d-bb98-4270f848b116 rw quiet resume=UUID=3ae4a634-b486-4096-8664-d324ed653374 loglevel=3 audit=0 nvidia-drm.modeset=1
 
Current version of pixman: 0.40.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.

Nvidia:

sudo nvidia-smi
Fri Feb 18 23:29:56 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.54       Driver Version: 510.54       CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+

xorg.conf :

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 510.54

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/OTF"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/75dpi"
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "kmsdev"             	# <str>
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "DoubleShadow"       	# [<bool>]
        #Option     "Atomic"             	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
        #Option     "UseGammaLUT"        	# [<bool>]
        #Option     "AsyncFlipSecondaries" 	# [<bool>]
    Identifier     "Card1"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Viewport    0 0
        Depth       1
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    DefaultDepth    24
    SubSection     "Display"
        Viewport    0 0
        Depth       1
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

The only way I'm managing to get the graphical section to boot using the built-in display is getting into tty (ctrl+alt+f2) running Wayland instead:

# systemctl stop sddm
exec startplasma-wayland

But I want to fix my X setup.

Last edited by AngryBeing (2022-02-23 02:55:47)

Offline

#2 2022-02-19 16:40:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: [SOLVED] Laptop only outputting graphical session on HDMI display

Two questions.  Is there a reason you need an xorg.conf file?
Why do you use the 'y' twice in your pacman command?

You may want to use provide us your entire Xorg file.  Use a pastebin service, please.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2022-02-19 18:14:52

AngryBeing
Member
Registered: 2020-05-05
Posts: 12

Re: [SOLVED] Laptop only outputting graphical session on HDMI display

ewaller wrote:

Is there a reason you need an xorg.conf file?

I was troubleshooting other issues (namely refresh rate issues for my external display, and missing nvidia settings) and I ended up creating a xorg conf on those attempts.


ewaller wrote:

You may want to use provide us your entire Xorg file.  Use a pastebin service, please.

Sure, here it is

https://pastebin.com/j4gTVpWf

Offline

#4 2022-02-19 18:16:35

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Laptop only outputting graphical session on HDMI display

I believe that ewaller was asking you to post a complete xorg log file, not a repeat of the config which you've already posted.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-02-19 20:15:05

AngryBeing
Member
Registered: 2020-05-05
Posts: 12

Re: [SOLVED] Laptop only outputting graphical session on HDMI display

Slithery wrote:

I believe that ewaller was asking you to post a complete xorg log file, not a repeat of the config which you've already posted.

Xorg.0.log :

https://pastebin.com/kx2ymkYD

Xorg.1.log :

https://pastebin.com/AdyfyGWw

sddm.log :

https://pastebin.com/rgAS3QUX

Offline

#6 2022-02-23 02:54:25

AngryBeing
Member
Registered: 2020-05-05
Posts: 12

Re: [SOLVED] Laptop only outputting graphical session on HDMI display

I finally found a solution for this problem.

I found someone else having a similar issue to me, and I used the solutions pointed out there:

https://askubuntu.com/questions/1059965 … dia-driver

It seems that either emptying or removing the /etc/X11/xorg.conf file resets the xorg config which should restore the settings after you reboot the computer.
Then I enabled my laptop display through the KDE settings.

Word of advice, never use nvidia-xconfig.

Last edited by AngryBeing (2022-02-23 02:56:35)

Offline

Board footer

Powered by FluxBB