Nvidia and other problems in HP laptop and Debian 10

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-11 11:51

Hi to Everybody,

I've just installed Debian 10 with LXQT Desktop on my quite new HP laptop 15-dw0004nl (Intel i5 and Nvidia Geforce MX110 plus Intel UHD620 integrated video card).

I've solved the problems with the wifi adapter (RTL8821CE), but not with the graphic cards.

I've installed the Nvidia drivers following an official Debian tutorial, but they don't work.

If I do in the terminal nvidia-xconfig, it writes a new configuration file but when I reboot the system the graphic servers doesn't start so I remain without graphical desktop environment.

The command nvidia-settings in the terminal says that 'Nvidia driver is not loaded'.

I've updated kernel to 5.4 and 5.5: the problem is not solved.

During the bootload I've seen an error regarding the loading of kernel modules, with systemctl... command doing a recovery boot mode it says that the problem is the Nvidia driver.

So, now I'm confused:

- how can I see which graphic card is active?

- how can I choose the one I want to be active?

- why 'additional drivers' doesn't work (there is not this option also in software-properties).

Only for reference and hoping this could help: this machine is in triple boot, amongst the others Lubuntu 20.04 works fine (Nvidia-settings works).

Thanks in advance for the help!
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby Head_on_a_Stick » 2020-06-11 12:06

stilnovo wrote:nvidia-xconfig

From the package information:
This tool is deprecated. The NVIDIA drivers now automatically integrate with the Xorg Xserver configuration. Creating an xorg.conf is no longer needed for normal setups.

https://packages.debian.org/buster/nvidia-xconfig

stilnovo wrote:I've updated kernel to 5.4 and 5.5

Debian 10 uses kernel 4.19...

stilnovo wrote:it says that the problem is the Nvidia driver

You should post the full, verbatim error message rather than a vague description. Check the systemd journal and the dmesg(8) output.

stilnovo wrote:- how can I see which graphic card is active?

Check the X.Org log (if you're using X) or the systemd journal.

stilnovo wrote:- how can I choose the one I want to be active?

Some machines have options in the firmware ("BIOS") to either permanently enable or disable the discrete GPU.

Otherwise try Bumblebee (with the optirun command) or PRIME.

stilnovo wrote:- why 'additional drivers' doesn't work (there is not this option also in software-properties).

No idea what this means, sorry.

stilnovo wrote:amongst the others Lubuntu 20.04 works fine

In contrast to *buntu, Debian cannot support the proprietary NVIDIA drivers in the official release because they do not conform to the Free Software Guidelines and your card is probably too new for nouveau.

Why did you buy NVIDIA hardware if you wanted to use Debian? That's just asking for trouble :mrgreen:
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12483
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-11 17:38

Thank you for your reply!

Well, I know nvidia-xconfig is deprecated, but when you are desperate... :D

Also updating the kernel has been a desperate move... I've done it since updating the kernel in Lubuntu has solved several problems in this notebook, specially regarding the wifi adapter (also in this case).

Ok, now the lines quoted from journalctl:

giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: Inserted module 'parport_pc'
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: ERROR: could not insert 'nvidia': Operation not permitted
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: FATAL: Module nvidia-current-modeset not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia_modeset
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: ERROR: could not insert 'nvidia_modeset': Operation not permitted
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: modprobe: FATAL: Module nvidia-current-drm not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: Error running install command for nvidia_drm
giu 11 16:57:57 zambo-hp-debian systemd-modules-load[299]: Failed to insert module 'nvidia_drm': Operation not permitted
giu 11 16:57:57 zambo-hp-debian systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
giu 11 16:57:57 zambo-hp-debian systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
giu 11 16:57:57 zambo-hp-debian systemd[1]: Failed to start Load Kernel Modules.

and:

giu 11 16:57:58 zambo-hp-debian systemd-udevd[379]: Error running install command for nvidia

also:

giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: ERROR: could not insert 'nvidia': Operation not permitted
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: FATAL: Module nvidia-current-modeset not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia_modeset
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: ERROR: could not insert 'nvidia_modeset': Operation not permitted
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: modprobe: FATAL: Module nvidia-current-drm not found in directory /lib/modules/5.5.0-0.bpo.2-amd64
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: Error running install command for nvidia_drm
giu 11 16:58:02 zambo-hp-debian systemd-modules-load[760]: Failed to insert module 'nvidia_drm': Operation not permitted
giu 11 16:58:02 zambo-hp-debian systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
giu 11 16:58:02 zambo-hp-debian systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
giu 11 16:58:02 zambo-hp-debian systemd[1]: Failed to start Load Kernel Modules.

indeed:

giu 11 16:58:03 zambo-hp-debian kernel: audit: type=1400 audit(1591887483.228:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=796 comm="apparmor_parser"
giu 11 16:58:03 zambo-hp-debian kernel: audit: type=1400 audit(1591887483.228:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=796 comm="apparmor_parser"
giu 11 16:58:03 zambo-hp-debian audit[796]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=796 comm="apparmor_parser"
giu 11 16:58:03 zambo-hp-debian audit[796]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=796 comm="apparmor_parser"

and:

giu 11 16:58:04 zambo-hp-debian nvidia-persistenced[849]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 116 has read and write permissions for th
giu 11 16:58:04 zambo-hp-debian nvidia-persistenced[849]: Shutdown (849)
giu 11 16:58:04 zambo-hp-debian nvidia-persistenced[846]: nvidia-persistenced failed to initialize. Check syslog for more details

and:

giu 11 16:58:06 zambo-hp-debian systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
giu 11 16:58:06 zambo-hp-debian systemd[1]: Failed to start NVIDIA Persistence Daemon.

with glxinfo I've discovered I'm using the integrated garphic card (HD Graphics Whiskey Lake 3x8 GT2)

In every desktop environment there is an option to manage eventual additional drivers; also in 'software-properties' (both qt and gtk) there is, usually, this menu. In this case, no...

Well, I've tried Debian 10 on another older notebook (with LXDE), and I was very intrigued... the notebook was a very special offer (499€)!! :D
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby Head_on_a_Stick » 2020-06-11 21:25

I really don't have a clue about NVIDIA but IIRC the proprietary blob won't always build with the very latest kernel versions and it looks like the module for the backported kernel is missing in your box.

If you wait a bit then somebody experienced with NVIDIA issues may offer better assistance.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12483
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stevepusser » 2020-06-12 05:44

It sounds like it's an Optimus laptop, so you should read that section in the wiki and decide whether to use Bumblebee or Prime to access the Nvidia card. Right now, it's probably using the Intel GPU, which is default.

You could let us know what hardware and driver situation you have at the moment by installing inxi and providing the output of
Code: Select all
inxi -Fxxxz
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 11975
Joined: 2009-10-06 05:53

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-12 10:15

First of all: ciao!

Code: Select all
System:    Host: zambo-hp-debian Kernel: 5.5.0-0.bpo.2-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: LXQt 0.14.1
           info: lxqt-panel wm: xfwm4 dm: SDDM Distro: Debian GNU/Linux 10 (buster)
Machine:   Type: Laptop System: HP product: HP Laptop 15-dw0xxx v: Type1ProductConfigId serial: <filter> Chassis: type: 9
           serial: <filter>
           Mobo: HP model: 85F0 v: 36.30 serial: <filter> UEFI: Insyde v: F.13 date: 07/31/2019
Battery:   ID-1: BAT1 charge: 40.0 Wh condition: 40.0/41.0 Wh (98%) volts: 12.9/11.4 model: Hewlett-Packard PABAS0241231
           type: Li-ion serial: <filter> status: Full
CPU:       Topology: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP arch: Kaby Lake rev: B L2 cache: 6144 KiB
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800
           Speed: 1025 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 898 2: 864 3: 729 4: 819 5: 854 6: 753 7: 772 8: 734
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3ea0
           Device-2: NVIDIA GM108M [GeForce MX110] vendor: Hewlett-Packard driver: N/A bus ID: 01:00.0 chip ID: 10de:174e
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics (Whiskey Lake 3x8 GT2) v: 4.5 Mesa 18.3.6 compat-v: 3.0
           direct render: Yes
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
           bus ID: 00:1f.3 chip ID: 8086:9dc8
           Sound Server: ALSA v: k5.5.0-0.bpo.2-amd64
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel
           port: 4000 bus ID: 02:00.0 chip ID: 10ec:8168
           IF: eno1 state: down mac: <filter>
           Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtl8821ce v: N/A
           port: 3000 bus ID: 03:00.0 chip ID: 10ec:c821
           IF: wlo1 state: up mac: <filter>
Drives:    Local Storage: total: 1.48 TiB used: 179.95 GiB (11.9%)
           ID-1: /dev/sda vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm
           serial: <filter> rev: 4C scheme: GPT
           ID-2: /dev/sdb vendor: Samsung model: MZNLN128HAHQ-000H1 size: 119.24 GiB speed: 6.0 Gb/s serial: <filter>
           rev: 4H3Q scheme: GPT
           ID-3: /dev/sdc type: USB vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB rotation: 5400 rpm serial: <filter>
           rev: AM0P scheme: MBR
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 port: 6060 bus ID: 00:17.0
           chip ID: 8086.282a rev: 30
Partition: ID-1: / size: 143.18 GiB used: 9.96 GiB (7.0%) fs: ext4 dev: /dev/sda4
Sensors:   System Temperatures: cpu: 38.0 C mobo: 29.8 C
           Fan Speeds (RPM): N/A
Info:      Processes: 216 Uptime: 3m Memory: 7.73 GiB used: 814.6 MiB (10.3%) Init: systemd v: 241 runlevel: 5 Compilers:
           gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 running in: qterminal inxi: 3.0.32



so, now I'm using the integrated graphic card....am I right?
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-14 07:26

nobody has a notebook with Nvidia? Help me (if you can, of course :D )!
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby LE_746F6D617A7A69 » 2020-06-14 09:03

Is it really that hard to use search engines :?:

Official installation instructions for Debian:
https://wiki.debian.org/Bumblebee

Since You are a beginner, I would suggest to use the bumblebee-nvidia option, not nouveau - because the nouveau driver may need some additional tweaks to work optimally (re-clocking, setting initial power-save mode, ...)
.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 340
Joined: 2020-05-03 14:16

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-14 13:34

LE_746F6D617A7A69 wrote:Is it really that hard to use search engines :?:

Official installation instructions for Debian:
https://wiki.debian.org/Bumblebee

Since You are a beginner, I would suggest to use the bumblebee-nvidia option, not nouveau - because the nouveau driver may need some additional tweaks to work optimally (re-clocking, setting initial power-save mode, ...)
.


Well thank you for your support, I really don't understand anything about graphic cards and I didn't know that my notebook had Optimus technology (by the way, I see that the graphic card supports it, on the notebook data sheet there is nothing about).

So, yes: I found the link you provided, but I was not sure. I will immediately give it a try!

I will write a feedback later.

(with Lubuntu 20.04 the Nvidia driver is loaded, Nvidia-settings starts and it permits to me to choose which graphic card will be operative at the next reboot - only to understand something more, I like to learn)
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-14 14:29

no, Bumblebee doesn't seem to work.

The problem is very similar to the one provided here: https://superuser.com/questions/1484109 ... of-nouveau

When I try to load nvidia-settings:
Code: Select all
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system


Also the output of inxi is the same I previously posted... :|
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby LE_746F6D617A7A69 » 2020-06-14 14:39

nvidia-settings has to started with optirun:
Code: Select all
optirun nvidia-settings


Also, check if your user account is added to the bumblebee group, as suggested in the debian wiki.

EDID: see also the "Common Issues" at the wiki page. /EDID
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 340
Joined: 2020-05-03 14:16

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-14 20:48

Ciao!

Well, I've added my account to the bumblebee group (it was already in), I've read and followed all the instructions in the wiki, but:

Code: Select all
zambo@zambo-hp-debian:~$ optirun nvidia-settings

ERROR: Unable to load info from any available system


:cry:

in 'common issues' I did not find a similar case to mine, unfortunately...
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stevepusser » 2020-06-15 03:19

With Bumblebee, nvidia-settings has to be started with

Code: Select all
optirun -b none nvidia-settings -c :8


This assumes you correctly followed the Debian wiki, like I suggested in my first answer, and Bumblebee is working. Since you don't seem to want to look at the umpteen other threads from users here that got it working, and you have inxi installed now, check the output of

Code: Select all
inxi -G


versus

Code: Select all
optirun inxi -G


to see if the nvidia card is doing the 3D rendering with the second command. Like on the laptop I'm using right now:

Code: Select all
$ optirun inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: nvidia v: 440.82
           Display: x11 server: X.Org 1.20.4 driver: intel resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 11975
Joined: 2009-10-06 05:53

Re: Nvidia and other problems in HP laptop and Debian 10

Postby stilnovo » 2020-06-15 08:02

@stevepusser

Thanks for your support.

Well, I've read a lot of threads (not only in Debian user forums) before to write mine, I've tried a lot of things, but I was not successful: if I can, I prefer not to write here since I like things that go smooth.

I'm a beginner, but I like to learn, so here I am (for sure I've done a lot of mistakes, but I try to follow your suggestions).

All this being said:

Code: Select all
optirun -b none nvidia-settings -c :8
[  155.821222] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

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


and:

Code: Select all
inxi -G
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel
           Device-2: NVIDIA GM108M [GeForce MX110] driver: N/A
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics (Whiskey Lake 3x8 GT2) v: 4.5 Mesa 18.3.6


and:

Code: Select all
optirun inxi -G
[  677.994900] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[  677.994981] [ERROR]Aborting because fallback start is disabled.
stilnovo
 
Posts: 9
Joined: 2020-06-11 11:20

Re: Nvidia and other problems in HP laptop and Debian 10

Postby Scorpion » 2020-08-06 14:40

I had the same problem with a fresh debian 10 installation.
It is really frustrating!!!

The wiki https://wiki.debian.org/NvidiaGraphicsDrivers doesn' t say to install all the required kernels headers:
Code: Select all
apt install linux-headers-4.19.0-10-amd64 linux-headers-4.19.0-10-common

It states to install only the generic (?) headers:
Code: Select all
apt install linux-headers-amd64


But it is not enough, I had to use also:
Code: Select all
apt install linux-headers-$(uname -r) build-essential

I found this here https://linuxconfig.org/how-to-install- ... ster-linux.
But in the section "How to install NVIDIA driver by using the official nvidia.com package step by step instructions", better to use the debian package although it could break the GUI...
(uname -r) is the kernel that you are using.

So maybe is this the problem.

Before it is better to make a backup with timeshift, so you won' t lost the GUI.
I don' t know if the kernels from the backports will work, maybe I will try.
User avatar
Scorpion
 
Posts: 231
Joined: 2018-10-17 11:38

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable