News for hackers. Stuff that matters.
Re:KMSCon – A Userspace System Console That Does Not Depend ... by mrlonglong on Tuesday December 27, 2022 @04:24PM (#34154035)
Does it supports the ability to scroll back to see things ? That one got removed from the Linux console years ago and I miss it.
Re:KMSCon – A Userspace System Console That Does Not Depend ... by jchw on Tuesday December 27, 2022 @04:28PM (#34154086)
Seems like yes. There's keyboard shortcuts for scrolling listed here:

https://cgit.freedesktop.org/~dvdhrm/kmscon/tree/docs/man/km...

Re:KMSCon – A Userspace System Console That Does Not Depend ... by mrlonglong on Tuesday December 27, 2022 @05:11PM (#34154547)
Perfect. In that case I'll be trying it out on a headless machine soon.
Re:KMSCon – A Userspace System Console That Does Not Depend ... by jchw on Tuesday December 27, 2022 @06:47PM (#34155531)
FYI, seems like this fork is a lot more maintained, so you might have better luck with this.

https://github.com/Aetf/kmscon

Re:KMSCon – A Userspace System Console That Does Not Depend ... by 1vuio0pswjnm7 on Tuesday December 27, 2022 @05:33PM (#34154779)
"That one got removed from the Linux console years ago and I miss it."

https://seclists.org/oss-sec/2020/q3/174

He proposed a patch but instead Linux kernel developers disabled scrolling!

You can still satisfy the need for scrolling by using NetBSD.

(I use both Linux and NetBSD)

With the --sb-size flag one can purportedly set the maximum lines of scrollback in kmscon.

Re:KMSCon – A Userspace System Console That Does Not Depend ... by sillystuff on Tuesday December 27, 2022 @09:59PM (#34157011)
If you are OK using gnu screen, you can auto spawn screen if tty is /dev/tty2 - tty6 (adjust if you allow logins on other ttys). Screen will mess up ability to run startx, but if not using X, use screen on /dev/tty1 - tty6.

I do the above (via a shell snippet in /etc/profile.d) to get scrollback and an idle lock, via screen, on tty2-6, and, if tty1, add an alias that invokes vlock after startx exits to lock the virt console that X is using on exit from X.

But, KMSCon looks worth checking out.

Re:KMSCon – A Userspace System Console That Does Not Depend ... by sillystuff on Wednesday January 04, 2023 @01:04PM (#34249093)
Sticking with screen. Installed kmscon, manually ran kmscon on a single virtual console, switched back and forth from kmscon to X and back three times. On the third time, X shutdown like it detected a conflict (it looked like a crash, but the logs showed an orderly shutdown of X). Current setup with auto spawned screen instances is stable.