|
|
Log in / Subscribe / Register

Fedora 45 beta drags the Linux console into the 21st century (Register)

The Register looks forward to the upcoming Fedora 45 release.

The biggest surprise is that Linux's legacy in-kernel console – the text-mode interface normally hidden beneath the GUI – has been replaced with a software-controlled alternative. The replacement is kmscon, a userspace terminal emulator that has been in development for more than a decade.


to post comments

target user ?

Posted Sep 16, 2026 19:40 UTC (Wed) by ballombe (subscriber, #9523) [Link] (24 responses)

I think I am one of the few people to use the linux console extensively, and all my attempt to switch to kmscon have been a total failure. Maybe this come from the debian (lack of) configuration and the fedora one is better, but just the fact that the tty is now a /dev/pts/n instead of /dev/ttyn is a problem.

alt-tab, alt-fn do not work, startx refuse to start, consolation does not work, etc.

target user ?

Posted Sep 16, 2026 19:43 UTC (Wed) by cyperpunks (subscriber, #39406) [Link] (6 responses)

So what is purpose of this thingie then?

target user ?

Posted Sep 16, 2026 21:27 UTC (Wed) by barryascott (subscriber, #80640) [Link] (2 responses)

Quoting from the fedora change:

“This change is to replace the kernel console fbcon with the userspace console kmscon in Fedora, to provide an enhanced and more secure console for Fedora users.

The long term goal is also to deprecate fbcon/fbdev emulation in the kernel, and this is the first step in this direction.”

See https://fedoraproject.org/wiki/Changes/UseKmsconVTConsole for all the details.

target user ?

Posted Sep 24, 2026 19:28 UTC (Thu) by mrugiero (guest, #153040) [Link] (1 responses)

I understand wanting to get rid of the in-kernel console code, as it is supposedly a bit unwieldy, but why kill fbdev emulation? Wouldn't that also break a bunch of userspace programs and an allegedly (haven't tried it myself) much simpler interface for full-screen GUI than bare drm/kms is? IIUC fbdev emulation saves a lot of code by reusing a single display driver for both kms and fbdev. Programs like KOReader (when used on an actual e-reader) rely on framebuffer APIs.

target user ?

Posted Oct 9, 2026 7:16 UTC (Fri) by daenzer (subscriber, #7050) [Link]

I think it's more about getting rid of fbcon than fbdev.

> allegedly (haven't tried it myself) much simpler interface for full-screen GUI than bare drm/kms is?

The flip side of being simpler is being more limited, not supporting all the same features such as multi-monitor support.

I'd argue most apps should rather use higher-level API such as SDL or Vulkan direct display anyway, which have abstractions for the lower-level details.

> IIUC fbdev emulation saves a lot of code by reusing a single display driver for both kms and fbdev

Only one driver can claim the GPU, so the alternative scenario you seem to be getting at with separate DRM & fbdev drivers active in parallel isn't possible.

target user ?

Posted Sep 17, 2026 4:11 UTC (Thu) by wtarreau (subscriber, #51152) [Link] (2 responses)

> So what is purpose of this thingie then?

That's the same question I've been wondering. The project's page only lists all the indispensable things that do not work with it, while not explaining what it brings. Just looks like yet another "let's do it because we can".

target user ?

Posted Sep 17, 2026 5:17 UTC (Thu) by pbonzini (subscriber, #60935) [Link]

Unicode support, better keyboard configuration, speed, and "no one wants to maintain fbcon/fbdev in the kernel" are the main things it brings.

target user ?

Posted Sep 21, 2026 6:40 UTC (Mon) by kaesaecracker (subscriber, #126447) [Link]

Target user here. I've been using the user space terminal on my desktops for a while because it renders my nerd font glyphs and can be customized.

target user ?

Posted Sep 16, 2026 19:53 UTC (Wed) by zhalas (subscriber, #114013) [Link] (14 responses)

> but just the fact that the tty is now a /dev/pts/n instead of /dev/ttyn is a problem.

Why would that be a problem?

target user ?

Posted Sep 16, 2026 20:42 UTC (Wed) by ballombe (subscriber, #9523) [Link] (12 responses)

There is no way to know that a particular dynamically allocated /dev/pts is linked to some linux console and need to be handled specially.

target user ?

Posted Sep 17, 2026 1:09 UTC (Thu) by zhalas (subscriber, #114013) [Link] (11 responses)

> There is no way to know that a particular dynamically allocated /dev/pts is linked to some linux console and need to be handled specially.

Right, but I don't have any use cases that require distinguishing ordinary pseudoterminals from terminals associated with a local console (whether a kernel VT or a PTY used by kmscon), so I'm curious what yours are. Some compliance requirement, perhaps?

target user ?

Posted Sep 17, 2026 7:14 UTC (Thu) by taladar (subscriber, #68407) [Link] (10 responses)

Distinguishing local authentication from remote authentication is one thing that comes to mind.

target user ?

Posted Sep 17, 2026 7:45 UTC (Thu) by josh (subscriber, #17465) [Link] (9 responses)

PAM knows what's trying to authenticate; if SSH is authenticating then it's remote, and if login or gdm is authenticating then it's local. I don't think there's value in detecting whether something is a "local TTY".

target user ?

Posted Sep 17, 2026 21:40 UTC (Thu) by turistu (guest, #164830) [Link] (8 responses)

Not all Linux systems have to use PAM, yet. Fortunately.

target user ?

Posted Sep 17, 2026 23:24 UTC (Thu) by AdamW (subscriber, #48457) [Link]

Fedora does, though.

target user ?

Posted Sep 18, 2026 10:16 UTC (Fri) by josh (subscriber, #17465) [Link] (6 responses)

As someone who has no particular reason not to, what exactly is the problem with PAM?

pam

Posted Sep 20, 2026 6:37 UTC (Sun) by donald.buczek (subscriber, #112892) [Link] (1 responses)

As someone who has no particular reason not to, what exactly is the problem with PAM?

Nobody answered yet, so I send a few points from the top of my head:

  • Plugins: I co-maintain multi-user systems that can't be rebooted, on a self-maintained distribution, so in-process .so plugins hurt. PAM's pam_unix also pulls in NSS, which has the same design.
    • Upgrades are fragile with plugins: After a rolling upgrade, long-running daemons (sshd, httpd, cron) hold old-ABI code in memory while newly loaded modules use the new internal API. Crashes (segfaults) are among the milder outcomes.
    • You sometimes have unresolvable diamond dependencies with glibc->PAM->nss modules. Dependency hell.
  • Documentation: The API documentation is bad. Basic concepts like "session" are not defined but vaguely assumed. "key=value" strings without clear semantics are passed back and forth between components.
  • Security: Security-relevant code doesn't run in a separate process. Unprivileged usage requires a setuid helper (unix_chkpwd).

pam

Posted Sep 20, 2026 9:39 UTC (Sun) by bluca (subscriber, #118303) [Link]

> Security: Security-relevant code doesn't run in a separate process. Unprivileged usage requires a setuid helper (unix_chkpwd).

There's an alternative available with privilege separation that doesn't require suid:

https://github.com/thkukuk/account-utils

target user ?

Posted Sep 21, 2026 15:01 UTC (Mon) by turistu (guest, #164830) [Link]

First of all, it does not do what you think it does:

PAM knows what's trying to authenticate; if SSH is authenticating then it's remote, and if login or gdm is authenticating then it's local.

Any program can pretend to pam that it's login or ssh or lightdm or whatever. It's just an argument to pam_start().

So pam does not actually know anything.

NB: on Debian/Fedora/etc, the program does not need any privileges for this -- any user can authenticate as themselves via pam; the default pam modules are able to achieve that by calling a "helper" setuid program behind the scenes.

PAM configuration is not fun

Posted Sep 22, 2026 18:19 UTC (Tue) by mbunkus (subscriber, #87248) [Link] (2 responses)

In addition to what others have posted: configuration sucks, both the act of configuring & the configuration language itself. If you had a daemon you would alter its configuration & run some kind of validity test without activating your changes (think "apachectl configtest"). With PAM you write directly to the configuration that's read each time a login attempt is made, making this very brittle.

The configuration language itself has flow control keywords that amount to relative goto statements that's leaky, brittle as nothing I've otherwise seen and hard to grasp. Think "when this module fails, skip the next two modules". Now imagine you're trying to modify a more involved configuration & have to re-number all of those relative jumps all the time when you insert or remove lines. A lot of fun! (= brittle)

Further brittleness is that the PAM parser has built-in, not documented fixed-length buffers for parsing lines. This means that e.g. if you want to do something based on group membership you might accidentally run up against the parser's internal buffer length, causing a) the current line to become invalid (likely) or at least not do what you want and b) the parser to start parsing the rest of the current line as if it was the next line, which in turn causes even more strange error messages if you're lucky.

Furthermore a relative jump of 0 is not allowed, and the man page is up front about this being treated the same as "ignore the action" due to implementation details. (= leaky)

And this is because a PAM configuration doesn't actually have a lot of structure, most notably it's just a flat list of lines, no blocks, no nesting.

A proper daemon would simply reject invalid configuration. A more language-like or more structured format would work wonders for readability & usability.

Oh, and BTW, PAM errors are up to the program using the PAM stack to report, making finding out about invalid configuration even harder.

PAM configuration is not fun

Posted Sep 22, 2026 22:19 UTC (Tue) by gioele (subscriber, #61675) [Link] (1 responses)

> In addition to what others have posted: configuration sucks, both the act of configuring & the configuration language itself. If you had a daemon you would alter its configuration & run some kind of validity test without activating your changes (think "apachectl configtest"). With PAM you write directly to the configuration that's read each time a login attempt is made, making this very brittle.

To add insult to injury, PAM on Debian (& derivatives) uses a slightly different configuration language (`@include`) and tooling (`pam-auth-update`) compared to what upstream PAM (as used for instance by Fedora) use.

PAM configuration is not fun

Posted Sep 23, 2026 8:06 UTC (Wed) by taladar (subscriber, #68407) [Link]

There is also that issue that PAM modules have to deal with very different linking environments, e.g. sudo uses all kinds of tricks to harden its own binary so some symbols your PAM module might expect are not available there.

target user ?

Posted Sep 17, 2026 21:12 UTC (Thu) by turistu (guest, #164830) [Link]

Currently, there's no way to know which /dev/pts/n is actually the controlling terminal of a process in Linux, or which one is paired to a master pty file descriptor.

The kernel can only tell you its major:minor number, which can exist as different devices in different devpts mounts.

It's quite easy to make appear for silly sysadmins and stupid tools that some process is running on e.g. /dev/pts/0, and completely hide from view which process is actually controlling its master pty peer.

And there are other pretty nasty bugs related to devpts. First of all being its existence in the first place -- how about replacing it with something better before getting rid of virtual terminals?

target user ?

Posted Sep 16, 2026 20:29 UTC (Wed) by chder (subscriber, #96621) [Link] (1 responses)

I want to try it out myself but at least in the Fedora docs for the change it looks like control+alt+f# ought to work.

https://fedoraproject.org/wiki/Changes/UseKmsconVTConsole...

Seems like startx wouldn't work if it's using libseat in an incompatible way
https://github.com/kmscon/kmscon#seats
or if it needs to give up the gpu first
https://github.com/kmscon/kmscon#gui-application

target user ?

Posted Sep 16, 2026 20:52 UTC (Wed) by nim-nim (subscriber, #34454) [Link]

> it looks like control+alt+f# ought to work.

It works.

sudo dnf install kmscon kmscon-gl kmscon-pango
sudo ln -fs /usr/lib/systemd/system/kmsconvt@.service /etc/systemd/system/autovt@.service

and that’s it, adios all the legacy headache of settings fonts and encodings, things just work, including better mouse support than when gpm was a thing, and ctrl+wheel zooming if you can’t be bothered to set a font size that works for your eyes and hardware in the config file. Not seeing encoding wreckage right and left for anything not ASCII is pretty weird.

GUI terminals are probably better accelerated these days mind you.

Braille display and text to speech accessibility support

Posted Sep 16, 2026 22:50 UTC (Wed) by jasonjgw (subscriber, #52080) [Link]

There was discussion on the BRLTTY mailing list a while ago of developing a protocol to enable braille access to user-space consoles (without any graphical desktop running, obviously). The question now is whether a solution will be implemented before any plan to deprecate and, perhaps, ultimately remove the kernel's console support goes ahead. Likewise for users who rely on text to speech to access the console. The Linux console has been non-visually accessible via text to speech and braille devices for decades, so any removal of this support would disadvantage users and administrators who depend on this functionality.

kmscon is great

Posted Sep 17, 2026 1:53 UTC (Thu) by dankamongmen (subscriber, #35141) [Link] (1 responses)

i looked at it when i was doing notcurses, and it was a fantastic little piece of software. it was unmaintained at the time, though. i'm guessing fedora has put some love behind it? really good to see this out there.

kmscon is great

Posted Sep 17, 2026 2:54 UTC (Thu) by rahulsundaram (subscriber, #21946) [Link]

Yes, kmscon was unmaintained, looking at the repo (linked in the blurb), it looks like activity has picked up and the developer who proposed this change (linked earlier in one of the comments) is doing the work to iron out the rough edges as part of the change to make it the default. I would expect other distros to follow given the advantages here.

Adios serial console?

Posted Sep 17, 2026 14:44 UTC (Thu) by NightMonkey (subscriber, #23051) [Link] (4 responses)

Perhaps this is obvious, but is support for serial console access then going away in the kernel? Cheers.

Adios serial console?

Posted Sep 17, 2026 15:06 UTC (Thu) by hmh (subscriber, #3838) [Link] (1 responses)

Embedded needs serial ports and tty support for those. I very much doubt removing tty support and serial line support is anywhere in the roadmap.

As for the serial console, that thing is also absurdity important, no matter how unloved. It would need a replacement in kernel mode, userspace is useless for many of its uses.

Most systems that need tty and serial lines have no need for fbcon though. I can see that going away someday.

Adios serial console?

Posted Sep 24, 2026 20:41 UTC (Thu) by mrugiero (guest, #153040) [Link]

Would it make sense to strip some functionality though? I'm not really familiar with the inner workings of tty emulators, so maybe it's an all-or-nothing situation, but if you remove e.g. the ability to dynamically create new instances that you need on a desktop system maybe the cases that really need an in-kernel console can be covered by simpler code? I imagine font handling goes away for serial consoles too, since the display is on the other side of the serial port.
I believe there was an attempt at this for the printing of early boot messages, which instead of a proper console emulator could **only** print.

Adios serial console?

Posted Sep 17, 2026 16:56 UTC (Thu) by intelfx (subscriber, #130118) [Link]

No, serial consoles (tty) and virtual terminals/virtual consoles (vt/vc/vtcon) layers are two separate things. This is strictly about the latter; nobody is proposing to get rid of ttys (which are, at the very least, still required for any kind of terminal emulation, including kmscon the vtcon replacement). :-)

Adios serial console?

Posted Sep 18, 2026 9:13 UTC (Fri) by LtWorf (subscriber, #124958) [Link]

How do you debug your virtual machines then?

VT switching/locking support

Posted Sep 21, 2026 4:45 UTC (Mon) by cypherpunks2 (guest, #152408) [Link]

Does this support standard VT switching and locking? Commands like VT_LOCKSWITCH that are used by screen locking utilities like physlock?


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds