Platinum Member

Rank: 4

Credits
3164
Device
Mi MIX 2S
Online time
29 Hours
Send PM

Unlock MedalMijia VR Play 2MIUI Devices ContestMIUI Weekly PollMIUI 9Hilal Ramadan MIUI FollowerAndroid GuruForum Contest LoverDie-hard MIUI Fan

[Q & A] Xiaomi Mi Controller on Linux Mint 18 and Windows 10

[ Promote]
2224 5 |
07:23, Nov-20-2016 | From Mi 5s Plus
|
|
Go to reply no.
Hi

I order the new Xbox One S Controller with Bluetooth and it is not really good (will send it back). My 5 years old Xbox 360 Controller need a replacement and over one year ago I bought the Mi Controller but it just work on Android, not on Windows and not on Linux. On Linux it is like a mouse (left analog stick just work) and on Windows nothing work.

When I configure it on Steam, anything works nice but when I start a game, nothing work (just on Linux the left analog stick).

in some forums I read the problem is Xiaomi itself, because of the driver, which are closed.

For real, the Mi Controller is the better choice than Xbox 360 and Xbox One S, in any point (quality, vibration and so on) but why it not work?

I hope some of you guys (or girls) can help and explane me, whats the real problem.


Regards
Favorite Share

Platinum Member

Rank: 4

Credits
3164
Device
Mi MIX 2S
Online time
29 Hours
Send PM

Unlock MedalMijia VR Play 2MIUI Devices ContestMIUI Weekly PollMIUI 9Hilal Ramadan MIUI FollowerAndroid GuruForum Contest LoverDie-hard MIUI Fan

 Author| 08:08, Nov-21-2016 | From Mi 5s Plus
|
Nobody?

Super moderator

To be the BEST Xiaomi Reviewer

Rank: 8Rank: 8

Credits
231108
Device
Mi 8
Online time
1002 Hours
Send PM

Mi WiFi RouterXiaomi 6 LaunchMi BandNinebot MiniMi Power Bank 10000MAH Mi Power BankMi MIXMi HomeUnlock MedalMi Notebook AirMijia Story TellerMi Air PurifierMijia IHP Rice CookerMi TV 70Mi Kids WatchMi Bluetooth SpeakerMi Water PurifierMi BoxMijia Qi CycleMi T-ShirtMi USB FanXiaomi 7th AnniversaryMIUI Devices ContestMarshmallowFantastic!MIUI 8Awesome!I Love MIUIMIUI 2016MIUI 7Mi MIXRedmi Note 4XMi TVMi 3Mi 5sMi 4SRedmi ProRedmi Note 4Mi Note ProMi 4cRedmi Note 2Mi 5Mi 5 ProMi Pad 2 Win 10 EditionMi Pad 2Xiaomi 6th Anniversary5 Million Forum App InstallsMIUI Happy Medal10 Million Forum PostsMerry Christmas1500K Forum MembersMIUI 7th AnniversaryMIUI 6th AnniversaryMi Live MedalMIUI Weekly Poll1400K Forum MembersMIUI Fan From NepalFan Of MIUI IndiaMIUI 9MIUI Fan From PhilippinesMIUI Lucky FridayMIUI 50 Million UsersI Love 2016Pokemon Master MedalMIUI Philippines Fan MeetupHappy Valentine's DayHappy New YearXiaomi 5th AnniversaryRooster Year of 2017Surge S1Super SundayRocket to FutureMIUI 2017MIUI Fan From SingaporeSuper Friday800K Forum MembersSummer Mi BunnyGamer Mi BunnyI Love Mi BunnyMIUI Device TeamMaster Of TechnologyGold Super ModeratorMi 8MIUI 8th AnniversaryBlack SharkXiaomi 8th AnniversaryRedmi Note 5A/Prime2017 Annual AwardsMi Story TellerDebate MasterMIUI Device ExpertScroll Of WisdomMi TalentStar WarsMr. DependableMIUI FollowerMi Lover MedalRingtone Star Technology GuruMIUI Medals CollectorDie-hard MIUI Fan

21:53, Nov-21-2016 | From PC
|
greetings!

this works only on android ecosystem

regards
mitch002

Platinum Member

Rank: 4

Credits
3164
Device
Mi MIX 2S
Online time
29 Hours
Send PM

Unlock MedalMijia VR Play 2MIUI Devices ContestMIUI Weekly PollMIUI 9Hilal Ramadan MIUI FollowerAndroid GuruForum Contest LoverDie-hard MIUI Fan

 Author| 06:05, Nov-22-2016 | From Mi 5s Plus
|
Why?

I find something and on Windows 10 it works great: https://github.com/irungentoo/Xiaomi_gamepad

Platinum Member

Rank: 4

Credits
3515
Device
Mi Note 3
Online time
259 Hours
Send PM

Mi Power Bank 10000MAH Mi Bluetooth Canon SpeakerMi TV 70Unlock MedalMi BandYi Action CameraMijia 360° Panoramic CameraMi Power StripMi Band 2Mi HeadphonesMi  BunnyMi BoxXiaomi 7th AnniversaryI Love MIUIMarshmallowMIUI 2016Fantastic!MIUI 7Awesome!Redmi NoteMi 5Mi Pad 2 Win 10 Edition4 Million Forum MembersMi Pad 2MIUI 9MIUI PMi Live Medal1400K Forum MembersMIUI S1 Million Forum MembersMIUI 50 Million UsersFan Of MIUI BangladeshMerry ChristmasXiaomi 6th AnniversaryMIUI 6th AnniversaryMIUI Weekly Poll1 Million Forum App Installs300K Forum Members1900K Forum MembersI Love 2016Gamer Mi BunnyAlpaca Mi Bunny MiPop8 Million Forum MembersStar WarsMIUI FollowerMIUI ExpertScroll Of WisdomMIUI Quick DiscussionMi Lover MedalMIUI Weekly Devices QuizSurpriseUpdates LoverMaster Of TechnologyMi Bunny Game Master MIUI Halloween 2017Mi TalentForum Contest LoverTechnology GuruDebate MasterMIUI FB FollowerInbox ZeroAndroid GuruAndroid ElfStar Of TechnologyDie-hard MIUI Fan

19:29, Nov-22-2016 | From PC
|
This post was edited by leledumbo at 05:46, Nov-23-2016

On Linux I use xboxdrv and the following configurations:
  1. [xboxdrv]
  2. evdev = /dev/input/event15
  3. evdev-debug = true
  4. evdev-grab = true

  5. [axismap]
  6. -Y1 = Y1
  7. -Y2 = Y2

  8. [evdev-absmap]
  9. ABS_X = X1
  10. ABS_Y = Y1
  11. ABS_Z = X2
  12. ABS_RZ = Y2
  13. ABS_HAT0X = DPAD_X
  14. ABS_HAT0Y = DPAD_Y

  15. [evdev-keymap]
  16. BTN_NORTH = X
  17. BTN_WEST = Y
  18. BTN_SOUTH = A
  19. BTN_EAST = B
  20. BTN_SELECT = Back
  21. BTN_START = Start
  22. KEY_HOMEPAGE = Guide
  23. BTN_TL = LB
  24. BTN_TR = RB
  25. BTN_TL2 = LT
  26. BTN_TR2 = RT
  27. BTN_THUMBL = TL
  28. BTN_THUMBR = TR
Copy the Code
This nicely maps to standard XBox 360 controller and my steam games which expects the same configuration works flawlessly. Good documentation source of the config file format is here.

P.S.:
Adjust xboxdrv section accordingly, input id will be dynamically assigned, therefore use id symlink if you don't want to adjust the id everytime you connect the controller. The symlink can be configured automatically by udev using the following rules:
  1. KERNEL=="event*", SUBSYSTEM=="input", ATTRS{uniq}=="<bluetooth mac address of your gamepad>", SYMLINK+="input/<name it whatever you like>"
Copy the Code
the symlink will be created under /dev.

Platinum Member

Rank: 4

Credits
3164
Device
Mi MIX 2S
Online time
29 Hours
Send PM

Unlock MedalMijia VR Play 2MIUI Devices ContestMIUI Weekly PollMIUI 9Hilal Ramadan MIUI FollowerAndroid GuruForum Contest LoverDie-hard MIUI Fan

 Author| 06:07, Nov-23-2016 | From Mi 5s Plus
|
Posted by leledumbo at 19:29, Nov-22-2016
This post was edited by leledumbo at 18:36, Nov-22-2016

On Linux I use xboxdrv and the following  ...

can you please tell me, how you do this? I play also on Linux but never need to install anything, because anything works without problems. just install steam, activate 360 controller and can play. the mi controller connect, but only the left analog stick work as mouse, nothing other. i use Linux Mint 18.

Credits Management

Quick Reply Top Return to the list