You are not logged in.
Pages: 1
Hello everyone, I have a MSI laptop, and recently I tried to use the HDMI port, but I couldn't enable it.
I tried a live usb using arch iso and other linux distros it works fine,
So can anyone help me to solve the issue?
I am using hyprland with sddm as login manager, I also tried on plasma x11 and wayland and got the same issue.
inxi -xFzJ
System:
Kernel: 6.8.9-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
Desktop: Hyprland v: 0.39.1 Distro: Arch Linux
Machine:
Type: Laptop System: Micro-Star product: GF65 Thin 10UE v: REV:1.0
serial: <superuser required>
Mobo: Micro-Star model: MS-16W2 v: REV:1.0 serial: <superuser required>
UEFI: American Megatrends v: E16W2IMS.105 date: 05/14/2021
Battery:
ID-1: BAT1 charge: 45.4 Wh (97.0%) condition: 46.8/51.3 Wh (91.3%)
volts: 12.7 min: 11.4 model: MSI BIF0_9 status: not charging
CPU:
Info: 6-core model: Intel Core i5-10500H bits: 64 type: MT MCP
arch: Comet Lake rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
Speed (MHz): avg: 800 min/max: 800/4500 cores: 1: 800 2: 800 3: 800 4: 800
5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 bogomips: 60014
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Micro-Star MSI
driver: i915 v: kernel arch: Gen-9.5 bus-ID: 00:02.0
Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
vendor: Micro-Star MSI driver: nvidia v: 550.78 arch: Ampere bus-ID: 01:00.0
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 23.2.6
compositor: Hyprland v: 0.39.1 driver: X: loaded: modesetting dri: iris
gpu: i915,nvidia resolution: 1920x1080
API: EGL v: 1.5 drivers: iris,nvidia,swrast platforms:
active: wayland,x11,surfaceless,device inactive: gbm
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.0.6-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
API: Vulkan v: 1.3.279 drivers: nvidia,intel surfaces: xcb,xlib,wayland
devices: 2
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
Device-2: NVIDIA GA106 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 01:00.1
API: ALSA v: k6.8.9-arch1-1 status: kernel-api
Server-1: sndiod v: N/A status: off
Server-2: PipeWire v: 1.0.5 status: active
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3
IF: wlan0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: 3000 bus-ID: 05:00.0
IF: enp5s0 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
IF-ID-2: surfshark_ipv6 state: unknown speed: N/A duplex: N/A
mac: <filter>
IF-ID-3: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB
bus-ID: 1-14:5
Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:
Local Storage: total: 953.88 GiB used: 114.05 GiB (12.0%)
ID-1: /dev/nvme0n1 vendor: Kingston model: NVME SSD 512GB size: 476.94 GiB
temp: 37.9 C
ID-2: /dev/nvme1n1 vendor: Kingston model: OM8PCP3512F-AI1
size: 476.94 GiB temp: 23.9 C
Partition:
ID-1: / size: 48.16 GiB used: 30.18 GiB (62.7%) fs: ext4 dev: /dev/nvme0n1p5
ID-2: /boot size: 299.8 MiB used: 128.1 MiB (42.7%) fs: vfat
dev: /dev/nvme0n1p4
ID-3: /home size: 97.54 GiB used: 83.75 GiB (85.9%) fs: ext4
dev: /dev/nvme0n1p6
Swap:
ID-1: swap-1 type: zram size: 4 GiB used: 0 KiB (0.0%) dev: /dev/zram0
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002
Device-1: 1-3:2 info: A4Tech USB Mouse type: mouse
driver: hid-generic,usbhid rev: 1.1 speed: 1.5 Mb/s chip-ID: 09da:c10a
Device-2: 1-4:3 info: Keychron K8 Pro type: keyboard,HID
driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 3434:0280
Device-3: 1-5:7 info: Google Nexus/Pixel Device (charging + debug)
type: <vendor specific> driver: N/A rev: 2.1 speed: 480 Mb/s
chip-ID: 18d1:4ee7
Device-4: 1-14:5 info: Intel AX201 Bluetooth type: bluetooth driver: btusb
rev: 2.0 speed: 12 Mb/s chip-ID: 8087:0026
Hub-2: 2-0:1 info: super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003
Sensors:
System Temperatures: cpu: 32.0 C pch: 40.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB available: 15.44 GiB used: 3.51 GiB (22.7%)
Processes: 363 Uptime: 34m Init: systemd
Packages: 1721 Compilers: clang: 17.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9
inxi: 3.3.34find /sys/devices -name "edid"
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/edidxrandr --verbose
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
eDP-1 connected 1920x1080+0+0 (0x23) normal (normal left inverted right x axis y axis) 340mm x 190mm
Identifier: 0x21
Timestamp: 2798380
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 0.0
Clones:
CRTC: 0
CRTCs: 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
RANDR Emulation: 1
non-desktop: 0
supported: 0, 1
1920x1080 (0x23) 173.500MHz -HSync +VSync *current +preferred
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.35KHz
v: height 1080 start 1083 end 1088 total 1121 clock 60.08Hz
1440x1080 (0x24) 129.250MHz -HSync +VSync
h: width 1440 start 1528 end 1680 total 1920 skew 0 clock 67.32KHz
v: height 1080 start 1083 end 1087 total 1121 clock 60.05Hz
1400x1050 (0x25) 122.000MHz -HSync +VSync
h: width 1400 start 1488 end 1632 total 1864 skew 0 clock 65.45KHz
v: height 1050 start 1053 end 1057 total 1090 clock 60.05Hz
1280x1024 (0x26) 109.250MHz -HSync +VSync
h: width 1280 start 1368 end 1496 total 1712 skew 0 clock 63.81KHz
v: height 1024 start 1027 end 1034 total 1063 clock 60.03Hz
1280x960 (0x27) 101.500MHz -HSync +VSync
h: width 1280 start 1360 end 1488 total 1696 skew 0 clock 59.85KHz
v: height 960 start 963 end 967 total 996 clock 60.09Hz
1152x864 (0x28) 82.000MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.95KHz
v: height 864 start 867 end 871 total 897 clock 60.14Hz
1024x768 (0x29) 63.500MHz -HSync +VSync
h: width 1024 start 1072 end 1176 total 1328 skew 0 clock 47.82KHz
v: height 768 start 771 end 775 total 798 clock 59.92Hz
800x600 (0x2a) 38.250MHz -HSync +VSync
h: width 800 start 832 end 912 total 1024 skew 0 clock 37.35KHz
v: height 600 start 603 end 607 total 624 clock 59.86Hz
640x480 (0x2b) 24.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 30.00KHz
v: height 480 start 483 end 487 total 500 clock 60.00Hz
320x240 (0x2c) 6.000MHz -HSync +VSync
h: width 320 start 336 end 360 total 400 skew 0 clock 15.00KHz
v: height 240 start 243 end 247 total 252 clock 59.52Hz
1680x1050 (0x2d) 146.750MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.51KHz
v: height 1050 start 1053 end 1059 total 1090 clock 60.10Hz
1440x900 (0x2e) 107.000MHz -HSync +VSync
h: width 1440 start 1528 end 1672 total 1904 skew 0 clock 56.20KHz
v: height 900 start 903 end 909 total 934 clock 60.17Hz
1280x800 (0x2f) 83.750MHz -HSync +VSync
h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.85KHz
v: height 800 start 803 end 809 total 831 clock 59.99Hz
1152x720 (0x30) 66.750MHz -HSync +VSync
h: width 1152 start 1208 end 1320 total 1488 skew 0 clock 44.86KHz
v: height 720 start 723 end 729 total 748 clock 59.97Hz
960x600 (0x31) 45.500MHz -HSync +VSync
h: width 960 start 992 end 1088 total 1216 skew 0 clock 37.42KHz
v: height 600 start 603 end 609 total 624 clock 59.96Hz
928x580 (0x32) 42.750MHz -HSync +VSync
h: width 928 start 968 end 1056 total 1184 skew 0 clock 36.11KHz
v: height 580 start 583 end 589 total 603 clock 59.88Hz
800x500 (0x33) 31.000MHz -HSync +VSync
h: width 800 start 824 end 896 total 992 skew 0 clock 31.25KHz
v: height 500 start 503 end 509 total 521 clock 59.98Hz
768x480 (0x34) 28.750MHz -HSync +VSync
h: width 768 start 792 end 864 total 960 skew 0 clock 29.95KHz
v: height 480 start 483 end 489 total 500 clock 59.90Hz
720x480 (0x35) 26.750MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 29.85KHz
v: height 480 start 483 end 493 total 500 clock 59.71Hz
640x400 (0x36) 20.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 25.00KHz
v: height 400 start 403 end 409 total 417 clock 59.95Hz
320x200 (0x37) 5.000MHz -HSync +VSync
h: width 320 start 336 end 360 total 400 skew 0 clock 12.50KHz
v: height 200 start 203 end 209 total 212 clock 58.96Hz
1600x900 (0x38) 118.500MHz -HSync +VSync
h: width 1600 start 1696 end 1856 total 2112 skew 0 clock 56.11KHz
v: height 900 start 903 end 908 total 934 clock 60.07Hz
1368x768 (0x39) 85.500MHz -HSync +VSync
h: width 1368 start 1440 end 1576 total 1784 skew 0 clock 47.93KHz
v: height 768 start 771 end 781 total 798 clock 60.06Hz
1280x720 (0x3a) 74.750MHz -HSync +VSync
h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 44.92KHz
v: height 720 start 723 end 728 total 748 clock 60.06Hz
1024x576 (0x3b) 46.500MHz -HSync +VSync
h: width 1024 start 1064 end 1160 total 1296 skew 0 clock 35.88KHz
v: height 576 start 579 end 584 total 599 clock 59.90Hz
864x486 (0x3c) 32.500MHz -HSync +VSync
h: width 864 start 888 end 968 total 1072 skew 0 clock 30.32KHz
v: height 486 start 489 end 494 total 506 clock 59.92Hz
720x400 (0x3d) 22.250MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 24.83KHz
v: height 400 start 403 end 413 total 417 clock 59.55Hz
640x350 (0x3e) 17.500MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 21.88KHz
v: height 350 start 353 end 363 total 366 clock 59.77Hzsudo dmesg | grep drm
[sudo] password for zacktamondo:
[ 0.426551] ACPI: bus type drm_connector registered
[ 0.431159] [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
[ 0.431352] simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device
[ 1.756406] systemd[1]: Starting Load Kernel Module drm...
[ 1.764186] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 1.764297] systemd[1]: Finished Load Kernel Module drm.
[ 2.860473] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[ 2.914650] [drm] Initialized i915 1.6.0 20230929 for 0000:00:02.0 on minor 1
[ 2.919165] fbcon: i915drmfb (fb0) is primary device
[ 2.919168] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[ 1831.526394] i915 0000:00:02.0: [drm] [ENCODER:94:DDI A/PHY A] is disabled/in DSI mode with an ungated DDI clock, gate itLast edited by zacktamondo (2024-05-07 21:47:26)
Offline
Your HDMI is likely attached to the nvidia card, whether that generally works well on wayland, particularly on hyprland, is somewhat of a different story and potentially not the case. But for that to have any chance of working you need to setup KMS on the nvidia card via the kernel parameter method to get rid of the simpledrm device -- see https://wiki.archlinux.org/title/NVIDIA … de_setting and set "nvidia_drm.modeset=1" on your kernel params in your bootloader config.
If you happen to have ran nvidia-xconfig or so, remove the config it generated.
Last edited by V1del (2024-05-07 13:36:35)
Offline
I added the following to the mkinitcpio.conf
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=()
FILES=()
HOOKS=(base udev plymouth autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck)I also made the following file :
/etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1 I am using refined bootloader so I tried adding the kernel parameter using inline.
with no luck, is there anything I missed?
Offline
Offline
Thank you for your time.
Here you go:
Journalctl
/var/log/Xorg.0.log
Offline
The nvidia module loads but the card is disabled and not used by X11
[ 5.482] (**) | |-->Device "integrated"May 07 22:38:30 msiarch python3[668]: [26] INFO: # Daemon pre-start hook
May 07 22:38:30 msiarch python3[668]: [26] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
May 07 22:38:30 msiarch python3[668]: [27] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
May 07 22:38:30 msiarch python3[668]: [30] INFO: Startup mode is: integrated
May 07 22:38:30 msiarch python3[668]: [30] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
May 07 22:38:30 msiarch python3[668]: [30] INFO: Daemon pre-start hook completed successfully.
May 07 22:38:30 msiarch python3[668]: [30] INFO: Calling Xorg pre-start hook.
May 07 22:38:30 msiarch python3[720]: [9] INFO: # Xorg pre-start hook
May 07 22:38:30 msiarch python3[720]: [9] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
May 07 22:38:30 msiarch python3[720]: [9] INFO: Requested mode is: integrated
May 07 22:38:30 msiarch python3[727]: modinfo: ERROR: Module bbswitch not found.
May 07 22:38:30 msiarch python3[728]: modinfo: ERROR: Module acpi_call not found.
May 07 22:38:30 msiarch python3[720]: [22] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
May 07 22:38:30 msiarch python3[720]: [22] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
May 07 22:38:30 msiarch python3[720]: [24] INFO: switching=none, nothing to do
May 07 22:38:30 msiarch python3[720]: [38] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
May 07 22:38:30 msiarch python3[720]: [38] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20240507T223830', 'requested_mode': 'integrated'}
May 07 22:38:30 msiarch python3[720]: [39] INFO: Xorg pre-start hook completed successfully.
May 07 22:38:30 msiarch python3[737]: [1] INFO: # Commands daemon
May 07 22:38:30 msiarch python3[737]: [1] INFO: Opening UNIX socket
May 07 22:38:30 msiarch python3[737]: [1] INFO: Awaiting commandsby optimus-manager. Remove that.
Also enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter
Offline
So I changed optimus-manager startup mode to auto and hybrid and the screen now works.
Thank you so much.
I still can't get to know how to pass the kernel parameter successfully in refined bootloader.
Also when I added the Nvidia modules to mkinitcpio.conf the image got over 100MB and my boot partition is 300MB, so should I extend it or is there another way to compress the main and fallback images?
Thank you a lot for your time and help again.
Offline
You don't have to add nvidia to the initramfs, the more important part is the modeset parameter.
https://wiki.archlinux.org/title/REFInd … parameters but while the kernel parameter will nuke the simpledrm device (and preserve a sane card order) you can also use a modprobe.d configlet to enable the feature and get the EDIDs in /sys/class/drm (nb. that as long as you've the nvidia modules in the initramfs you need to recreate the initramfs after adding modprobe configs)
So I changed optimus-manager startup mode to auto and hybrid and the screen now works.
Fwwi, that's pretty much equivalent to not using OM at all.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
First of all thank you a lot.
As for the modules, I removed them and everything still working fine, thanks again.
And I don't know how or why, but the kernel parameter now works and returns Y.
Fwwi, that's pretty much equivalent to not using OM at all.
What do you recommend me to do then?
I used it to be able to save battery when on battery and be able to use the GPU when needed, so do you have any suggestion?
Thanks again for the time and effort.
Offline
Nothing, just regular prime.
You've an Ampere chich which is eligible and defaults to https://wiki.archlinux.org/title/PRIME# … Management
Offline
Ok thanks a lot
Offline
Is there a way to know for sure if the HDMI port is based only on the Nvidia GPU?
Offline
Pages: 1