RetroPie-Setup
RetroPie-Setup copied to clipboard
Unable to enter runcommand menu in Ubuntu 22.04 LTS (since uinput changes in commit d417e069)
Since the uinput
changes to joy2key
in commit d417e069, it is no longer possible to enter the runcommand
menu in Ubuntu 22.04 (x86_64+X11). I confirmed this by checking out the commit immediately prior to that and reinstalling joy2key
, which works.
~~Also, in Ubuntu 22.04 uinput
is builtin and not a module, thus the group change that should be triggered by /etc/udev/rules.d/80-rpi-uinput.rules
does not work. I ran chmod 0660 /dev/uinput
and chgrp input /dev/uinput
manually, but this had no effect. I also tried using my user's own group, which also didn't work.~~
I also confirmed that python-uinput
is able to generate keyboard events successfully, with the following script:
import uinput
import time
d = uinput.Device([uinput.KEY_LEFT, uinput.KEY_RIGHT])
time.sleep(2)
d.emit_click(uinput.KEY_LEFT)
time.sleep(2)
d.emit_click(uinput.KEY_RIGHT)
I'm not sure what the problem is. If you have any suggestions, I can help debug this.
Edit: After a couple of reboots, /etc/udev/rules.d/80-rpi-uinput.rules
is being honored and /dev/input
gets the proper permissions. Perhaps I hadn't rebooted after that rule was installed, so this bit at least is not an issue.