User Tools

Site Tools


ubuntu:joystick:troubleshooting:libusb_error_not_found

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ubuntu:joystick:troubleshooting:libusb_error_not_found [2023/06/26 19:37] – created peterubuntu:joystick:troubleshooting:libusb_error_not_found [2023/06/26 19:43] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Joystick - Troubleshooting - LIBUSB_ERROR_NOT_FOUND ====== ====== Ubuntu - Joystick - Troubleshooting - LIBUSB_ERROR_NOT_FOUND ======
  
-The xboxdrv tool throws a LIBUSB_ERROR_NOT_FOUND error.+===== The Problem ===== 
 + 
 +A Xbox controller is not working. 
 + 
 +  * The xboxdrv tool also throws a LIBUSB_ERROR_NOT_FOUND error.
  
 To reproduce the error: To reproduce the error:
  
-  * Connect the controller to an USB port in your computer.+  * Connect the controller to an USB port.
   * The Xbox button lights start blinking non stop.   * The Xbox button lights start blinking non stop.
   * Type the following command <code bash>sudo xboxdrv</code>   * Type the following command <code bash>sudo xboxdrv</code>
-  * The command throws the following error:+ 
 +The command throws the following error:
  
 <code bash> <code bash>
Line 14: Line 19:
 </code> </code>
  
 +----
 +
 +===== The fix =====
 +
 +Disable the autosuspend feature of the usbcore module.
 +
 +  * See [[https://www.kernel.org/doc/Documentation/usb/power-management.txt|Power Management for USB]].
 +
 +Set the **usbcore.autosuspend option** to -1 in the GRUB_COMDLINE_LINUX line in the Grub configuration file /etc/default/grub:
 +
 +<file bash /etc/default/grub>
 +GRUB_CMDLINE_LINUX="usbcore.autosuspend=-1"
 +</file>
 +
 +----
 +
 +Update the grub configuration:
 +
 +<code bash>
 +sudo update-grub
 +</code>
 +
 +----
 +
 +Restart the computer.
 +
 +<WRAP info>
 +**NOTE:**  Once you restart the computer, the Xbox button lights stop blinking.
 +</WRAP>
 +
 +----
  
  
ubuntu/joystick/troubleshooting/libusb_error_not_found.1687808253.txt.gz · Last modified: 2023/06/26 19:37 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki