 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
jic2000
Joined: 04 Feb 2007 Posts: 7
Digg It |
Posted: Sun Feb 04, 2007 11:10 pm Post subject: CWiid with GlovePIE/button mapping |
|
|
I'm brand new to Linux - I just got Ubuntu installed on my Macbook, hoping to take advantage of both Linux and Windows apps that use the Wii remote.
Having said that, I have two questions:
1. How do you map the buttons on the Wii remote to keyboard keys? wmgui works fine for me, but I can't figure out how to do anything useful with it; and when I try to launch wminput, I get
| Code: | unable to find configuration file: using default configuration
unable to open uinput
Segmentation fault (core dumped) |
How can I map remote buttons to keys?
2. I have GlovePIE running under Wine, but I don't see any way to connect the Wii remote to it. Is there some way to use CWiid in conjunction with GlovePIE (as a driver) to use GlovePIE scripts? |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Mon Feb 05, 2007 4:57 pm Post subject: |
|
|
Most of this info is in the README (get in the habit of always checking the README file before asking for help, for any package), but as a new Linux user, it may be over your head. If you're willing to learn, I'll be glad to help you through the setup process.
The errors:
Unable to find configuration file - this is normal, as you haven't created a configuration file, and wminput will simply use the default. You'll need to create one if you want to map buttons to keys other than the default.
unable to open uinput - this is a problem. Either you don't have uinput enabled in the kernel (which will require enabling it and recompiling your kernel), or the device permissions are preventing you from opening the device, which is fixed with a line or two in your udev configuration. If any of the following files exist, it's the latter problem: /dev/uinput, /dev/input/uinput, /dev/misc/uinput.
seg fault = my fault. That's a bug in wminput that I should fix. Thanks.
So, figure out which of the two uinput problems you have (or perhaps a third I didn't think of), and we'll go from there. _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
jic2000
Joined: 04 Feb 2007 Posts: 7
Digg It |
Posted: Tue Feb 06, 2007 1:22 am Post subject: |
|
|
| Well, I don't have any of the files you mentioned, so I guess it's the kernel issue. I have no idea how to go about recompiling the kernel, so I might need help there. |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Tue Feb 06, 2007 1:48 am Post subject: |
|
|
Actually, see if the module is there but not loaded:
login as root, and enter the command 'modprobe uinput'. If it doesn't give you an error, try running wminput again.
If it does error, then you need to recompile your kernel. There's a link in the README to a kernel compilation howto for gentoo, Ubuntu may be similar, but you may want to check ubuntu-specific sources for verification. I started to outline the steps, but there are too many distro-specific parts, I don't know ubuntu at all, and I don't want to tell you something that'll fubar your system. _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
jic2000
Joined: 04 Feb 2007 Posts: 7
Digg It |
Posted: Tue Feb 06, 2007 11:13 pm Post subject: |
|
|
| I don't get any error with "sudo modprobe uinput", but wminput is still giving me the same errors when I run it. I guess this means I won't have to recompile my kernel, but I still can't get the program to work. |
|
| Back to top |
|
 |
abstrakraft
Joined: 27 Dec 2006 Posts: 107
Digg It |
Posted: Wed Feb 07, 2007 12:14 am Post subject: |
|
|
try 'sudo wminput'
If that works, you either need to always run wminput as root (or with sudo), or change the permissions on the uinput device - the README explains how to do this. _________________ "I seldom let practicality get in the way of my fascination with shiny things and blinky lights."
- some guy
http://abstrakraft.org/cwiid |
|
| Back to top |
|
 |
jic2000
Joined: 04 Feb 2007 Posts: 7
Digg It |
Posted: Wed Feb 07, 2007 1:32 am Post subject: |
|
|
| Nope - it gives the same error. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|