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
antheas
antheas3w ago
Grab a bug report from handheld daemon
SLVFRK
SLVFRKOP3w ago
https://paste.centos.org/view/7dd4c840 This is the latest one I just sent to HDD
antheas
antheas3w ago
Seems like the wrong keyboard device is used sudo systemctl stop hhd@bazzite sudo hhd.contrib evdev
SLVFRK
SLVFRKOP3w ago
You mean like an external keyboard
antheas
antheas3w ago
No, there are multiple keyboards Devices Maybe the wrong one is used
SLVFRK
SLVFRKOP3w ago
After this?
antheas
antheas3w ago
I want to see the devices
SLVFRK
SLVFRKOP3w ago
There you go
No description
antheas
antheas3w ago
Huh press 1 and see if you can see the missing buttons
SLVFRK
SLVFRKOP3w ago
Yes I get events only when I press the non-working buttons
antheas
antheas3w ago
Yeah it binds to the wrong keyboard Hmmm I don't know which one Probably PC speaker
SLVFRK
SLVFRKOP3w ago
It was binded to another Xbox360 controller (event3 which is not there) when I saw the settings last time
antheas
antheas3w ago
Yeah that's the main controller But it also needs to bind to the at device for the extra keys
SLVFRK
SLVFRKOP3w ago
How can I instruct this?
antheas
antheas3w ago
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
SLVFRK
SLVFRKOP3w ago
Stuck to this....can't record any events when I press any button
No description
SLVFRK
SLVFRKOP3w ago
Maybe that one time I used an external monitor to have a bigger estate to install bazzite?
antheas
antheas3w ago
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
SLVFRK
SLVFRKOP3w ago
Which one you want me to show you?
antheas
antheas3w ago
The at one
SLVFRK
SLVFRKOP3w ago
1
No description
SLVFRK
SLVFRKOP3w ago
2
No description
SLVFRK
SLVFRKOP3w ago
3
No description
SLVFRK
SLVFRKOP3w ago
4
No description
SLVFRK
SLVFRKOP3w ago
5
No description
SLVFRK
SLVFRKOP3w ago
Should I press anything?
antheas
antheas3w ago
the buttons
SLVFRK
SLVFRKOP3w ago
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
SLVFRK
SLVFRKOP3w ago
No description
No description
No description
No description
antheas
antheas3w ago
ok, i found the bug sudo nano /etc/udev/hwdb.d/aya.hwdb
# Add f buttons to Ayaneo devices
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_66=f15
KEYBOARD_KEY_67=f16
KEYBOARD_KEY_68=f17
KEYBOARD_KEY_69=f18
# Add f buttons to Ayaneo devices
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_66=f15
KEYBOARD_KEY_67=f16
KEYBOARD_KEY_68=f17
KEYBOARD_KEY_69=f18
put this in there sudo systemd-hwdb -s update and i will queue an update for this if it works
SLVFRK
SLVFRKOP3w ago
i'm gonna restart nope
antheas
antheas3w ago
seems like a firmware update changed the buttons so you will have to struggle with it a bit
SLVFRK
SLVFRKOP3w ago
lovely...so no chance to revert back until further firmware update right?
antheas
antheas3w ago
which button is which MSC code you need to place them in that file lowercase
B("KEY_F17"): "mode", # Big Button
B("KEY_D"): "share", # Small Button
B("KEY_F15"): "extra_l1", # LC Button
B("KEY_F16"): "extra_r1", # RC Button
B("KEY_F17"): "mode", # Big Button
B("KEY_D"): "share", # Small Button
B("KEY_F15"): "extra_l1", # LC Button
B("KEY_F16"): "extra_r1", # RC Button
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
SLVFRK
SLVFRKOP3w ago
LC = KEY_LEFTMETA (x07d) RC = KEYRIGHTCTRL (x061)
antheas
antheas3w ago
i dont think so it cant be only that button and if it is you will have issues
SLVFRK
SLVFRKOP3w ago
"=" = KEY_D (x020) Ayaspace = it's recognized both LC and RC..weird lemme put those wait
antheas
antheas3w ago
dont put these just reference them to edit the file
SLVFRK
SLVFRKOP3w ago
ooooh ok
SLVFRK
SLVFRKOP3w ago
This is what I have put
No description
antheas
antheas3w ago
Change the id after key to match what you see
SLVFRK
SLVFRKOP3w ago
this is what i wrote in the file
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=MSC_SCAN # Big Button
KEYBOARD_KEY_D=KEY_D # Small Button
KEYBOARD_KEY_F15=KEY_LEFTMETA # LC Button
KEYBOARD_KEY_F16=KEY_RIGHTCTRL # RC Button
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=MSC_SCAN # Big Button
KEYBOARD_KEY_D=KEY_D # Small Button
KEYBOARD_KEY_F15=KEY_LEFTMETA # LC Button
KEYBOARD_KEY_F16=KEY_RIGHTCTRL # RC Button
for some reason it doesn't work should I change to
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=MSC_SCAN (x004) # Big Button
KEYBOARD_KEY_D=KEY_D (x020) # Small Button
KEYBOARD_KEY_F15=KEY_LEFTMETA (x07d) # LC Button
KEYBOARD_KEY_F16=KEY_RIGHTCTRL (x061) # RC Button
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=MSC_SCAN (x004) # Big Button
KEYBOARD_KEY_D=KEY_D (x020) # Small Button
KEYBOARD_KEY_F15=KEY_LEFTMETA (x07d) # LC Button
KEYBOARD_KEY_F16=KEY_RIGHTCTRL (x061) # RC Button
update: neither work there's something i'm doing wrong in the syntax...
antheas
antheas3w ago
Keyboard key 9f for example You need to match the msc cose To the key on the right
SLVFRK
SLVFRKOP3w ago
so it should be
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=x004 # Big Button
KEYBOARD_KEY_D=x020 # Small Button
KEYBOARD_KEY_F15=x07d # LC Button
KEYBOARD_KEY_F16=x061 # RC Button
evdev:name:AT*:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_F17=x004 # Big Button
KEYBOARD_KEY_D=x020 # Small Button
KEYBOARD_KEY_F15=x07d # LC Button
KEYBOARD_KEY_F16=x061 # RC Button
?
antheas
antheas3w ago
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
SLVFRK
SLVFRKOP3w ago
I think i found the codes
LC=0018
RC=0020
AYANEO=0028
D=0023
LC=0018
RC=0020
AYANEO=0028
D=0023
but nothing I also tried this
evdev:name:AT Translated Set 2 keyboard:dmi:*:svnAYANEO:*
KEYBOARD_KEY_66=f15 # LC (All models)
KEYBOARD_KEY_67=f16 # RC (All models)
KEYBOARD_KEY_68=f17 # Ayaneo (All models)
KEYBOARD_KEY_69=f18 # Touchpad Mode (Kun only)
evdev:name:AT Translated Set 2 keyboard:dmi:*:svnAYANEO:*
KEYBOARD_KEY_66=f15 # LC (All models)
KEYBOARD_KEY_67=f16 # RC (All models)
KEYBOARD_KEY_68=f17 # Ayaneo (All models)
KEYBOARD_KEY_69=f18 # Touchpad Mode (Kun only)
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
/etc/udev/hwdb.d/
/etc/udev/hwdb.d/
there are 3 files:
83-hhd.hwdb
aya.hwdb
aya.hwdbs
83-hhd.hwdb
aya.hwdb
aya.hwdbs
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
# Add f buttons to Ayaneo devices
evdev:name:AT Translated Set 2 keyboard:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_66=f15 # LC (All models)
KEYBOARD_KEY_67=f16 # RC (All models)
KEYBOARD_KEY_68=f17 # Ayaneo (All models)
KEYBOARD_KEY_69=f18 # "=" button (All models)
# Add f buttons to Ayaneo devices
evdev:name:AT Translated Set 2 keyboard:dmi:*:svnAYANEO:*
FORCE_INPUT_UACCESS=1
KEYBOARD_KEY_66=f15 # LC (All models)
KEYBOARD_KEY_67=f16 # RC (All models)
KEYBOARD_KEY_68=f17 # Ayaneo (All models)
KEYBOARD_KEY_69=f18 # "=" button (All models)
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.hwdband aya.hwdbsto 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!
antheas
antheas3w ago
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
SLVFRK
SLVFRKOP3w ago
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

Did you find this page helpful?