LukeH
May 29, 2022, 1:52pm
1
Hi, having issues getting external monitors to work with my laptop. The laptop is a Lenovo Legion
$ inxi -G ✔
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
v: 510.73.05
Device-2: AMD Cezanne driver: amdgpu v: kernel
Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
compositor: kwin_wayland driver: X: loaded: modesetting gpu: nvidia,amdgpu
resolution: 1920x1080
OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.41-1-MANJARO)
v: 4.6 Mesa 22.0.4
Any ideas?
post the full output:
inxi -Fazy
grau
May 29, 2022, 6:23pm
3
Also please describe in more detail, exactly what issue you experience. Is it not recognized, does it flicker, not support a specific resolution, …
LukeH
May 31, 2022, 8:21am
4
@brahma Yes, thank you:
inxi -Fazy ✔
System:
Kernel: 5.15.41-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=b0c1b620-4a51-4d52-983b-e9774711e237 rw acpi_backlight=vendor
quiet apparmor=1 security=apparmor udev.log_priority=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
wm: kwin_wayland vt: 2 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82JU v: Legion 5 15ACH6H
serial: <superuser required> Chassis: type: 10 v: Legion 5 15ACH6H
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
serial: <superuser required> UEFI: LENOVO v: GKCN46WW date: 10/01/2021
Battery:
ID-1: BAT0 charge: 43.6 Wh (71.0%) condition: 61.4/60.0 Wh (102.3%)
volts: 15.7 min: 15.4 model: Celxpert L20C4PC0 type: Li-poly
serial: <filter> status: discharging cycles: 6
CPU:
Info: model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000C
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 2679 high: 3881 min/max: 1200/3300 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3474 2: 2757
3: 1235 4: 1690 5: 2565 6: 3720 7: 2212 8: 3881 9: 2530 10: 3008 11: 2178
12: 2900 bogomips: 79090
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: Lenovo
driver: nvidia v: 510.73.05 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-05) arch: Ampere pcie: gen: 2 speed: 5 GT/s
lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:24dd class-ID: 0300
Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1
empty: none bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
compositor: kwin_wayland driver: X: loaded: modesetting gpu: nvidia,amdgpu
display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A modes: N/A
OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.41-1-MANJARO)
v: 4.6 Mesa 22.0.4 direct render: Yes
Audio:
Device-1: NVIDIA GA104 High Definition Audio driver: snd_hda_intel v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:228b class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x pcie: gen: 3
speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.15.41-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp4s0 state: up mac: <filter>
IF-ID-1: br-dcd89bf8ef45 state: up speed: 10000 Mbps duplex: unknown
mac: <filter>
IF-ID-2: docker0 state: down mac: <filter>
IF-ID-3: veth2f71e41 state: up speed: 10000 Mbps duplex: full
mac: <filter>
IF-ID-4: veth60c541e state: up speed: 10000 Mbps duplex: full
mac: <filter>
IF-ID-5: vethd5aeb88 state: up speed: 10000 Mbps duplex: full
mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-4:3
chip-ID: 8087:0029 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 6 state: up address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 30.69 GiB (6.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: PC SN530 SDBPMPZ-512G-1101 size: 476.94 GiB block-size:
physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
serial: <filter> rev: 21160001 temp: 30.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
used: 30.69 GiB (6.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 39.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 469 Uptime: 1d 19h 55m wakeups: 19 Memory: 13.57 GiB
used: 9.53 GiB (70.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1343 lib: 342 flatpak: 0
Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.16
@grau
No connection at all. It worked when I first installed Manjaro (I believe free drivers were used at this point), but updating to hybrid and some other changes seems to have caused the issue. With free drivers I recall having issues registering the correct refresh rate for my laptop display – 60hz vs 165hz
For reference:
mhwd -li ✔
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime 2021.12.18 false PCI
video-linux 2018.05.04 true PCI
Warning: No installed USB configs!
and output from:
find /etc/X11/ -name "*.conf"
LukeH
June 2, 2022, 9:13am
6
> find /etc/X11/ -name "*.conf" ✔
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/10-optimus-manager.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf
do you have still installed optimus manager?
LukeH
June 2, 2022, 9:48am
8
I am not sure how to verify this. But I can’t find it when looking for it the most obvious places.
open the add/remove software app and search for optimus, and click on the left side on installed
or use this command:
pacman -Qs optimus
1 Like
LukeH
June 2, 2022, 10:09am
10
Thank you. It is not present, only optimus-manager-git is installed. Should I proceed with installing it?
brahma
June 2, 2022, 12:30pm
11
you already have it installed, so no … i meant that if you have it installed, to uninstall it, then reboot and test if you can connect…
LukeH
June 2, 2022, 2:22pm
12
Tried reinstalling (including different versions) rebooting between each to no avail. Any other ideas – this is very important as the other issue pertains to managing the screen brightness on my laptop.
brahma
June 2, 2022, 2:29pm
13
so uninstall the optimus again, then reboot and post again output from this:
find /etc/X11/ -name "*.conf"
Olli
June 2, 2022, 2:52pm
14
wayland and nvidia is a bad choice. is optimus enabled and active ?
please post the output of
systemctl status optimus-manager
LukeH
June 3, 2022, 9:19am
15
systemctl status optimus-manager ✔
● optimus-manager.service - Optimus Manager Commands Daemon
Loaded: loaded (/usr/lib/systemd/system/optimus-manager.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-06-02 16:19:50 CEST; 18h ago
Process: 497 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_daemon_start (code=exited, status=0/>
Process: 577 ExecStartPre=/usr/bin/python3 -u -m optimus_manager.hooks.pre_xorg_start (code=exited, status=0/SU>
Main PID: 679 (python3)
Tasks: 1 (limit: 16584)
Memory: 53.9M
CPU: 1.536s
CGroup: /system.slice/optimus-manager.service
└─ 679 /usr/bin/python3 -u -m optimus_manager.daemon
Jun 02 16:19:49 user-pc python3[577]: [1343] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia>
Jun 02 16:19:49 user-pc python3[577]: [1343] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset>
Jun 02 16:19:49 user-pc python3[577]: [1349] INFO: switching=none, nothing to do
Jun 02 16:19:49 user-pc python3[577]: [1385] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manag>
Jun 02 16:19:49 user-pc python3[577]: [1385] INFO: Writing state {'type': 'pending_post_xorg_start'>
Jun 02 16:19:49 user-pc python3[577]: [1385] INFO: Xorg pre-start hook completed successfully.
Jun 02 16:19:50 user-pc systemd[1]: Started Optimus Manager Commands Daemon.
Jun 02 16:19:50 user-pc python3[679]: [2] INFO: # Commands daemon
Jun 02 16:19:50 user-pc python3[679]: [2] INFO: Opening UNIX socket
Jun 02 16:19:50 user-pc python3[679]: [2] INFO: Awaiting commands
LukeH
June 3, 2022, 9:26am
16
Before reboot:
find /etc/X11/ -name "*.conf" ✔
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf
After reboot:
find /etc/X11/ -name "*.conf" ✔
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf
brahma
June 3, 2022, 9:28am
17
so you uninstall optimus? and also are you running on wayland?
LukeH
June 3, 2022, 12:26pm
18
I am not sure what it means to run on Wayland, but Wayland is installed.
brahma
June 3, 2022, 12:32pm
19
run this command:
inxi -Gy1
and is optimus uninstalled?
LukeH
June 6, 2022, 8:13am
20
~ find /etc/X11/ -name "*.conf" ✔
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/mhwd.d/nvidia.conf
~ inxi -Gy1 ✔
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
driver: nvidia
v: 510.73.05
Device-2: AMD Cezanne
driver: amdgpu
v: kernel
Display: wayland
server: X.org
v: 1.21.1.3
with: Xwayland
v: 22.1.1
compositor: kwin_wayland
driver:
X:
loaded: amdgpu,nvidia
unloaded: modesetting,nouveau
gpu: nvidia,amdgpu
resolution: 1920x1080
OpenGL:
renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.42 5.15.41-1-MANJARO)
v: 4.6 Mesa 22.0.4
~ systemctl status optimus-manager ✔
Unit optimus-manager.service could not be found.
@Olli