Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFCE hibernation & WICD network restart (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
robinmarlow
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 167

PostPosted: Mon Jul 25, 2011 12:41 pm    Post subject: XFCE hibernation & WICD network restart (solved) Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8729
Location: ~Brussels - Belgique

PostPosted: Mon Jul 25, 2011 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
robinmarlow
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 167

PostPosted: Mon Jul 25, 2011 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Mon Jul 25, 2011 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
robinmarlow
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 167

PostPosted: Mon Jul 25, 2011 9:09 pm    Post subject: Reply with quote

Recompiled my kernel with wifi card as a module and your advice worked a charm.

Thanks!

Robin
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Tue Jul 26, 2011 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum