View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Wii remote in 6
PostPosted: Sat Sep 25, 2010 12:32 am 
Offline
Joined: Thu Mar 02, 2006 3:34 pm
Posts: 40
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

_________________
free range geek in boulder, co and mythtv enthusiast
R6.03


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 26, 2010 4:01 pm 
Offline
Joined: Thu Mar 02, 2006 3:34 pm
Posts: 40
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

_________________
free range geek in boulder, co and mythtv enthusiast
R6.03


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 27, 2010 7:32 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
Code:
$ sudo pacman -Sy mythpywii
should get you going.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 30, 2010 11:36 pm 
Offline
Joined: Thu Mar 02, 2006 3:34 pm
Posts: 40
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

_________________
free range geek in boulder, co and mythtv enthusiast
R6.03


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 01, 2010 8:22 am 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
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.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2010 6:11 pm 
Offline
Joined: Sat Aug 14, 2010 7:13 pm
Posts: 11
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?

_________________
LinHES 6.03
-P4 2.8GHz (512 MB Ram)
-250 GB PATA
-Nvidia 9500 GT (PCI)
-PVR-350 capture card
-Samsung 32" 720p LCD HDTV (1360x768)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2010 8:51 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
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.

_________________
Mike
My Hardware Profile


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu