Laptop Suspend to Ram - Bringing Wifi back up?

Emmanuel SCHRODER emms at free.fr
Sun Nov 7 17:37:12 UTC 2004


Chris Turner wrote:

>Hi,
>
>I've just tried replacing the contents of /etc/acpi/lid.sh
>with:-
>
>#!/bin/sh
>
>rmmod ipw2100
>rmmod uhci_hcd
>rmmod ehci_hcd
>
>echo mem > sys/power/state
>
>chvt 1
>sleep 0.5
>chvt 7
>
>modprobe uhci_hcd
>modprobe ehci_hcd
>modprobe ipw2100
>
>
>This works great for STR just like in my old XP install but I have no
>wifi enabled.
>The only way I can bring it up again is to manually go into COMPUTER >
>SYSTEM CONFIGURATION > NETWORKING and select "eth1" entry and click the
>"Activate" button.
>Being a newbie to Linux I haven't a clue what this manual process
>actually does :(
>If anyone can offer me any suggestions on what I can add to my above
>script to replicate my manual reactivation of Wifi be grateful for the
>help.
>
>Thanks,
>
>Chris
>
>
>  
>
To activate a connection mananully you must do

before going to sleep:
ifdown eth1
rmmod ipw2100

after resuming:
modprobe ipw2100
ifup eth1





More information about the ubuntu-users mailing list