Kodi-rpi and gnome

I usually use kodi-rpi with hardware decoding under xfce/kms, and i could switch easily between tty with ctl-alt-F2 et go back to the session after closing kodi with ctl-alt-F7.

Under gnome the keys are ctl-alt-F3 and alt-F2, no problem to switch except with kodi.
Kodi is opening but no keyboard or mouse interaction. I must reboot. And it’s not a crash because after a few minutes the screen dims and the log is registered visually. Any ideas ? problem of group ownership or permission ? I don’t want to use the sytemctl enable disable kodi/gdm.

errors in the kodi.log :

2022-05-15 02:33:18.352 T:7559    DEBUG <general>: CApplication::CreateGUI - trying to init x11 windowing system
2022-05-15 02:33:18.352 T:7559    DEBUG <general>: CWinSystemX11::InitWindowSystem - DISPLAY env not set
2022-05-15 02:33:18.352 T:7559    DEBUG <general>: CApplication::CreateGUI - unable to init x11 windowing system
2022-05-15 02:33:18.352 T:7559    DEBUG <general>: CApplication::CreateGUI - trying to init gbm windowing system
2022-05-15 02:33:18.372 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event6 (Permission denied)
2022-05-15 02:33:18.373 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event0 (Permission denied)
2022-05-15 02:33:18.374 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event1 (Permission denied)
2022-05-15 02:33:18.376 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event2 (Permission denied)
2022-05-15 02:33:18.376 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event3 (Permission denied)
2022-05-15 02:33:18.377 T:7559    ERROR <general>: open_restricted - failed to open /dev/input/event5 (Permission denied)

2022-05-15 02:33:18.244 T:7559    DEBUG <general>: DBus method call to org.freedesktop.ConsoleKit.Manager.CanStop at /org/freedesktop/ConsoleKit/Manager of org.freedesktop.ConsoleKit failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.ConsoleKit was not provided by any .service files

DEBUG <general>: EGL Debugging:  Error: EGL_BAD_SURFACE
                                 Command: eglSwapBuffers
                                 Type: EGL_DEBUG_MSG_ERROR_KHR
                                 Message: dri2_swap_buffers

cat /etc/group

input:x:994:kodi

Have you tried adding your self to the input group?

groups bloodmoon
sys network scanner power wheel lp optical storage video bloodmoon
groups kodi
network power audio disk input optical storage tty video kodi

i’m going to try :

usermod -a -G input bloodmoon

Bingo :+1: