Jump to content

Disable internetsharing on sleep/enable on wake


WaldMeister
 Share

1 post in this topic

Recommended Posts

Hi,

 

So currently i'm sharing my internet connection through ethernet from the Toshiba to the Acer.

This however prevents the Toshiba from going to sleep:

MacBook-Pro-van-Alexander:~ Lex$ pmset -g assertions
2015-03-21 13:24:31 +0100 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             1
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 48(configd): [0x0000002600070137] 14:35:56 DenySystemSleep named: "InternetSharingPreferencePlugin" 
Kernel Assertions: 0x104=USB,MAGICWAKE
   id=500  level=255 0x4=USB mod=20-03-15 23:00 description=XHC1 owner=AppleUSBXHCI
   id=503  level=255 0x100=MAGICWAKE mod=20-03-15 23:02 description=en2 owner=en2

I tried ControlPlane to add some rules to kill the internetsharing on sleep, and enable it on wake. This app gives an error unable to install helper:... when trying to put the laptop to sleep.

 

Is there a similar app which can automate this process? Or perhaps a simple script that can be triggered on sleep/wake? 

 

Thanks in advance.

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...