View previous topic :: View next topic |
Author |
Message |
robinmarlow Apprentice

Joined: 10 Mar 2004 Posts: 167
|
Posted: Mon Jul 25, 2011 12:41 pm Post subject: XFCE hibernation & WICD network restart (solved) |
|
|
Hello,
I'm using XFCE on my laptop (lenovo t61) & am having some issues with hibernation.
Using the XFCE power manager suspend & hibernate both work beautifully (although hibernate only actually resumes if using tuxonice sources).
My only issue is when I resume I have to manually tell WICD to connect to the network.
This seems like it's probably a WICD problem, but networkmanager simply doesn't seem to work for me. Which is a shame as it looks pretty good.
What i'd like to do is run a script after resume - but I don't seem to get any relevent acpi events (despite acpid running) and I think xfce powermanager uses upower and so doesn't use any of the options or scripts in /etc/hiberate/
Any ideas?
Thanks
Robin Marlow
Last edited by robinmarlow on Mon Jul 25, 2011 9:10 pm; edited 1 time in total |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8729 Location: ~Brussels - Belgique
|
Posted: Mon Jul 25, 2011 1:08 pm Post subject: |
|
|
Hello,
You need to add a line with the kernel module name of your wifi adapter in the black-list config file.
In my case, I added ath5k and it worked as expected. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
robinmarlow Apprentice

Joined: 10 Mar 2004 Posts: 167
|
Posted: Mon Jul 25, 2011 1:17 pm Post subject: |
|
|
Thanks Xavier,
I've got my wifi (iwlagn 4965AGN) compiled into the kernel - so I didn't think I needed to whitelist it.
The wifi works fine once I've resumed - it's just the manually having to reassociate that is getting a bit tiresome & seems begging to be automated!
I think overall the problem is that I don't understand all this dbus/upower voodoo that is going on behind the scenes & can't find it explained well anywhere.
Robin |
|
Back to top |
|
 |
Hypnos Advocate


Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Jul 25, 2011 3:17 pm Post subject: |
|
|
I think Xavier really does mean blacklist, not whitelist -- this will force the module to be unloaded on hibernate and reloaded on resume. Since the wireless device will be reinitialized, wicd will then connect it to a network.
You do this by creating a file in /etc/pm/config.d called something like "50modules", with the contents:
Code: | SUSPEND_MODULES=iwlagn |
_________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
 |
robinmarlow Apprentice

Joined: 10 Mar 2004 Posts: 167
|
Posted: Mon Jul 25, 2011 9:09 pm Post subject: |
|
|
Recompiled my kernel with wifi card as a module and your advice worked a charm.
Thanks!
Robin |
|
Back to top |
|
 |
Hypnos Advocate


Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Tue Jul 26, 2011 12:34 am Post subject: |
|
|
FWIW, on my Thinkpad X301 with an Intel 5350 AGN chipset, I don't have to blacklist the module in order to reconnect after hibernation (or suspend-to-RAM) -- it "just works".
My kernel is tuxonice-sources-2.6.38-r1 , and I am using wicd-1.7.1_beta2-r4 . _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
 |
|