Hi, I purchased a Xbox One S Controller (the new one with bluetooth) and want to get it to work on osmc. But neither USB or Bluetooth seems to work.
When I connect it via USB, the controller vibrates and lsusb show me that it is recognized, but there is no input recognition from jstest. (see logs)
Output lsusb:
osmc@himbeerkuchen:~$ sudo lsusb
Bus 001 Device 008: ID 045e:02ea Microsoft Corp.
Bus 001 Device 006: ID 0603:00f2 Novatek Microelectronics Corp.
Bus 001 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Output jstest:
Driver version is 2.1.0.
Joystick (Generic X-Box pad) has 8 axes (X, Y, Z, Rx, Ry, Rz, Hat0X, Hat0Y)
and 11 buttons (BtnX, BtnY, BtnTL, BtnTR, BtnTR2, BtnSelect, BtnThumbL, BtnThumbR, ?, ?, ?).
Testing ⌠(interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:oAxes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:oAxes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:oAxes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 Buttons: 0:offand so on
I tried installing the newest xpad kernel module from GitHub - paroj/xpad: Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers but dkms needs the kernel-headers and I donât know how to install the right package, because osmc has its own kernel it seems? (Kernel 4.4):
osmc@himbeerkuchen:~$ sudo dkms install -m xpad -v 0.4
Error! Your kernel headers for kernel 4.4.27-5-osmc cannot be found.
Please install the linux-headers-4.4.27-5-osmc package,
or use the --kernelsourcedir option to tell DKMS where itâs located
I read that Kernel 4.8 supports the new Xbox One S Controller so I wanted to upgrade to that, but OSMC again has some configurations so that I couldnât use the kernel 4.8 from jessie-backports. And it was kind of sketchy, I donât want to make my system unbootable.
I also tried getting it to work with xboxdrv, but that doesnât recognize the controller either.
Then I ordered a bluetooth dongle and tried to make that work, but I also have problem pairing the controller to OSMC.
Logs from bluetoothctl:
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:11 Discovering: yes
[NEW] Device C8:3F:26:90:86:42 Xbox Wireless Controller
[bluetooth]# connect C8:3F:26:90:86:42
Attempting to connect to C8:3F:26:90:86:42
[CHG] Device C8:3F:26:90:86:42 Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device C8:3F:26:90:86:42 Connected: no
[CHG] Device C8:3F:26:90:86:42 RSSI: -64
[bluetooth]#
And logs from journalctl:
Jan 09 18:36:33 himbeerkuchen sudo[603]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/usr/bin/bluetoothctl
Jan 09 18:36:33 himbeerkuchen sudo[603]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
Jan 09 18:36:34 himbeerkuchen sudo[611]: osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mv /var/tmp/config.txt /boot/config.txt
Jan 09 18:36:34 himbeerkuchen sudo[611]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 09 18:36:34 himbeerkuchen mediacenter[317]: mv: failed to preserve ownership for â/boot/config.txtâ: Operation not permitted
Jan 09 18:36:34 himbeerkuchen sudo[611]: pam_unix(sudo:session): session closed for user root
Jan 09 18:36:39 himbeerkuchen kernel: OnAction_back
Jan 09 18:36:39 himbeerkuchen kernel: OnAction_back, action=2
Jan 09 18:36:39 himbeerkuchen kernel: OnAction_back(): DELBA: 0(27)
Jan 09 18:36:39 himbeerkuchen nmbd[470]: [2017/01/09 18:36:39.426590, 0] âŚ/source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Jan 09 18:36:39 himbeerkuchen nmbd[470]: *****
Jan 09 18:36:39 himbeerkuchen nmbd[470]:
Jan 09 18:36:39 himbeerkuchen nmbd[470]: Samba name server HIMBEERKUCHEN is now a local master browser for workgroup WORKGROUP on subnet 192.168.100.3
Jan 09 18:36:39 himbeerkuchen nmbd[470]:
Jan 09 18:36:39 himbeerkuchen nmbd[470]: *****
Jan 09 18:36:39 himbeerkuchen sudo[603]: pam_unix(sudo:session): session closed for user root
Jan 09 18:36:50 himbeerkuchen sudo[622]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/usr/bin/bluetoothctl
Jan 09 18:36:50 himbeerkuchen sudo[622]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back, action=2
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back(): DELBA: 0(27)
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back, action=2
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back(): DELBA: 0(0)
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back
Jan 09 18:37:05 himbeerkuchen kernel: OnAction_back, action=0
Jan 09 18:37:05 himbeerkuchen kernel: issue_action_BA, category=3, action=1, status=0
Jan 09 18:37:06 himbeerkuchen bluetoothd[268]: sdp_service_search_attr_async: Error sending data:Transport endpoint is not connected
Jan 09 18:37:06 himbeerkuchen bluetoothd[268]: C8:3F:26:90:86:42: error updating services: Input/output error (5)
Jan 09 18:37:12 himbeerkuchen sudo[622]: pam_unix(sudo:session): session closed for user root
Jan 09 18:37:16 himbeerkuchen sudo[629]: osmc : TTY=pts/0 ; PWD=/home/osmc ; USER=root ; COMMAND=/bin/journalctl -n 100
Jan 09 18:37:16 himbeerkuchen sudo[629]: pam_unix(sudo:session): session opened for user root by osmc(uid=0)
I donât really know how to read those logs, so I need help troubleshooting it. Maybe Iâm missing a simple solution, so donât hesitate to suggest anything that might make it work.Oh and I also updated the controllers firmware with win10 and OSMC is up to date.
Thanks, Felix