Last visit was: It is currently 19/12/2014, 4:16


All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: samsung-wireless after resume
PostPosted: 08/05/2010, 20:30 
Newbie
Newbie

Joined: 06/05/2010, 22:32
Posts: 6
Hi
I tried the samsung-wireless package on my N140.
And while everything worked great (so far - touch wood),
I did have problems that wicd (i use wicd instead of NetworkManager)
could not connect after suspend-resume.

After a bit of investigation, I found that the suspend scripts in /usr/lib/pm-utils/sleep.d/ are defined in the following order
54r8192e_pci 55NetworkManager 91wicd
where 54r8192e_pci removes/installs the r8192e_pci module.

I believe, this is the suspend order and the resume order is reverse.
So, at the resume, the r8192e_pci module is installed AFTER wicd or NM has started.

I've reordered scripts by renaming them to
55NetworkManager 91wicd 92r8192e_pci
and everything resumes perfectly now (touch wood again).

I guess, this 54r8192e_pci script came from samsung-wireless.
If so and if the above sounds plausible, could you change the script name in your package please?


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 10/05/2010, 11:56 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
Done. ;)

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 10/05/2010, 19:41 
Newbie
Newbie

Joined: 06/05/2010, 22:32
Posts: 6
Wow, that was fast :)

Actually, I've been going through pm-utils docs and scripts and found out that
the new recommended way to handle this situation (ie suspend-resume kernel modules)
is to create a file in /etc/pm/config.d/ , eg /etc/pm/config.d/r8192e_pci
that contains
SUSPEND_MODULES="r8192e_pci"

This works as follows:
One of the scripts in /usr/lib/pm-utils/sleep.d/ is "75modules". It will load up config files from /etc/pm/config.d/ folder and suspend-resume kernel modules defined in SUSPEND_MODULES list. (Note that this script is smart enough to concatenate all SUSPEND_MODULES as opposed to overwriting them so you don't need to worry about it.)

It should work nicely with NetworkManager because they use script 55NetworkManager, ie in the right place with relation to 75modules. But unfortunately for me, it will not work for wicd out-of-the-box, because their script isĀ 91wicd, ie it will resume too early.

For now, I've renamed 91wicd to 74wicd, tried the above approach and can confirm that it works perfectly.
I'll try to chase up the WICD folks and I hope they are as accommodating as you are :)


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 11/05/2010, 9:47 
Administrator
Administrator
User avatar

Joined: 12/02/2009, 18:08
Posts: 1377
Location: Italy
Thanks for the info. :)
However, for now I think it's better to keep the current script, because even if it's not the correct way to manage modules at suspend/resume time, it works with both networkmanager and wicd.

_________________
Please consider a little donation to keep the 'Linux On My Samsung' project up and running. Thank you!


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 22/11/2010, 23:14 
Newbie
Newbie

Joined: 03/10/2010, 20:17
Posts: 22
(ex.mbdub)

Hi voRia,
Just wanted to give an update.

I am still trying to push wicd people to fix their package,
but this does not seem to be easy at all.
Basically, as far as I can see, wicd is pretty much dead,
there is hardly anybody left and there was no development there for a year at least.

However,
the good news is that the new version of the Realtek driver (v14) resumes correctly regardless of whether wicd starts before or after it.
(Afaik, wicd keeps retrying until it manages to connect, but there was a bug in v13 version of the driver that prevented this from working).

So, when you have a chance, could you please modify the samsung-wireless package to use the recommended suspend-resume mechanism (ie SUSPEND_MODULE as described above). I verified this on my netbook and it works perfectly.
If you need any help with this, just let me know.


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 12/12/2010, 0:50 
Newbie
Newbie

Joined: 07/12/2010, 16:55
Posts: 8
I have an NF-210, and wireless would not resume after sleep or hibernate.

The problem ended up being a bug in the ath9k driver, and a fix is available here:
https://bugs.launchpad.net/ubuntu/+sour ... bug/688702

After installing the RC2 update, I can put the netbook to sleep and it will resume afterwards.

Now on to touchpad edge scrolling...


Top
 Profile  
 
 Post subject: Re: samsung-wireless after resume
PostPosted: 03/02/2011, 13:05 
Newbie
Newbie

Joined: 03/10/2010, 20:17
Posts: 22
Hi voRia,

I wonder if you could make the changes described in my 3rd post above (mbdub used to be my alias).
Now that this works in all environments.

I kind of feel bad that I pushed you in the wrong direction and it got stuck there.

Also, the "right" way has the advantage that you'll get some more advanced suspend-resume
logic for free.
For example, the 99r8192e_pci script that gets installed with samsung-wireless will load the r8192e_pci_realtek driver on resume regardless of whether I actually want to use it or I've just happened to install the samsung-wireless package but use a different driver.
The 75modules script is much cleverer and resumes a module only if it was _actually_ used before the suspend.

If you need any more details or any help with this, just let me know.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki