Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think the problem you have is with access rights to <code>uinput</code>. The error message you receive is typical of that and I have seen the identical behaviour before with other devices. </p> <p>In order to test that assumption, change the <code>/dev/uinput</code> permissions to allow access to all:</p> <pre><code>chmod +0666 /dev/uinput </code></pre> <p>Then try again your code. If now it works fine, you will need to make that change permanent, since otherwise it will revert back to the original permissions after reboot.</p> <p>To do that in a safe fashion, add a rule file to be located at: <code>/etc/dev/rules.d</code></p> <p>with the following line:</p> <pre><code>KERNEL=="uinput", GROUP="udev_group" </code></pre> <p>To see how a rule file should look like, check the udev rules file located at:</p> <pre><code>/lib/udev/rules.d/50-udev-default.rules </code></pre> <p>When ready, add a a group named udev_group and add your user name to it (or any user that is supposed to have write access to <code>uinput</code>).</p> <p>You may need to reboot to get the new rule working.</p> <p>The outcome would be that any user who's member of that group will have full access to <code>uinput</code>, which is exactly what you wanted.</p> <hr> <p>to add the group you can install "Users and Groups":</p> <pre><code>sudo apt-get install gnome-system-tools </code></pre> <p>and launch it at:</p> <pre><code>Application -&gt; System Tools -&gt; Administration -&gt; Users and Groups** </code></pre> <p>or in terminal:</p> <pre><code>gnome-system-tools </code></pre> <p>Hope that helps!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload