Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396571

Summary: app-misc/cwiid - udev-rule for uinput use non exitsting group plugdev
Product: Gentoo Linux Reporter: Michael Lange <gentoobugs>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal CC: hasufell, jesse, lxnay, treecleaner, ziapannocchia
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2018-04-17
Package list:
Runtime testing required: ---

Description Michael Lange 2011-12-31 07:57:29 UTC
the udev-rule installed with app-misc/cwiid will create the device uinput as group plugdev, but the group plugdev doesn't exist
i think, is gone with hal (?)

so here ist the original rule from package:
# make possible to use cwiid device as user
KERNEL=="uinput", MODE="0660", GROUP="plugdev"

device uinput after start of udev
crw-rw----  1 root root 10, 223 Dec 31 08:54 uinput

start wminput from package app-misc/cwiid as normal user results in:
$ wminput
unable to open uinput

so i changed the rule /lib/udev/rules.d/60-cwiid.rules to a group the user is in:
KERNEL=="uinput", MODE="0660", GROUP="usb"

after restart of udev:
crw-rw----  1 root usb  10, 223 Dec 31 08:54 uinput

now it works:
$ wminput
Put Wiimote in discoverable mode now (press 1+2)...

... or should a seperate group (for example uinput) created

Reproducible: Always

Steps to Reproduce:
1. emerge -av app-misc/cwiid
2. start wminput as normal user
Comment 1 BT 2014-09-09 07:41:49 UTC
The plugdev group is still created by some ebuilds e.g. net-wireless/bluez. So depending on which packages you have installed you may or may not have the plugdev group.

I'm writing an ebuild (ds4drv) which installs a uinput udev rule. I wasn't sure which group to use. I think it would be better to have a dedicated uinput group since there are at least two packages that install conflicting uinput udev rules. app-misc/cwiid uses the plugdev group and sys-auth/thinkfinger uses the fingerprint group.
Comment 2 Pacho Ramos gentoo-dev 2018-04-29 18:00:28 UTC