Hey Guys,
I noticed the Amazon Fire TV was actually misreading the Dual Shock 4 Controller as The Amazon Fire Controller, which caused some mismapped keys and weird analog jumps and jitters and came up with a .KL file that fixes all that.
You need to be rooted for this to work.
Copy my file to you system/usr/keylayout folder and disconnect your controller, then reconnect. Your buttons will be set.
I mapped the buttons like a Dual Shock 3 but kept the axis items for GAS & Break the same. The Touchpad is mapped as Menu, With Back and Home being Removed for full control in Emulators. Heres all the info if you wanna make your own modded version. Just edit the .kl file i included and you should be fine.
Dual Shock 4 Scancodes
sq=304
tri=307
cir=306
x=305
l1=308
r1=309
l2=310
r2=311
option=313
share=312
touch=317
l3=BACK=314
r3=MENU=315
psbutton=HOME=172
DATA from my .KL file for the DS4
# Buttons
key 164 MEDIA_PLAY_PAUSE
key 168 MEDIA_REWIND
key 172 HOME
key 208 MEDIA_FAST_FORWARD
key 304 BUTTON_X
key 305 BUTTON_A
key 306 BUTTON_B
key 307 BUTTON_Y
key 308 BUTTON_L1
key 309 BUTTON_R1
key 310 BUTTON_L2
key 311 BUTTON_R2
key 312 BUTTON_SELECT
key 313 BUTTON_START
key 314 BUTTON_THUMBL
key 315 BUTTON_THUMBR
key 317 MENU
# Joystick and game controller axes.
axis 0x00 X flat 0
axis 0x01 Y flat 0
axis 0x02 Z flat 0
axis 0x05 RZ flat 0
axis 0x09 GAS
axis 0x0a BRAKE
axis 0x10 HAT_X
axis 0x11 HAT_Y
NOTE: You need to rename my file from .txt to .kl for it to work!!!
lilcza1 said:
...WHOLE LOT OF AWESOME...
Click to expand...
Click to collapse
Great job! I've had a bunch of readers ask about this exact issue. Thanks for figuring it out. I wrote up a more detailed guide for those that need it: here
lilcza1 said:
Hey Guys,
I noticed the Amazon Fire TV was actually misreading the Dual Shock 4 Controller as The Amazon Fire Controller, which caused some mismapped keys and weird analog jumps and jitters and came up with a .KL file that fixes all that.
You need to be rooted for this to work.
Copy my file to you system/usr/keylayout folder and disconnect your controller, then reconnect. Your buttons will be set.
I mapped the buttons like a Dual Shock 3 but kept the axis items for GAS & Break the same. The Touchpad is mapped as Menu, With Back and Home being Removed for full control in Emulators. Heres all the info if you wanna make your own modded version. Just edit the .kl file i included and you should be fine.
STUFFF
NOTE: You need to rename my file from .txt to .kl for it to work!!!
Click to expand...
Click to collapse
With this method can i pair multiple Dualshock 4 controllers to the same Amazon Fire TV? Also is there a kl file for PlayStation 3 Dualshock 3 controllers? from my understanding dualshock 3 dont work correctly.
Im glad it could help! I was thinking you could just have them copy and paste it using es File explorer?
@mejdam
I haven't tested that out yet and that was the reason I even started this whole thing lol.
It may be linked to the IME (Input Method) being locked. Im looking for a way to allow other IME's to work which should circumvent this problem, but i'm hoping that now that we have the matching Vender/Product.KL file for the ds4 in place, maybe it will read now. or at least make our lives a little easier.
Your Fire TV Box has the .kl file for DualShock 3 controllers already. You need to use Sixaxis tool to pair it correctly. I dont have any DS3 controllers anymore to test if its functional or not
would it be possible to make a red samurai controler from gamestop appear like a ps3 controller using this method?
fireTVnews.com said:
Great job! I've had a bunch of readers ask about this exact issue. Thanks for figuring it out. I wrote up a more detailed guide for those that need it: here
Click to expand...
Click to collapse
I can't seem to get my ps4 controller to pair up with the FTV. I'm holding the share and home button on the ps4 controller to put it in pairing mode, then going to the setting on the FTV. It recognizes it as a wireless controller, but when I select it, it eventually just gives me an error message saying pairing was unsuccessful. I tried to get it working through the sixaxis controller app but that didn't work either. What am I doing wrong?
Hrodriguez77 said:
I can't seem to get my ps4 controller to pair up with the FTV. I'm holding the share and home button on the ps4 controller to put it in pairing mode, then going to the setting on the FTV. It recognizes it as a wireless controller, but when I select it, it eventually just gives me an error message saying pairing was unsuccessful. I tried to get it working through the sixaxis controller app but that didn't work either. What am I doing wrong?
Click to expand...
Click to collapse
I have this exact same problem - here's a more detailed breakdown of what happens for me:
Have never attempted to pair (either of 2) DS4 to my FTV.
Installed this file to my FTV successfully, I think? There wasn't a lot of feedback from the terminal during the process so I assume it worked - I didn't get any error messages, at least...
Rebooted FTV per instructions.
Start controller pairing on my FTV
Put DS4 into pairing mode (light bar blinks to indicate pairing)
FTV sees controller
Select controller with FTV remote to start pair
DS4 goes OUT of pairing mode (almost as if it did pair successfully) and LED blinks slowly a few times, then turns off
Turning DS4 back on causes the LED to flash white a few times then turn off again.
FTV never successfully completes pairing process.
Anyone have any ideas on why this works for some people and doesn't work for others?
I have not installed any APKs designed to pair controllers like the DS3, but from what I know those are only necessary for pairing a DS3, and aren't necessary for pairing a DS4, correct?
I have NOT applied the "remote control" firmware update because it seemed kinda pointless, but I should have the latest AFTV firmware running. I doubt the remote control firmware is relevant here, but thought it bore mention all the same.
I've tried this with the DS4 unplugged, plugged into the FTV USB, plugged into a wall charger - no joy from any of these.
FTV does work with the DS4 via USB, but I'd prefer not to buy a 10ft USB cable to use my wireless controller...
illuminerdi said:
I have this exact same problem - here's a more detailed breakdown of what happens for me:
Have never attempted to pair (either of 2) DS4 to my FTV.
Installed this file to my FTV successfully, I think? There wasn't a lot of feedback from the terminal during the process so I assume it worked - I didn't get any error messages, at least...
Rebooted FTV per instructions.
Start controller pairing on my FTV
Put DS4 into pairing mode (light bar blinks to indicate pairing)
FTV sees controller
Select controller with FTV remote to start pair
DS4 goes OUT of pairing mode (almost as if it did pair successfully) and LED blinks slowly a few times, then turns off
Turning DS4 back on causes the LED to flash white a few times then turn off again.
FTV never successfully completes pairing process.
Anyone have any ideas on why this works for some people and doesn't work for others?
I have not installed any APKs designed to pair controllers like the DS3, but from what I know those are only necessary for pairing a DS3, and aren't necessary for pairing a DS4, correct?
I have NOT applied the "remote control" firmware update because it seemed kinda pointless, but I should have the latest AFTV firmware running. I doubt the remote control firmware is relevant here, but thought it bore mention all the same.
I've tried this with the DS4 unplugged, plugged into the FTV USB, plugged into a wall charger - no joy from any of these.
FTV does work with the DS4 via USB, but I'd prefer not to buy a 10ft USB cable to use my wireless controller...
Click to expand...
Click to collapse
Exact problem I'm having.
Sorry guys I've been a bit MIA. Work has been keeping me busy.
@meadtj Yes, you can but you will need to find the correct mappings for the red samurai controller. Download Keytest.apk and write down the scancodes of each joystick push and button press on your joystick.
@mejdam Look at my new post here for the Workaround for playing 2 to 4 player multiplayer games including Joystick to Touch Screen and mouse games(Flash). It works virtually with all apps Here:
http://forum.xda-developers.com/fire-tv/general/root-multiplayer-fix-emulators-using-t2822470
I'll look into this weird Bluetooth Non Pairing issue in a bit.My DS4 is Paired fine and im on the the last major update with Freetime and the other tweaks installed. I'll see whats up.
Thanks for the configuration! Works like a charm.... Quick question: any way to disconnect the dualshock 4 without rebooting fire TV?
bam099 said:
Thanks for the configuration! Works like a charm.... Quick question: any way to disconnect the dualshock 4 without rebooting fire TV?
Click to expand...
Click to collapse
yeah, hold the ps button for 10 seconds and it disconnects
lilcza1 said:
yeah, hold the ps button for 10 seconds and it disconnects
Click to expand...
Click to collapse
I actually tried that and mine doesn't disconnect. Strange. Maybe I should try repairing it.
illuminerdi said:
I have this exact same problem - here's a more detailed breakdown of what happens for me:
Have never attempted to pair (either of 2) DS4 to my FTV.
Installed this file to my FTV successfully, I think? There wasn't a lot of feedback from the terminal during the process so I assume it worked - I didn't get any error messages, at least...
Rebooted FTV per instructions.
Start controller pairing on my FTV
Put DS4 into pairing mode (light bar blinks to indicate pairing)
FTV sees controller
Select controller with FTV remote to start pair
DS4 goes OUT of pairing mode (almost as if it did pair successfully) and LED blinks slowly a few times, then turns off
Turning DS4 back on causes the LED to flash white a few times then turn off again.
FTV never successfully completes pairing process.
Anyone have any ideas on why this works for some people and doesn't work for others?
I have not installed any APKs designed to pair controllers like the DS3, but from what I know those are only necessary for pairing a DS3, and aren't necessary for pairing a DS4, correct?
I have NOT applied the "remote control" firmware update because it seemed kinda pointless, but I should have the latest AFTV firmware running. I doubt the remote control firmware is relevant here, but thought it bore mention all the same.
I've tried this with the DS4 unplugged, plugged into the FTV USB, plugged into a wall charger - no joy from any of these.
FTV does work with the DS4 via USB, but I'd prefer not to buy a 10ft USB cable to use my wireless controller...
Click to expand...
Click to collapse
I'm having exactly the same problem. Anyone know how to solve it ?
thanks!
R2 and L2 not working
I'm having trouble with R2 and L2 not registering in games. Every other button works great. I've remade the .kl file as well without success. Anyone else having this problem, or know how to fix it? Gamepad Tester shows that everything is mapped correctly on the Fire TV
To anyone with pairing problems, I got mine to work by installing the "Settings" APK and pairing it there. After that I didn't have any more issues seeing the DS4.
cemicolin said:
I'm having trouble with R2 and L2 not registering in games. Every other button works great. I've remade the .kl file as well without success. Anyone else having this problem, or know how to fix it? Gamepad Tester shows that everything is mapped correctly on the Fire TV
To anyone with pairing problems, I got mine to work by installing the "Settings" APK and pairing it there. After that I didn't have any more issues seeing the DS4.
Click to expand...
Click to collapse
I'm having the same issue. I futzed around with the keybinds for a bit: I can rebind other controls to R2 and L2 (e.g. I can make the AFTV think I'm pressing A by pressing R2), but I can't rebind R2 and L2 to other controls (e.g. I can't press the triangle key and make the AFTV think I'm pressing R2). In other words, the scancodes 310 for L2 and 311 for R2 are working just fine, but mapping any key to BUTTON_L2 or BUTTON_R2 seems to make that key functionally inert.
My only other guess (based on the comments in the DS3 .kl file, and an offhand mention by the OP), is that this has something to do with the GAS and BRAKE triggers; resetting them to the DS3 defaults didn't seem to do anything for me.
No pairing problems on my end, at least.
EDIT: Found a solution (that works for me, at least)! Changing the GAS and BRAKE values to the following fixed it for me:
axis 0x04 GAS
axis 0x03 BRAKE
cant pair
lilcza1 said:
Sorry guys I've been a bit MIA. Work has been keeping me busy.
@meadtj Yes, you can but you will need to find the correct mappings for the red samurai controller. Download Keytest.apk and write down the scancodes of each joystick push and button press on your joystick.
@mejdam Look at my new post here for the Workaround for playing 2 to 4 player multiplayer games including Joystick to Touch Screen and mouse games(Flash). It works virtually with all apps Here:
http://forum.xda-developers.com/fire-tv/general/root-multiplayer-fix-emulators-using-t2822470
I'll look into this weird Bluetooth Non Pairing issue in a bit.My DS4 is Paired fine and im on the the last major update with Freetime and the other tweaks installed. I'll see whats up.
Click to expand...
Click to collapse
anyone figure out why ps4 controller wont pair? When i click on wireless controllers PS4 controller turn of and minute late message pops up cant connect. Only way i can pair it is by hitting return key on amazon remote. problem is controller is paired but battery is off line not working. running 5.1.1.10-user 511702220
---------- Post added at 02:49 AM ---------- Previous post was at 02:14 AM ----------
cemicolin said:
I'm having trouble with R2 and L2 not registering in games. Every other button works great. I've remade the .kl file as well without success. Anyone else having this problem, or know how to fix it? Gamepad Tester shows that everything is mapped correctly on the Fire TV
To anyone with pairing problems, I got mine to work by installing the "Settings" APK and pairing it there. After that I didn't have any more issues seeing the DS4.
Click to expand...
Click to collapse
where did you get settings apk?
I believe he is talking about the settings.apk in this thread
http://forum.xda-developers.com/showthread.php?t=2714494
I am having the same issues as you. I sideloaded the settings.apk a few minutes ago. You then open it from the Firetv and go into the bluetooth menu.
It says I'm paired but cannot use the controller for menus currently as it turns itself off after being paired.
Will play with this a bit and report back if it works.
Update: Not working for me. DS4 still shuts itself off like it's timing out. I've spent 3 hours on this, getting very frustrated, time for bed.
dakotaSioux said:
I believe he is talking about the settings.apk in this thread
http://forum.xda-developers.com/showthread.php?t=2714494
I am having the same issues as you. I sideloaded the settings.apk a few minutes ago. You then open it from the Firetv and go into the bluetooth menu.
It says I'm paired but cannot use the controller for menus currently as it turns itself off after being paired.
Will play with this a bit and report back if it works.
Update: Not working for me. DS4 still shuts itself off like it's timing out. I've spent 3 hours on this, getting very frustrated, time for bed.
Click to expand...
Click to collapse
Try this, once you select wireless controller pair hit return key on fire TV remote it should be paired but battery is off. Can’t figure that part out.
mapping Mele f10 pro
lilcza1 said:
Sorry guys I've been a bit MIA. Work has been keeping me busy.
@meadtj Yes, you can but you will need to find the correct mappings for the red samurai controller. Download Keytest.apk and write down the scancodes of each joystick push and button press on your joystick.
@mejdam Look at my new post here for the Workaround for playing 2 to 4 player multiplayer games including Joystick to Touch Screen and mouse games(Flash). It works virtually with all apps Here:
http://forum.xda-developers.com/fire-tv/general/root-multiplayer-fix-emulators-using-t2822470
I'll look into this weird Bluetooth Non Pairing issue in a bit.My DS4 is Paired fine and im on the the last major update with Freetime and the other tweaks installed. I'll see whats up.
Click to expand...
Click to collapse
Hi there - i'm new to both xbmc and amazon tv. I'm looking to map the Mele F10 Pro remote - in particular the microphone on it so that it work like the stock remote. Is there a tutorial on how to go about this you can link me to?
thanks
This file works for some games, but not for others. I was able to remap the gas-break for Airborn 8. However, some games will not recognize the PS4 controller. For example, I cannot use “Naught 2″ because it does not recognize the D-pad or the ‘A’ button. Also, the game “Hero to Many” does not recognize the L/R triggers or the D-pad.
I have repeated the install instructions and completed a factory reset… same issue.
Perhaps the controller needs an update?
I have tried through bluetooth and the phone is unable to pair with the controller. Is there any other way to work around this issue and connect wirelessly? Also will a USB-C OTG cable work with the 6P?
I haven't received my 6P yet but on my 6 I use sixaxis controller with my ps3 controller. Not sure if ps4 controller does native Bluetooth gamepad or you need to use the app.
Use this to set the parent address to your nexus 6ps bluetooth mac address (you can find it in settings->about)
http://www.dancingpixelstudios.com/sixaxiscontroller/tool.html
Then connect it as a standard bluetooth device.
Unfortuantely after 30sec it starts lagging terribly
So I successfully got the ps4 controller to pair over Bluetooth without adjusting any settings. It wouldn't work at first but it added it as a device. Then when I tried again the next day after restarting the phone it connected.
you have to hold PS button and share at the same time until you get the flashing white light.
However, the triggers mapped weird for games and there is lag.
Does anyone know of a way to fix the mapping without root?
I also successfully used the OTG cable with the ps3 controller. This worked a lot better this works a lot faster then the Bluetooth ps4. And the mapping is correct.
Haven't tried usb to ps4 yet. UPDATE
So ps4 over otg also has some mapping issues. Tested this out in minecraft settings since you can customize controller mapping. For some reason on ps4 some buttons didn't seem to me recognized, everything was weird, like r2 was labeled as a button and triangle wasn't showing anything.
Tried to connect ps3 via Bluetooth but couldn't get it to work
The game controller was working great until yesterday's 5.0.2 update. After my 2015 Shield TV updated and stabilized (and was restarted a few times for good measure,) I realized the controller was no longer working or paired. Now I can't pair it at all.
I fully charged it up just in case. I hold the Nvidia logo on both Shield TV and Controller until they both start blinking, set them within inches of one another, but they never pair. They just keep blinking forever, and I let them sit like this for 30 minutes. I tried countless times with same result - no matter what I do they just don't pair.
I did not yet try to pair the actual Shield TV remote because I use a Logitech Harmony Ultimate with Hub, and it's working fine via IR, so there's no BT interference there. I also have another BT game controller from my old Amazon Fire TV. It's listed as paired under "Other controllers" but I haven't tested it yet.
Has anyone encountered this problem? What workarounds can I try?
I upgraded yesterday and then did a factory reset, paired the controller fine but was a bit trickier than when i first setup with MM.
What i did was just hold the nvidia logo on the controller from my couch(no need to touch the SATV) and KEPT pressing it until the shield recognised and paired it, so do not remove your finger when it starts blinking. Took less than 20 seconds.
You could also "forget" the controller (removing any trace of it; like when you forget a wifi network) if you get bad behavior and then try pairing again as i did.
Enviado desde mi Moto X via Tapatalk!
lavero.burgos said:
I upgraded yesterday and then did a factory reset, paired the controller fine but was a bit trickier than when i first setup with MM.
What i did was just hold the nvidia logo on the controller from my couch(no need to touch the SATV) and KEPT pressing it until the shield recognised and paired it, so do not remove your finger when it starts blinking. Took less than 20 seconds.
You could also try "forgetting" the controller (removing any trace of it; like when you forget a wifi network) and then try pairing again as i did.
Click to expand...
Click to collapse
I'll try a factory reset when I get home today. I can't "forget" the controller because it's not paired yet.
For some reason my controller only pairs when the shield is connected via WiFi. It won't connect when it's using ethernet!? And it was the same on MM too. Any ideas guys?
Sent from my SM-G935F using XDA-Developers Legacy app
Largewoodenspoon said:
For some reason my controller only pairs when the shield is connected via WiFi. It won't connect when it's using ethernet!? And it was the same on MM too. Any ideas guys?
Sent from my SM-G935F using XDA-Developers Legacy app
Click to expand...
Click to collapse
I also paired it while connected to wifi but now i have plugged in ethernet cable and controller keeps working. Didnt have to repair. The only thing i notice is that the back button (left side of nvidia button) is not working properly. In MM 3.3 i remember worked fine.
Enviado desde mi Moto X via Tapatalk!
Same problem here. Been fine since new, and hasn’t used it for a month or two and charged it and nothing. Can’t re pair it at all it just flashes .
You have to to disable ipv6 in the network settings
If you try to pair with the PS4 controller in the usual way; enter pair mode by pressing share and the Playstation and clicking on th Wireless Controller detected in the list of detected Bluetooth devices on your switch, it will hang during the pairing proces. For me the workaround is to do a fresh reboot, pair wit a bluetooth device that asks for a pin (for me it was a Siemens SL400 dec phone) and pair the PS4 controller after that.
There is a problem with pairing, hence the description of a workaround which worked for me. After pairing the PS4 controller works without problems. I already had a PS4 controlller so was pleased to be able to use it with the Switch, no need for a modded controller.