LinHES Forums
http://forums.linhes.org/

Wii remote in 6
http://forums.linhes.org/viewtopic.php?f=25&t=21637
Page 1 of 1

Author:  vincduran [ Sat Sep 25, 2010 12:32 am ]
Post subject:  Wii remote in 6

Hello,
I'd like to use a wii remote in linhes 6.03.
I found references to R5E50 and apt-get in the wiki at http://www.knoppmythwiki.org/index.php?page=WiiRemote. I understand 6 uses archlinux and pacman so the old instructions don't seem to apply.
These instructions refer to mythtv_wiimote.sh and a wmd directory that I can't find.

I checked out mythpywii http://www.benjiegillam.com/mythpywii-installation/ and his instructions refer to apt-get as well.

When I try python myth_py_wii.r17.py I get
Code:
Traceback (most recent call last):
  File "myth_py_wii.r17.py", line 21, in <module>
    import cwiid, time, stringIO, sys, asyncore, socket, os
ImportError: No module named cwiid


Are the files for the wii remote still included in linhes? If so, could someone direct me to the start up file I need to edit to get support?

Thanks for your time

Author:  vincduran [ Sun Sep 26, 2010 4:01 pm ]
Post subject: 

Hello,
I'm getting closer. I got a start from Benjie Gillam of MythPyWii. He sent me to http://abstrakraft.org/cwiid/wiki/ArchLinux and got me installing cwiid

I did the alt-x, su, and then
Code:
pacman -Sy cwiid


which installed bluez and cwiid

When bluez was installed pacman commented:
Code:
>>> Only the bluetoothd daemon is started by default.
>>> You can optionally add the following as required:
>>> hidd dund pand rfcomm
>>> $ sudo add_service.sh <service_name>
Optional dependencies for bluez
   gstreamer0.10-base
   alsa-lib
   libusb

When cwiid-git was installed I got;
Code:
Note:
==> In order to use wminput you have to load the uinput kernal module:
==> modprobe uinput (as root)
==> and you have to assign correct right access to /dev/uinput
==> PLEAS READ THE DOC FILE /usr/share/doc/cwiid/wminput


I don't see a doc file in that location but I think it's http://abstrakraft.org/cwiid/wiki/wminput
modprobe uinput doesn't appear to do anything but gives no errors
dmesg tells me
usb 2-5: new full speed USB device using ohci_hcd and address 2
and later some Bluetooth: messages about sockets being initialized. Nothing that looks like an error.

Now if I type python myhth_my_wii.r17.py either as root or as mythtv I get this message repeatedly:
Code:
35 minutes has passed since last action, disconnecting Wiimote
Please open Mythfrontend and then press 1&2 on the wiimote...
No Bluetooth interface found
Retrying...


I use the 1 2 key combination of the wiimote and nothing changes. The lights on the remote don't change and the messages on the screen don't change.

The above messages say I have to assign the correct right access to /dev/uinput but I don't know how to do that. I think it involves changing one of the files in /etc/udev/rules.d but I'm not certain.

I'm pretty close. I think most of my problem is getting bluetooth running correctly. I'd appreciate any direction getting the bluetooth working correctly.

The dongle shows up in lsusb.

Thanks

Author:  mihanson [ Mon Sep 27, 2010 7:32 pm ]
Post subject: 

Code:
$ sudo pacman -Sy mythpywii
should get you going.

Author:  vincduran [ Thu Sep 30, 2010 11:36 pm ]
Post subject: 

Hi mihanson,
I see you put a lot of work into this! I read up on http://linhes.org/bugs/issues/327.
On post 4 where it says, "=This post overrides all others ..." do I perform all those steps myself or is the
Code:
sudo pacman -Sy mythpywii
supposed to do those things?

The first step appears to be done; your change is in line 151 of /usr/bin/myth_py_wii.py but steps 2) and on aren't on my system. For instance, /etc/cwiid/wminput/ doesn't exist.

Thanks for your time,
Vinc

Author:  mihanson [ Fri Oct 01, 2010 8:22 am ]
Post subject: 

vincduran wrote:
Code:
sudo pacman -Sy mythpywii
supposed to do those things?


The pacman command should do everything you need. It should "just work" if you have not done anything "funny" to your box.

Author:  Big_D_271 [ Fri Oct 15, 2010 6:11 pm ]
Post subject: 

mihanson wrote:
vincduran wrote:
Code:
sudo pacman -Sy mythpywii
supposed to do those things?


The pacman command should do everything you need. It should "just work" if you have not done anything "funny" to your box.


I have a new install, and did the pacman -Sy mythpywii. I rebooted, loaded the with "modprobe uinput" and after a "hcitool scan" it doesn't find anything. It does work with the same bluetooth dongle in my home computer running Ubuntu 10.10 (I can hcitool scan, and run "wmgui" and see button presses. )

Oh, and hcitool dev does report that the bluetooth dongle is connected.

Is there something else I may be missing?

Author:  mihanson [ Fri Oct 15, 2010 8:51 pm ]
Post subject: 

Big_D_271 wrote:
I rebooted, loaded the with "modprobe uinput" and after a "hcitool scan" it doesn't find anything.


You should not have to manually load the module uinput. What's the output of:
Code:
$ sudo cat /etc/modules.mythvantage
It should come back with (at least) "uinput". Also what is the output of:
Code:
$ sudo cat /etc/udev/rules.d/z90-wiimote.rules
. I'm suspecting a permission problem on the uinput module. It should be taken care of with the udev rule.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/