You are not logged in.

#26 2020-11-15 10:11:39

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

I just found out if I start Google Chrome with prime-run google-chrome-stable then there is no lag big_smile (after having uninstalled picom)

Offline

#27 2020-11-15 10:19:36

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

Turning off VSync inside the picom configuration file removes the lag as well big_smile

Offline

#28 2020-11-15 10:56:36

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

Do you know how I can change it such that my laptop does not go to sleep when closing the lid when an external monitor is connected?

Offline

#29 2020-11-15 15:35:27

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

Check /etc/systemd/logind.conf but please don't create shopping-list threads.
One thread per item, otherwise the threads become useless to others.

As for the lag in chrome, try https://wiki.archlinux.org/index.php/In … on_(VSYNC)

Offline

#30 2020-11-15 18:49:41

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

seth wrote:

One thread per item, otherwise the threads become useless to others.

Noted

seth wrote:

I created the file .drirc in my home directory as described and that seems to fix it! Thanks!
Content of file:

<device screen="0" driver="dri2">
	<application name="Default">
		<option name="vblank_mode" value="0"/>
	</application>
</device>

Last edited by Nilas (2020-11-15 18:56:43)

Offline

#31 2020-11-15 21:14:37

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

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.

Offline

#32 2020-11-16 00:44:39

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

seth wrote:

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.

Done

Do you think it is possible to show tty on the external monitor now that I am using "Switchable Graphics" and using the early DRM kernel mode setting?

Currently when I have enabled "Switchable Graphics" in the firmware settings menu, tty is not shown at all on the external monitor. If "Discrete Graphics" is selected instead and if I am using the early DRM kernel mode setting, tty appears on the external monitor after switching to it from the Xorg server (CTRL+ALT+Fn keys). The same applies when I am using "Discrete Graphics" and no DRM kernel mode setting. If I am using "Discrete Graphics" and the late DRM kernel mode setting (the nvidia-drm.modeset=1 kernel parameter) then tty appears both when I boot up and when switching to tty from Xorg. However there are stripes through the login text of tty  when booting up (probably due to the higher resolution of the external display?). The text looks fine when switching to tty from Xorg.

Last edited by Nilas (2020-11-16 00:45:23)

Offline

#33 2020-11-16 07:30:42

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

Do you think it is possible to show tty on the external monitor now that I am using "Switchable Graphics" and using the early DRM kernel mode setting?

I thougt this was working.

Did you try the "video=DP-1…" parameters w/ early KMS being enabled for nvidia?
If not, see https://www.kernel.org/doc/Documentation/fb/fbcon.txt - esp. "fbcon=map:" - "fbcon=map:10" might work

Offline

#34 2020-11-16 10:33:08

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

seth wrote:

Did you try the "video=DP-1…" parameters w/ early KMS being enabled for nvidia?

Yes, I can disable the monitor of the laptop, but I cannot enable the external monitor. What I have tried:

video=DP-1-2:e video=eDP-1:d
video=DP-1:e video=eDP-1:d
video=DP-1-2:D video=eDP-1:d
seth wrote:

If not, see https://www.kernel.org/doc/Documentation/fb/fbcon.txt - esp. "fbcon=map:" - "fbcon=map:10" might work

No dice unfortunately. I tried the following:

video=DP-1-2:e video=eDP-1:d fbcom=map:
video=DP-1-2:e video=eDP-1:d fbcom=map:10
fbcom=map:
fbcom=map:10

Offline

#35 2020-11-16 11:52:14

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

"fbcom=map:" is no useful parameter, please check the doc so you're not passing random stuff to the kernel.

First and foremost, it's "fbcon=map:10", not "fbcom=map:10"
Next you could try whether "fbcon=map:1" has any impact, "fbcon=map:2" should™ completely deactivate the console output.
If "fbcon=map:1" does something™ but not the desired, play around w/ the "video=DP-1-2:e" parameters, any reference I googled doesn't have the minor index - it's usually just "video=DP-1:e"

Offline

#36 2020-11-16 13:03:15

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

fbcon=map:1 video=DP-1:e video=eDP-1:d deactivates the console output completely (the same for fbcon=map:2 video=DP-1:e video=eDP-1:d). fbcon=map:10 video=DP-1:e video=eDP-1:d does nothing

Offline

#37 2020-11-16 15:20:06

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

lsinitcpio /boot/initramfs-linux.img | grep nvidia
cat /proc/cmdline

Offline

#38 2020-11-16 15:47:43

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

Output from lsinitcpio /boot/initramfs-linux.img | grep nvidia:

usr/lib/modprobe.d/nvidia.conf
usr/lib/modules/5.9.8-arch1-1/kernel/nvidia-drm.ko
usr/lib/modules/5.9.8-arch1-1/kernel/nvidia.ko
usr/lib/modules/5.9.8-arch1-1/kernel/nvidia-modeset.ko
usr/lib/modules/5.9.8-arch1-1/kernel/nvidia-uvm.ko

Output from cat /proc/cmdline:

BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=529a8e51-0047-405b-b14e-0d9ad69b119f rw loglevel=3 quiet

Offline

#39 2020-11-16 15:54:07

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

"nvidia-drm.modeset=1"?

Offline

#40 2020-11-16 16:15:23

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

That does not appear to fix it either. What I tried:

nvidia-drm.modeset=1
nvidia-drm.modeset=1 video=DP-1:e video=eDP-1:d
nvidia-drm.modeset=1 video=DP-1:e video=eDP-1:d fbcon=map:10

Offline

#41 2020-11-17 01:04:05

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

I am noticing that if I have set the setting nvidia-drm.modeset=1 then my external monitor does seem to receive a signal. It shows the message "Entering sleep mode" when entering tty and then immediately goes black. This does not happen when I have not set this setting.

Offline

#42 2020-11-17 09:05:00

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

nvidia-drm.modeset=1 fbcon=map:1
nvidia-drm.modeset=1 fbcon=map:1 video=DP-1:e video=DP-1-2:e

A problem could be that the outputs have different names on the nvidia driver, what's the output of "xrandr -q" w/ the dedicated graphics BIOS option?

Offline

#43 2020-11-17 11:04:09

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

They do indeed have different names when using the dedicated graphics BIOS option:

DP-0 disconnected primary (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080    144.00*+
DP-3 connected (normal left inverted right x axis y axis)
   2560x1440     59.95 +
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    23.98  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.93    59.94  
DP-4 disconnected (normal left inverted right x axis y axis)

DP-3 is the external monitor and DP-2 is the integrated.

Offline

#44 2020-11-17 16:03:55

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Is it possible to show tty login screen on external monitor?

And did you try "nvidia-drm.modeset=1 fbcon=map:1 video=DP-3:e" ?

Offline

#45 2020-11-17 21:54:03

Nilas
Member
Registered: 2020-11-10
Posts: 46

Re: Is it possible to show tty login screen on external monitor?

Yes. No luck unfortunately.

Offline

Board footer

Powered by FluxBB