#1104962 fbi: Release DRI device when switching VT

Package:
fbi
Source:
fbi
Description:
Linux frame buffer image viewer
Submitter:
Celelibi
Date:
2025-05-08 23:21:02 UTC
Severity:
normal
#1104962#5
Date:
2025-05-08 23:15:59 UTC
From:
To:
Dear Maintainer,

I don't exactly know where the bug is located, so feel free to reassign
this bug report.

When fbi is running, then xorg can't start because /dev/dri/card0 is
busy. Xorg produces the following log line:
(EE) systemd-logind: failed to take device /dev/dri/card0: Device or resource busy

Stopping fbi makes xorg start up nicely.

If xorg is already running on tty1, switching to tty2 to start fbi does
work. But switching back to xorg makes it hang pretty hard. (I have to
use the sysrq SAK to kill xorg and then switch back to fbi to get the
display to refresh.)

There didn't used to be a conflict between fbi and xorg. Given the
symptoms, I guess it's fbi not releasing the device when switching VT,
but I might be wrong.

Best regards,
Celelibi