"Please load uinput module first" starting wiican

Bug #667582 reported by JP
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
WiiCan
Fix Released
High
J. Félix Ontañón

Bug Description

I'm running Wiican 0.3.1 (from the getdeb repository) on Ubuntu 10.10. When I launch the program, an icon with a wiimote and a red bar sinister ("no" circle) appears in my notification area. The tooltip says "Please load uinput module first", and I'm unable to sync a remote or do anything besides edit mappings.

This started happening when I upgraded from 10.04 and Wiican 0.3.0 from the getdeb Lucid repo; before then everything worked fine.

I've looked around at bugs that seem like they could be related:
https://bugs.launchpad.net/wiican/+bug/501435
https://bugs.launchpad.net/ubuntu/+source/cwiid/+bug/312957
but I'm not sure.

When I check the permissions of /dev/uinput they appear to be 0666. When I run wiican from a terminal, the only error I see is this, which I assume is unrelated to my problem:
(wiican:17231): GConf-WARNING **: haven't implemented getting a specific locale in GConfClient

I'm happy to provide any other info.

Tags: uinput
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Hi chmmr!

I'm not sure why it fails while the uinput module it's loaded with 0666 perms.
I'll try Ubuntu 10.10 and tell.

Changed in wiican:
importance: Undecided → Medium
assignee: nobody → J. Félix Ontañón (fontanon)
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

One question? Could you try to launch wminput in a shell? Did it work for you?

Revision history for this message
JP (vectorpoem) wrote :

"sudo wminput" works, but wminput without superuser privileges does not.

Like I said, my /dev/uinput has 0666 permissions, and I have a file in /etc/udev/rules.d called 99-wiimote.rules with "KERNEL:="uinput", MODE="0666".

I tried uninstalling and reinstalling wiican using the steps described in one of the bugs linked above, but it didn't help.

Changed in wiican:
importance: Medium → High
status: New → Confirmed
Changed in wiican:
status: Confirmed → Fix Committed
Revision history for this message
J. Félix Ontañón (fontanon) wrote :

The fix has been committed at trunk, could you confirm the solution please?

I'll tell the getdeb people so they could perform the properly changes in the debian packages.

Revision history for this message
JP (vectorpoem) wrote :

Great, I'll look forward to it and let you know what I find.

Revision history for this message
JP (vectorpoem) wrote :

Updating to the new version and rebooting fixed this issue. Nice work.

Revision history for this message
ThreeM (mathias-karwath) wrote :

I have installed the newest version from getdeb. Bug still present. I can connect the wiimotes with wminput, but wiican still says: "Please load module first."

Running Ubuntu 10.10.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Are you sure you're running the wiican_0.3.1-1~getdeb2 ?

Revision history for this message
ThreeM (mathias-karwath) wrote :

Im sure. Packagemanagement says: 0.3.1-1~getdeb2

Changed in wiican:
status: Fix Committed → Fix Released
Revision history for this message
ThreeM (mathias-karwath) wrote :

Sorry, i have purged wiican and reinstall it again after i compare my version of wiican_dbus.py with the one in the deb. Maybe something went wrong on update. Now i have the right version of wiican_dbus.py.

Sorry again, next time i check it more than 2 Times.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

ThreeM maybe that was because wiican service running through dbus doesn't reload itself after installing the new package. I'm sure that if you restart the computer of tear down the wiican dbus service then the changes will apply.

So .. now it works for you, isn't?

Revision history for this message
DDdW (danieldennisdewit) wrote :

Issue remains on 10.10 (32 bits)
0.3.1-1~getdeb2
purging and reinstall has no affect

wminput does work, which I use in the meantime... but all my mappings have no effect offcourse ;)

might be a general issue in 10.10:
http://ubuntuforums.org/showthread.php?t=1617581

Revision history for this message
DDdW (danieldennisdewit) wrote :

btw... I dont need to run wminput as super user
wminput works fine, however from time to time it seems it cannot run uinput, and nothing happens.
When I then remove wminput, and reinstall it again, it does work again.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Hi DDdW

I'm running Wiican + wminput on 10.10 with no issues. On 10.10 uinput module it's builded in the kernel (not as module) so there's no need to load uinput module at all.

Could you, please, see if the udev rule worked well for you, so you have 664 perms for /dev/uinput file?

tags: added: uinput
Revision history for this message
DDdW (danieldennisdewit) wrote :

well I can't access it as a normal user
I used gksudo nautilus to change the setting, but am unsure in what to change them
see screenshot (there logged in as gksudo nautilus)

Revision history for this message
DDdW (danieldennisdewit) wrote :

terminal output (doesnt allow me to paste it here, so i made a screenshot)

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

DDdW could you please check if the 99-uinput.rules files exists for you and post here the content.
This is mine:

me@myhost:~$ cat /lib/udev/rules.d/99-uinput.rules
KERNEL=="uinput", MODE="0666"

Revision history for this message
DDdW (danieldennisdewit) wrote :

the file doesn't exist on my system.
Not before running wminput, not during running wminput

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Are you sure you're running Ubuntu 10.10 and installed wiican 0.3.1-1~getdeb2 debian package?

Could you please try to install this package:
http://archive.getdeb.net/getdeb/ubuntu/pool/apps/w/wiican/wiican_0.3.1-1~getdeb2_i386.deb

I assure you this package contains the 99-uinput.rules file you need to set the right perms for uinput

Revision history for this message
DDdW (danieldennisdewit) wrote :

I was certain I initially installed the getdeb version, however I probably reinstalled another version via ubuntu-update (checked in the update list, indeed wiican says there is a 'newer' version there).
I have the get-deb in my repositories, so it's kinda weird it installs an older version from the ubuntu repositories.
Now the file is there, and indeed wiican works!

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Don't mind DDdW I hope you'll enjoy wiican.

Revision history for this message
DDdW (danieldennisdewit) wrote :

everytime run the update it puts the other version (that doesnt work) over it. Anything to counter that?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.