Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS  [Solved]

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

Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#1 Post by igo »

Hello.

The Intel-TongFang QC71 is used in Avell A60 MUV (my hardware), XMG FUSION 15, Eluktronics Mag-15 and Aftershock Vapor 15.

After install NVidia driver with "ddm-mx -i nvidia -b", MX Linux 19.4 AHS don't recognize NVidia, only boot with acpi=off and crash before shutdown or reboot, crash with the last message "Generic FE-GE Realtek PHY r8169-3d00:00:attached PHY driver ....".

About acpi, a try many, many parameters after install NVidia, but only acpi=off work.

Help me to make MX best for this hardware.

Code: Select all

System:    Host: <filter> Kernel: 5.10.0-5mx-amd64 x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-5mx-amd64 
           root=UUID=<filter> ro debug initcall_debug 
           no_console_suspend verb=7 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel, plank wm: xfwm4 
           dm: LightDM 1.26.0 Distro: MX-19.4_ahs_x64 patito feo March 31  2021 
           base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: Avell High Performance product: A60 MUV v: N/A serial: <filter> 
           Chassis: type: 10 v: 1.0 serial: <filter> 
           Mobo: Avell High Performance model: Avell High Performance serial: <filter> 
           UEFI: Intel v: QCCFL357.0122.2020.0911.1520 date: 09/11/2020 
Battery:   ID-1: BAT0 charge: 93.5 Wh condition: 93.5/93.5 Wh (100%) volts: 12.9/11.4 
           model: standard type: Li-ion serial: <filter> status: Full 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake 
           family: 6 model-id: 9E (158) stepping: A (10) microcode: EA L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399 
           Speed: 900 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 900 2: 899 3: 900 4: 900 
           5: 900 6: 900 7: 900 8: 900 9: 900 10: 900 11: 900 12: 900 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           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: Full generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:3e9b 
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: Intel driver: N/A 
           bus ID: 01:00.0 chip ID: 10de:2191 
           Display: x11 server: X.Org 1.20.10 driver: modesetting unloaded: fbdev,vesa 
           compositor: compton v: 0.1~beta2+20150922 resolution: 1920x1080~144Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
           direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:a348 
           Device-2: NVIDIA TU116 High Definition Audio vendor: Tongfang Hongkong Limited 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:1aeb 
           Sound Server: ALSA v: k5.10.0-5mx-amd64 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Intel 
           driver: r8169 v: kernel port: 3000 bus ID: 3d:00.0 chip ID: 10ec:8168 
           IF: eth0 state: down mac: <filter> 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 3000 bus ID: 3e:00.0 
           chip ID: 8086:2723 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 8.80 GiB (0.9%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T3X0C-00SJG0 size: 931.51 GiB 
           block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: 111110WD scheme: GPT 
           ID-2: /dev/nvme1n1 vendor: A-Data model: IM2P33F8BR2-512GB size: 476.94 GiB 
           block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: T0214B0L scheme: GPT 
Partition: ID-1: / raw size: 66.78 GiB size: 65.23 GiB (97.68%) used: 8.76 GiB (13.4%) fs: ext4 
           dev: /dev/nvme1n1p5 
           ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60) 
           cache pressure: 100 (default) dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 70.0 C mobo: 58.0 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.ufam.edu.br/mx/mx/repo/ buster main non-free
           2: deb http://mirror.ufam.edu.br/mx/mx/repo/ buster ahs
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 298 Uptime: 9m Memory: 15.49 GiB used: 1.68 GiB (10.9%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 
$ nvidia-detect

Code: Select all

Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] [10de:2191] (rev a1)

Checking card:  NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
[b]Your card is supported by the default drivers.[/b]
It is recommended to install the
    nvidia-driver

$ optirun -vv --debug ixni -G"

Code: Select all

[  144.235385] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  144.236223] [DEBUG]optirun version 3.2.1 starting...
[  144.236402] [DEBUG]Active configuration:
[  144.236546] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  144.236686] [DEBUG] X display: :8
[  144.236932] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[  144.237074] [DEBUG] Socket path: /var/run/bumblebee.socket
[  144.237214] [DEBUG] Accel/display bridge: auto
[  144.237354] [DEBUG] VGL Compression: proxy
[  144.237492] [DEBUG] VGLrun extra options:
[  144.237632] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  144.237911] [DEBUG]Using auto-detected bridge virtualgl
[  144.300122] [INFO]Response: No - error: Could not load GPU driver

[b][  144.300131] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver[/b]

[  144.300134] [DEBUG]Socket closed.
[  144.300141] [ERROR]Aborting because fallback start is disabled.
[  144.300143] [DEBUG]Killing all remaining processes.
Another error is when I try use the qc71_laptop module from https://github.com/pobrn/qc71_laptop, with messages:

Code: Select all

$ git clone https://github.com/pobrn/qc71_laptop
$ sudo apt install linux-headers-$(uname -r)
$ sudo apt install dkms
$ cd qc71_laptop
$ make
$ sudo insmod qc71_laptop.ko

insmod: ERROR: could not insert module qc71_laptop.ko: Unknown symbol in module

[  985.523621] qc71_laptop: Unknown symbol wmi_get_event_data (err -2)
[  985.523644] qc71_laptop: Unknown symbol wmi_remove_notify_handler (err -2)
[  985.523675] qc71_laptop: Unknown symbol wmi_evaluate_method (err -2)
[  985.523698] qc71_laptop: Unknown symbol wmi_has_guid (err -2)
[  985.523716] qc71_laptop: Unknown symbol wmi_install_notify_handler (err -2)
[  985.523741] qc71_laptop: Unknown symbol sparse_keymap_report_event (err -2)
[  985.523761] qc71_laptop: Unknown symbol sparse_keymap_setup (err -2)
[  985.523787] qc71_laptop: Unknown symbol battery_hook_register (err -2)
[  985.523811] qc71_laptop: Unknown symbol battery_hook_unregister (err -2)
Are we going to make MX Linux a reference for this hardware as well?

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#2 Post by JayM »

Run

Code: Select all

optirun inxi -G
in a terminal and post the results inside [code] [/code] tags please.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

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

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#3 Post by igo »

Code: Select all

$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: N/A 
           Display: x11 server: X.Org 1.20.10 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~144Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 

$ optirun inxi -G
[  175.621126] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  175.621516] [ERROR]Aborting because fallback start is disabled.


$ optirun -vv --debug inxi -G
[  228.867423] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  228.869252] [DEBUG]optirun version 3.2.1 starting...
[  228.869446] [DEBUG]Active configuration:
[  228.869592] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  228.869736] [DEBUG] X display: :8
[  228.870001] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[  228.870150] [DEBUG] Socket path: /var/run/bumblebee.socket
[  228.870295] [DEBUG] Accel/display bridge: auto
[  228.870440] [DEBUG] VGL Compression: proxy
[  228.871420] [DEBUG] VGLrun extra options: 
[  228.871568] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  228.871747] [DEBUG]Using auto-detected bridge virtualgl
[  228.927186] [INFO]Response: No - error: Could not load GPU driver

[  228.927195] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  228.927198] [DEBUG]Socket closed.
[  228.927206] [ERROR]Aborting because fallback start is disabled.
[  228.927209] [DEBUG]Killing all remaining processes.



# cat  /var/log/messages
...
Before optirun inxi -G
Jun 29 07:44:29 mx kernel: [  228.892284] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
Jun 29 07:44:29 mx kernel: [  228.893555] NVRM: Please check your BIOS settings.
Jun 29 07:44:29 mx kernel: [  228.893556] NVRM: [Plug & Play OS] should be set to NO
Jun 29 07:44:29 mx kernel: [  228.893557] NVRM: [Assign IRQ to VGA] should be set to YES
Jun 29 07:44:29 mx kernel: [  228.893560] nvidia: probe of 0000:01:00.0 failed with error -1
Jun 29 07:44:29 mx kernel: [  228.893568] NVRM: The NVIDIA probe routine failed for 1 device(s).
Jun 29 07:44:29 mx kernel: [  228.893569] NVRM: None of the NVIDIA devices were initialized.
Jun 29 07:44:29 mx kernel: [  228.894054] nvidia-nvlink: Unregistered the Nvlink Core, major device number 242
After optirun inxi -G

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#4 Post by JayM »

I think the problem may be that Debian Buster's firmware-misc-nonfree package doesn't contain any firmware for that Nvidia TU116M GPU. See the two links I posted here and compare the contents of Buster's and Bullseye's nonfree firmware packages. (Free as in open-source, not that you have to pay for it.) Then see this thread on how to install backported Bullseye firmware on your Buster-based system. It's still under test so if this fixes your issue by allowing you to install an Nvidia driver and Bumblebee on your computer be sure to leave feedback in that thread. The more people test it and report success the sooner it will be moved to the regular AHS repo so everyone can take advantage of it.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

Huckleberry Finn

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#5 Post by Huckleberry Finn »

If the installation was finished with no errors, you may need to just use acpi_osi parameter, examples from some previous threads:

viewtopic.php?p=633179#p633179

viewtopic.php?p=595076#p595076

viewtopic.php?f=104&t=54299


Shortly :

Tell the system to "mimic Windows" :

Code: Select all

acpi_osi=\"!Windows 2020\"
But this one is just looking at your uefi date, so once you put that in your kernel parameters with "MX Boot Options" from Menu, every boot you just hit E and change only the last 2 numbers of the year from 20 (say to 19) and hit F10 to go on boot... Next time 18 and so on. (You can skip the point releases (2018.2 and 2017.2 as they won't make any effect, and will be counted as 18 and 17) ( You can also add modprobe.nouveau=0 to make it sure nouveau doesn't interfere, no harm. You better copy-paste it , keep the quotation marks .. just "as it is" .. )

So, 9 trials / boots at most, from 2020 to Win 7 ... (You can even face black screen, nothing to worry, reboot and try next ..)

Code: Select all

OSI String          	Target OS

Windows 2000       	Windows 2000
Windows 2001       	Windows XP
Windows 2001 SP1	Windows XP SP1
Windows 2001.1     	Windows Server 2003
Windows 2001 SP2	Windows XP SP2
Windows 2001.1 SP1 	Windows Server 2003 SP1
Windows 2006       	Windows Vista
Windows 2006 SP1	Windows Vista SP1
Windows 2006.1     	Windows Server 2008
Windows 2009       	Windows 7, Win Server 2008 R2
Windows 2012       	Windows 8, Win Server 2012
Windows 2013       	Windows 8.1
Windows 2015       	Windows 10
Windows 2016       	Windows 10, version 1607
Windows 2017       	Windows 10, version 1703
Windows 2017.2     	Windows 10, version 1709
Windows 2018      	Windows 10, version 1803
Windows 2018.2          Windows 10, version 1809
Windows 2019		Windows 10, version 1903
Windows 2020		Windows 10, version 2004

User avatar
Stevo
Developer
Posts: 14828
Joined: Fri Dec 15, 2006 7:07 pm

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#6 Post by Stevo »

To be clear, are you only having to use the "acpi=off" boot parameter after installing the Nvidia driver with the MX tool, and it seems to run well before that with the Intel GPU, or do you have to enter that no matter what?

Have you discovered any other Linux distros that seem to support the hardware better? We could see what they're having to use.

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

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#7 Post by igo »

Stevo wrote: Wed Jun 30, 2021 2:42 pm To be clear, are you only having to use the "acpi=off" boot parameter after installing the Nvidia driver with the MX tool, and it seems to run well before that with the Intel GPU, or do you have to enter that no matter what?

Have you discovered any other Linux distros that seem to support the hardware better? We could see what they're having to use.
Exactly. I just needed to add acpi=off to finish booting after installing the NVidia driver with ddm-mx -i nvidia.

After installing the 460 driver from the Buster Backports repository it seems to have resolved. It remains to test things like HDMI and use the laptop longer.

Below I will put the steps I needed to follow.

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

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#8 Post by igo »

Huckleberry Finn wrote: Wed Jun 30, 2021 4:50 am If the installation was finished with no errors, you may need to just use acpi_osi parameter, examples from some previous threads:

viewtopic.php?p=633179#p633179

viewtopic.php?p=595076#p595076

viewtopic.php?f=104&t=54299


Shortly :

Tell the system to "mimic Windows" :

Code: Select all

acpi_osi=\"!Windows 2020\"
But this one is just looking at your uefi date, so once you put that in your kernel parameters with "MX Boot Options" from Menu, every boot you just hit E and change only the last 2 numbers of the year from 20 (say to 19) and hit F10 to go on boot... Next time 18 and so on. (You can skip the point releases (2018.2 and 2017.2 as they won't make any effect, and will be counted as 18 and 17) ( You can also add modprobe.nouveau=0 to make it sure nouveau doesn't interfere, no harm. You better copy-paste it , keep the quotation marks .. just "as it is" .. )

So, 9 trials / boots at most, from 2020 to Win 7 ... (You can even face black screen, nothing to worry, reboot and try next ..)

Code: Select all

OSI String          	Target OS

Windows 2000       	Windows 2000
Windows 2001       	Windows XP
Windows 2001 SP1	Windows XP SP1
Windows 2001.1     	Windows Server 2003
Windows 2001 SP2	Windows XP SP2
Windows 2001.1 SP1 	Windows Server 2003 SP1
Windows 2006       	Windows Vista
Windows 2006 SP1	Windows Vista SP1
Windows 2006.1     	Windows Server 2008
Windows 2009       	Windows 7, Win Server 2008 R2
Windows 2012       	Windows 8, Win Server 2012
Windows 2013       	Windows 8.1
Windows 2015       	Windows 10
Windows 2016       	Windows 10, version 1607
Windows 2017       	Windows 10, version 1703
Windows 2017.2     	Windows 10, version 1709
Windows 2018      	Windows 10, version 1803
Windows 2018.2          Windows 10, version 1809
Windows 2019		Windows 10, version 1903
Windows 2020		Windows 10, version 2004
Thanks. After installing the 460 driver from the Buster Backports repository it seems to have resolved. It remains to test things like HDMI and use the laptop longer.

Below I will put the steps I needed to follow.

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

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS

#9 Post by igo »

>> USING THE DEBIAN BUSTER BACKPORTS nvidia-driver 460.73.01-1~bpo10+1 SEEMS TO BE THE MOST APPROPRIATE SOLUTION.

>> WITHOUT acpi=off I COULD ALSO INSTALL THE QC71 LAPTOP DRIVER FROM
https://github.com/pobrn/qc71_laptop

>> REMOVE OLD NVIDIA PACKAGES

Code: Select all

$ sudo ddm-mx -p nvidia

>> CHECK THE EXISTENCE OF THE GPU

Code: Select all

$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] [10de:2191] (rev a1)

Checking card:  NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
Your card is supported by the default drivers.
It is recommended to install the
    nvidia-driver
package.

>> Open MX Repo Manage > Debian Repos tab > ENABLE buster-backports > Apply


>> UPDATE

Code: Select all

$ sudo apt update

>> INSTALL DRIVER AND ADDITIONAL PACKAGES

Code: Select all

sudo apt-get install --install-recommends --reinstall -y nvidia-driver/buster-backports nvidia-settings/buster-backports nvidia-vulkan-icd/buster-backports nvidia-smi/buster-backports nvidia-settings/buster-backports nvidia-opencl-icd/buster-backports nvidia-modprobe/buster-backports nvidia-kernel-dkms/buster-backports nvidia-alternative/buster-backports nvidia-kernel-support/buster-backports primus/buster-backports

>> Open MX Repository Manager > Debian Repositories Tab > DISABLE buster-backports > Apply


>> CREATE THE CONFIGURATION FILE FOR XORG

Code: Select all

$ sudo nano /etc/X11/xorg.conf.d/20-nvidia-prime.conf
Section "ServerLayout"
   Identifier "layout"
   Option "AllowNVIDIAGPUScreens"
EndSection

>> CHANGE THE NVIDIA SETTINGS SHORTCUT WITH THE RIGHT MOUSE BUTTON ON THE MENU OR BY EDITING THE “/usr/share/applications/nvidia-settings.desktop” FILE

Code: Select all

FROM “nvidia-settings” SHORTCUT OR FROM “EXEC=nvidia-settings” FILE
TO “optirun nvidia-settings -c :8” FOR SHORTCUR OR “EXEC=optirun nvidia-settings -c :8” TO FILE
** If it doesn't work with “optirun nvidia-settings -c :8”, try with “optirun -b none nvidia-settings -c :8” 
** without quotes

>> ERRORS AND PROBLEMS AFTER INSTALLATION

Code: Select all

I had an error with nvidia-persistenced. Removed with apt remove nvidia-persistenced, then reinstalled with apt-get install -f nvidia-persistenced. 
>> LIST DRIVER AND MODULES INSTALLED

Code: Select all

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

$ lsmod |grep nvidia
nvidia_drm             65536  2
nvidia_modeset       1232896  3 nvidia_drm
nvidia              34164736  92 nvidia_modeset
drm_kms_helper        270336  2 nvidia_drm,i915
drm                   610304  14 drm_kms_helper,nvidia_drm,i915

$ dkms status
broadcom-sta, 6.30.223.271, 5.10.0-5mx-amd64, x86_64: installed
nvidia-current, 460.73.01, 5.10.0-5mx-amd64, x86_64: installed
qc71_laptop, 0.1, 5.10.0-5mx-amd64, x86_64: installed
virtualbox-guest, 6.1.18, 5.10.0-5mx-amd64, x86_64: installed (original_module exists)

>> DMESG NVIDIA AFTER REBOOT

Code: Select all

$ dmesg |grep -i nvidia
[    4.198645] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input13
[    4.200911] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
[    4.203124] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
[    4.209031] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
[    4.213304] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
[    4.225253] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
[    6.814455] calling  nvidia_frontend_init_module+0x0/0x8d [nvidia] @ 1579
[    6.816062] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[    6.817891] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[    6.820594] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    6.863919] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  460.73.01  Thu Apr  1 21:40:36 UTC 2021
[    6.865541] initcall nvidia_frontend_init_module+0x0/0x8d [nvidia] returned 0 after 48393 usecs
[    6.892624] calling  nvkms_init+0x0/0x1000 [nvidia_modeset] @ 1583
[    6.894528] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  460.73.01  Thu Apr  1 21:32:31 UTC 2021
[    6.897620] initcall nvkms_init+0x0/0x1000 [nvidia_modeset] returned 0 after 3276 usecs
[    6.920696] calling  nv_linux_drm_init+0x0/0x1000 [nvidia_drm] @ 1587
[    6.922308] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    6.923922] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[    6.925371] initcall nv_linux_drm_init+0x0/0x1000 [nvidia_drm] returned 0 after 3199 usecs

>> DMESG FIRMWARE AFTER REBOOT

Code: Select all

$ dmesg |grep -i firmware
[    0.557469] calling  firmware_class_init+0x0/0xeb @ 1
[    0.557475] initcall firmware_class_init+0x0/0xeb returned 0 after 3 usecs
[    1.818112] calling  firmware_memmap_init+0x0/0x33 @ 1
[    1.818406] initcall firmware_memmap_init+0x0/0x33 returned 0 after 15 usecs
[    2.136967] i915 0000:00:02.0: firmware: direct-loading firmware i915/kbl_dmc_ver1_04.bin
[    2.137262] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    3.872242] platform regulatory.0: firmware: failed to load regulatory.db (-2)
[    3.874386] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    3.876143] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.920889] iwlwifi 0000:3e:00.0: firmware: direct-loading firmware iwlwifi-cc-a0-59.ucode
[    3.937984] iwlwifi 0000:3e:00.0: loaded firmware version 59.601f3a66.0 cc-a0-59.ucode op_mode iwlmvm
[    3.939798] iwlwifi 0000:3e:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    5.642057] Bluetooth: hci0: Firmware revision 0.0 build 121 week 7 2021
[   11.806085] r8169 0000:3d:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw

>> TESTS

Code: Select all

$ optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0xad (8/8/8/0)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 1660 Ti/PCIe/SSE2
436.715333 frames/sec - 487.374312 Mpixels/sec
454.889323 frames/sec - 507.656484 Mpixels/sec


$ nvidia-smi dmon
# gpu   pwr gtemp mtemp    sm   mem   enc   dec  mclk  pclk
# Idx     W     C     C     %     %     %     %   MHz   MHz
    0    26    44     -     9     0     0     0  6000  1455
    0    27    44     -    29     1     0     0  6000  1455
    0    27    45     -    31     1     0     0  6000  1455

>> USE OPTIRUN TO FORCE USE THE NVIDIA GPU. USE -vv --debug FOR MORE DETAILS

Code: Select all

$ optirun -vv --debug nvidia-smi
[  174.686228] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  174.686569] [DEBUG]optirun version 3.2.1 starting...
[  174.686575] [DEBUG]Active configuration:
[  174.686590] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  174.686591] [DEBUG] X display: :8
[  174.686593] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
[  174.686595] [DEBUG] Socket path: /var/run/bumblebee.socket
[  174.686597] [DEBUG] Accel/display bridge: auto
[  174.686617] [DEBUG] VGL Compression: proxy
[  174.686618] [DEBUG] VGLrun extra options:
[  174.686620] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  174.686682] [DEBUG]Using auto-detected bridge virtualgl
[  175.209976] [INFO]Response: Yes. X is active.

[  175.209986] [INFO]Running application using virtualgl.
[  175.210090] [DEBUG]Process vglrun started, PID 4933.
Sun Jul  4 04:32:26 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.73.01    Driver Version: 460.73.01    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 GTX 166...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   38C    P8     9W /  N/A |      7MiB /  5944MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      4929      G   /usr/lib/xorg/Xorg                  5MiB |
+-----------------------------------------------------------------------------+
[  175.243296] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  175.243311] [DEBUG]Socket closed.
[  175.243325] [DEBUG]Killing all remaining processes.

>> I LOCKED THE KERNEL UPDATE TO KEEP THE VERSION BELOW. SOME USERS HAVE REPORTED THAT A LATEST KERNEL PREVENTED THE CORRECT OPERATION OF THE NVIDIA GPU. I DON'T KNOW WHETHER IT IS PROCEDURE.

Code: Select all

$ uname -a
Linux mx 5.10.0-5mx-amd64 #1 SMP Debian 5.10.26-1~mx19+1 (2021-04-01) x86_64 GNU/Linux

Would there be any other way to contribute to the MX Linux project? What is the possibility that the next version will already natively have the solution for my hardware?

Huckleberry Finn

Re: Can't Install NVidia on Laptop Intel-TongFang QC71 9750H + 1660Ti with MX 19.4 AHS  [Solved]

#10 Post by Huckleberry Finn »

If you feel so:
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Bugs and Non-Package Requests Forum”