by a way, I just have RGB10(OGA no offical version) device, and I’m not have RK2K(another OGA no offical version).
in RK2K, you needed stop for use multimedia_keys(because this device lost 4 keys for OGA)
but if you like me use RGB10, maybe can try it.(because this device lost 2 keys for OGA)
we know multimedia_keys controls by the file:multimedia_keys.conf
BTN_TRIGGER_HAPPY2 This is RGB10’s button “-”
BTN_TRIGGER_HAPPY5 This is RGB10’s button “+”
BTN_TRIGGER_HAPPY3 This is RGB10’s button “L2” or “R2” (not sure)
BTN_TRIGGER_HAPPY4 This is RGB10’s button “L2” or “R2” (not sure)
by a way,TRIGGER_HAPPY3 and TRIGGER_HAPPY 4 on RK2K are LR2 too,
but TRIGGER_HAPPY 2 and TRIGGER_HAPPY 5 on RK2K not find.(maybe deactived?)
so, we can used “+” and “-” button on RGB10 device for something. like change brightness or sound?
for me, I select used for change sound, like this:
BTN_TRIGGER_HAPPY2 1 /usr/bin/amixer set Playback 2%- # Volumes +2% when press 1 count.
BTN_TRIGGER_HAPPY5 1 /usr/bin/amixer set Playback 2%+ # Volumes -2% when press 1 count.
#BTN_TRIGGER_HAPPY3 1 batocera-brightness - 5 # Not use this button.
#BTN_TRIGGER_HAPPY4 1 batocera-brightness + 5 # Not use this button.
at first I think maybe the numbers was judge button are press 1 count or press hold, but I’m wrong, or just this button cant judge press state. so, one time juse choose one type state changed.
use “batocera-brightness” are change screen brightness.
use “/usr/bin/amixer set Playback” are change volumes.
on there end of story? No.
I find a funny guy: KEY_POWER
change this guy’s command, are use Power_Button for do other things,
I want use it for suspend, but I’m failed.
if use command “echo mem > /sys/power/state”, it’s just sleep and can’t wakeup.
I want to use “systemctl suspend”, but not have this command.
“rtcwake -m mem || echo mem > /sys/power/state”? no, not have rtcwake.
someone have some idea for me?