Hello,
yesterday i wanted to turn off my router with the power button but nothing happend.
I than took the power cable out of the router and again into and could turn on the router with the button so the button function properly. So i looked into the Wiki and read about the button management but i still have no plan what is suddenly wrong with the config of the button.
The command :
find /sys/firmware/devicetree/base/keys -mindepth 1 -type d | while read -r f; do printf '%s: %s\n' $(basename $f) $(hexdump -s2 -e '2/1 "%02x""\n"' $f/linux,code); done
gives following output:
wps: 0211
reset: 0198
So no power button is recognizer.
I dont have the knowledge where the problem could be.
Have you an idea what it could (!?) be ?
Any tip would be great !
thank you ....
its the command :
find /sys/firmware/devicetree/base/gpio-keys -mindepth 1 -type d | while read -r f; do printf '%s: %s\n' $(basename $f) $(hexdump -s2 -e '2/1 "%02x""\n"' $f/linux,code); done
not
find /sys/firmware/devicetree/base/keys -mindepth 1 -type d | while read -r f; do printf '%s: %s\n' $(basename $f) $(hexdump -s2 -e '2/1 "%02x""\n"' $f/linux,code); done
Routers usually do not have power buttons. Which device are you talking about?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:

Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
{
"kernel": "5.15.137",
"hostname": "Openwrt1900",
"system": "ARMv7 Processor rev 1 (v7l)",
"model": "Linksys WRT1900ACS",
"board_name": "linksys,wrt1900acs",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.2",
"revision": "r23630-842932a63d",
"target": "mvebu/cortexa9",
"description": "OpenWrt 23.05.2 r23630-842932a63d"
}
}
The Linksys WRT1900ACS (v2) has a "toggle switch power button". I think this type of button is so called in english. I hope you know what i mean. I only had english for a few years in school many years ago sorry for that.
Thank you for your answer.
I don't have this device, so I can only speculate based on the pictures and the Wiki page: It looks like a hardwired on/off switch, not a push button. Hence, it just cuts power to the device and restores it - no software involved.
2 Likes
Ok than is the hardware defect. Strange that the button can turn it on from off state.
I just saw that the wlan leds goes off when i turn the router off with the button.