Ayaneo 2s Buttons not working
Hi all,
I'm at my second factory reset, trying to figure out this issue.
I normally play in handheld mode, but after few restarts the following buttons stop to work or exist on the OS:
- LC button (mapped by default to recall the keyboard)
- RC button (mapped by default to recall the steam TDP menu, the one on the right)
- Ayaspace button (mapped by default as the steam button to recall the steam menu on the left)
Further more:
- the "=" button, the one next to the Ayaspace button is mapped by default to recall the HDD side menu in big picture mode, but now works only in desktop mode to "clear" the desktop from all the opened windows
- the R3 button is now mapped in desktop mode as the button to recall the keyboard;
In order to understand the issue and isolate it, I haven't touched the settings in HDD, as the Xbox controller is one set by default during the installation of bazzite.
How can I get these buttons working back to normal?
48 Replies
Grab a bug report from handheld daemon
https://paste.centos.org/view/7dd4c840
This is the latest one I just sent to HDD
Seems like the wrong keyboard device is used
sudo systemctl stop hhd@bazzite
sudo hhd.contrib evdev
You mean like an external keyboard
No, there are multiple keyboards
Devices
Maybe the wrong one is used
After this?
I want to see the devices
There you go

Huh press 1 and see if you can see the missing buttons
Yes I get events only when I press the non-working buttons
Yeah it binds to the wrong keyboard
Hmmm
I don't know which one
Probably PC speaker
It was binded to another Xbox360 controller (event3 which is not there) when I saw the settings last time
Yeah that's the main controller
But it also needs to bind to the at device for the extra keys
How can I instruct this?
I need to fix the lookup
So with hhd running
Which devices get an error when selecting them with the command above
Check PC speaker
Stuck to this....can't record any events when I press any button

Maybe that one time I used an external monitor to have a bigger estate to install bazzite?
If it's grabbed hhd is not using it
Perhaps
Can you show me the events on the other one?
Maybe a firmware update changed them
Which one you want me to show you?
The at one
1

2

3

4

5

Should I press anything?
the buttons














ok, i found the bug
sudo nano /etc/udev/hwdb.d/aya.hwdb
put this in there
sudo systemd-hwdb -s update
and i will queue an update for this
if it worksi'm gonna restart
nope
seems like a firmware update changed the buttons
so you will have to struggle with it a bit
lovely...so no chance to revert back until further firmware update right?
which button is which MSC code
you need to place them in that file
lowercase
these are the mappings
KEY_D still works
you will need to make big button F17, then LC RC what it says
94 9f 28 23
LC = KEY_LEFTMETA (x07d)
RC = KEYRIGHTCTRL (x061)
i dont think so
it cant be only that button
and if it is you will have issues
"=" = KEY_D (x020)
Ayaspace = it's recognized both LC and RC..weird
lemme put those wait
dont put these
just reference them to edit the file
ooooh ok
This is what I have put

Change the id after key to match what you see
this is what i wrote in the file
for some reason it doesn't work
should I change to
update: neither work
there's something i'm doing wrong in the syntax...
Keyboard key 9f for example
You need to match the msc cose
To the key on the right
so it should be
?
Swapped
Eg _61=KEY_F16
Or I guess f16
Since it's using that weird notation
But that's only if you see misc and no keycode
I think i found the codes
but nothing
I also tried this
from here https://github.com/systemd/systemd/blob/main/hwdb.d/60-keyboard.hwdb
but nothing
Hey, I got some updates about my issue:
in the following path
there are 3 files:
all 3 of them dealing with the same thing (apparently): which is the extra buttons on handhelds.
After few troubleshooting and attempts here's what I have found out: 83-hhd.hwdb covers already most of the possible issues in consoles from Ayaneo, OrangePi and MSi Claw family, more in particular here are the lines of code for ayaneo
your first line was just
evdev:name:AT:dmi:*:svnAYANEO:*
...I don't know what happened and how come it didn't accepted it in first place.
So in order to make this work I have placed a #
before each line of code in aya.hwdb
and aya.hwdbs
to make sure only 83-hhd.hwdb
was working.
I also tried from the bios to turn on PS2 and full USB support while 83-hhd.hwdb
was working, but it appears to do nothing.
But here it is!the problem with your device is that the keyboard is named AT something
AT Raw
not AT translated
and that it has different keys
something happened to your device and it is loading differently
true!
that was weird and unpleasant to experience tbh
there was a stage where i managed to make work LC, RC and the ayaneo button, but the "=" was recalling the HDD side menu (just like RC)
until I hashtagged all the lines of code from the other 2 Hwdb files