Mir-kiosk electron keyboard and mouse input

Hi,

I made a simple electron mir-kiosk snap. Everything is working as expected. But I cannot get mouse or keyboard working. In the mir-kiosk window you cannot click on any of the elements.

Is there an interface I need to connect? Like x11

the mir/wayland interface should give you full access to /dev/input through mir-kiosk … do you see a mouse cursor and does it move ?

1 Like

I meet a problem that I can move mouse and keyboard has response but click event has no effect, is it same with yours?

@qcmiao
How did you solve it? For me the keyboard works. For the mouse, I can see the cursor moving. But click does nothing.

#sudo vim /var/snap/mir-kiosk/current/miral-kiosk.config
arw-file=
console-provider=vt
env-hacks=MIR_MESA_KMS_DISABLE_MODESET_PROBE
vt=4
show-splash=false
display-layout=kiosk
cursor=auto

I am not sure this will help, I get this in the electron log

glamor: EGL version 1.4:
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: The XKEYBOARD keymap compiler (xkbcomp) reports:
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: > Error:            Illegal keycode 569 (must be in the range 8-255 inclusive)
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: >                   Value of "maximum" not changed
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: > Error:            Illegal keycode 372 for name <I372>
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: >                   Must be in the range 8-255 inclusive
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: > Error:            Illegal keycode 380 for name <I380>
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: >                   Must be in the range 8-255 inclusive
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: > Error:            Illegal keycode 382 for name <I382>
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: >                   Must be in the range 8-255 inclusive
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: > Error:            Illegal keycode 569 for name <I569>
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: >                   Must be in the range 8-255 inclusive
May 11 21:30:25 SydneyDemo2 mir-kiosk-electron.mir-kiosk-electron[5524]: Errors from xkbcomp are not fatal to the X server

I have solved my problem using method in Mouse cursor gets confined at top left corner of the screen in mir-kiosk 2.3.2