Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switch Pro Controller
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Abbott
n00b
n00b


Joined: 23 Mar 2020
Posts: 3

PostPosted: Mon Sep 21, 2020 12:37 am    Post subject: Switch Pro Controller Reply with quote

I am trying to get a Switch Pro Controller to connect to my laptop. I can successfully pair and trust the controller using Bluez and blueman-manager, but when I connect to it, it connects and immediately disconnects with "Connection Failed: Operation currently not available" If I try connecting with bluetoothctl I get "Failed to connect: org.bluez.Error.NotAvailable"

I have tried adding the udev rule found here: https://www.reddit.com/r/Stadia/comments/egcvpq/using_nintendo_switch_pro_controller_on_linux/
but udevadm monitor shows the same thing no matter if the rule is present or not
Code:
aquarius% sudo udevadm monitor                                 
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[2103.469132] add      /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV  [2103.470993] add      /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
KERNEL[2108.133750] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)
UDEV  [2108.136735] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256 (bluetooth)

I have also tried setting this configuration option: https://www.reddit.com/r/RetroPie/comments/9gl9l8/while_pairing_xbox_one_controller/
but that hasn't worked either. I set all of the kernel options here: https://wiki.gentoo.org/wiki/Sony_DualShock#Kernel in addition to the WIIMOTE kernel option (just in case).

I am still having the same issues with keeping the controller connected. Is there anything else I can try?
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1729
Location: 127.0.0.1

PostPosted: Tue Sep 22, 2020 3:29 pm    Post subject: Reply with quote

Quote:

I set all of the kernel options here: https://wiki.gentoo.org/wiki/Sony_DualShock#Kernel in addition to the WIIMOTE kernel option (just in case).

Dumb question : did you build/install/load the dkms module (hid-nintendo-dkms) for your kernel ?
CONFIG_HID_WIIMOTE is for WII controllers, not for switch controllers.

To install the driver to get support for switch joycons and pro controller on gentoo, install dkms from GURU overlay :
Code:

# emerge -av1 sys-kernel/dkms

Then follow instructions from hid-nintendo-dkms repository.
Once the driver built and installed, load it :
Code:

# modprobe hid-nintendo

The Switch pro controller works here with USB, I did not try over bluetooth for now.
HID_NINTENDO driver should be merged into 5.10 kernel.
Back to top
View user's profile Send private message
Abbott
n00b
n00b


Joined: 23 Mar 2020
Posts: 3

PostPosted: Mon Oct 19, 2020 12:30 am    Post subject: Reply with quote

netfab's answer provided me with some new insight into getting the controller to work on my machine. I did not want to install dkms, as I was imagining there should be a way to build and install a kernel module without it (gentoo does this already). I couldn't quite figure it out, so what I ended up doing was downloading DanielOgorchock's hid_nintendo patch and applying it to my local kernel sources. After enabling the hid_nintendo driver as a module and rebuilding the kernel, I was able to pair the controller using bluetooth.

If there is a better way to do this, please let me know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum