You are not logged in.

#1 2023-01-08 17:20:54

d.ALT
Member
Registered: 2019-05-10
Posts: 920

hid-playstation: WINE rawinput errors DualShock4 bluetooth

I'm on linux-mainline because I'm testing the new hid-playstation driver (merge branch 'for-6.2/sony' into for-next).

$ LC_ALL=C pacman -Ss linux-mainline

miffe/linux-mainline 6.2rc2-1 [installed]
    The Linux Mainline kernel and modules
miffe/linux-mainline-docs 6.2rc2-1
    Documentation for the Linux Mainline kernel
miffe/linux-mainline-headers 6.2rc2-1 [installed]
    Headers and scripts for building modules for the Linux Mainline kernel
$ LC_ALL=C pacman -Qi linux-mainline

Name            : linux-mainline
Version         : 6.2rc2-1
Description     : The Linux Mainline kernel and modules
Architecture    : x86_64
URL             : https://kernel.org/
Licenses        : GPL2
Groups          : None
Provides        : VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
Depends On      : coreutils  kmod  initramfs
Optional Deps   : wireless-regdb: to set the correct wireless channels of your country
                  linux-firmware: firmware images needed for some devices [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : virtualbox-guest-modules-mainline  wireguard-mainline
Installed Size  : 175.13 MiB
Packager        : Unknown Packager
Build Date      : Sun Jan 1 23:53:43 2023
Install Date    : Sat Jan 7 21:31:58 2023
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

WINE recognizes DualShock4 via both USB and Bluetooth, I can see it inside inside WINE's Control Panel: wine control joy.cpl
Unfortunately it's actually working in-game with USB only.

$ LC_ALL=C MANGOHUD_DLSYM=1 WINEDEBUG=fixme-all WINEPREFIX=/path/to/wine/prefix/gamename mangohud wine start gamename.exe 

ioctl (GFEATURE): Input/output error
00b4:err:rawinput:add_device Failed to open device file L"\\??\\HID#VID_054C&PID_09CC#0&DC:AF:68:DC:6B:6E&0&0#{4d1e55b2-f16f-11cf-88cb-001111000030}", status 0xc0000034.
00b4:err:rawinput:add_device Failed to open device file L"\\??\\HID#VID_054C&PID_09CC&IG_00#256&DC-AF-68-DC-6B-6E&0&0#{4d1e55b2-f16f-11cf-88cb-001111000030}", status 0xc0000034.
00b4:err:rawinput:add_device Failed to open device file L"\\??\\HID#VID_054C&PID_09CC&IG_00#33041&030000004C050000CC09000011810000&0&0#{4d1e55b2-f16f-11cf-88cb-001111000030}", status 0xc0000034.
00b4:err:rawinput:add_device Failed to open device file L"\\??\\HID#VID_054C&PID_09CC&IG_00#33041&030000004C050000CC09000011810000&0&1#{4d1e55b2-f16f-11cf-88cb-001111000030}", status 0xc0000034.
00b4:err:rawinput:add_device Failed to open device file L"\\??\\HID#VID_054C&PID_09CC&MI_03#256&DC:AF:68:DC:6B:6E&0&0#{4d1e55b2-f16f-11cf-88cb-001111000030}", status 0xc0000034.
$ lsmod | grep hid

hidp                   36864  1
hid_logitech_hidpp     69632  0
hid_sony               57344  0
hid_playstation        45056  0
led_class_multicolor    16384  1 hid_playstation
hid_logitech_dj        40960  0
ff_memless             20480  2 hid_sony,hid_playstation
bluetooth            1077248  51 btrtl,hidp,btmtk,btintel,btbcm,bnep,btusb,rfcomm
usbhid                 86016  3 hid_sony,hid_logitech_dj,hid_logitech_hidpp
mac_hid                16384  0



Differently, Proton 7.0-5 (Steam) recognize the DualShock4 on Bluetooth and it's actually working[\*] in-game. And no, Steam Input is NOT enabled.
([\*] all buttons are swapped, but that's another story...)

Local Device Found
  type: 054c 09cc
  path: /dev/hidraw3
  serial_number: dc:af:68:dc:6b:6e - 0
  Manufacturer: 
  Product:      Wireless Controller
  Release:      0
  Interface:    -1

Please note: also Steam prints out ioctl (GFEATURE): Input/output error


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB