From dbf96bb28a830ba6ecb3e726b3b21eb8c9077ca3 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 21 Aug 2025 14:57:21 +0200 Subject: [PATCH] sixaxis: Fix official DualShock 4 controllers not being handled The devices changed names, and those do not match the expected name in our list. Ignore the "Vendor" portion of the device name before matching it. This is most likely the result of official DS4 controllers now being handled by the hid-playstation driver rather than the community-supported hid-sony. This fixes DS4 controllers not initiating cable pairing when turned on. --- profiles/input/sixaxis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/input/sixaxis.h b/profiles/input/sixaxis.h index ab8831995..44e43b483 100644 --- a/profiles/input/sixaxis.h +++ b/profiles/input/sixaxis.h @@ -81,7 +81,7 @@ get_pairing(uint16_t vid, uint16_t pid, const char *name) if (devices[i].pid != pid) continue; - if (name && strcmp(name, devices[i].name)) + if (name && !g_str_has_suffix(name, devices[i].name)) continue; return &devices[i]; -- 2.47.3