#9535 HIGH 10.1.3: need multicast group wakeups using the 8686 for wake-on-wlan vs collaboration

Zarro Boogs per Child bugtracker at laptop.org
Wed Nov 17 09:46:09 EST 2010


#9535: need multicast group wakeups using the 8686 for wake-on-wlan vs
collaboration
------------------------------+---------------------------------------------
           Reporter:  cjb     |       Owner:  dsaxena      
               Type:  defect  |      Status:  new          
           Priority:  high    |   Milestone:  10.1.3       
          Component:  kernel  |     Version:  not specified
         Resolution:          |    Keywords:               
        Next_action:  design  |    Verified:  0            
Deployment_affected:          |   Blockedby:               
           Blocking:          |  
------------------------------+---------------------------------------------

Comment(by erikos):

 I adapted the patch from Martin and changed it to use /proc/net/tcp

 {{{
 diff --git a/powerd b/powerd
 index d20bf5e..e3f61de 100755
 --- a/powerd
 +++ b/powerd
 @@ -977,7 +977,13 @@ set_wake_on_wlan()
      # a resume/suspend cycle

      case $1 in
 -    yes) ethtool -s $WLANIFACE wol u ;;
 +    yes)
 +           if grep -q ": 00000000:14B2" /proc/net/tcp; then
 +               ethtool -s $WLANIFACE wol um;
 +           else
 +               ethtool -s $WLANIFACE wol u;
 +           fi
 +           ;;
      no)  ethtool -s $WLANIFACE wol d ;;
      esac
  }
 }}}

 This works fine, though there are some occasions where I am not sure why a
 machine wakes up. The powerd logs indicate only due to a wlan package. No
 activity was shared yet, only two machines (XO-1.5) around. Maybe a
 presence update. Will try to get some more info here.

 Another issue is that the XO-1 do not seem to idel-suspend anymore. I made
 sure that the file '/etc/powerd/flags/inhibit-suspend' is not there. I
 tried as well with powerd-26, to see if there was a regression, but on 353
 the XO-1 just don't want to idle suspend. I am quite sure it worked for me
 before. If someone has an idea what change that could have caused it...

-- 
Ticket URL: <http://dev.laptop.org/ticket/9535#comment:49>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list