Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

On the console Alt-F2 doesn't switch to tty2

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

On the console Alt-F2 doesn't switch to tty2

  • Quote

Post by wynnmc » Sat May 17, 2025 2:07 pm

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?
Top
Hu
Administrator
Administrator
Posts: 24397
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat May 17, 2025 3:02 pm

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?
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

  • Quote

Post by wynnmc » Sat May 17, 2025 3:59 pm

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.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sat May 17, 2025 4:08 pm

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. "
Top
Hu
Administrator
Administrator
Posts: 24397
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat May 17, 2025 4:32 pm

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.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sat May 17, 2025 4:40 pm

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. "
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4693
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Sat May 17, 2025 4:55 pm

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 :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sat May 17, 2025 5:43 pm

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.
Last edited by CaptainBlood on Sat May 17, 2025 5:50 pm, edited 1 time in total.
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. "
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

On the console Alt-F2 doesn't switch to tty2 (Solved)

  • Quote

Post by wynnmc » Sat May 17, 2025 5:47 pm

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
Top
Hu
Administrator
Administrator
Posts: 24397
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat May 17, 2025 7:21 pm

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.
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

  • Quote

Post by wynnmc » Sun May 18, 2025 8:50 am

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: Select all

Fn Ctrl Windows Alt
. "Windows" is a key marked with a picture of 4 glass (?) panes.
Top
Hu
Administrator
Administrator
Posts: 24397
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun May 18, 2025 2:02 pm

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.
Top
wynnmc
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Sun Dec 01, 2019 5:26 pm

  • Quote

Post by wynnmc » Sun May 18, 2025 3:55 pm

Thank you very much, Hu, I had no idea it worked like that :D
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 18, 2025 4:08 pm

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. "
Top
sublogic
Guru
Guru
User avatar
Posts: 388
Joined: Mon Mar 21, 2022 3:02 am
Location: Pennsylvania, USA

  • Quote

Post by sublogic » Sun May 18, 2025 9:51 pm

@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.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic