asked chatgpt about this:
1. **Make kernel use a framebuffer-only console (or none)**
In your kernel cmdline (in GRUB):
- Remove `vga=...` and similar legacy FB options.
- Prefer something like:
- `video=efifb:off` (if you want *no* fbcon)
- or just leave default KMS fbcon; kmscon will still work.
- Keep `console=tty0` (for panic messages) or switch to a serial console:
- `console=ttyS0,115200` etc.
2. **Disable getty on the TTY(s) you want kmscon to use**
For example, to free `tty1` on systemd:
```bash
sudo systemctl disable [email protected]
sudo systemctl stop [email protected]
```
3. **Start kmscon early via systemd**
Create a unit, e.g. `/etc/systemd/system/[email protected]`:
```ini
[Unit]
Description=KMS Console on %I
After=systemd-user-sessions.service
Wants=systemd-user-sessions.service
[Service]
ExecStart=/usr/bin/kmscon --login --vt=%I
Restart=always
TTYPath=/dev/tty%I
StandardInput=tty
StandardOutput=tty
StandardError=inherit
[Install]
WantedBy=multi-user.target
```
Then enable it for `tty1`:
```bash
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
```
4. **(Optional) Move *all* text I/O to kmscon**
- Use a serial console in the kernel cmdline for early boot:
`console=ttyS0,115200`
- Do not rely on the kernel’s fbcon; use kmscon as the only visible console.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172272
Title:
migrate to kmscon
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kmscon/+bug/2172272/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs