You are not logged in.

#1 Yesterday 21:13:58

DrLlap
Member
Registered: 2024-10-20
Posts: 2

Black Screen when switching tty

I used to be able to switch between tty with 'ctrl+alt+F1...F6'
It seems that the "main" tty is now on 'ctrl+alt+F1'
'ctrl+alt+F2' shows only black screen plus the mouse cursor.
The rest of the ttys have no video output (the monitor gives me "no signal" message)

I do have a NVIDIA graphics card:
$ lspci -k -d ::03xx

01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
        Subsystem: Gigabyte Technology Co., Ltd Device 374d
        Kernel driver in use: nvidia
lspci: Unable to load libkmod resources: error -2

I'm using grub with windows dual but:
My /etc/default/grub
My mkinitcpio.conf

I have set kernel parameters required for Nvidia:
$ cat /etc/modprobe.d/nvidia.conf

options nvidia_drm modeset=1 fbdev=1

$ journalctl -b http://0x0.st/Xn4Z.txt

Last time the ttys worked I was using X11 version of KDE, but since I moved to Hyprland (wayland) it hasn't worked.

Any help appreciated, best regards.

Last edited by DrLlap (Yesterday 21:14:31)

Offline

#2 Yesterday 22:23:19

seth
Member
Registered: 2012-09-03
Posts: 58,652

Re: Black Screen when switching tty

Try to add "nvidia_drm.modeset=1 nvidia_drm.fbdev=0" to the kernel commandline (modprobe.conf won't do for this)

Sidebar: disable dhcpcd, NM uses the internal dhcp client and they stumble over each other (though absent wifi, you hardly need NM itfp? So you could disable/remove that instead.)
Also

hostnamectl

it doesn't look like you've a static hostname?

Offline

#3 Today 00:20:52

DrLlap
Member
Registered: 2024-10-20
Posts: 2

Re: Black Screen when switching tty

I added "nvidia_drm.modeset=1 nvidia_drm.fbdev=0" via the GRUB menu and it worked like a charm, thanks.

But I have some followup questions:

modprobe.conf won't do for this

  1. If I want to make these parameters permanent, do I add them to

    GRUB_CMDLINE_LINUX_DEFAULT

    in /etc/default/grub?

  2. What is /etc/modprobe.d/nvidia.conf for and why isn't that sufficient?

  3. What is the difference between fbdev=0 and fbdev=1? The Hyprland wiki says to use 1, https://wiki.hyprland.org/Nvidia/#drm-k … de-setting

Offline

Board footer

Powered by FluxBB