Modify

Opened 3 years ago

Closed 3 years ago

#14454 closed defect (fixed)

TD-W8970 WiFi toggle button not working with hotplug.d

Reported by: fld@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: td-w8970, tdw8970, vr9, toggle switch, hotplug.d Cc:

Description

root@OpenWrt:~# cat /etc/hotplug.d/button/buttons
#!/bin/sh
logger $BUTTON
logger $ACTION

root@OpenWrt:~# cat /sys/kernel/debug/gpio; logread -l 5
GPIOs 200-255, platform/1e100b10.pinmux, gpio-xway:
 gpio-200 (reset               ) in  hi
 gpio-204 (adsl                ) out lo
 gpio-205 (internet            ) out lo
 gpio-209 (wifi                ) in  hi
 gpio-210 (spi32766.0          ) out hi
 gpio-216 (spi.7               ) in  hi
 gpio-217 (spi.7               ) out lo
 gpio-218 (spi.7               ) out lo
 gpio-219 (usb                 ) out lo
 gpio-220 (usb2                ) out lo
 gpio-233 (usb                 ) out hi
 gpio-237 (wps                 ) out lo
 gpio-238 (pcie-reset          ) out hi
 gpio-239 (wps                 ) in  hi
Wed Oct 30 01:19:51 2013 user.notice root: released
Wed Oct 30 01:20:01 2013 user.notice root: BTN_2
Wed Oct 30 01:20:01 2013 user.notice root: pressed
Wed Oct 30 01:20:03 2013 user.notice root: BTN_2
Wed Oct 30 01:20:03 2013 user.notice root: released

Now I'm gonna flick the switch in to the WiFi Off position:

root@OpenWrt:~# cat /sys/kernel/debug/gpio; logread -l 5
GPIOs 200-255, platform/1e100b10.pinmux, gpio-xway:
 gpio-200 (reset               ) in  hi
 gpio-204 (adsl                ) out lo
 gpio-205 (internet            ) out lo
 gpio-209 (wifi                ) in  lo
 gpio-210 (spi32766.0          ) out hi
 gpio-216 (spi.7               ) in  hi
 gpio-217 (spi.7               ) out lo
 gpio-218 (spi.7               ) out lo
 gpio-219 (usb                 ) out lo
 gpio-220 (usb2                ) out lo
 gpio-233 (usb                 ) out hi
 gpio-237 (wps                 ) out lo
 gpio-238 (pcie-reset          ) out hi
 gpio-239 (wps                 ) in  hi
Wed Oct 30 01:19:51 2013 user.notice root: released
Wed Oct 30 01:20:01 2013 user.notice root: BTN_2
Wed Oct 30 01:20:01 2013 user.notice root: pressed
Wed Oct 30 01:20:03 2013 user.notice root: BTN_2
Wed Oct 30 01:20:03 2013 user.notice root: released

Notice that "gpio-205 (internet" went from "hi" to "lo", but no hotplug.d event was generated.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.