On to the next problem. How do i map my controller? If i go intro the luna settings and click custom input, i can select my bt controller (steelseries stratus xl) but the “Add Mapping” option is greyed out. Atm the dpad is “turned 90 degrees” so up is left, down is right, left is down and right is up. And i am pretty sure some other button are wrong too.
I tried to add/change the default moonlight mappings, but i dont seem to have acces to change or add anything there.
Thanks, first time i read that part i skipped the command line instructions, opting to use the inbuilt gui option. But that did not work for this.
Any advice one changeing my controller setup? Im not afraid to try stuff and dig trough stuff, but cant seem to find out how todo this.
The ‘add mapping’ button is greyed out (inactive) if either of the following three conditions is met:
no device is selected (it says None (Disabled) as controller name)
the selected input is a keyboard or mouse
a mapping is already present (the path to the selected mapping or ‘Select Mapping’ should be visible underneath the controller in this case)
I suspect that your controller is recognised as a keyboard / mouse for some reason. Could you send me the output of cat /proc/bus/input/devices to help me see if this is indeed the case? Off the top of my head I can’t think of any other reason why that button may be inactive.
I’m not entirely sure if you’re able to override Luna’s behaviour by editing the config file, but you might as well try:
In the config file (~/.kodi/userdata/addon_data/script.luna/.storage/luna.conf or wherever your addon_data dir is located) there’s a section for each input device, e.g.:
If the ‘mapping’ line is missing just add it to your device. Should you be using multiple controllers the next section would be ‘Input 1’ obviously and the path to the mapping file needs to be present for every device.
Changing the luna.conf file worked, sort of, the controller worked more then before, but the buttons were still turned. And after stopping the stream it auto reset the file to what it was. So this is not a real solution.
Yep, pretty much as I suspected. I’ll update the code responsible for keyboard / mouse detection and make it less ‘aggressive’ - guess it’s better if you’re able to add a mapping file to a keyboard in an edge case instead of not being able to do so on a gamepad.
Thanks for letting me know about this issue
Edit: You can track the progress on this GitHub issue. Just keep in mind that I’m doing all of this in my spare time and while I try to get simple stuff like this done as quickly as possible, I can’t give you any ETAs
Well to be honest I’m not surprised that the file was reset after ending the stream. Luna is a little clepto and she doesn’t like it when others mess with her stuff
About the ‘turned’ buttons: are you talking about the 90 degree rotation of the D-Pad or are the A / B / X / Y buttons mixed up?
Hi, I’m new to Raspberry Pi and Linux, so bear with me if the solution is painfully obvious.
I followed the instructions and was able to install Moonlight and Luna on my Raspberry Pi. There were a few hiccups, but I finally got everything installed and and paired up with my host PC. Once paired I started Luna and it recognized my games. However, when I attempt to launch a game, it opens up on my host computer and not my tv (which is the display for my raspberry pi.) I tried searching for a solution, but haven’t come across one that has worked yet.
A user, Spamm00r had this issue about a year ago (here), I tried his solution of using the command “sudo modprobe snd-bcm2835” but that didn’t seem to work. (at least after entering that phrase into the command line, it didn’t seem to make any difference.)
I’d really appreciate any suggestions or tips, thanks!
Getting the following trying to configure xbox 360 wireless controller:
osmc@osmc:~$ sudo “echo uinput” | tee -a /etc/modules-load.d/modules.conf
tee: /etc/modules-load.d/modules.conf: Permission denied
sudo: echo uinput: command not found
Hey thanks for the reply. Why would people know they have to be root for this? I know basic linux, so I’m asking more to learn. Not trying to be a dick. Thanks.
yepp thats my bad was half buzzed when i wrote that script
OP script has been updated and corrected and @lebleu29 its good to learn new stuff etc, so keep it up just remember if something goes wrong a simple google can often solve your question rather then waiting for a person to answer unless you need your issue to be confirmed.
@mkub, @jorith you seem to have succeeded in installing everything on Vero? As you can maybe see in the post trail I tried the same steps but didn’t get so far any chance that everything is still working foryou and we could create a how-to for Vero users? I’d certainly be glad to support you in any way and be the guinea pig to test all the commands on