Opened 2 years ago

Last modified 2 years ago

#20935 new defect

Push or release buttons events are not logged on Asus WL500gP v1

Reported by: ciprian.alexan Owned by: developers
Priority: normal Milestone:
Component: base system Version: Chaos Calmer 15.05
Keywords: button Cc:


Asus WL500g premium v1 is running OpenWRT CHAOS CALMER (15.05, r46767)
Pushing the buttons (ses or reset) is not logged.
No further action that should be triggered by button push is performed.

This is not reproducing if downgrading OpenWRT to ATTITUDE ADJUSTMENT (12.09, r36088)
Button push is logged as expected when using older version.

The same hardware device was used for testing with both OpenWRT versions.
These are the settings used for testing:

mv /etc/rc.button/* /root
mkdir -p /etc/hotplug.d/button
rm /etc/hotplug.d/button/00-logger
touch /etc/hotplug.d/button/00-logger

echo '#!/bin/sh' >> /etc/hotplug.d/button/00-logger
echo 'logger button handler: button=$BUTTON action=$ACTION seen=$SEEN' >> /etc/hotplug.d/button/00-logger

This is the content of /etc/hotplug.d/button/00-logger:

root@OpenWrt:/# cat /etc/hotplug.d/button/00-logger
logger button handler: button=$BUTTON action=$ACTION seen=$SEEN

Watch the log while pressing the buttons
logread -f

Sep  8 15:46:56 OpenWrt user.notice root: button handler: button=ses action=pressed seen=7
Sep  8 15:46:58 OpenWrt user.notice root: button handler: button=ses action=released seen=1
Sep  8 15:47:39 OpenWrt user.notice root: button handler: button=reset action=pressed seen=11
Sep  8 15:47:43 OpenWrt user.notice root: button handler: button=reset action=released seen=4

Logs are reported only on attitude adjustment version.
There is no log event in chaos calmer while buttons are pushed.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by rmilecki

Things to check:

  1. See if device model was detected by OpenWrt (dmesg | grep machine or cat /proc/cpuinfo)
  2. Disable buttons support in kernel by removing following lines from buttons.c:
    	case BCM47XX_BOARD_ASUS_WL500GPV1:
    		err = bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500gpv1);

and then analyzing GPIO values using /sys/class/gpio/ (export GPIOs 0 and 4, set them to input, read "value" with button pressed and released).

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.