Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
On the console Alt-F2 doesn't switch to tty2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
wynnmc
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2019
Posts: 88

PostPosted: Sat May 17, 2025 2:07 pm    Post subject: On the console Alt-F2 doesn't switch to tty2 Reply with quote

I have just installed Gentoo but I have found, after logging in as root, that I can't get to another console/workspace by Alt-F2 (for example). I have been doing this to login as a different user on this (old) machine for a long time. Has something changed and, if it has, how do I switch now?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23477

PostPosted: Sat May 17, 2025 3:02 pm    Post subject: Reply with quote

This works for me. What happens when you press Alt+F2? Are you taken to a blank screen or does the system ignore your key press completely? If the former, what did you expect would be running on tty2? Do you have a getty or similar configured to run there?
Back to top
View user's profile Send private message
wynnmc
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2019
Posts: 88

PostPosted: Sat May 17, 2025 3:59 pm    Post subject: Reply with quote

I'm not sure if I have stated the problem clearly enough: I am not in a GUI, I prefer to login to (whatever it's called) and start a GUI from there if I want to.
To answer your question: pressing Alt-F2 just shows "~", pressing Alt-F3 then just adds another "~" to it.

I would expect this function to be installed with the stage file -- I last installed Gentoo several years ago so I can no longer remember anything I may have done which wasn't in the Handbook.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4048

PostPosted: Sat May 17, 2025 4:08 pm    Post subject: Reply with quote

For whatever reason, Ctrl+Alt+Fn required here for TTY switch.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23477

PostPosted: Sat May 17, 2025 4:32 pm    Post subject: Reply with quote

OP: yes, I understood this to be a Linux text console. I was originally unclear on what was happening beyond that it was not what you wanted. I understand now. The kernel is not recognizing your request for a vt-switch. That ~ might be the result of your shell receiving the component bytes sent by Alt+F2. Are you sure your Alt key is recognized? Pressing a plain F2 might produce the reported result.

CaptainBlood wrote:
For whatever reason, Ctrl+Alt+Fn required for TTY switch.
If you are in Xorg, then yes, you need Ctrl+Alt because that is how Xorg implements it. Wayland may or may not have a similar rule. For the Linux text console the OP is asking about, Alt+Fn works fine.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4048

PostPosted: Sat May 17, 2025 4:40 pm    Post subject: Reply with quote

Yeap indeed,
Alt+Fn is enough here for TTYi to TTYj.
Ctrl+Alt+Fn also works but overkilling when not from X11.
Ctrl+Alt+Fn required here from Wayland (pure here).

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 4080
Location: Rasi, Finland

PostPosted: Sat May 17, 2025 4:55 pm    Post subject: Reply with quote

Some machines (keyboards in case of desktop PCs), indeed, need Fn to be pressed to have F-keys to actually send F-key. If Fn is not pressed the F-key might send, say, "brightness up" -key.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4048

PostPosted: Sat May 17, 2025 5:43 pm    Post subject: Reply with quote

By Fn I meant F1 to F11 for example, sorry.

@Zucca,
I don't recall having ever seen Fn on desktop keyboard, but laptop's rather.... :roll:

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Sat May 17, 2025 5:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
wynnmc
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2019
Posts: 88

PostPosted: Sat May 17, 2025 5:47 pm    Post subject: On the console Alt-F2 doesn't switch to tty2 (Solved) Reply with quote

Spiffing! Alt-Fn works ... on this machine, Gentoo installed in October 2018, just Alt-F2 is enough 8O

Thank you all very much for your help,

wynnmc
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23477

PostPosted: Sat May 17, 2025 7:21 pm    Post subject: Reply with quote

To be clear, do you mean that Zucca's suggestion was correct, that there is a key literally labeled Fn, which needs to be pressed in addition to the Alt key and the specific F<number> key? It's common to write Fn as a generic placeholder to refer to the F1-F12 keys as an interchangeable group.
Back to top
View user's profile Send private message
wynnmc
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2019
Posts: 88

PostPosted: Sun May 18, 2025 8:50 am    Post subject: Reply with quote

Hu: yes, this machine and the new one are both Lenovo ThinkPads and the 4 keys on the bottom row starting from the left are:
Code:
Fn Ctrl Windows Alt
. "Windows" is a key marked with a picture of 4 glass (?) panes.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23477

PostPosted: Sun May 18, 2025 2:02 pm    Post subject: Reply with quote

Many laptops that use an Fn key to skimp on providing actual keys have a firmware setting where you can choose either:
  • Key Fn + the F1 key produces F1, and plain F1 key produces some "magic" key, like audio volume up. Look at the other labeling on the F1 key to see what it does when it is not treated as F1.
  • Key Fn + the F1 key produces the magic key, and plain F1 key produces the F1 scancode.
You may have one machine configured such that Fn enables the magic mode (so you should press only F1 to get the F1 result), and the other machine is configured such that Fn disables the magic mode (so you should press both Fn and F1 to get the F1 result). In all cases, adding Alt will get you the Alt modifier on top of the magic scancode / F1 scancode.
Back to top
View user's profile Send private message
wynnmc
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2019
Posts: 88

PostPosted: Sun May 18, 2025 3:55 pm    Post subject: Reply with quote

Thank you very much, Hu, I had no idea it worked like that :D
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4048

PostPosted: Sun May 18, 2025 4:08 pm    Post subject: Reply with quote

Hu wrote:
You may have one machine configured such that Fn enables the magic mode (so you should press only F1 to get the F1 result),
and the other machine is configured such that Fn disables the magic mode (so you should press both Fn and F1 to get the F1 result).

By 'configured' do you hardcoded level (Hardware+Bios) or software level (Os, aka gentoo flavored linux)?

If it happens to be the latter, could it be similar behaviour on both machine could be achievable through a general setting, i.e. activation without manual multiple specific keys remapping?

Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
sublogic
Guru
Guru


Joined: 21 Mar 2022
Posts: 334
Location: Pennsylvania, USA

PostPosted: Sun May 18, 2025 9:51 pm    Post subject: Reply with quote

@wynnmc, following up on Hu's earlier post and in case your laptop is like mine: my Left-Shift key has a secondary label "fn lock" in the lower right corner. Pressing Fn+Left-Shift toggles the action of the Fn key (and toggles an LED on said key). No need to change BIOS settings.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »