how to upgrade debian 10 kernel from the backports without r

Kernels & Hardware, configuring network, installing services

how to upgrade debian 10 kernel from the backports without r

Postby marietto » 2019-10-07 19:23

I'm running debian 10 on a I9-9900k + gigabyte aurus pro (with the intel graphic chipset integrated) + nvidia RTX 2080ti graphic card. I have two monitors. I want to have the monitor B working with the nvidia graphic card and the monitor A with the intel integrated chipset. The problem is that only the monitor B is working now. The monitor B is turned off. Maybe there is something bad with the secondary graphic card,because debian disable the card that's not the most important. I want to enable it. Someone said to me that the kernel that I'm using (4.19) is old and it does not support the intel chipset of the mobo. I would like to update it,but I don't know how to do that. He said also that it is in the backports. So a couple of lines should be enough. I tried to compile a new kernel from scratch,version 5.3.2,using the default settings,but it didn't work,infact it freezes on the boot stage. So,the question is : how to upgrade easily the kernel of debian 10 buster,from 4.19 at least to a version that allows me to enable the intel chipset and also the firmware-misc-nonfree. thanks.
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-07 19:46

linux-image-5.2.0-0.bpo.2-amd64 is available @ buster-backports

[ replace 'ftp.de' by your country
Code: Select all
# as root
echo 'deb http://ftp.de.debian.org/debian buster-backports main' |  tee -a /etc/apt/sources.list
apt update
apt policy linux-image-amd64
apt install linux-image-amd64=5.2+106~bpo10+1
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-07 20:49

/etc/kernel/postinst.d/dkms:
Error! Your kernel headers for kernel 5.2.0-0.bpo.2-amd64 cannot be found.
Please install the linux-headers-5.2.0-0.bpo.2-amd64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.2.0-0.bpo.2-amd64

root@DESKTOP-N9UN2H3:/home/mariozio# apt install linux-headers-5.2.0-0.bpo.2-amd64
Configurazione di linux-headers-5.2.0-0.bpo.2-amd64 (5.2.9-2~bpo10+1)...
/etc/kernel/header_postinst.d/dkms:
Error! Bad return status for module build on kernel: 5.2.0-0.bpo.2-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/418.74/build/make.log for more information.
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-07 20:51

Code: Select all
apt remove dkms
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-07 21:15

yeah,thanks. Now I have another error : can't connect to Xorg when I'm on rescue mode. And it freezes when it says : "gnome desktop manager initialized" when I'm on the normale mode. Anyway this kernel is able to make work the intel graphic chipset embedded inside the mobo. Actually the monitor attached to the nvidia graphic card is turned off. The monitor attached to the intel graphic is turned on.
Last edited by marietto on 2019-10-07 21:18, edited 1 time in total.
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-07 21:18

marietto wrote:dkms/nvidia-current
Where did you get your nvidia driver ?
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-07 21:19

apt install nvidia-driver
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-07 21:21

I see, then needs nvidia-kernel-dkms.
+
Code: Select all
dpkg -l 'nvidia*' | awk '{print $1,$2}'
then
Code: Select all
apt remove linux-headers-amd64
apt-get install --no-install-recommends nvidia-driver linux-image-amd64=5.2+106~bpo10+1

+if, only if you really need linux-headers (??), they are available
Code: Select all
apt install linux-headers-amd64=5.2+106~bpo10+1
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-07 21:42

I'm not able to write the curly brackets on the keyboard :(
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-07 21:44

Ha yeah... I see. Then forget this command, and go further. If OK,
+
Code: Select all
apt install firmware-linux-free  libgles-nvidia1 libgles-nvidia2 libnvidia-cfg1 libopengl0  nvidia-persistenced nvidia-settings nvidia-vulkan-icd
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby stevepusser » 2019-10-08 00:43

Debian currently doesn't have any nvidia-driver in buster-backports, and the stock 4.18.74 version won't build on a 5.2 kernel. You'll have to wait until Debian gets one in there, if you want to stick to straight Debian instead of a derivative.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11254
Joined: 2009-10-06 05:53

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-08 08:18

I've installed the suggested packages. it freezes again on boot,giving the error "failed to start nvidia persistence demon" ; failed to load kernel modules....
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-08 10:59

More explicit output might be helpful...
run:
Code: Select all
nvidia-smi
and check "Persistence-M" parameter.
+
Code: Select all
systemctl status nvidia-persistenced-manual.service

I don't have nvidia graphics to help.
If nvidia-driver buster driver is really not compatible with kernel 5.20, I wonder why there is no apt compatibility issue.

+ did you install the linux-headers ? If no, try to see if it helps.
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Re: how to upgrade debian 10 kernel from the backports witho

Postby marietto » 2019-10-08 12:37

nothing works correctly. check here : https://ibb.co/album/ekydOv
marietto
 
Posts: 52
Joined: 2014-07-13 16:30

Re: how to upgrade debian 10 kernel from the backports witho

Postby L_V » 2019-10-08 12:59

Code: Select all
systemctl start nvidia-persistenced-manual
L_V
 
Posts: 1125
Joined: 2007-03-19 09:04

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable