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,658

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?

Online

#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

#4 Today 08:33:44

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

Re: Black Screen when switching tty

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

1. yes
2. https://wiki.archlinux.org/title/Kernel … le_options - the kernel commandline parameter (but only there! modprobe would be too late) however "also" bypasses the simpledrm device
3. "on and off", https://wiki.archlinux.org/title/NVIDIA#fbdev
I doubt that it's a prerequirement for any wayland regardless of what either wiki says. KMS is. fbdev has an unsolid track record, it has help some and wrecked other users, perhaps depending on the HW generation, but we'd have to run a poll on that hypothesis. What fbdev=1 will however do is to take over from the simplydumb device, but by blocking the simplydumb device itfp. that necessity drops.

Online

Board footer

Powered by FluxBB