LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-23-2020, 06:19 AM   #1
ControlK
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Rep: Reputation: Disabled
Bluetooth gamepad connects but not shown


Hi,

I recently got an off-brand switch pro controller to use with my laptop.
The gamepad connects through bluetooth using blueberry (blueman-manager just gives an "input/output error" message).
After connecting the controller also shows in bluetoothctl:
Code:
[Pro Controller]# info
Device 98:B6:E9:45:F8:FD (public)
	Name: Pro Controller
	Alias: Pro Controller
	Class: 0x00002508
	Icon: input-gaming
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	LegacyPairing: no
	UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v054Cp05C4d0100
However none of the test applications (jstest-gtk, evtest-qt, or steam) show the controller, and i can not seem to find it in /dev/input.

I'm using artix linux and i have the hid-nintendo-nso-dkms and nintendo-udev packages installed,
There also seem to be no new files in /dev/ anywhere after connecting.

EDIT: it does connect to my android phone, so it is not simply that the gamepad can not connect to anything.

Some more info:

dmesg:
Code:
[11034.441773] udevd[839]: invalid key/value pair in file /usr/lib/udev/rules.d/70-steam-input.rules on line 42, starting at character 82 ('u')
[11061.004292] udevd[839]: invalid key/value pair in file /usr/lib/udev/rules.d/70-steam-input.rules on line 42, starting at character 82 ('u')
[11069.973507] udevd[839]: invalid key/value pair in file /usr/lib/udev/rules.d/70-steam-input.rules on line 42, starting at character 82 ('u')
[11070.146120] sony 0005:054C:05C4.0012: unknown main item tag 0x0
[11075.152658] sony 0005:054C:05C4.0012: Failed to get calibration data from Dualshock 4
[11075.153007] sony 0005:054C:05C4.0012: hidraw8: BLUETOOTH HID v81.00 Gamepad [Pro Controller] on e4:70:b8:52:ec:79
[11075.153013] sony 0005:054C:05C4.0012: failed to claim input
[11075.162813] udevd[839]: invalid key/value pair in file /usr/lib/udev/rules.d/70-steam-input.rules on line 42, starting at character 82 ('u')
The file "70-steam-input.rules": https://termbin.com/yno5

Last edited by ControlK; 07-23-2020 at 09:21 AM.
 
Old 07-27-2020, 12:19 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,372

Rep: Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389
Where did this 70-steam-input.rules file come from? Have you tried removing it?

Also: in my experience (on Fedora), you have to wait a bit between connecting with Blueman and actually being able to use the gamepad.
 
Old 07-29-2020, 08:30 AM   #3
ControlK
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

I tried deleting it, no luck.
It seems however that the issue with the drivers is known upstream:
https://github.com/DanielOgorchock/linux/issues/10

It seems the generic switch pro controllers do not work most of the time (yet).
 
Old 01-28-2024, 02:59 AM   #4
imahbub
LQ Newbie
 
Registered: Jan 2024
Posts: 1

Rep: Reputation: 1
Had same issue, no luck searching the internet. Only this worked in my laptop with in-built BT

After no solution from the internet, I worked days after days tinkering with bluetooth profiles and finally solved it. I am here to share my solution:
First of all, if you're using first party controller, use an external USB bluetooth which should connect without any tinkering. Then move to the solution bellow (this will not only work for xbox, but also third party generic bluetooth gamepads, chinese bluetooth gamepads, EasySMX gamepads with Nintendo Switch Controller mode and some bluetooth keyboards)
Edit /etc/bluetooth/input.conf (if not available, create one) and edit the options to match the following config:
Code:
# Configuration file for the input service

# This section contains options which are not specific to any
# particular interface
[General]

# Set idle timeout (in minutes) before the connection will
# be disconnect (defaults to 0 for no timeout)
#IdleTimeout=30

# Enable HID protocol handling in userspace input profile
# Defaults to false (HIDP handled in HIDP kernel module)
UserspaceHID=true

# Limit HID connections to bonded devices
# The HID Profile does not specify that devices must be bonded, however some
# platforms may want to make sure that input connections only come from bonded
# device connections. Several older mice have been known for not supporting
# pairing/encryption.
# Defaults to true for security.
ClassicBondedOnly=false

# LE upgrade security
# Enables upgrades of security automatically if required.
# Defaults to true to maximize device compatibility.
LEAutoSecurity=false
Now, your device will connect even if the pairing key is not exchanged or the bluetooth adapter fails to exchange the keys.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
usb keyboard identified and events shown but key character not shown on the prompt flyxtop Linux - Software 0 11-30-2013 07:45 AM
[SOLVED] Best inexpensive linux compatible gamepad or Best pcsx* compatible gamepad? indubitableness Linux - Hardware 6 09-27-2009 06:49 AM
convert usb gamepad to wireless gamepad schneidz Linux - Hardware 1 06-12-2008 03:13 PM
While booting no option is shown for Linux! Only windows xp is shown!! mon avis Linux - General 7 08-06-2006 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration