I have a laptop with AMD & Nvidia cards, latest Manjaro stable installed.
My laptop has an HDMI port and usb type-c 3.1 gen port, which supports video channel.
My aim is to connect 2 monitors at the same time. HDMI port works fine, but the type-c does not.
Tried different hubs/switchers. Almost all of them do not even show video port after connecting, but the one do show. It works on Windows without any additional settings, but on Manjaro I can only see a black screen while in the video configuration settings it is presented. I can switch on the display plugged in by this hub, but the configuration does not apply.
I am facing the next message using sudo dmesg -w command. Cannot map memory with base addr 0x7f14b9bb6000 and size of 0x7e9 pages
second via VGA → vga-to-hdmi switcher cable → HDMI (works, but not very clear image because of VGA connection to the monitor as I have only one HDMI cable now)
please do not pay attention on my simple vga-to-hdmi switcher as it is only used till I buy the second hdmi-hdmi cable
Summary
Screen 0: minimum 320 x 200, current 5760 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
1920x1080 120.00*+ 60.00
1680x1050 120.00
1280x1024 120.00
1440x900 120.00
1280x800 120.00
1280x720 120.00
1024x768 120.00
800x600 120.00
640x480 120.00
HDMI-A-0 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 476mm x 268mm
1920x1080 60.00*+ 59.94
1680x1050 59.88
1600x900 60.00
1280x1024 60.02
1440x900 59.90
1280x800 59.91
1280x720 60.00 59.94
1024x768 60.00
800x600 60.32
720x480 60.00 59.94
640x480 60.00 59.94
720x400 70.08
DP-1-0 connected
1920x1080 60.00 + 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 60.02
1280x800 59.81
1280x720 60.00 59.94
1024x768 60.00
800x600 60.32
720x576 50.00
720x480 59.94
640x480 59.94 59.93
DP-1-1 disconnected
1920x1080 (0x60) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1600x900 (0x64) 108.000MHz +HSync +VSync
h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
v: height 900 start 901 end 904 total 1000 clock 60.00Hz
1280x1024 (0x65) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1280x720 (0x68) 74.250MHz +HSync +VSync
h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz
v: height 720 start 725 end 730 total 750 clock 60.00Hz
1024x768 (0x6b) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x6c) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
720x480 (0x6f) 27.000MHz -HSync -VSync
h: width 720 start 736 end 798 total 858 skew 0 clock 31.47KHz
v: height 480 start 489 end 495 total 525 clock 59.94Hz
640x480 (0x71) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
After that you need to remove (back up) every display-related Xorg configuration: /etc/X11/xorg.conf and any such files in /etc/X11/xorg.cond.d/. (If you have 00-keyboard.conf, you don’t need to remove it, but you should remove 90-mhwd.conf, for example - if you’re unsure, ask.)
Then you need to reboot. If everything goes successfully, you can now run optimus-manager --switch nvidia after logging in, and use all external monitors.
There is a guide, but it’s quite old now, and has multiple unnecessary steps (e.g. you don’t need to concern yourself with bumblebee, you don’t need to remove manjaro-gdm-tweaks).
While there is no errors in the log file (whaaaaattt?)
Summary
[19] INFO: # Xorg pre-start hook
[19] INFO: Previous state was: {‘type’: ‘pending_pre_xorg_start’, ‘requested_mode’: ‘integrated’, ‘current_mode’: None}
[19] INFO: Requested mode is: integrated
[242] INFO: Available modules: [‘nouveau’, ‘nvidia’, ‘nvidia_drm’, ‘nvidia_modeset’, ‘nvidia_uvm’]
[329] INFO: No processes currently holding the Nvidia GPU
[329] INFO: Unloading modules [‘nvidia_drm’, ‘nvidia_modeset’, ‘nvidia_uvm’, ‘nvidia’] (if loaded)
[336] INFO: switching=none, nothing to do
[362] INFO: Loaded extra integrated-gpu Xorg options (0 lines)
[362] INFO: Loaded extra nvidia-gpu Xorg options (0 lines)
[363] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[363] INFO: Writing state {‘type’: ‘pending_post_xorg_start’, ‘switch_id’: ‘20210117T215837’, ‘requested_mode’: ‘integrated’}
[364] INFO: Xorg pre-start hook completed successfully.
Used workaround:
prime-offload
sudo optimus-manager --switch nvidia
Summary
WARNING : no power management option is currently enabled (this is the default since v1.2). Switching between GPUs will work but you will likely experience poor battery life.
Follow instructions at A guide to power management options · Askannz/optimus-manager Wiki · GitHub to enable power management.
If you have already enabled the new Runtime D3 power management inside the Nvidia driver (for Turing+ GPU + Coffee Lake+ CPU), you can safely ignore this warning.
WARNING : there is at least one Wayland session running on this computer. Wayland is not supported by this optimus-manager, so GPU switching may fail.
Continue anyway ? (y/N)
y
You are about to switch GPUs. This will forcibly close all graphical sessions and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)
y
Switching to mode : nvidia
I don’t see my monitor connected at all now… I mean nothing happens and no display showing in settings while connecting, xrandr -q shows only laptop’s main display.
Can you try what happens when you plug the hub in before booting? And post the output of inxi -Gazy and xrandr --listproviders after you switched to “nvidia” mode. And try to find the logs from around the time the system froze in journalctl (e.g. journalct -b -1 will show you the logs from previous boot until shutdown).
I plug in my HUB → system falls in freeze → I do the hard reboot → journalctl -b -1
Summary
– Journal begins at Wed 2020-12-30 01:30:26 EET, ends at Wed 2021-01-20 14:37:02 EET. –
Jan 20 14:29:42 denis-zephyrus-g14 kernel: Linux version 5.9.16-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon Dec 21 22:00:46 UTC 2020
Jan 20 14:29:42 denis-zephyrus-g14 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 root=UUID=4c849827-bda6-4484-b090-0da7780e51cf rw quiet splash apparmor=1 security=apparmor >
Jan 20 14:29:42 denis-zephyrus-g14 kernel: KERNEL supported cpus:
Jan 20 14:29:42 denis-zephyrus-g14 kernel: Intel GenuineIntel
Jan 20 14:29:42 denis-zephyrus-g14 kernel: AMD AuthenticAMD
Jan 20 14:29:42 denis-zephyrus-g14 kernel: Hygon HygonGenuine
Jan 20 14:29:42 denis-zephyrus-g14 kernel: Centaur CentaurHauls
Jan 20 14:29:42 denis-zephyrus-g14 kernel: zhaoxin Shanghai
Jan 20 14:29:42 denis-zephyrus-g14 kernel: x86/fpu: Supporting XSAVE feature 0x001: ‘x87 floating point registers’
Jan 20 14:29:42 denis-zephyrus-g14 kernel: x86/fpu: Supporting XSAVE feature 0x002: ‘SSE registers’
Jan 20 14:29:42 denis-zephyrus-g14 kernel: x86/fpu: Supporting XSAVE feature 0x004: ‘AVX registers’
Jan 20 14:29:42 denis-zephyrus-g14 kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Jan 20 14:29:42 denis-zephyrus-g14 kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using ‘compacted’ format.
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-provided physical RAM map:
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009bfefff] usable
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x0000000009bff000-0x0000000009ffffff] reserved
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x000000000a200000-0x000000000a20cfff] ACPI NVS
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x000000000a20d000-0x00000000aaec2fff] usable
Jan 20 14:29:42 denis-zephyrus-g14 kernel: BIOS-e820: [mem 0x00000000aaec3000-0x00000000ac3ddfff] reserved
But I guess this is now what you want to see.
I cannot see the logs in runtime if I plug in and plug out my hub, because after I plug out the system is still in freeze state.
Let me try few different scenarios
UPDATE:
Nothing changes in the logs
Maybe I can try to use AMD card instead of nvidia?
After you run this, keep pressing page down / press the end key to go to the last entries before the system shut down. You posted the entries from right after booting the system, which are not as interesting right now.
You are using a Wayland compositor? Did you modify /etc/gdm/custom.conf to include WaylandEnable=false?
` # GDM configuration storage
[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true`
After you run this, keep pressing page down / press the end key
Screen 0: minimum 16 x 16, current 3840 x 1080, maximum 32767 x 32767
XWAYLAND0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 310mm x 170mm
1920x1080 119.93*+
1440x1080 119.92
1400x1050 119.90
1280x1024 119.83
1280x960 119.89
1152x864 119.77
1024x768 119.80
800x600 119.85
640x480 119.52
320x240 117.34
1680x1050 119.89
1440x900 119.94
1280x800 119.85
720x480 119.65
640x400 119.64
320x200 117.55
1600x900 119.95
1368x768 119.83
1280x720 119.86
1024x576 119.85
864x486 119.69
720x400 119.54
640x350 119.24
XWAYLAND1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
1920x1080 59.96*+
1440x1080 59.99
1400x1050 59.98
1280x1024 59.89
1280x960 59.94
1152x864 59.96
1024x768 59.92
800x600 59.86
640x480 59.38
320x240 59.52
1680x1050 59.95
1440x900 59.89
1280x800 59.81
720x480 59.71
640x400 59.95
320x200 58.96
1600x900 59.95
1368x768 59.88
1280x720 59.86
1024x576 59.90
864x486 59.92
720x400 59.55
640x350 59.77
nvidia-smi
Summary
Fri Jan 22 19:09:41 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 206… Off | 00000000:01:00.0 Off | N/A |
| N/A 38C P8 2W / N/A | 1MiB / 5934MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
head -n999 /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*
Summary
head -n999 /etc/X11/xorg.conf /etc/X11/xorg.conf.d/* [1]
head: cannot open '/etc/X11/xorg.conf' for reading: No such file or directory
==> /etc/X11/xorg.conf.d/00-keyboard.conf <==
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,ru,ua"
Option "XkbVariant" ",,"
EndSection
==> /etc/X11/xorg.conf.d/10-optimus-manager.conf <==
Section "Files"
ModulePath "/usr/lib/nvidia"
ModulePath "/usr/lib32/nvidia"
ModulePath "/usr/lib32/nvidia/xorg/modules"
ModulePath "/usr/lib32/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "integrated"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:4:0:0"
EndSection
Section "Screen"
Identifier "integrated"
Device "integrated"
EndSection
==> /etc/X11/xorg.conf.d/90-mhwd.conf.bak <==
##
## Generated by mhwd - Manjaro Hardware Detection
##
You seem to be using Wayland. Can you uncomment (remove # from front) the WaylandEnable=false line in /etc/gdm/custom.conf, and then reboot, and try optimus-manager --switch nvidia again?