The officially official Devuan Forum!

You are not logged in.

#1 2023-02-02 00:04:23

ofvergara
Member
Registered: 2020-07-17
Posts: 14  

xboxdrv, xbox360 controller in devuan chimaera

hello guys,
I am using devuan chimaera, facing the following issue:

When i plug my wired usb xbox360 controller, i can see in the terminal with lsusb that is correctly detected, view below:
    Bus 001 Device 008: ID 045e:028e Microsoft Corp. Xbox360 Controller

I also have a wired usb xbox one S controller, which is also detected properly. The issue is, when i try to use "antiMicroX" or "qJoyPad" or "jstest-gtk", the x360 controller is not detected (the xb1s is detected somehow by these programs).

I was reading online and they suggest to install the xboxdrv package to make it visible my laptop. Check link below for debian package:
https://debian.pkgs.org/10/debian-main- … 4.deb.html

I tried running these commands in the terminal and installation was unsuccessful:

    sudo apt-get update
    sudo apt-get install xboxdrv
        Reading package lists... Done
        Building dependency tree... Done
        Reading state information... Done
        E: Unable to locate package xboxdrv

I double-checked in synaptic and noticed that the package is not available in the list of 59860 packages currently available in the repositories.

Can you please assist me in how to install xboxdrv package in devuan?
Or, do you have an alternate method to configure this controller and be utilized?

Thank you in advance for your help.
Cheers.

Offline

#2 2023-02-02 02:14:33

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 587  

Re: xboxdrv, xbox360 controller in devuan chimaera

Hi, I haven't used an xbox... but if you want to install a package from a download

cd to the directory and use

dpkg -i "package.name.deb"

I hope this helps.


pic from 1993, new guitar day.

Offline

#3 2023-02-02 06:27:57

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: xboxdrv, xbox360 controller in devuan chimaera

The 360 controller should be supported by the native xpad kernel driver, xboxdrv just offers more configuration.

Not sure why you're using that shitty, ad-ridden, javascript-infested "debian.pkgs.org" site when the Devuan developers have gone to the trouble of providing a beautifully clean package search page:

https://pkginfo.devuan.org/cgi-bin/poli … v&x=submit

The xboxdrv package was removed for the chimaera release as part of the Python2 deprecation process:

https://tracker.debian.org/news/1119505 … m-testing/

I think the problem here might be the cable — if it is a "Play&Charge" USB cable then it can only be used for charging. Or perhaps TLP is disabling it, if you're using that.

More information here:

https://wiki.archlinux.org/title/Gamepa … controller

So what does dmesg say about the device when you plug it in?

EDIT: check

ls /dev/input/js*

^ That will show if it detected as a controller.

Last edited by Head_on_a_Stick (2023-02-02 07:02:13)


Brianna Ghey — Rest In Power

Offline

#4 2023-02-03 17:50:03

ofvergara
Member
Registered: 2020-07-17
Posts: 14  

Re: xboxdrv, xbox360 controller in devuan chimaera

Thank you guys for your responses.

HoaS:
great links, I learned a lot from them (read more below). Regarding the package search page, I missed it completely. I already have it bookmarked for next time.

To continue with the troubleshooting, this is what I have done:

    -->> DMESG

root@devuan4:/home/omar# dmesg
        usb 1-3: new full-speed USB device number 7 using xhci_hcd
        usb 1-3: New USB device found, idVendor=045e, idProduct=028e, bcdDevice= 1.10
        usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
        usb 1-3: Product: Controller
        usb 1-3: Manufacturer: Microsoft Inc.
        usb 1-3: SerialNumber: 176B4C9

    -->> JS

root@devuan4:/home/omar# ls /dev/input/js*
    ls: cannot access '/dev/input/js*': No such file or directory

    -->> LSUSB

omar@devuan4:~$ lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 006: ID 0bda:b00a Realtek Semiconductor Corp. Bluetooth Radio 
    Bus 001 Device 005: ID 05c8:03d2 Cheng Uei Precision Industry Co., Ltd (Foxlink) HP TrueVision HD Camera
    Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
    Bus 001 Device 003: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
    Bus 001 Device 007: ID 045e:028e Microsoft Corp. Xbox360 Controller
    Bus 001 Device 002: ID 0458:0186 KYE Systems Corp. (Mouse Systems) Wired Mouse
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

-->> Then I downloaded the beowulf version of xboxdrv (daedalus version generated errors when trying to install):

omar@devuan4:~$ sudo dpkg -i "xboxdrv_0.8.8-1_amd64 (beowulf).deb" 
[sudo] password for omar: 
    Selecting previously unselected package xboxdrv.
    (Reading database ... 214825 files and directories currently installed.)
    Preparing to unpack xboxdrv_0.8.8-1_amd64 (beowulf).deb ...
    Unpacking xboxdrv (0.8.8-1) ...
    Setting up xboxdrv (0.8.8-1) ...
    Processing triggers for man-db (2.9.4-2) ...

The xboxdrv package is already installed.
I opened the programs jstest-gtk, antiMicroX, qJoyPad but all generated the same message, that the gamepad is not detected.

Then I tried this from your link:  https://docs.kernel.org/input/devices/xpad.html
    > modprobe xpad
    > modprobe joydev
    > jstest /dev/js0

omar@devuan4:~$ sudo modprobe xpad
    [sudo] password for omar: 
omar@devuan4:~$ sudo modprobe joydev
omar@devuan4:~$ jstest /dev/js0
    jstest: No such file or directory

I opened the programs jstest-gtk, antiMicroX, qJoyPad again,and now they all open & work, joystick is detected; yay!!

Later, after performing more tests & reboots, I noticed that only the first command is needed to make the gamepad discoverable (sudo modprobe xpad) and that in the end, the xboxdrv module was not required, so i uninstalled it.

I don't get any rumble feedback, yet that's unimportant. not needed it anyways for an old-school gamer.

  • Now, how do I instruct devuan to recognize my gamepad after reboot without typing this command in terminal?  Is there a way to add to an init/boot file of some sort?

Thank you!!

Offline

#5 2023-02-03 18:10:31

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: xboxdrv, xbox360 controller in devuan chimaera

Add xpad to /etc/modules (or to it's own file under /etc/modules-load.d/) then update the initramfs:

# update-initramfs -u -k all

And reboot.


Brianna Ghey — Rest In Power

Offline

Board footer