I installed EndeavourOS in my Intel+Nvidia laptop, and everything seemed to work correctly initially. After a few days, I noticed some malfunctions with the HDMI port. When I connect the cable, I don’t get any output, and the system doesn’t recognize the connected screen. I have no issues on Windows. How can I figure out what to do?
I also tried to install “optimus manager” and reboot into nvidia mode but it seems not work.
$ inxi -Faz
System:
Kernel: 6.9.9-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
clocksource: tsc avail: acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux
root=UUID=2ffe4ffa-b996-4f7d-b9ef-3c10c301df5f rw rootflags=subvol=@
nowatchdog nvme_load=YES
rd.luks.uuid=2f3b103c-cdde-4ce8-9374-bef8fa374391 loglevel=3
Desktop: KDE Plasma v: 6.1.2 tk: Qt v: N/A info: frameworks v: 6.3.0
wm: kwin_wayland tools: avail: hyprlock,swayidle,swaylock vt: 1 dm: SDDM
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Laptop System: Acer product: Nitro AN515-57 v: V1.18
serial: <superuser required>
Mobo: TGL model: Scala_TLS v: V1.18 serial: <superuser required>
part-nu: 0000000000000000 uuid: <superuser required> UEFI: Insyde v: 1.18
date: 06/22/2022
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x50
# ...
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Acer Incorporated ALI
driver: i915 v: kernel alternate: xe arch: Gen-12.1 process: Intel 10nm
built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 0000:00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 555.58.02
alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current (as of
2024-06; EOL~2026-12-xx) arch: Ampere code: GAxxx process: TSMC n7 (7nm)
built: 2020-2023 bus-ID: 0000:01:00.0 chip-ID: 10de:25a0 class-ID: 0300
$ lsmod |grep nvidia
nvidia_modeset 1617920 1
nvidia_uvm 6676480 0
nvidia 61001728 20 nvidia_uvm,nvidia_modeset
video 77824 4 acer_wmi,xe,i915,nvidia_modeset
$ lspci -k | grep -i "VGA"
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
$ xrandr --listmonitors # HDMI connected
Monitors: 1
0: +*eDP-1 1920/344x1080/193+0+0 eDP-1
Can you show inxi -Ga
This is a hybrid laptop. Are you using a method to switch to nvidia gpu? I am assuming it’s rendering on the intel which is why i asked for another command to show that.
$ inxi -Ga
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Acer Incorporated ALI
driver: i915 v: kernel alternate: xe arch: Gen-12.1 process: Intel 10nm
built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 0000:00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 555.58.02
alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current (as of
2024-06; EOL~2026-12-xx) arch: Ampere code: GAxxx process: TSMC n7 (7nm)
built: 2020-2023 bus-ID: 0000:01:00.0 chip-ID: 10de:25a0 class-ID: 0300
Device-3: Quanta HD User Facing driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-9:3 chip-ID: 0408:a061
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_wayland driver: X: loaded: modesetting failed: nvidia
dri: iris gpu: i915 display-ID: 0
Monitor-1: eDP-1 model: BOE Display 0x08b3 built: 2019 res: 1920x1080
dpi: 139 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 398mm (15.7")
ratio: 16:9 modes: 1920x1080
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 1 drv: iris device: 2 drv: swrast surfaceless:
drv: nvidia wayland: drv: iris x11: drv: iris inactive: gbm
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.3-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
device-ID: 8086:9a60 memory: 15.2 GiB unified: yes display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 2 device: 0 type: discrete-gpu name: NVIDIA
GeForce RTX 3050 Ti Laptop GPU driver: nvidia v: 555.58.02
device-ID: 10de:25a0 surfaces: xcb,xlib
Yes it’s rendering on Intel gpu. Do you use a method to switch? Does your laptop have settings in the Bios for integrated, dedicated and hybrid for the gpu output?
I check into my BIOS but I didn’t find nothing. For Optimus I followed this guide that I found into Welcome menu. I reboot my pc after launch:
$ sudo set-nvidia.sh
$ which set-nvidia.sh
/usr/local/bin/set-nvidia.sh
$ cat /usr/local/bin/set-nvidia.sh
#!/bin/sh
echo 'Removing intel only mode setup......'
rm -rf /etc/X11/xorg.conf.d/99-intel.conf
rm -rf /etc/modprobe.d/99-intel.conf
rm -rf /etc/modules-load.d/99-intel.conf
rm -rf /usr/share/sddm/scripts/Xsetup
sleep 1
echo 'Setting nvidia prime mode.......'
cp /etc/switch/nvidia/nvidia-xorg.conf /etc/X11/xorg.conf.d/99-nvidia.conf
cp /etc/switch/nvidia/nvidia-modprobe.conf /etc/modprobe.d/99-nvidia.conf
cp /etc/switch/nvidia/nvidia-modules.conf /etc/modules-load.d/99-nvidia.conf
cp /etc/switch/nvidia/optimus.sh /usr/share/sddm/scripts/Xsetup
sleep 1
echo 'Done! After reboot you will be using nvidia prime mode.'
So then if that works then you can use prime to switch. Not sure if you have to switch in order to output to the HDMI which I’m assuming is hooked to an external monitor?
I think it doesn’t work. I tried to launch it and reboot but I still can’t see my monitor attached or hdmi output.
jake99
July 15, 2024, 10:09pm
8
Inxi shows that nvidia driver failed for some reason. Can you provide your journal/logs?
P.S. That guide you used is obsolete, none of those scripts are needed anymore with the new nvidia drivers and wayland. It was relevant like 4 years ago IIRC.
1 Like
Ya, I just don’t know when users post stuff that I’m not familiar with. I just wondered if it has to be switched to nvidia in order to output through the HDMI port? Some laptops automatically output to an external source with the nvidia drivers via Hdmi or Displayport. I’m just assuming this is how it is hooked up.
jake99
July 15, 2024, 11:48pm
10
Short answer: it does not need to be switched to nvidia.
Long answer: Hybrid laptops are a total nightmare, and everything really really depends on the internal mux/muxless setup. There is Optimus, but also the newer models use Advanced Optimus (easy way to spot those: when lspci shows vga+3dcontroller/accelerator it’s optimus, if it shows two vgas it’s advanced optimus), and there is something in between that HP puts in their machines.
In any case, when in hybrid mode, everything should happen “magically”, but new nvidia driver needs to be loaded into kernel space even if there is no “direct” physical display output attached/muxed to the nvidia card.
1 Like
$ journalctl -k | grep nvidia
lug 16 09:18:16 noname kernel: nvidia: module license 'NVIDIA' taints kernel.
lug 16 09:18:16 noname kernel: nvidia: module license taints kernel.
lug 16 09:18:16 noname kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lug 16 09:18:16 noname kernel: nvidia 0000:01:00.0: enabling device (0006 -> 0007)
lug 16 09:18:16 noname kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
lug 16 09:18:16 noname kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
lug 16 09:18:17 noname kernel: nvidia-uvm: Loaded the UVM driver, major device number 508.
lug 16 09:18:18 noname kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 555.58.02 Tue Jun 25 01:10:21 UTC 2024
$ journalctl -b | grep nvidia
lug 16 09:18:01 noname systemd-modules-load[213]: Module 'nvidia_uvm' is deny-listed (by kmod)
lug 16 09:18:10 noname systemd-modules-load[769]: Module 'nvidia' is deny-listed (by kmod)
lug 16 09:18:10 noname systemd-modules-load[769]: Module 'nvidia_drm' is deny-listed (by kmod)
lug 16 09:18:10 noname systemd-modules-load[769]: Module 'nvidia_uvm' is deny-listed (by kmod)
lug 16 09:18:16 noname kernel: nvidia: module license 'NVIDIA' taints kernel.
lug 16 09:18:16 noname kernel: nvidia: module license taints kernel.
lug 16 09:18:16 noname kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 510
lug 16 09:18:16 noname kernel: nvidia 0000:01:00.0: enabling device (0006 -> 0007)
lug 16 09:18:16 noname kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
lug 16 09:18:16 noname (udev-worker)[864]: nvidia: Process '/bin/mknod -m 666 /dev/nvidiactl c 195 255' failed with exit code 1.
lug 16 09:18:16 noname kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
lug 16 09:18:17 noname kernel: nvidia-uvm: Loaded the UVM driver, major device number 508.
lug 16 09:18:18 noname kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 555.58.02 Tue Jun 25 01:10:21 UTC 2024
$ sudo dmesg | grep nvidia
[sudo] password di user:
[ 14.971401] nvidia: module license 'NVIDIA' taints kernel.
[ 14.971417] nvidia: module license taints kernel.
[ 15.330014] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[ 15.331710] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[ 15.331961] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 15.474077] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 16.853730] nvidia-uvm: Loaded the UVM driver, major device number 508.
[ 17.057802] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 555.58.02 Tue Jun 25 01:10:21 UTC 2024
jake99:
Short answer: it does not need to be switched to nvidia.
Long answer: Hybrid laptops are a total nightmare, and everything really really depends on the internal mux/muxless setup. There is Optimus, but also the newer models use Advanced Optimus (easy way to spot those: when lspci shows vga+3dcontroller/accelerator it’s optimus, if it shows two vgas it’s advanced optimus), and there is something in between that HP puts in their machines.
This is the problem because this is an Acer laptop and their manuals give absolutely no information and they aren’t the only ones. I don’t own any hybrid laptops nor would i ever buy one for this reason. All these manufacturers design their hardware around Windows and their manuals Suck! Along with a lot of their hardware.
Exactly and no one knows what how these laptops are designed to work because they give you no information.
This is why i ask if the bios has these settings.
jake99
July 17, 2024, 1:54pm
14
Can you post the full journal? This really does not show much, but I can see that nvidia drm is never initialized. I’m guessing that it crashes right after nvidia-modeset tries to load the nvidia kernel module.
it should look something like this
Jul 17 15:18:15 kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 555.58.02 Tue Jun 25 01:10:21 UTC 2024
Jul 17 15:18:15 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
but there is no drm line in the greps from your journal/dmesg
petsam
July 17, 2024, 2:29pm
15
Xorg logs would give more info (~/.local/share/{xorg,sddm}
I guess for wayland, or in /var/log/
, filtering timestamps ).
petsam
July 18, 2024, 2:46pm
17
First, the Xorg logs will give better info
Even with journal, it shows nvidia is blocked.
lug 18 09:26:05 noname systemd-modules-load[215]: Module 'nvidia' is deny-listed (by kmod)
As explained, optimus-switch is not trustworthy, especially after your system failure. Undo all changes were made by this (read their developer instructions how to uninstall ) and remove this package (the same way you installed it).
Reboot and start from the beginning (post inxi, journal and Xorg logs).
1 Like
Tomorrow I will do and send it again. Why Xorg? I am on Wayland.
petsam
July 18, 2024, 8:10pm
19
What is the equivalent to Xorg log for Wayland?
Find it and post it.
Or do as requested ($HOME/.local file).
$ inxi -Ga
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Acer Incorporated ALI
driver: i915 v: kernel alternate: xe arch: Gen-12.1 process: Intel 10nm
built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 0000:00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile]
vendor: Acer Incorporated ALI driver: N/A alternate: nouveau, nvidia_drm,
nvidia non-free: 550.xx+ status: current (as of 2024-06; EOL~2026-12-xx)
arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023
bus-ID: 0000:01:00.0 chip-ID: 10de:25a0 class-ID: 0300
Device-3: Quanta HD User Facing driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-9:3 chip-ID: 0408:a061
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_wayland driver: X: loaded: intel unloaded: modesetting
alternate: fbdev,vesa dri: i965 gpu: i915 display-ID: 0
Monitor-1: eDP-1 model: BOE Display 0x08b3 built: 2019 res: 1920x1080
dpi: 139 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 398mm (15.7")
ratio: 16:9 modes: 1920x1080
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 1 drv: iris device: 2 drv: swrast surfaceless:
drv: nvidia wayland: drv: iris x11: drv: iris inactive: gbm
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.3-arch1.1
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
device-ID: 8086:9a60 memory: 15.2 GiB unified: yes display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 2 device: 0 type: discrete-gpu name: NVIDIA
GeForce RTX 3050 Ti Laptop GPU driver: nvidia v: 555.58.02
device-ID: 10de:25a0 surfaces: xcb,xlib
$ journalctl -b
$ journalctl -k