Input Device permission error: Beaglebone Black + JavaFx

2

1

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?

Sam Coulter

Posted 2015-02-06T22:58:20.977

Reputation: 121

Did you manage to find a fix for this? – Gillardo – 2015-09-30T13:49:51.807

Answers

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

Posted 2015-02-06T22:58:20.977

Reputation: 11

Is there a good reason to change all input devices, rather than just setting MODE and USER values in the udev rules? BTW, you probably want ACTION=="add" in there, too... – Toby Speight – 2016-10-06T13:14:59.183

I would like to solve the problem by adding a more specific udev-rule. How would it have to look if I wanted to use the add-action and only allow the necessary devices? – Customizer – 2017-12-27T20:10:32.810

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

Posted 2015-02-06T22:58:20.977

Reputation: 101

0

input devices are these Mouse, keyboard here is full information about input devices

Asghar Ali Khan

Posted 2015-02-06T22:58:20.977

Reputation: 1

1While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Donald Duck – 2017-03-19T10:47:18.793