Sorry, I just realized and confirmed that momentary buttons work as documented after installing shell script written above.


Another problem is that, if I try to charge (when pi is running) by connecting usb cable to the micro usb port of X700, obviously the voltage pi receives will get lowered and cpu clock (tested by vcgencmd get_config arm_freq) goes down to around 600mhz even after cpuinfo-set -g performance. I can also see the under voltage by just seeing red LED lamp of raspberry pi 4 which goes out after plugging cable to x700. Is there any way to solve this issue?

Thanks