paroj / xpad

Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers
823 stars 182 forks source link

(support) Gameshark Green Ghost gamepad #263

Closed TobiPeterG closed 10 months ago

TobiPeterG commented 10 months ago

Hey there, I recently got this gamepad: https://blackshark.gg/products/black-shark-green-ghost-gamepad It works fine on Windows, connects on Linux as well, but doesnt work out of the box. However, I could get it to work with xboxdrv by forcing it to use its driver using this command: sudo xboxdrv --device-by-id 413d:2104 --type xbox360 --detach-kernel-driver Afterwards, it worked perfectly, recognizing every button etc.

Would it be possible to add support for it to the xpad driver to get kernel support ootb?

Thanks in advance! The gamepad also has some additional features like a 6 way gyroscope. Is there any way in getting it working? I don`t need it so I can live without it, but it would be nice to know if there are any popular projects about that :)

Oh and it has some buttons, either peogrammable or predefined. Is there any way to get those working correctly?

The headset output works fine, so that's not an issue (at least with xboxdrv :) )

dmesg reports this when the controller gets connected:

[ 1400.095903] usb 1-3.6: USB disconnect, device number 8
[ 1400.317590] usb 1-3.6: new full-speed USB device number 12 using xhci_hcd
[ 1400.488224] usb 1-3.6: not running at top speed; connect to a high speed hub
[ 1400.489541] usb 1-3.6: New USB device found, idVendor=413d, idProduct=2104, bcdDevice= 1.00
[ 1400.489545] usb 1-3.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1400.489547] usb 1-3.6: Product: XBOX 360 For Windows
[ 1400.489548] usb 1-3.6: Manufacturer: 2.4G
[ 1400.532546] input: 2.4G XBOX 360 For Windows Keyboard as /devices/pci0000:00/0000:00:02.1/0000:04:00.0/0000:05:08.0/0000:0b:00.0/0000:0c:0c.0/0000:15:00.0/usb1/1-3/1-3.6/1-3.6:1.1/0003:413D:2104.000B/input/input41
[ 1400.584039] hid-generic 0003:413D:2104.000B: input,hidraw7: USB HID v1.11 Keyboard [2.4G XBOX 360 For Windows] on usb-0000:15:00.0-3.6/input1
[ 1400.584602] hid-generic 0003:413D:2104.000C: hiddev97,hidraw10: USB HID v1.11 Device [2.4G XBOX 360 For Windows] on usb-0000:15:00.0-3.6/input2

Thanks in advance and have a nice day :)