Modernizing the console with kmscon

Thank you for the article! I am in the fedora beta and indeed mpv could not access the drm directly with kmscon running. It worked after disabling the kmscon service but after reading that kmscon will be used more I wanted to get it working with kmscon.
$ kmscon-launch-gui mpv worked from the command line directly, but I’m still figuring out how to start it from a user service..

I dont think I want to launch it as root with the --login with eg:

$ sudo systemctl edit kmsconvt@tty1.service
[Service]
ExecStart=kmscon --vt=%I --no-switchvt --login -- /usr/bin/mpv --input-ipc-server=%t/mpv.sock

If you want to keep a tty using fbcon, just in case, you can run
sudo systemctl mask kmsconvt@tty5 && sudo systemctl enable --now getty@tty5

So played around with the systemd services while reading the article :slight_smile:

$ sudo systemctl enable --now getty@tty1
Failed to enable unit: File '/etc/systemd/system/autovt@tty1.service' already exists and is a symlink to /usr/lib/systemd/system/kmsconvt@.service

I think this file was left by this:

$ sudo systemctl enable kmsconvt@tty5
Created symlink '/etc/systemd/system/autovt@tty5.service' → '/usr/lib/systemd/system/kmsconvt@.service'.
Created symlink '/etc/systemd/system/getty.target.wants/kmsconvt@tty5.service' → '/usr/lib/systemd/system/kmsconvt@.service'.
$ sudo systemctl disable kmsconvt@tty5
Removed '/etc/systemd/system/getty.target.wants/kmsconvt@tty5.service'.
$

what should be done with the autovt file? Is it a bug or expected?