oneXplayer gamepad not detected

Hi all, I have a oneXplayer mini (original AMD 5800u midel). I installed bazzite to usb hdd and it all loads fine, correct orientation and everything, however the built in gamepad isn't being detected by steam or the OS. HHD has nothing under the controller menu either. Pretty new to Linux in general. Is there something I can do to get it to detect the gamepad?
111 Replies
ba114
ba114OP4mo ago
@antheas https://paste.centos.org/view/87d396ff seems it finds the built in "x-box 360 controller" but fails to load it
ba114
ba114OP4mo ago
ba114
ba114OP4mo ago
Installed chimeraOS and built in gamepad works fine
antheas
antheas4mo ago
the controller is misbehaving its one of those cheapo android controllers that needs a workaround if chimeraos works use chimeraos
ba114
ba114OP4mo ago
It's the built-in controller to the oneXplayer mini
antheas
antheas4mo ago
well its that
ba114
ba114OP4mo ago
Any instructions on the workaround?
ba114
ba114OP4mo ago
running
hhd.contrib evdev
hhd.contrib evdev
reveals the x-box 360 gaming controller in the list when selecting it, button presses respond accordingly
antheas
antheas4mo ago
Hhd does not support anything about your device So the controller will work like a standard Xbox controller Does it show emulation modes?
ba114
ba114OP4mo ago
in HHD UI? no it doesnt even detect anything but running the commands you were sending to another user in their OneXFly thread reveals that on some level, the controller is detected and button presses are detected im looking at this, buit the VID and PID dont match what im getting in the log
antheas
antheas4mo ago
Yeah but according to the logs you sent it keeps disconnecting
ba114
ba114OP4mo ago
ok i'll see what adding those quirks and environment variables does
antheas
antheas4mo ago
Look up rpm ostree kargs If that works we will bake it in for your device
ba114
ba114OP4mo ago
No description
antheas
antheas4mo ago
Looks correct to me That's a Microsoft Xbox 360 controler
ba114
ba114OP4mo ago
but its not detected as a gamepad/controller in the OS or steam
antheas
antheas4mo ago
Look up xpad udev controller There's one rule for the legion go and one for the msi claw On hhd repo Although with that vid and pid it should be recognized It's the standard Xbox 360 wired combo
ba114
ba114OP4mo ago
if i hold the button to switch it to mouse mode, it works, the "A" button works as left click and "B" as right click
antheas
antheas4mo ago
I don't know what chimeraos does different tbh I just know you're the only one with that device
ba114
ba114OP4mo ago
it worked in chimera completely fine, but i dont want to use that so yeh will keep trying to get this going
antheas
antheas4mo ago
Which version of chimera worked
ba114
ba114OP4mo ago
the latest version
antheas
antheas4mo ago
Look at their kernel There is some ancient stuff we don't carrybthere 6.9 chimera kernel tag on their GitHub Linux repository
HikariKnight
HikariKnight4mo ago
can you check if this will work sudo modprobe xpad && echo "045e 028e" | sudo tee /sys/bus/usb/drivers/xpad/new_id' steam might need a restart to register it if force loading it like that doesnt work then its something kernel related
ba114
ba114OP4mo ago
No description
antheas
antheas4mo ago
Show hhd If it's tryin to connect it disappeared the controller Although your logs don't show that
ba114
ba114OP4mo ago
sorry its taking a bit because im fumbling with inputs
ba114
ba114OP4mo ago
No description
ba114
ba114OP4mo ago
this just echoes the VID and PID, doesnt seem to have any effect on anything else
ba114
ba114OP4mo ago
@antheas
No description
HikariKnight
HikariKnight4mo ago
thats the output of tee it echoes out what it writes to the sysfs, it is normal. issue is not in xpad specifically then
ba114
ba114OP4mo ago
ahh ok any other thoughts then?
antheas
antheas4mo ago
yeah no controller support uh close steam and use a gamepad tester
ba114
ba114OP4mo ago
yeh nothing
ba114
ba114OP4mo ago
https://hardwaretester.com/gamepad keeps saying connect a controller
Gamepad Tester - Check Controllers and Joysticks Online
Displays info about all gamepads connected to your computer. Check buttons, joystick axes, drift, and more. Works with all controllers and joysticks in a modern browser.
antheas
antheas4mo ago
lsmod | fpaste
antheas
antheas4mo ago
so, xpad is loaded hhd.contrib works but you cant see the controller in steam or when you close steam on firefox
ba114
ba114OP4mo ago
wait wait wait WTH
ba114
ba114OP4mo ago
No description
ba114
ba114OP4mo ago
a device is now found in the system settings never was before
ba114
ba114OP4mo ago
No description
ba114
ba114OP4mo ago
And in gamepad tester now too
antheas
antheas4mo ago
what did you change? close steam?
ba114
ba114OP4mo ago
steam was already closed i didnt change anything after trying the gamepad tester just the lsmod | paste command going to reboot and retrace steps well now it works after reboot too...
antheas
antheas4mo ago
did you do the karg?
ba114
ba114OP4mo ago
nope
antheas
antheas4mo ago
cat /sys/devices/virtual/dmi/id/product_name cat /sys/devices/virtual/dmi/id/sys_vendor
ba114
ba114OP4mo ago
ONE XPLAYER
antheas
antheas4mo ago
space? i hate them
ba114
ba114OP4mo ago
ONE-NETBOOK TECHNOLOGY CO., LTD. yrp
antheas
antheas4mo ago
how much tdp can this do
ba114
ba114OP4mo ago
25w
antheas
antheas4mo ago
cat /proc/cpuinfo | fpaste
antheas
antheas4mo ago
ideally I will also need you to run something else
ba114
ba114OP4mo ago
shoot
antheas
antheas4mo ago
GitHub
hwinfo/devices at master · hhd-dev/hwinfo
Contribute to hhd-dev/hwinfo development by creating an account on GitHub.
antheas
antheas4mo ago
your device might not have a STT profile bc its too old so it might need some changes and it might be risky to try to write ujust _hhd-dev will now activate tdp on your device
ba114
ba114OP4mo ago
might take me a bit. first time working with linux
antheas
antheas4mo ago
you can also zip and wetransfer
ba114
ba114OP4mo ago
The tools required to dump the ACPI tables of a computer can be found in the packages acpica-tools in Debian and acpica in Arch. Save them in a directory named ./acpi in the device folder.
ba114
ba114OP4mo ago
GitHub
Release G20240827 · acpica/acpica
acpica-unix2-20240827.tar.gz acpica-unix-20240827.tar.gz acpica-win-20240827.zip acpitests-unix-20240827.tar.gz acpitests-win-20240827.zip iasl-win-20240827.zip changes.txt This is the GitHub relea...
antheas
antheas4mo ago
did kyle add them to bazzite?
ba114
ba114OP4mo ago
dl from there
antheas
antheas4mo ago
run the command first and if it doesnt run
ba114
ba114OP4mo ago
command not found
antheas
antheas4mo ago
sudo rpm-ostree install acpica-tools @Kyle Gospo acpica not yet?
HikariKnight
HikariKnight4mo ago
i can pr it into the deck image then he just needs to approve or disapprove, only place we would need it anyway
antheas
antheas4mo ago
check out how large it is first if its like 4mb its worth
HikariKnight
HikariKnight4mo ago
2.9 mb
antheas
antheas4mo ago
totally
ba114
ba114OP4mo ago
sent you the acpi extract
antheas
antheas4mo ago
its a directory zip it and drop it here the files are where you ran it
ba114
ba114OP4mo ago
antheas
antheas4mo ago
remove acpica, @HikariKnight how otherwise your updates will take longer
HikariKnight
HikariKnight4mo ago
so dont add it? or you tagged the wrong person
antheas
antheas4mo ago
remove it well he needs to remove it oh looks like onexplayer might have some wmi i thought they didnt
HikariKnight
HikariKnight4mo ago
oh yeah @ba114 you need to remove acpica-tools now so your updates dont take forever (plus it will most likely be included in a future bazzite update and will cause conflicts and the update will fail once we include it)
ba114
ba114OP4mo ago
sudo rpm-ostree remove acpica-tools
sudo rpm-ostree remove acpica-tools
??
antheas
antheas4mo ago
it wont cause conflicts but yeah looks like just your device has some WMI, so TDP might be a tiny bit unreliable if you find that is the case do tell
HikariKnight
HikariKnight4mo ago
yep
antheas
antheas4mo ago
the EC of the device can set TDP other than that TDP controls will work now thinking about it, perhaps its the turbo button so if you press the turbo button tdp might change food for thought
ba114
ba114OP4mo ago
thank you to all of you for your help
antheas
antheas4mo ago
does everything work with ujust _hhd-dev
ba114
ba114OP4mo ago
everything appears TDP goes up to 30 though cant confirm if its doing anything though
antheas
antheas4mo ago
Oh well I'll fix that later Should only go up to 25 on hhd if the code is correct
HikariKnight
HikariKnight4mo ago
once everything is ready i can issue a new build if neccessary once im done making food
antheas
antheas4mo ago
Nah it'll take a bit for me to push
HikariKnight
HikariKnight4mo ago
ok just give me an @ then as long as its not in the middle of the night i can do it 🙂
antheas
antheas4mo ago
did you confirm?
ba114
ba114OP4mo ago
Sorry fell asleep. Was late in Australia I assume I can verify using some sort of performance overlay?
antheas
antheas4mo ago
the performance overlay thats there yes in steam menu well im going to sleep too now
ba114
ba114OP4mo ago
Will try it today. Unfortunately the overlay settings are only available in steam, can't change in game. Does that matter? TDP has some effect On 10w the batt usage says 20w On 30w it says 35w 20w says 31w 30w + TDP boost says around 43w
antheas
antheas4mo ago
That's about right
Kyle Gospo
Kyle Gospo4mo ago
yep, looks right to me
ba114
ba114OP4mo ago
ok just confirming the steps i took to get the controller working:
1. sudo modprobe xpad && echo "045e 028e" | sudo tee /sys/bus/usb/drivers/xpad/new_id
2. cat $HOME/.config/hhd/token - result not such directory
3. ujust _hhd-dev

now gamepad is detected
1. sudo modprobe xpad && echo "045e 028e" | sudo tee /sys/bus/usb/drivers/xpad/new_id
2. cat $HOME/.config/hhd/token - result not such directory
3. ujust _hhd-dev

now gamepad is detected
HikariKnight
HikariKnight4mo ago
what happens if you skip step 1 now is it still detected? because if step 1 is still required i can make a udev rule that will auto do that step
ba114
ba114OP4mo ago
can i undo that step? ok i just rebooted no more gamepad
HikariKnight
HikariKnight4mo ago
give me 2 sec i will dig up the udev rule file and tell you where to put it
ba114
ba114OP4mo ago
i had previoulsy tried the hhd-dev without luck
HikariKnight
HikariKnight4mo ago
add the contents below to /etc/udev/rules.d/99-onexplayer-controller.rules
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="028e", RUN+="/bin/sh -c 'modprobe xpad && echo 045e 028e > /sys/bus/usb/drivers/xpad/new_id'"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="028e", RUN+="/bin/sh -c 'modprobe xpad && echo 045e 028e > /sys/bus/usb/drivers/xpad/new_id'"
then run sudo udevadm control --reload-rules && sudo udevadm trigger to see if the controller gets added if yes then reboot and see if it is applied automatically
ba114
ba114OP4mo ago
it seems the issue is something to do with HHD aswell
HikariKnight
HikariKnight4mo ago
the udev rule uses echo instead of tee as it is already running as admin how so? hhd wont open unless it can detect the controller keypresses either way that udev rule should automate the modprobe and adding the controller to xpad step
antheas
antheas4mo ago
its a standard pair it is always supported yes hhd needs to be updated probably will happen today or tomorrow
HikariKnight
HikariKnight4mo ago
Yes but it's odd that it's not even detected on steam or by the system before they add the ID
アレックス
アレックス4mo ago
Hello Actually? Send me model you one x player plz! 👇🏻
ba114
ba114OP4mo ago
Hey there, full functionality of all the buttons and TDP settings etc only work after running
ujust _hhd-dev
ujust _hhd-dev
is there a way to make this persistent? OneXplayer Mini 5800u
antheas
antheas4mo ago
Yeah you're right, I haven't pushed the version yet I'll try later today Then it should be in bazzite in 1-2 days
ba114
ba114OP4mo ago
Thank you once again 🙂 just updated bazzite, pulled in the HHD updates. thanks @antheas and @HikariKnight all working great after reboot
Want results from more Discord servers?
Add your server