You are not logged in.

#1 2024-01-07 01:37:44

tiger64
Member
Registered: 2023-12-28
Posts: 10

Monitor Not Displaying TTYs

The current way that TTYs are displayed is through the built in LCD display, and I want to get them on my monitor because I usually have the lid closed when I am using it. My laptop has a Intel iGPU and discrete NVidia graphics, I tried disconnecting the LCD display to see if the video output would be forced through the HDMI connection, but no luck.

After that, I tried to further narrow down the problem to see if it was related to one of the graphics chips. I blacklisted the NVidia kernel modules for the GPU drivers by adding '''blacklist nvidia''' to '''/etc/modprobe.d/blacklist.conf''', but no results once again.

Most other solutions I have seen involved changing hardware settings in BIOS, but my laptop does not seem to have anything related to video output in BIOS sad.

Does anyone else have ideas for what I could try?

Last edited by tiger64 (2024-01-07 02:04:58)

Offline

#2 2024-01-07 03:08:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,771

Re: Monitor Not Displaying TTYs

Try enabling KMS for the nvidia card: https://wiki.archlinux.org/title/NVIDIA … de_setting

Assuming that's where your monitor is, what do you get from

lspci -k | grep -E 'VGA|3D'
#From a xorg session
xrandr -q

depending on the interaction of the framebuffer with an integrated GPU and NVidia, chances are this isn't really fixable if you are hell bent on having a plain tty (...what makes running a GUI session and just having a fullscreen terminal unattractive?)

Offline

#3 2024-01-07 03:43:32

tiger64
Member
Registered: 2023-12-28
Posts: 10

Re: Monitor Not Displaying TTYs

Yeah, I don't think there are really any fixes to this. I enabled KMS with the kernel module parameters, but that did not make a difference.

Here are the outputs from the commands:

xrandr

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 290mm
   1920x1080     60.00 + 144.00*  119.88   119.42    59.94    50.00  
   1680x1050     59.95  
   1600x900     120.00    60.00  
   1360x768      60.02  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.95  
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)

lspci

...
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
...

(... i wanted to get a TTY on my monitor because i was trying out the Console Display Manager and kind of liked it smile.)

Offline

#4 2024-01-07 08:17:01

seth
Member
Registered: 2012-09-03
Posts: 51,668

Re: Monitor Not Displaying TTYs

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

https://www.kernel.org/doc/Documentation/fb/modedb.rst - but if the HDMI is wired to the nvidia GPU you'll need https://raw.githubusercontent.com/torva … /fbcon.rst
("fbcon=map")

Online

#5 2024-01-07 16:14:15

tiger64
Member
Registered: 2023-12-28
Posts: 10

Re: Monitor Not Displaying TTYs

seth wrote:

Please post your complete system journal for the boot

Should I get the logs with the LCD display connected, disconnected, or does it not matter?

Offline

#6 2024-01-07 16:52:19

seth
Member
Registered: 2012-09-03
Posts: 51,668

Re: Monitor Not Displaying TTYs

Doesn't matterm but the HDMI output has to be present.

Online

#7 2024-01-07 17:46:56

tiger64
Member
Registered: 2023-12-28
Posts: 10

Re: Monitor Not Displaying TTYs

seth wrote:

but if the HDMI is wired to the nvidia GPU

I decided to just set both of them because logs from dmesg (http://0x0.st/H6FZ.txt) did not make it clear if HDMI was wired directly through either one of the GPUs.

For context, these are the kernel parameters I have set for GRUB:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nvidia_drm.modeset=1 video=HDMI-0:1920x1080@144 fbcon=map:0123"

These logs are post modedb and fbcon edits:

journal
http://0x0.st/H6Fs.txt

Xorg
http://0x0.st/H6Fz.txt

Offline

#8 2024-01-07 17:53:03

seth
Member
Registered: 2012-09-03
Posts: 51,668

Re: Monitor Not Displaying TTYs

[    25.253] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 13 00:38:24 2023

The xorg log is dated and has only the eDP.
There's a single output on the nvidia chip, but nothing attached.

Edit: and that's not how the fbcon:map works, please read the readme, don't just copypaste stuff.

Last edited by seth (2024-01-07 17:53:31)

Online

#9 2024-01-07 18:24:38

tiger64
Member
Registered: 2023-12-28
Posts: 10

Re: Monitor Not Displaying TTYs

sorry. here is the most recent Xorg log i have: http://0x0.st/H6Fj.txt

i did read the documentation for the map option, but didn't initially understand it.

after rereading it a couple more times, could it be used to specify the framebuffer used for each TTY because there are two different drivers for the GPUs?

fbcon=map:01

Offline

#10 2024-01-07 18:45:39

seth
Member
Registered: 2012-09-03
Posts: 51,668

Re: Monitor Not Displaying TTYs

The X11 server is running on the nvidia chip (only) b/c of

[    26.239] (**) |-->Screen "nvidia_screen" (0)
[    26.239] (**) |   |-->Monitor "Pixio"
[    26.239] (**) |   |-->Device "nvidia_card"
[    26.239] (**) |   |-->GPUDevice "force modesetting"

If you're not interested in the i915 chip, disable it in the BIOS/UEFI or (if that's not an option) blacklist it "module_blacklist=i915", https://wiki.archlinux.org/title/Kernel_parameters

You'd otherwise probably  want to revert the mapping order to have the 2nd device mapped to the first TTY (but w/ the simpledrm device in the mix you'd probably first have to TaE which device is which…)

nvidia_drm.modeset=1 video=HDMI-0:D fbcon=map:1

"video=HDMI-0:D" is probably not helpful since it's disable the HDMI output
Also check "ls /sys/class/drm/" for the outputs name.

"map:1" would otherwise, in theory, map the second device to all consoles (ie. nvidia?)
Do you still get output on the eDP?

Online

#11 2024-01-07 20:01:59

tiger64
Member
Registered: 2023-12-28
Posts: 10

Re: Monitor Not Displaying TTYs

i added the i915 chip to the blacklist and all that it changed was the device name of the HDMI output:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nvidia_drm.modeset=1 module_blacklist=i915 fbcon=map:0 video=HDMI-A-1:1920x1080@144"

i am still getting output on eDP though which is weird...
it might be worth a try to blacklist the nvidia chip and see if the iGPU framebuffer can be (more easily) changed.

sacrificing the nvidia graphics probably would not be worth it at that point though.

Offline

#12 2024-01-07 23:11:25

seth
Member
Registered: 2012-09-03
Posts: 51,668

Re: Monitor Not Displaying TTYs

i am still getting output on eDP though which is weird...

Please post your complete system journal for that boot, eg. 

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous ("-1") one.

Online

Board footer

Powered by FluxBB