Unofficial MSIwWind Homepage
Unofficia MSI Wind Homepage MSI Wind Forums MSI Wind Wiki MSI Wind Links MSI Wind Images IRC MSI Wind Chat


It is currently Sat Jul 04, 2009 12:59 pm

All times are UTC


Forum rules


Before posting a new topic, please check whether it fits in one of the subforums. Only use the main forum if this is not the case.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Mon Jul 21, 2008 7:51 pm 
Offline
Wind Guru

Joined: Thu Jul 03, 2008 9:33 am
Posts: 230
Here's how I fixed it:

- Download and install sleepwatcher from here (install the main package and the startup item)
- Drop to a terminal
- type 'cd ~'
- type 'nano .wakeup'
- Paste in the following (putting your password in of course):

Code:
#!/bin/bash
  echo "yourpasswordhere" | sudo -S ipconfig set en0 BOOTP
  sudo ipconfig set en0 DHCP

- Press Ctrl-X then Y to save
- type 'chmod +x .wakeup'

Reboot.

Hey presto, problem solved :D

P

[Thanks to this topic on IM for the help!]


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Fri Jul 25, 2008 10:39 pm 
Offline
Wind User

Joined: Fri Jul 25, 2008 10:28 pm
Posts: 45
Netbooks: MSI Wind
Thanks for this fix. I changed my solution alittle bit because I didn't want to have my password exposed in plaintext sitting directly on my home directory or mess around with the sudoers file and rights either. So, what I did was log in as the system administrator and appended the commands directly to the system wakeup script that runs at /etc/rc.wakeup

Simply log in as your system admin, go to Terminal in Applications/Utilities and type:

sudo nano /etc/rc.wakeup

enter your admin password then scroll to the bottom of the file by pressing CTRL+V several times or Fn+Down Arrow and then add these 2 lines at the bottom of the script:

ipconfig set en0 BOOTP
ipconfig set en0 DHCP

and then CTRL+X and Y to save your changes. That's it. Works great.


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Sat Jul 26, 2008 10:36 am 
Offline
Wind User

Joined: Fri Jul 25, 2008 9:04 am
Posts: 46
Ok, I don't know how to revert paul's guide since it still doesn't work on my setup (network is set to automatic). Would your instruction conflict with paul's if I do both? how do i uninstall sleepwatcher? (sorry, osx noob)

_________________
Black MSI Wind, 2GB RAM, Triple boot Vista/OSX/XP with DELL 1500 Wireless N


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Tue Aug 12, 2008 2:41 pm 
Offline
Wind Master

Joined: Fri Jun 13, 2008 4:08 pm
Posts: 75
Hi, the config of Mr Hali does not work. Any other solution gues without using the sleepwatcher?


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Tue Aug 12, 2008 4:05 pm 
Offline
Wind User

Joined: Fri Jul 25, 2008 10:28 pm
Posts: 45
Netbooks: MSI Wind
My solution requires Sleepwatcher. The only difference is I'm modifying the main wakeup script, rather than the user level wakeup script, so I don't have my password lying around or mess with the sudoer files


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Wed Aug 13, 2008 10:43 am 
Offline
New Member

Joined: Sat Aug 09, 2008 9:50 am
Posts: 8
uninstalling sleepwatcher:

go to terminal
sudo rm /usr/local/sbin/sleepwatcher
sudo rm /usr/local/share/man/man8/sleepwatcher.8
sudo rm /etc/rc.sleep
sudo rm /etc/rc.wakeup

go to finder delete: /Library/StartupItems/SleepWatcher

need your passwd

done.


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Wed Aug 13, 2008 11:47 am 
Offline
New Member

Joined: Sat Aug 09, 2008 9:50 am
Posts: 8
BTW this method did not work out for my wind :(

even when i try to "DHCP lease" via Terminal DHCP won't renew...

easy not so nasty work-around:

duplicate your network settings to Automatic copy or s.t. else.
after wakeup you can easy switch via the Apple-Logo-menu and your network comes back without going to >syspref >network >lan >DHCP lease renew

cheers
M


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Wed Aug 13, 2008 6:43 pm 
Offline
Wind Master

Joined: Thu Aug 07, 2008 6:37 am
Posts: 52
it does not work for me either, after sleep mode I don't have internet anymore, btw, is there a way to get wifi working directly when booting leopard (I've got an akoya)


Top
 Profile E-mail  
 
 Post subject: Re: Fix for the no DHCP ethernet on wake from sleep problem
PostPosted: Thu Sep 04, 2008 9:53 pm 
Offline
New Member

Joined: Tue Aug 12, 2008 3:22 am
Posts: 5
I don't know if this helps anyone, but I was having a problem with my wired networking because additionally, it would think that the cable wasn't connected and remain inactive. Here's what I put in Sleepwatcher's /etc/rc.wakeup that works for me:

Code:
### cycle interface for cable detect ###
/sbin/ifconfig en0 down
/sbin/ifconfig en0 up

### force dhcp lease renewal ###
/usr/sbin/ipconfig set en0 BOOTP
/usr/sbin/ipconfig set en0 DHCP


(you need to edit this as root of course. this seems to work fine and dandy for me.)


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO

Contact US  --   Forums  --   Wiki  --   Images