You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.9 KiB
Markdown

5 years ago
# 🇺🇲 hid_sony fixed for fake DualShock 4 gamepads
Some fake DualShock 4 fail while getting feature report 0x81. This driver is patched to get feature report 0x12 as a fallback.
`sony 0003:054C:09CC.001F: failed to retrieve feature report 0x81 with the DualShock 4 MAC address`
Another problem is: sometimes the variable `calib->sens_denom` returns zero, and the kernel hangs up. In this driver `calib->sens_denom` never returns zero.
# Installing
Install DKMS first.
```
sudo git clone https://github.com/ozz-is-here/hid-sony-fix-dkms.git /usr/src/hid-sony-fix-dkms-0.1
5 years ago
sudo dkms install -m hid-sony-fix-dkms -v 0.1
5 years ago
```
Add `blacklist hid_sony` to `/etc/modprobe.d/blacklist.conf`.
5 years ago
# Uninstalling
```
sudo dkms remove -m hid-sony-fix-dkms -v 0.1
sudo rm -rf /usr/src/hid-sony-fix-dkms-0.1
```
5 years ago
# 🇷🇺 Исправленный hid_sony для поддельных геймпадов DualShock 4
Некоторые поддельные DualShock 4 не могут получить feature report 0x81. Данный драйвер пропатчен так, чтобы получать feature report 0x12 как резервный вариант.
`sony 0003:054C:09CC.001F: failed to retrieve feature report 0x81 with the DualShock 4 MAC address`
Другая проблема: иногда переменная `calib->sens_denom` возвращает ноль, и ядро зависает. В этом драйвере `calib->sens_denom` никогда не возвращает ноль.
# Установка
Сначала установите DKMS.
```
sudo git clone https://github.com/ozz-is-here/hid-sony-fix-dkms.git /usr/src/hid-sony-fix-dkms-0.1
5 years ago
sudo dkms install -m hid-sony-fix-dkms -v 0.1
5 years ago
```
5 years ago
Добавьте `blacklist hid_sony` в `/etc/modprobe.d/blacklist.conf`.
5 years ago
# Удаление
```
sudo dkms remove -m hid-sony-fix-dkms -v 0.1
sudo rm -rf /usr/src/hid-sony-fix-dkms-0.1
```