Docker Community Forums

Share and learn in the Docker community.

Touchscreen Not detected inside Docker

I am using docker on BeagleBone Black.

The touchscreen doesnt work. I have verified that it works outside docker perfectly.

I started docker using the additional argument “–device=/dev/input/event1” after confirming that the touchscreen is registering itself at this location.

I tried adding the following sections in xorg.conf

Section "InputDevice"
  Driver       "evdev"
  Identifier   "touchscreen"
  Option       "Device" "/dev/input/event1"

and also

Section "InputDevice"
  Driver       "plpevtch"
  Identifier   "touchscreen"
  Option       "Device" "/dev/input/event1"

I ahve also added the above to ServerLayout

InputDevice "touchscreen" "Pointer"  # <--- add this to ServerLayout

However, the touchscreen doesn’t work. Let me know if there is a way around this. I am happy to provide any additional information