[RFC][PATCH BlueZ] sixaxis: Differing device name between usb and bluetooth connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



BlueZ sets the device name of Dual Shock 3 controller to "PLAYSTATION(R)3 
Controller". When you connect the same controller via USB it is set to "Sony 
PLAYSTATION(R)3 Controller".

It seems that at least some games fail to recognize the controller as a Dual 
Shock 3/sixaxis controller and don't load the default mapping for PlayStation 
controllers, if the name doesn't contain the Sony part. Also I don't see a 
reason to use a different name, when connecting via Bluetooth.

I noticed this with "The Binding of Isaac: Rebirth" and it seems, that Steam 
also recognizes the controller better after the patch, although I'm not 
confident, if I can parse the controller configuration dialog correctly.
I don't know, if this breaks anything, because it depends on the current name.

The attached patch changes the device name set when pairing to match the 
device name, when connected via USB.

Nicolas Werner

--- a/plugins/sixaxis.c
+++ b/plugins/sixaxis.c
@@ -56,7 +56,7 @@
        uint16_t version;
 } devices[] = {
        {
-               .name = "PLAYSTATION(R)3 Controller",
+               .name = "Sony PLAYSTATION(R)3 Controller",
                .source = 0x0002,
                .vid = 0x054c,
                .pid = 0x0268,

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux