2

I am trying to launch a JavaFX app on my beaglebone black running Debian.

When launching as the root user, the application will launch but the touchscreen will bug out a little bit, displaying improperly and messing up the touchscreen touch calibrations.

When I try and launch the app as a normal user, I get the following error messages as the app launches:

Udev: Failed to write to /sys/class/input/mice/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/event0/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/event1/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/event2/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/input0/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/input1/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/input2/uevent
      Check that you have permission to access input devices
Udev: Failed to write to /sys/class/input/mouse0/uevent
      Check that you have permission to access input devices

The app is then unresponsive to touch input.

How can I give a normal user permission to access the input devices?

SCC
  • 121

2 Answers2

1

I just find this post.

I have another solution (maybe more clean).

Modifying udev rules, you can add rights on this files.

sudo vi /etc/udev/rules.d/99-com.rules

and add following lines:

SUBSYSTEM=="input*", PROGRAM="/bin/sh -c '\
        chown -R root:input /sys/class/input/*/ && chmod -R 770 /sys/class/input/*/;\
'"
Fred
  • 11
0

If your problem is related to the mouse issue described here you have currently three options:

  • start your app as root
  • unplug/plug your mouse (or mouse receiver) after each app start
  • use older jdk 1.8 (<= u60)
tomasb
  • 101