Kodi Community Forum

Full Version: RCB + wireless xbox 360 controllerS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Over the past 2 months I have bounce between multiple mediacenters. This one is my favorite and I prefer the build on Ubuntu better than windows just because ssh on windows is horrible at best. One day Microsoft will get the point and add ssh natively into its systems (hopefully this will be the same day metro goes away). All that aside, I am still having a couple of problems that I can fix (without having to do it manually) and could use some help.

Setup :

XBMCbuntu 12.2

Code:
mediacenter@mediacenter-desktop:~$ lspci
00:00.0 Host bridge: NVIDIA Corporation Device 07c3 (rev a2)
00:00.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a2)
00:01.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.1 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.2 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.3 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.4 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.5 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:01.6 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:02.0 RAM memory: NVIDIA Corporation nForce 630i memory controller (rev a1)
00:03.0 ISA bridge: NVIDIA Corporation MCP73 LPC Bridge (rev a2)
00:03.1 SMBus: NVIDIA Corporation MCP73 SMBus (rev a1)
00:03.2 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
00:03.3 Co-processor: NVIDIA Corporation MCP73 Co-processor (rev a2)
00:03.4 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
00:04.0 USB controller: NVIDIA Corporation GeForce 7100/nForce 630i USB (rev a1)
00:04.1 USB controller: NVIDIA Corporation MCP73 [nForce 630i] USB 2.0 Controller (EHCI) (rev a1)
00:09.0 Audio device: NVIDIA Corporation MCP73 High Definition Audio (rev a1)
00:0a.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
00:0b.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
00:0c.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
00:0d.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
00:0e.0 IDE interface: NVIDIA Corporation MCP73 IDE (rev a2)
00:0f.0 Ethernet controller: NVIDIA Corporation MCP73 Ethernet (rev a2)
00:10.0 VGA compatible controller: NVIDIA Corporation C73 [GeForce 7050 / nForce 610i] (rev a2)
03:00.0 VGA compatible controller: NVIDIA Corporation GT218 [ION] (rev a2)
03:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)

Doing ALL audio/video over HDMI

First problem... Rom Collection Browser (works like a champ) with zsnes except the audio. The easiest way for me to get it to work is to log in via xbmcuntu GUI and then open xbmc and it will work. To make it work over hdmi in the first place I had to add .asoundrc to my ~ path.
Code:
mediacenter@mediacenter-desktop:~$ cat .asoundrc
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:1,7"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
type route
slave.pcm "hw:1,7"
ttable {
0.0= 1
1.1= 1
2.4= 1
3.5= 1
4.2= 1
5.3= 1
6.6= 1
7.7= 1
}
}

I also had to modify zsnes.cfg to reflect alsa...
Code:
mediacenter@mediacenter-desktop:~/.zsnes$ cat zsnesl.cfg |grep alsa
libAoDriver="alsa"

when I load zsnes i have to do a "-ad alsa" as well... this gets rid of 99% choppiness. in RCB i set the rom parameters to "-ad alsa %ROM%" and it will work great. Once again the problem is that if i boot directly into xbmc, the audio does not work.



------------------------------------------------
PROBLEM 2: xbox 360 wireless controllers (XWC) working with emulators -- SOLVED
------------------------------------------------
The only way I could get a XWC to work is to ctrl+alt+f1 and sudo xboxdrv ... once I do this the controller works like a champ. There has to be an automatic way to start this up. Also I can only get 1 controller to work. I have tried " --next-controller" and nothing. It will detect the first controller but when I power the second up it will just reregister that one as the first one.

POST #2 solved this PERFECTLY.

Any help would be awesome
Try this for running xboxdrvxboxdrv

http://forum.xbmc.org/showthread.php?tid=159561
Solved the xbox 360 driver problems. Thanks... Now if someone can help with the audio that would be awesome.

-- I notice that when I boot directly to xbmc and try to play a game, even though I cant hear the game I can hear xbmc sounds (ie. sounds like when you go up and down on the remote). Is xbmc not releasing the audio?
Could use some help
Try this.

http://forum.xbmc.org/showthread.php?tid=147022

I personally have always had better results with running xbmc in a desktop environment with rcb using solo mode (xbmc quits, launches emator then launches xbmc when the emulator is closed).
1. Try running the emulator in solo mode (check the ROM collection settings).

2. Try out RetroArch instead of that old zsnes crap, you'll get improved graphics as a bonus.