You are not logged in.

#1 2011-03-09 19:56:38

Bazzaah
Member
Registered: 2010-03-15
Posts: 69

[SOLVED] wireless won't resume with pm-suspend

Hi

I have a problem and hope someone can help please.

I use net-profiles to start my network as I find that other tools like WICD drop my connection.

My problems is this - the network is never picked up when I resume after I suspend to RAM with pm-suspend  - how can I get it to do that?

Thanks in advance for any help

Sorry if this is the wrong forum.

Last edited by Bazzaah (2011-03-10 07:16:56)

Offline

#2 2011-03-10 06:24:20

ithil
Member
Registered: 2011-01-06
Posts: 11

Re: [SOLVED] wireless won't resume with pm-suspend

This is a simple script i use to start my network.

for hardwire

#!/bin/bash
rm /var/run/dhcpcd-eth0.pid
ifconfig eth0 up
dhcpcd eth0

for wireless

#!/bin/bash
rm /var/run/dhcpcd-wlan0.pid
ifconfig wlan0 up
iwconfig wlan0 essid network key password
dhcpcd wlan0

network = your networks name and password = your key

after saving the files make them executable

chmod u+x  file

This may come off as complicated and time consuming, but after you set it up it only takes five or six seconds to start your network.
When you boot/resume just go to terminal and execute.

sudo bash file

Hope this helps.

Offline

#3 2011-03-10 07:14:42

Bazzaah
Member
Registered: 2010-03-15
Posts: 69

Re: [SOLVED] wireless won't resume with pm-suspend

Excellent, thanks.

I made a similar script (though adapted for wpa_supplicant) but didn't remove the dhcpcd-wlan0.pid file - that will sort it out.

Thanks for your help.

Last edited by Bazzaah (2011-03-10 07:21:14)

Offline

#4 2011-09-21 19:20:42

jobr
Member
Registered: 2011-08-08
Posts: 2

Re: [SOLVED] wireless won't resume with pm-suspend

Hay folks..

how do you make the script to auto run after suspend?

thanks in advance

Offline

Board footer

Powered by FluxBB