Disabling VT? (Virtual terminal which is replaced by kmscon, NOT virtualization)

Clarification: NOT removing them entirely from the kernel. Switching b/w VT<->no-VT shouldn’t require a recompile.

Here’s a patch which gives a kernel cmdline toggle for the same effect: Linux-Kernel Archive: [PATCH] vt: Add enable module parameter

It didn’t go much far, with a prominent dev opposing it for apparently no logical reason (That it should be distro policy and “supporting both” is not a good idea)

Any plans to support something like this on AerynOS? (I can help with testing and maybe even initial PR)

Contrary to what that dev says, this doesn’t seem to add too much of practical maintenance burden, it only gives more flexibility to the user by means of a kernel cmdline parameter.

As for the advantages, they are amply discussed. I shall list them if anyone asks.

patch looks fairly straightforward, but im not a kernel dev and am not sure of any maintenance burdens that are supposed to arise from this. would you be able to explain roughly why they are in such vehement opposition to this? the current reasons they state are not really fleshed out (forcing them to maintain, what exactly?). I’m unable to decipher the exact workload based on their response.

1 Like

I’ll test it with various cases and failure points within a day or two of writing this. It doesn’t touch anything beyond Virtual Terminals, which aren’t used anyways and pose plausible attack vectors (can’t be exploited practically, but still)

However it’s absolutely no practical maintenance burden. The opposition’s argument is that the distro policy should choose only ONE way of VT or no-VT and “supporting both” is not good (I find it absurd)

ALso that “no distro has done it so it’s useless”. The requirement of recompiling the kernel was what a barrier all the while for testing, but the dev is failing to understand the circular logic here.

Another fellow claims that VT is important for accessibility and can’t be separated from linux kernel (KMSCon already has taken care of this in better ways)

Both these arguments are made in principle and possibly emotion, and affects no user of VT.

It’s a 3-6 line patch which only aborts VT loading when a kernel parameter says so, equivalent to recompiling the kernel with CONFIG_VT=n (and implicitly the VT_CONSOLE too).

And a KConfig, which depends on CONFIG_EXPERT (which only enables expert KConfig options like this or outright disabling VT without changing anything)

PS I should also note that aerynOS as well as Fedora have covered all requirements of Virtual Terminals with kmscon and plymouth, and it is practically only a fallback in tty6/tty7 out of paranoia.