HDMI Issue with Nnvidia GTX 1660 Ti on Laptop Intel-TongFang QC71 9750H and MX 21.1

Report Bugs, Issues and non- package Requests
Message
Author
igo
Posts: 13
Joined: Mon Dec 31, 2018 6:17 pm

HDMI Issue with Nnvidia GTX 1660 Ti on Laptop Intel-TongFang QC71 9750H and MX 21.1

#1 Post by igo »

After removing my custom file for Intel VGA drive configuration and installing the Nvdia driver via the MX installer, my monitor connected to the HDMI interface did not work:

Code: Select all

$ xrandr --listmonitors
Monitors: 1
 0: +eDP-1 1920/344x1080/193+0+0 eDP-1

$ lspci -nn | grep -E 'VGA|Display|3D'
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] [10de:2191] (rev a1)

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 0 name:modesetting
Provider 1: id: 0x28c cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 0 name:NVIDIA-G0

The monitor connected to the HDMI interface only work after running the command:

Code: Select all

$ xrandr --setprovideroutputsource NVIDIA-G0 modesetting

$ xrandr --listmonitors
Monitors: 2
 0: +eDP-1 1920/344x1080/193+0+0 eDP-1
 1: +HDMI-1-0 900/443x1600/249+1920+0 HDMI-1-0
I need to run the command "xrandr --setprovideroutputsource NVIDIA-G0 modesetting" every time my MX 21.1 starts. The monitor rotation settings are not saved and I also need to rotate the auxiliary monitor in the "xfce4-display-settings" settings every time I restart.

Other information (inxi):

Code: Select all

$ inxi -SMCGx
System: Host: mx Kernel: 5.14.0-4mx-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
           Desktop: Xfce 4.16.0 Distro: MX-21.1_ahs_x64 Wildflower November 22 2021
           base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Laptop System: Avell High Performance product: A60 MUV v: N/A
           serial: <superuser required>
           Mobo: Avell High Performance model: Avell High Performance
           serial: <superuser required> UEFI: Intel v: QCCFL357.0122.2020.0911.1520
           date: 11/09/2020
CPU: Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake
           note: check rev: A cache: L2: 12 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399
           Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 801
           5: 844 6: 900 7: 817 8: 900 9: 900 10: 898 11: 800 12: 823
Graphics: Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
           bus-ID: 00:02.0
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Intel driver: nvidia
           v: 510.47.03 bus-ID: 01:00.0
           Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus-ID: 1-13:5
           Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting,nvidia
           unloaded: fbdev,nouveau,vesa resolution: 1920x1080~144Hz
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.5
           direct render: yes

Other information (modules):

Code: Select all

$ dpkg -l | grep nvidia-driver
ii  nvidia-driver            510.47.03-1~mx21+1  amd64  NVIDIA metapackage
ii  nvidia-driver-bin        510.47.03-1~mx21+1  amd64  NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64 510.47.03-1~mx21+1  amd64  NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs:i386  510.47.03-1~mx21+1  i386   NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)

$ lsmod |grep nvidia
nvidia_drm             73728  2
nvidia_modeset       1163264  3 nvidia_drm
nvidia              39112704  98 nvidia_modeset
drm_kms_helper        307200  2 nvidia_drm,i915
drm                   634880  18 drm_kms_helper,nvidia,nvidia_drm,i915,ttm

Other information (HDMI log):

Code: Select all

$ sudo grep --color=auto -i "hdmi" /var/log/messages
(...)
May 27 07:46:25 mx kernel: [    0.249390] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
May 27 07:46:25 mx kernel: [    3.268078] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input13
May 27 07:46:25 mx kernel: [    3.269972] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
May 27 07:46:25 mx kernel: [    3.271998] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
May 27 07:46:25 mx kernel: [    3.274118] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
May 27 07:46:25 mx kernel: [    3.275720] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
May 27 07:46:25 mx kernel: [    3.277480] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
May 27 07:46:25 mx kernel: [    3.362551] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
May 27 07:46:25 mx kernel: [    3.364560] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input23
May 27 07:46:25 mx kernel: [    3.366051] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
May 27 07:46:25 mx kernel: [    3.367517] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input25
May 27 07:46:25 mx kernel: [    3.369623] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input26

Other information (Nvidia log):

Code: Select all

$ sudo grep --color=auto -i "nvidia" /var/log/messages
(...)
May 27 07:46:25 mx kernel: [    3.108617] nvidia: loading out-of-tree module taints kernel.
May 27 07:46:25 mx kernel: [    3.108629] nvidia: module license 'NVIDIA' taints kernel.
May 27 07:46:25 mx kernel: [    3.165050] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
May 27 07:46:25 mx kernel: [    3.171008] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
May 27 07:46:25 mx kernel: [    3.173685] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
May 27 07:46:25 mx kernel: [    3.229419] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  510.47.03  Mon Jan 24 22:58:54 UTC 2022
May 27 07:46:25 mx kernel: [    3.268078] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input13
May 27 07:46:25 mx kernel: [    3.269972] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
May 27 07:46:25 mx kernel: [    3.271998] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
May 27 07:46:25 mx kernel: [    3.274118] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
May 27 07:46:25 mx kernel: [    3.275720] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
May 27 07:46:25 mx kernel: [    3.277480] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
May 27 07:46:25 mx kernel: [    5.403382] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  510.47.03  Mon Jan 24 22:51:43 UTC 2022
May 27 07:46:25 mx kernel: [    5.426520] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
May 27 07:46:25 mx kernel: [    5.427722] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1

Other information (i915 log):

Code: Select all

$ sudo grep --color=auto -i "i915" /var/log/messages
(...)
May 27 07:46:25 mx kernel: [    1.711728] i915 0000:00:02.0: [drm] VT-d active for gfx access
May 27 07:46:25 mx kernel: [    1.712850] i915 0000:00:02.0: vgaarb: deactivate vga console
May 27 07:46:25 mx kernel: [    1.715661] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
May 27 07:46:25 mx kernel: [    1.715695] i915 0000:00:02.0: firmware: direct-loading firmware i915/kbl_dmc_ver1_04.bin
May 27 07:46:25 mx kernel: [    1.716014] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
May 27 07:46:25 mx kernel: [    1.733591] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
May 27 07:46:25 mx kernel: [    1.737791] fbcon: i915 (fb0) is primary device
May 27 07:46:25 mx kernel: [    1.749413] i915 0000:00:02.0: [drm] fb0: i915 frame buffer device
May 27 07:46:25 mx kernel: [    3.216876] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
May 27 07:46:25 mx kernel: [    3.315794] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
Could you help me with a solution other than having to run the command every time MX Linux 21.1 is restarted and having to reconfigure the rotation of the HDMI monitor?

Huckleberry Finn

Re: HDMI Issue with Nnvidia GTX 1660 Ti on Laptop Intel-TongFang QC71 9750H and MX 21.1

#2 Post by Huckleberry Finn »

igo wrote: Mon May 30, 2022 8:18 am... a solution other than having to run the command every time MX Linux 21.1 is restarted and having to reconfigure the rotation of the HDMI monitor?
ARandR .

Code: Select all

sudo apt update ; sudo apt install arandr -y
____________________________

At least you can add this into "Session and Startup" - "Application Autostart" tab (add new with the bottom-left icon):

Any name , Any description, Command:

Code: Select all

sh -c 'xrandr --setprovideroutputsource NVIDIA-G0 modesetting'
Sometimes a few seconds of delay makes it work, i.e.

Code: Select all

sh -c 'sleep 3 ; xrandr --setprovideroutputsource NVIDIA-G0 modesetting'
_______________________________

... But it's best to first set all according to your taste and start ARandR , then "save as" .. it'll save as an executable .sh file..

Then full path of the file (as the command) into Autostart..

We'll go on.

igo
Posts: 13
Joined: Mon Dec 31, 2018 6:17 pm

Re: HDMI Issue with Nnvidia GTX 1660 Ti on Laptop Intel-TongFang QC71 9750H and MX 21.1

#3 Post by igo »

Huckleberry Finn wrote: Mon May 30, 2022 10:33 am
igo wrote: Mon May 30, 2022 8:18 am... a solution other than having to run the command every time MX Linux 21.1 is restarted and having to reconfigure the rotation of the HDMI monitor?
ARandR .

Code: Select all

sudo apt update ; sudo apt install arandr -y
I created a shortcut. For me, it became more practical. Unfortunately, it doesn't work automatically, without tricks.

Code: Select all

$ sudo vim /usr/share/applications/nvidia-hdmi.desktop

[Desktop Entry]
Type=Application
Name=NVidia HDMI
Categories=Utility;
Type=Application
Exec=sh -c "xrandr --setprovideroutputsource NVIDIA-G0 modesetting; xrandr --auto"
Terminal=false
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer

Post Reply

Return to “Bugs and Non-Package Requests Forum”