I don't think that the "/etc/rc.d/network stop" unloads my wifi modules, no.
I tried to remove orinoco, but it says that it's needed by orinoco_cs. Trying to unload orinoco_cs, it won't let me. I tried to unload pcmcia too, it won't let me...
i meant.....
ensure that the network is stopped, and if you use wpa, make sure you stop wpa_supplicant. just be sure that anything that could be using the card is stopped. any daemons, anything.
THEN unload the modules, using lsmod as a guide.
THEN suspend.
]]>I tried to remove orinoco, but it says that it's needed by orinoco_cs. Trying to unload orinoco_cs, it won't let me. I tried to unload pcmcia too, it won't let me...
]]>Yes, nothing worked after resume. Trying to re-initialize pcmcia and restart the service would do nothing. I could see the wifi card flashing trying to get an IP, but it wouldn't get any. Only reboot fixed the problem.
I am all ears about any suggestions, I like the simple script I use currently and I would prefer it over the hibernate scripts...
i meant, was all the network down, IP and everything before resume, and before attempting to unload it - not after.
If you can manage to unload the driver, then you should be able to suspend it fine. make sure there arent any other modules that use the module you're trying to unload (see lsmod), and if there are, remove them first.
James
]]>I am all ears about any suggestions, I like the simple script I use currently and I would prefer it over the hibernate scripts...
]]>However, I have one more laptop (333 mhz sony vaio), which works perfectly in sleep/wake up, but it doesn't bring back the network stack. I get network is through a pcmcia orinoco_cs wifi card. If you have any idea what to do to bring it back, I am all ears. I am trying to restart the yenta_socket driver, the pcmcia-start script and the network service, but none of these are able to wake up the wifi card properly. Not even when I take out the card and put it back in...
ensure the network is shut off before shutdown, and all of it's modules are completely unloaded as this effectively disable it. then on restore, reload the modules and reconnect network.
hibernate scripts has an option to unload all possible modules and then reload them all on startup, it's a good workaround for hardware that isnt friendly with suspend. it doesnt hurt, and has saved me from many problems with suspend in the past.
James
]]>However, I have one more laptop (333 mhz sony vaio), which works perfectly in sleep/wake up, but it doesn't bring back the network stack. I get network is through a pcmcia orinoco_cs wifi card. If you have any idea what to do to bring it back, I am all ears. I am trying to restart the yenta_socket driver, the pcmcia-start script and the network service, but none of these are able to wake up the wifi card properly. Not even when I take out the card and put it back in...
]]>I am sorry, but we are not talking about the same thing. You are talking about hibernate (suspend-to-disk), while I talk about sleep (suspend-to-ram). I don't care about hibernate personally, many in the Arch community directed me to it because it's more compatible than sleep, but I only cared about real laptop sleep. Just like on the Mac laptops.
im talking about hibernate scripts, which are a generic set of hibernate/suspend/sleep scripts and have full support to suspend to ram. take a look at /etc/hibernate/ram.conf
So we are talking about the same thing,
James
]]>Hibernate scripts has support to do each of the things you do in your scripts as well as a lot more fun stuff.
pacman -S hibernate-script from [extra], and enable the vbetool options in /etc/hibernate/common.conf,
as well as SwitchToTextMode, and if they dont work, UseDummyXServer too.
James
]]>Please note that while there are some laptops with Radeon cards that sleep worked out of the box, there are some --like mine-- that didn't. This guide is for these "difficult" laptops.
]]>