Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 4 /w official touchscreen udev race condition #572

Open
haata opened this issue Dec 9, 2020 · 2 comments
Open

Raspberry Pi 4 /w official touchscreen udev race condition #572

haata opened this issue Dec 9, 2020 · 2 comments

Comments

@haata
Copy link

haata commented Dec 9, 2020

With the official Raspberry Pi Touchscreen on the Raspberry Pi 4 I've been having issues getting the touchscreen to show up in x11 applications (as well as libinput).

Turns out the issue was udev didn't see the device initially and there was no hotplug event.
/dev/input/event0 did exist, but udev didn't know about the device.

Current workaround is to call (from balenaOS, doesn't work from inside a container):

udevadm trigger

I must have spent a week trying to track this down as it wasn't obvious at all...

@marcosnils
Copy link

@haata just came across this issue by accident while building balena for a pi4 project that I have which also involves a touch screen. Do you think something can be done to prevent having to do this manually in the OS? It would be awesome to fix this without having to manually trigger udev rules.

@haata
Copy link
Author

haata commented Dec 13, 2020

I created this issue which located the (likely) root problem: balena-io-library/base-images#670

https://github.com/balena-io-library/base-images/blob/91228b8f7785c025ac662ff38d42b119364ccdfd/balena-base-images/aarch64/debian/bullseye/run/entry.sh#L47
This line (udevadm trigger &> /dev/null) needs to be changed to:

chroot /proc/1/root /bin/bash -c "udevadm trigger"

I haven't found any other way to do this so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants