Can't get my external monitor to work

You need a kernel parameter.
At grub menu, press E to edit command line, find the line that starts with linux and add this at the end

systemd.restore_state=0

Then press F10 to boot.
I hope the rest of the boot goes fine.

2 Likes

Okay! systemd.restore_state=0 didn't fix it, still got stuck. I decided to do a fresh install, removed the chaotic tkg driver, installed video-linux and video-nvidia-dkms, removed the file 90-mhwd.conf and now I'm in again. Before uninstalling the drivers, my second screen appeared on the System Settings Monitors applet, just like previous screenshots, but after I removed it and installed the others, it's not appearing anymore.

So start from the start, post info.
inxi, xorg conf, modules-load, mkinitcpio modules, xorg log etc.
(in post, not bin)

╰─λ inxi -SMGxxxaz
System:    Kernel: 5.10.12-116-tkg-bmq x86_64 bits: 64 compiler: gcc v: 10.2.1
           parameters: intel_pstate=passive BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-bmq
           root=UUID=76c7646c-4b45-4e77-b0b3-76627fb576e4 rw rootflags=subvol=@ quiet splash
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
           loglevel=3
           Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 dm: SDDM
           Distro: Garuda Linux
Machine:   Type: Laptop System: Eluktronics product: RP-17 v: Standard serial: <filter>
           Mobo: Eluktronics model: N/A v: Standard serial: <filter> UEFI: American Megatrends
           v: N.1.15ELU03 date: 08/07/2020
Graphics:  Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Tongfang Hongkong Limited
           driver: N/A alternate: nouveau bus ID: 01:00.0 chip ID: 10de:1f15
           Device-2: AMD Renoir vendor: Tongfang Hongkong Limited driver: amdgpu v: kernel
           bus ID: 05:00.0 chip ID: 1002:1636
           Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus ID: 3-4:6
           chip ID: 04f2:b641
           Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: loaded: amdgpu,ati
           unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
           s-diag: 582mm (22.9")
           Monitor-1: eDP res: 1920x1080 hz: 144 dpi: 128 size: 382x215mm (15.0x8.5")
           diag: 438mm (17.3")
           OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.12-116-tkg-bmq LLVM 11.0.1)
           v: 4.6 Mesa 20.3.4 direct render: Yes

╰─λ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2020.12.03                true            PCI
     video-nvidia-dkms            2020.12.19               false            PCI


Warning: No installed USB configs!
╰─λ bash -c 'for Xconf in $(ls /etc/X11/xorg.conf.d/*.conf | grep -v keyboard); do echo -e "\n" $Xconf ; cat $Xconf ; done'

This shows no output.

╰─λ ls /etc/X11 | grep conf
drwxr-xr-x - root  1 Feb 10:53 xorg.conf.d
╰─λ ls
.rw-r--r-- 87 root  1 Feb 10:52 mhwd-gpu.conf
.rw-r--r--  7 root 25 Dec  2020 xow-uinput.conf
╰─λ cat /etc/modules-load.d/mhwd-gpu.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##

nvidia
nvidia-drm
nvidia-uvm
╰─λ cat /etc/modules-load.d/xow-uinput.conf
uinput

╰─λ cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
.
.
.

If you have saved the /etc/xorg.conf.d/mhwd.conf , post it.
Please, post your /var/log/Xorg.0.log (in garuda bin) after trying things bellow.

I guess the external monitor is enabled in kde settings. Can you see it in nvidia settings? Active? If so, generate nvidia xorg.conf , save it locally (home) and post it here.
Also post

xrandr
bash -c 'xrandr --prop | grep -E "connected|PRIME" '
2 Likes

I don't have /etc/xorg.conf.d/mhwd.conf.
Here's my /var/log/Xorg.0.log:

https://bin.garudalinux.org/?3078ee41f4a5f602#F7ESFKsCJ9ii8WQvLax1kA5MxvWEA9BNTyyy2dzAcfNa

╰─λ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
   1920x1080    144.00*+  60.00
   1680x1050    144.00
   1280x1024    144.00
   1440x900     144.00
   1280x800     144.00
   1280x720     144.00
   1024x768     144.00
   800x600      144.00
   640x480      144.00
╰─λ bash -c 'xrandr --prop | grep -E "connected|PRIME" '
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm

When I try to run nvidia-settings:

╰─λ nvidia-settings

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system

Should I install video-nvidia-prime-render-offload?

Yes.
It seems the previous un-installation was not proper, looks a mess.
Hopefully installing the new one will make things clean.
I suggest you use terminal utility mhwd, so you can clearly watch messages and provide info, if things go wrong.
Check usage

mhwd --help
1 Like
╰─λ sudo mhwd -i pci video-nvidia-prime-render-offload
Error: config 'video-nvidia-prime-render-offload' conflicts with config(s): video-nvidia-dkms

Should I uninstall dkms, then?

1 Like

Yes, please.

1 Like

Just in case, here's the log of the removal of dkms.

https://bin.garudalinux.org/?30539da9c2ab5292#a5U5j9a4K2UE55SRhpBwSzGsHp6WkauTxM6c9YTdqdW

And here's the log of the installation of prime.

https://bin.garudalinux.org/?89bbf2d1f804ed0f#J4Ct8YUxpwp5jupNdyFmjGyu7XquSSvik2Dh7HU7MnzQ

Apparently, it finished both tasks successfully.

It looks as expected.
Waiting for reboot… :stuck_out_tongue_winking_eye:

1 Like

Okay! I rebooted and now it recognizes my monitor again. However, it's the same as the beginning: I put it on the left and half of my laptop screen goes black.

╰─λ bash -c 'xrandr --prop | grep -E "connected|PRIME" '
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-0 disconnected (normal left inverted right x axis y axis)
	PRIME Synchronization: 1
DP-1-1 disconnected (normal left inverted right x axis y axis)
	PRIME Synchronization: 1
DP-1-2 disconnected (normal left inverted right x axis y axis)
	PRIME Synchronization: 1
DP-1-3 disconnected (normal left inverted right x axis y axis)
	PRIME Synchronization: 1
HDMI-1-0 connected (normal left inverted right x axis y axis)
	PRIME Synchronization: 1

I also generated the xorg.conf file.

╰─λ cat ~/Escritorio/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.39

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Post xorg log (/var/log) in bin.
Possibly in this path

~/.local/share/xorg/Xorg.0.log
2 Likes

Here it is!

https://bin.garudalinux.org/?ec2d8edf33c84490#DXaYmsxEkAM7qjCUW16yvNRh9FkQ59mkJ5p9gcypAVnH

Is this your actual time?

Time: Tue Feb 2 15:10:42 2021

Also check

xrandr --listproviders
1 Like

Time: Tue Feb 2 15:10:42 2021

Yup, it’s 15:50pm now.

╰─λ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:05:00.0
Provider 1: id: 0x1f7 cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 1 name:NVIDIA-G0
1 Like

Try this in terminal and then check if both monitors are usable

xrandr --setprovideroutputsource 0 1

This is the output:

╰─λ xrandr --setprovideroutputsource 0 1
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x1f7
  Serial number of failed request:  16
  Current serial number in output stream:  17
xrandr --setprovideroutputsource 0x1f7 0x54
1 Like

There was no output, so I guess it did work without problems. Put the monitor to the left and still get half a black screen on the laptop.