Closed avaly closed 3 years ago
Still working for me on 18.04. Are you by any chance using Wayland?
TIL about Wayland.
It was appearantly running. I disabled it, but I still get no key press events in pygrid.
Any thoughts on how to debug this?
Wayland is a display manager like X. So you are either running Wayland or X to display your the windows on your screen. It's a choice when you log into the OS after booting up. This app currently only works with X. Lets start by double checking that first. I suspect if you never knew what Wayland was, you are probably running X.
See here: https://itsfoss.com/switch-xorg-wayland/
I have disabled Wayland yesterday:
$ cat /etc/gdm3/custom.conf | grep wayland
WaylandEnable=false
$ ps ax | grep wayland
5124 pts/0 S+ 0:00 grep -i --color=auto wayland
$ echo $XDG_SESSION_TYPE
x11
I'm clearly running X now, yet I still can't get key events.
A few days ago, it started working again as expected. Although I haven't changed any setup on my laptop. :man_shrugging:
This is happening again for me on a fresh install of Ubuntu 18.04.2.
I'm still getting this behavior on a fresh install of Ubuntu 20.04.
It seems my issue was related to the accelerator
key. I had previously configured it to <Ctrl><Mod2><Mod4>
, which worked on Ubuntu 18.04 (on a different laptop). On my new laptop running Ubuntu 20.04, I had to modify this to <Ctrl><Mod4>
for it to work when pressing Ctrl+Super.
Glad you figured this out and thanks for documenting your notes here for future users.
Does any one else experience that key presses are no longer received by
pygrid
?I'm on Ubuntu 18.04.1 LTS, and it did work until recently.