Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Virtual Console Broken with Nvidia since Kernel 6.0  (Read 3141 times)

Offline terroreek

  • User
  • Posts: 202
Hi All,

Not sure if anyone else is having this issue since upgrading to any of the 6.0 kernels with nvidia cards.  With the 6.0 kernels when I switch to TTY3.  I just have a frozen black screen, I see that getty starts fine, and so does gnome but I just dont have a usable virtual console.  If I boot into the last 5.19 kernel virtual console works fine. 

I don't have this issue on my laptop with an intel gpu so I am assuming this has to do with the nvidia driver and linux 6.0 kernel.

Offline michaa7

  • User
  • Posts: 2.295
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #1 on: 2022/11/07, 17:42:02 »
TTY3 means "Strg-Alt-F3" ?

Quote
# uname -r
6.0.7-1-siduction-amd64

nvidia470

No problem here.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #2 on: 2022/11/07, 21:13:16 »
Two of my systems are KDE/plasma with Nvidia graphics -- I see no performance issues, including tty consoles.  Here's one:

Code: [Select]
don@dibl-patience:~$ inxi -SAG
System:
  Host: dibl-patience Kernel: 6.0.7-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.26.2 Distro: siduction 18.3.0 Patience - kde -
    (201805132121)
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 510.85.02
  Device-2: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 with: Xwayland v: 22.1.5
    driver: N/A resolution: 1: 1920x1200~60Hz 2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 510.85.02 renderer: NVIDIA GeForce GTX 1060
    6GB/PCIe/SSE2
Audio:
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
  Device-3: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k6.0.7-1-siduction-amd64 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: yes
  Sound Server-2: PipeWire v: 0.3.59 running: yes
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline terroreek

  • User
  • Posts: 202
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #3 on: 2022/11/07, 21:56:15 »
TTY3 means "Strg-Alt-F3" ?

Quote
# uname -r
6.0.7-1-siduction-amd64

nvidia470

No problem here.

Yes TTY3 being "CTRL-ALT-F3"

Offline terroreek

  • User
  • Posts: 202
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #4 on: 2022/11/07, 22:01:10 »
Two of my systems are KDE/plasma with Nvidia graphics -- I see no performance issues, including tty consoles.  Here's one:

Code: [Select]
don@dibl-patience:~$ inxi -SAG
System:
  Host: dibl-patience Kernel: 6.0.7-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.26.2 Distro: siduction 18.3.0 Patience - kde -
    (201805132121)
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 510.85.02
  Device-2: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 with: Xwayland v: 22.1.5
    driver: N/A resolution: 1: 1920x1200~60Hz 2: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 510.85.02 renderer: NVIDIA GeForce GTX 1060
    6GB/PCIe/SSE2
Audio:
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
  Device-3: Logitech HD Pro Webcam C920 type: USB
    driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k6.0.7-1-siduction-amd64 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: yes
  Sound Server-2: PipeWire v: 0.3.59 running: yes

Ok thats weird, I am am have the same driver here the output from my system.  The only thing I can think of is I am running at 3840x2160 at 120Hz and connected to my display via HDMI. 

Code: [Select]
System:
  Host: darthvader Kernel: 6.0.7-1-siduction-amd64 arch: x86_64 bits: 64
    Desktop: GNOME v: 43.1 Distro: siduction 18.3.0 Patience - gnome -
    (201805132110)
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3080] driver: nvidia v: 510.85.02
  Device-2: NVIDIA GP104 [GeForce GTX 1070] driver: vfio-pci v: N/A
  Device-3: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Device-4: Elgato Systems GmbH Cam Link 4K type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 with: Xwayland v: 22.1.5
    driver: N/A resolution: 3840x2160
  API: OpenGL v: 4.6.0 NVIDIA 510.85.02 renderer: NVIDIA GeForce RTX
    3080/PCIe/SSE2
Audio:
  Device-1: NVIDIA GA102 High Definition Audio driver: snd_hda_intel
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  Device-3: NVIDIA GP104 High Definition Audio driver: vfio-pci
  Device-4: Schiit Audio Unison Modius type: USB driver: snd-usb-audio
  Device-5: Blue Microphones Yeti Stereo Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-6: Logitech BRIO Ultra HD Webcam type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Device-7: Giga-Byte USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-8: Elgato Systems GmbH Cam Link 4K type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Device-9: Giga-Byte USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.0.7-1-siduction-amd64 running: yes
  Sound Server-1: PipeWire v: 0.3.59 running: yes

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #5 on: 2022/11/07, 22:40:22 »
In your /etc/defaul/grub file, have you specified a GFX_Mode line?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline terroreek

  • User
  • Posts: 202
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #6 on: 2022/11/08, 00:00:20 »
I tried setting it to, GRUB_GFXMODE=1280x1024, which I got from the grub command line.
I will try the other settings.  I also tried passing nomodeset as a command line option as well.

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #7 on: 2022/11/08, 00:20:00 »
I see your monitor supports higher resolutions than I have. My /etc/default/grub file has this line:

Code: [Select]
GRUB_GFXMODE=1600x1024x24
Have you used the "vbeinfo" command in grub to verify your monitor's capability?

Some info here:  https://superuser.com/questions/138353/problem-setting-command-line-console-resolution-vbeinfo-in-grub2-does-not-repor

System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline michaa7

  • User
  • Posts: 2.295
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #8 on: 2022/11/08, 09:47:33 »
...
With the 6.0 kernels when I switch to TTY3.  I just have a frozen black screen...

May be a very stupid question:

Is this limited to TTY3? Or does it apply to TTY2/4/5/6 , too?
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline terroreek

  • User
  • Posts: 202
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #9 on: 2022/11/08, 16:33:08 »
I see your monitor supports higher resolutions than I have. My /etc/default/grub file has this line:

Code: [Select]
GRUB_GFXMODE=1600x1024x24
Have you used the "vbeinfo" command in grub to verify your monitor's capability?

Some info here:  https://superuser.com/questions/138353/problem-setting-command-line-console-resolution-vbeinfo-in-grub2-does-not-repor

Yeah when I tried vbeinfo from the grub command line I got an error saying it can't find the command vbeinfo, I did use videoinfo and thats where I saw the capabilities.

The options presented to me were 800x600x32, 1024x768x32, and 1280x1024x32.

Code: [Select]
GNU GRUB
version 2.02+dfsg1-4
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. ESC at any time exit
grub> vbeinfo
error: can't find command `vbeinfo'.
grub> set pager=1 grub> vbeinfo
error: can't find command vbeinfo'.
grub> videoinfo
List of supported video modes:
Legend: mask/position=red/green/blue/reserved
Adapter Cirrus CLGD 5446 PCI Video Driver':
  No info available
Adapter Bochs PCI Video Driver':
  No info available
Adapter EFI GOP driver':
0x000 800 X 600 × 32 (3200) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
0x001 1024 x 768 × 32 (4096) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
* 0x002 1280 x 1024 x 32 (5120) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
grub>

That's what I get

...
With the 6.0 kernels when I switch to TTY3.  I just have a frozen black screen...

May be a very stupid question:

Is this limited to TTY3? Or does it apply to TTY2/4/5/6 , too?
It affects all of them, If switch to tty3, I can login, and enter in commands I just cannot see anything.  The screen is frozen, to the last text, before, I am assuming the getty service started.  What I mean is if I CTRL + ALT + F3, blindly put in my username and password and then say issue the command reboot, the system will reboot but I dont see anything on the screen until the system reboots and I am presented with my motherboard splash screen.  System works fine, I just can't upgrade my system without booting back to Kernel 5.19. 
« Last Edit: 2022/11/08, 16:37:02 by terroreek »

Offline terroreek

  • User
  • Posts: 202
Re: Virtual Console Broken with Nvidia since Kernel 6.0
« Reply #10 on: 2023/04/04, 04:30:02 »
Just an FYI this issue appears to be either the nvidia driver not having a frame buffer with a kernel change.  I opened a ticket in the nvidia forum and it looks like there a patch submitted but it hasn't been merged yet. 

https://forums.developer.nvidia.com/t/framebuffer-output-stops-since-linux-kernel-6/244467/4

The patch in question; https://patchwork.freedesktop.org/patch/517921/?series=112679

This apparently happens if you have multiple output devices and it look like my 1070 with vfio-pci driver (used to pass the video card to a vm) is triggering this bug.