You are not logged in.
Pages: 1
I use a OneXPlayer as my desktop PC (set-up via USB-C hub), so the controller is baked-in and uses USB for its connection. Games like World At War automatically select it as my controller, thusly making it impossible to play with any other since older games typically don't allow for swapping around the USB order.
A quick run of "lsusb" tells me everything I need to know in regards to the controller's name and ID, but there doesn't seem to be a method of disabling the device. Hyprland doesn't recognize it, so it's a no-go in the hyprland.conf, and USBguard seems to be buggy and unstable (with the potential to instantly disable all peripherals upon installation, from what I've read).
Does anyone have any ideas? If USBguard is my only option, is there anything I should know or do before installing it?
Use udev to set a rule in "etc/udev/rules.d/". This is the text written into my rule file:
SUBSYSTEM=="usb", ATTR{idVendor}=="2563", ATTR{idProduct}=="058d", ATTR{authorized}="0"
I suggest you remove the "S" at the end of "ATTRS" featured in the guide. Not sure why the author at Fragdev did that. Was posted about 2 years ago, so maybe that's it. If you do know, feel free to share below, if you'd like.
Worked and the problem's now resolved. Thank you to Progandy and the writer of the linked guide for the help and information.
Last edited by atticarch (2024-07-24 18:14:17)
ouch his jaw
Offline
You can probably manually set authorized to 0 for this usb device to block it, or unbind the device.
https://www.irongeek.com/i.php?page=sec … using_UDEV
https://stackoverflow.com/a/23073364
Personally I am running usbguard and it seems to work mostly fine if you allow devices connected during boot, but the non-gnome UI is currently not the best.
Last edited by progandy (2024-07-24 08:29:58)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
You can probably manually set authorized to 0 for this usb device to block it, or unbind the device.
https://www.irongeek.com/i.php?page=sec … using_UDEV
https://stackoverflow.com/a/23073364Personally I am running usbguard and it seems to work mostly fine if you allow devices connected during boot, but the non-gnome UI is currently not the best.
Thank you for the information: these seem to be up the ally in regards to what I'm looking for. I'd just really rather not take the chance if I don't have to, as reinstalling and setting-up Arch again would be quite the bother.
I believe I've found the device's folder in /sys/bus/usb/devices/3-6/. If you know, would changing the bConfigurationValue from "1" to "0" do the trick? The gamepad's bus is 3 and its device-number is 6, so I'm hopefully-correctly assuming it to correspond.
EDIT: I believe 3-9 is the correct one after checking the files "busnum" and "devnum". Also been given the shorthand name of "xpad".
EDIT 2: Dug into the subdirectory "power" and found the file "control" with "on" being the only text written into it. Know if this would be it?
EDIT 3: Used udev to set a rule. I updated the OP, if you'd like to see the solution. Thank you for the help; it's much appreciated.
Last edited by atticarch (2024-07-24 18:12:23)
ouch his jaw
Offline
Pages: 1