(SOLVED) Tainted Kernel, every kernel.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tek3195
Level 1
Level 1
Posts: 23
Joined: Fri Feb 22, 2019 4:45 am

(SOLVED) Tainted Kernel, every kernel.

Post by tek3195 »

Hello, I have a custom desktop running Linux Mint that keeps crashing. The display goes black with no signal and mouse/keyboard do not work except SysReq with REISUB. Kernel is tainted from nvidia gpu and I have installed and uninstalled nvidia drivers and every kernel in update manager to no avail. I have also tried newer kernels with mainline kernel installer up to 6.2.8. How do I go about cleaning what needs to be cleaned to install kernel and drivers that aren't tainted ?

Code: Select all

tek3195@desktop:~$ sudo inxi -Fxxxrz
[sudo] password for tek3195:  
System:
  Kernel: 5.15.0-69-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x
    serial: <filter> UEFI: American Megatrends v: 1605 date: 07/14/2020
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Keys Wireless Keyboard
    serial: <filter> charge: 50% (should be ignored) rechargeable: yes
    status: Discharging
CPU:
  Info: 8-core model: Intel Core i7-9700 bits: 64 type: MCP
    smt: <unsupported> arch: Coffee Lake rev: D cache: L1: 512 KiB L2: 2 MiB
    L3: 12 MiB
  Speed (MHz): avg: 836 high: 1093 min/max: 800/4700 volts: 0.9 V
    ext-clock: 100 MHz cores: 1: 1093 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 bogomips: 48000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel ports: active: none empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:3e98 class-ID: 0300
  Device-2: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI
    driver: nouveau v: kernel pcie: speed: 2.5 GT/s lanes: 16 ports:
    active: HDMI-A-3 empty: DP-2,DVI-D-1,DVI-I-1 bus-ID: 01:00.0
    chip-ID: 10de:13c2 class-ID: 0300
  Device-3: Teslong Endoscope Camera type: USB driver: uvcvideo
    bus-ID: 1-5:3 chip-ID: f007:a999 class-ID: 0e02
  Display: server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: HDMI-3 mapped: HDMI-A-3 model: WH27FX9019 serial: <filter>
    res: 1920x1080 hz: 60 dpi: 82 size: 597x336mm (23.5x13.2")
    diag: 685mm (27") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: NV124 v: 4.3 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
    class-ID: 0403
  Device-2: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:0fbb class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-69-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2526 class-ID: 0280
  IF: wlp5s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 1-12:4 chip-ID: 8087:0025 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 100 hci-v: 5.1 rev: 100
Drives:
  Local Storage: total: 5 TiB used: 614.29 GiB (12.0%)
  ID-1: /dev/nvme0n1 vendor: Smart Modular Tech. model: SHGP31-1000GM
    size: 931.51 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 41062C20 temp: 39.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXE7 temp: 28.9 C scheme: GPT
  ID-3: /dev/sda vendor: Smart Modular Tech. model: SHGS31-1000GS-2
    size: 931.51 GiB speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0Q00
    scheme: GPT
  ID-4: /dev/sdb vendor: Western Digital model: WD20SPZX-22UA7T0
    size: 1.82 TiB speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A01 scheme: GPT
  ID-5: /dev/sdc type: USB vendor: Western Digital
    model: WD My Passport 2626 size: 931.48 GiB type: N/A serial: <filter>
    rev: 1028 scheme: GPT
Partition:
  ID-1: / size: 456.9 GiB used: 17.07 GiB (3.7%) fs: ext4 dev: /dev/nvme1n1p2
  ID-2: /boot/efi size: 498.7 MiB used: 15.3 MiB (3.1%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-3: /home size: 864.47 GiB used: 66.58 GiB (7.7%) fs: ext4
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nouveau temp: 44.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Repos:
  Packages: apt: 2854
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/graphics-drivers-ppa-jammy.gpg] https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vera main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 315 Uptime: 12m wakeups: 5 Memory: 31.21 GiB
  used: 2.17 GiB (7.0%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12 Shell: Sudo (sudo) v: 1.9.9 default: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.13

output of journalctl -rb -1
https://termbin.com/ez6k
Last edited by LockBot on Fri Sep 29, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
There are three kinds of people in this world, those that can count and those that can't.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Tainted Kernel, every kernel.

Post by deepakdeshp »

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Tainted Kernel, every kernel.

Post by SMG »

tek3195 wrote: Wed Mar 29, 2023 6:23 pmKernel is tainted from nvidia gpu and I have installed and uninstalled nvidia drivers and every kernel in update manager to no avail. I have also tried newer kernels with mainline kernel installer up to 6.2.8. How do I go about cleaning what needs to be cleaned to install kernel and drivers that aren't tainted ?
You can not. The kernel is always tainted when you install a third-party driver such as Nvidia. In fact, there is a problem if the kernel is not tainted.
What is a tainted kernel in Linux?
tek3195 wrote: Wed Mar 29, 2023 6:23 pmHello, I have a custom desktop running Linux Mint that keeps crashing.
What is a custom desktop?

The fact the kernel is tainted has nothing to do with your display going black or your mouse or keyboard not working. Are you only worried about the kernel taint or are these other issues the real problem?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Tainted Kernel, every kernel.

Post by SMG »

tek3195 wrote: Wed Mar 29, 2023 6:23 pm output of journalctl -rb -1
I just checked this and it appears you may be running into the issue with the nvidia-blacklist file which is preventing the Nvidia driver from loading.

Check to make sure there is not a "blacklist-nvidia.conf" file (or something similarly named) by getting a list of the files in the /lib/modprobe.d directory.

Code: Select all

ls -l /lib/modprobe.d
Several people with dual-graphics desktops (like you have) have run into the issue and when they ran

Code: Select all

sudo rm /lib/modprobe.d/blacklist-nvidia.conf
to remove the file and rebooted then the nvidia driver loaded like it should.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
tek3195
Level 1
Level 1
Posts: 23
Joined: Fri Feb 22, 2019 4:45 am

Re: Tainted Kernel, every kernel.

Post by tek3195 »

SMG wrote: Wed Mar 29, 2023 7:32 pm The fact the kernel is tainted has nothing to do with your display going black or your mouse or keyboard not working. Are you only worried about the kernel taint or are these other issues the real problem?
Yes the other issues are the real problem, with no display, mouse or keyboard it's pretty much useless. The tainted kernel was something I found when trying to figure it out. It happens randomly from 5 minutes to 12+ hours in use.
Last edited by Moem on Thu Mar 30, 2023 2:57 am, edited 2 times in total.
Reason: Fixed the quotes, so that every line that is not part of the quote, is outside of the quote tags.
There are three kinds of people in this world, those that can count and those that can't.
User avatar
SMG
Level 25
Level 25
Posts: 31988
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Tainted Kernel, every kernel.

Post by SMG »

tek3195 wrote: Wed Mar 29, 2023 10:57 pmYes the other issues are the real problem, with no display, mouse or keyboard it's pretty much useless...It happens randomly from 5 minutes to 12+ hours in use.
Do you have the computer set to automatically suspend if it is not in use? If that is the case and you are using an Nvidia driver, please make sure you have the workaround mentioned in this post in place. Most 700 and 900 series GPUs have the issue. If you need detailed instructions for editing the file then see this post and the subsequent ones in that topic.

Some GPUs also have uses resuming from suspend when using the open-source nouveau driver.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
stevengarland
Level 5
Level 5
Posts: 843
Joined: Tue Mar 05, 2019 4:04 pm
Location: Michigan

Re: Tainted Kernel, every kernel.

Post by stevengarland »

When I have had Nvidia trouble I switched to the Noveau open source driver and the problem went away. Driver Manager.
Keep It Simple Sweetheart
tek3195
Level 1
Level 1
Posts: 23
Joined: Fri Feb 22, 2019 4:45 am

Re: Tainted Kernel, every kernel.

Post by tek3195 »

SMG wrote: Thu Mar 30, 2023 8:35 am
tek3195 wrote: Wed Mar 29, 2023 10:57 pmYes the other issues are the real problem, with no display, mouse or keyboard it's pretty much useless...It happens randomly from 5 minutes to 12+ hours in use.
Do you have the computer set to automatically suspend if it is not in use? If that is the case and you are using an Nvidia driver, please make sure you have the workaround mentioned in this post in place. Most 700 and 900 series GPUs have the issue. If you need detailed instructions for editing the file then see this post and the subsequent ones in that topic.

Some GPUs also have uses resuming from suspend when using the open-source nouveau driver.
No it is set to never in power management. I've switched to nouveau driver and same problem still exists.
There are three kinds of people in this world, those that can count and those that can't.
User avatar
zcot
Level 9
Level 9
Posts: 2838
Joined: Wed Oct 19, 2016 6:08 pm

Re: Tainted Kernel, every kernel.

Post by zcot »

Code: Select all

sudo update-initramfs -u -k all
If you're not using the nvidia driver, and at least you are not in the output above, then this will remove any reference for the nvidia driver(which is possibly not even on the system anymore), from any attempts at booting it.

Just curious, when the screen goes black, how are you sure that the mouse and keyboard aren't working? -because you mention using REISUB.

ps. disable your onboard intel gpu.
tek3195
Level 1
Level 1
Posts: 23
Joined: Fri Feb 22, 2019 4:45 am

Re: Tainted Kernel, every kernel.

Post by tek3195 »

zcot wrote: Thu Mar 30, 2023 2:54 pm

Code: Select all

sudo update-initramfs -u -k all
If you're not using the nvidia driver, and at least you are not in the output above, then this will remove any reference for the nvidia driver(which is possibly not even on the system anymore), from any attempts at booting it.

Just curious, when the screen goes black, how are you sure that the mouse and keyboard aren't working? -because you mention using REISUB.

ps. disable your onboard intel gpu.
I couldn't keep messing around with rebooting constantly to have a system that worked. The nvidia gpu has been removed, now running on built-in graphics. About five hours so far and it hasn't went black yet, but that doesn't mean anything. It will sometimes go 12 hours or more without going black. The gpu was there for the color scheme and was not needed.

How do I know the keyboard and mouse not working is a good question. I said not working because they would not wake the computer like they used to. Sysrq key I thought worked regardless of system state and REISUB was only thing I was able to do with keyboard.
There are three kinds of people in this world, those that can count and those that can't.
User avatar
zcot
Level 9
Level 9
Posts: 2838
Joined: Wed Oct 19, 2016 6:08 pm

Re: Tainted Kernel, every kernel.

Post by zcot »

tek3195 wrote: Thu Mar 30, 2023 7:23 pm The nvidia gpu has been removed,
Ok, great. At a minimum this should either show some different result or not. :lol: -which is good in the end, that's progress.

tek3195 wrote: Thu Mar 30, 2023 7:23 pm keyboard and mouse not working
Based on the stuff, and I'm not completely guessing, but I would see the keyboard and mouse were working, and probably was a gpu-related problem. -well REISUB worked so that's a thing.


Keep us posted. :wink:
tek3195
Level 1
Level 1
Posts: 23
Joined: Fri Feb 22, 2019 4:45 am

Re: Tainted Kernel, every kernel.

Post by tek3195 »

zcot wrote: Thu Mar 30, 2023 8:02 pm
tek3195 wrote: Thu Mar 30, 2023 7:23 pm The nvidia gpu has been removed,
Ok, great. At a minimum this should either show some different result or not. :lol: -which is good in the end, that's progress.

tek3195 wrote: Thu Mar 30, 2023 7:23 pm keyboard and mouse not working
Based on the stuff, and I'm not completely guessing, but I would see the keyboard and mouse were working, and probably was a gpu-related problem. -well REISUB worked so that's a thing.


Keep us posted. :wink:

I believe I'm going to blame it on the graphics card. 24 hours now without issue using integrated graphics. The card was kinda old and well used over numerous PC builds. Never had problems with it until recently and going back to a kernel and drivers that worked before should work now and that's just not the case. I didn't need it but the gaping hole kinda sucks. Oh well, is what it is and ain't what it ain't.
There are three kinds of people in this world, those that can count and those that can't.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: (SOLVED) Tainted Kernel, every kernel.

Post by dudesplace »

I haven't read through this whole thread but I had a similar issue and it ended up being a hardware issue, popped cap on motherboard or GPU.
If you hardware is of age I would look for signs of power supply and or board issues. Just a thought, if it's 5 years or older, over worked, over temped,etc,
it's a very likely issue.

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
Locked

Return to “Installation & Boot”