Я только что установил 18.04 Xubuntu на свой компьютер. У меня также есть Windows10 с двойной загрузкой.
Я пытаюсь использовать свой контроллер PDP (неофициальный контроллер, похожий на xbox360) под Xubuntu. Я хорошо работаю под W10, так что это не аппаратная проблема.
Я сделал:
Установите пакет xboxdrv
sudo apt-get update && sudo apt-get install xboxdrv
Отключите драйвер xpad
sudo vim /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by # alias expansion, usually so some other driver will be loaded for the # device instead. # As saw in # https://www.omgubuntu.co.uk/2013/07/dealing-with-xbox-controllers-in-ubuntu # try to disable the xpad driver blacklist xpad
Перезагрузите компьютер
Проверьте, отключен ли драйвер xpad
lsmod
Module Size Used by snd_hda_codec_hdmi 49152 4 nls_iso8859_1 16384 1 nouveau 1851392 3 mxm_wmi 16384 1 nouveau video 45056 1 nouveau ttm 110592 1 nouveau drm_kms_helper 172032 1 nouveau snd_hda_codec_realtek 106496 1 drm 458752 6 drm_kms_helper,ttm,nouveau snd_hda_codec_generic 73728 1 snd_hda_codec_realtek snd_hda_intel 40960 5 snd_hda_codec 126976 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek i2c_algo_bit 16384 1 nouveau snd_hda_core 81920 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek snd_hwdep 20480 1 snd_hda_codec edac_mce_amd 28672 0 fb_sys_fops 16384 1 drm_kms_helper snd_pcm 98304 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core syscopyarea 16384 1 drm_kms_helper kvm 626688 0 irqbypass 16384 1 kvm crct10dif_pclmul 16384 0 crc32_pclmul 16384 0 ghash_clmulni_intel 16384 0 sysfillrect 16384 1 drm_kms_helper pcbc 16384 0 snd_seq_midi 16384 0 snd_seq_midi_event 16384 1 snd_seq_midi snd_rawmidi 32768 1 snd_seq_midi aesni_intel 200704 0 snd_seq 65536 2 snd_seq_midi,snd_seq_midi_event aes_x86_64 20480 1 aesni_intel crypto_simd 16384 1 aesni_intel cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi wmi_bmof 16384 0 sysimgblt 16384 1 drm_kms_helper input_leds 16384 0 glue_helper 16384 1 aesni_intel joydev 24576 0 k10temp 16384 0 snd_timer 32768 2 snd_seq,snd_pcm snd 81920 21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi soundcore 16384 1 snd ccp 86016 0 wmi 24576 3 wmi_bmof,mxm_wmi,nouveau mac_hid 16384 0 sch_fq_codel 20480 2 parport_pc 36864 1 ppdev 20480 0 lp 20480 0 parport 49152 3 parport_pc,lp,ppdev ip_tables 28672 0 x_tables 40960 1 ip_tables autofs4 40960 2 hid_generic 16384 0 usbhid 49152 0 hid 122880 2 usbhid,hid_generic uas 24576 0 r8169 86016 0 i2c_piix4 24576 0 usb_storage 69632 1 uas ahci 40960 5 mii 16384 1 r8169 libahci 32768 1 ahci gpio_amdpt 16384 0 gpio_generic 20480 1 gpio_amdpt
Выполните xboxdrv
sudo xboxdrv --silent
xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/ Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com> Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details. -- [ ERROR ] ------------------------------------------------------ No Xbox or Xbox360 controller found
Получил идентификатор контроллера PDP, используя lsusb
(контроллер помечен Logic3
)
watch lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 05dc:a838 Lexar Media, Inc. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 007: ID 0e6f:0162 Logic3 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Попробуйте использовать устройство id с xboxdrv
sudo xboxdrv --device-by-id 0e6f:0162 --type xbox360
xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/ Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com> Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details. Controller: unknown Vendor/Product: 0e6f:0162 USB Path: 001:006 Controller Type: Xbox360 -- [ ERROR ] ------------------------------------------------------ USBController::usb_find_ep(): couldn't find matching endpoint
И, наконец, попробуйте получить данные, используя lsusb
о контроллере, чтобы увидеть, что с ним не так
lsusb -d 0e6f:0162 -v
Bus 001 Device 007: ID 0e6f:0162 Logic3 Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 71 bDeviceProtocol 208 bMaxPacketSize0 64 idVendor 0x0e6f Logic3 idProduct 0x0162 bcdDevice 4.60 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 64 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 71 bInterfaceProtocol 208 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 4 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 4 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 71 bInterfaceProtocol 208 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 71 bInterfaceProtocol 208 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x00e0 1x 224 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 1 Transfer Type Isochronous Synch Type None Usage Type Data wMaxPacketSize 0x0080 1x 128 bytes bInterval 1
Я не в курсе. Это первый раз, когда я пытаюсь сделать что-то подобное, поэтому, может быть, потому, что я не знаю чего-то, что я не могу найти, что делать.
Если у вас есть предложения или помощь, я был бы очень рад их прочитать!