Advanced:udev-uinput-rules

From Wah!ki
Revision as of 07:36, 5 February 2011 by Sairuk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Udev rule set for uinput

About

The udev rule set below will allow access to the uinput module (used by CWiid) for normal (non-root) users on a linux system.

Installation

  1. Save this script as 70-wminput.rules
  2. Copy this file to /etc/udev/rules.d/ sudo cp 70-wminput.rules /etc/udev/rules.d/
  3. Remove the uinput module if it has been installed previously sudo rmmod uinput
  4. Add the uninput module to the system sudo modprobe uinput

You may need to add uinput to your /etc/modules file if the uinput module does not reload after reboot.

Script

# This file maintains module settings.
# See udev(7) for syntax.
#

# The easy way
KERNEL=="uinput", MODE="0666"

# The better way
# KERNEL=="uinput", GROUP="<group>"