You are not logged in.

#1 2011-07-16 01:11:43

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

[SOLVED] Suspend issues with Lenovo x120e

Hello all,
While building my arch system (kernel 2.6.39), I've run into a power management problem. When the lid is closed, the laptop suspends fine, but it seems to have an issue resuming. From the moment I open the lid, it takes usually ~1 minute for the display to come back.  However, the output of /var/log/pm-suspend.log indicates that only during the last 3 seconds of this was the laptop actually running the resume hooks. Is there something that might run before these hooks, hanging up the resume?

Last edited by TheHebes (2011-08-05 04:20:31)


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#2 2011-08-05 04:20:12

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

So, after a bit of tinkering (and googling), I discovered the issue. It appears that the kernel module for the RTL8188CE wireless card caused the machine to hang. Simply blacklisting it and installing the driver from Realtek's site remedied the problem.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#3 2011-08-05 16:56:36

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Suspend issues with Lenovo x120e

I have the same wireless card and experienced this problem too. I just put the wifi modules in /etc/pm/config.d/config as SUSPEND_MODULES.

However, you are saying that installing the module versions from the Realtek site worked. Does this mean there is some thing wrong with the kernel modules. But I am under the impression that both the kernel and realtek modules are the same. Is there any information you have that I seem to be missing?


GNU/Linux: Keep your options "open".

Offline

#4 2011-08-05 21:21:02

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

To the best of my knowledge, they appear to be different. Whether they are simply different versions or not I could not tell you. However, it appears my fix didn't work as well as intended. After using the new driver for a while, it seems to have a whole new nest of problems, primarily disconnecting wireless every few minutes. Would you mind elaborating on your solution?


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#5 2011-08-07 05:52:05

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

I looked into this a little more. I can effectively say that the two drivers ARE in fact, different. The drivers in the kernel and in compat-wireless are the open-sourced versions, while the ones from Realtek's website and the AUR are the proprietary binaries. Unfortunately, the proprietary driver seems to have just as many issues as the open-sourced one, primarily shoddy network connectivity and lack of monitor mode/packet injection capabilities.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#6 2011-08-07 06:00:28

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

@Dumbledore, just tried the solution you proposed, and it worked like a charm.

Output of "cat /etc/pm/config.d/config"

SUSPEND_MODULES="rtl8192ce rtlwifi mac80211 rtl8192c_common cfg80211"


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#7 2011-08-07 09:48:13

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: [SOLVED] Suspend issues with Lenovo x120e

Black listing the module is overkill!

It takes forever to come out of suspend if any interface is up.  Ethernet, internal wifi, usb wifi.  Does not matter.  Here is how I suspend, no blacklisting needed:

ifconfig | grep 'Link encap' | cut -f 1 -d ' ' | grep -v '^lo$' | xargs -n 1 -i{} ifconfig {} down
echo -n "mem" > /sys/power/state

There are probably better ways to do this :-)

Offline

#8 2011-08-08 18:24:17

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Suspend issues with Lenovo x120e

Hey guys, sorry for the absence; forgot to subscribe to the topic.

@TheHebes: I don't know, but wireless here seems to be working just fine with the built-in drivers. There was a particular network in my hostel that I wasn't able to connect to earlier. Today, linux 3.0 came out and seems to have magically fixed the problem with this network too. Hallelujah! smile

@Keenerd: I'm sure my knowledge of linux is far inferior to yours. Can you explain for my benefit why suspending modules is overkill and the advantage of your way? Also, since I use uswsusp is there a way to integrate your solution with uswsusp?

Last edited by Dumbledore (2011-08-08 18:24:54)


GNU/Linux: Keep your options "open".

Offline

#9 2011-08-09 13:14:23

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: [SOLVED] Suspend issues with Lenovo x120e

Dumbledore:
I did not say anything about suspending, just blacklisting.  Suspending is probably just as fast.  My script only has two advantages:  It works for every possible network device and it does not depend on pm_utils.

Offline

#10 2011-08-09 13:25:16

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Suspend issues with Lenovo x120e

keenerd wrote:

Dumbledore:
I did not say anything about suspending, just blacklisting.  Suspending is probably just as fast.  My script only has two advantages:  It works for every possible network device and it does not depend on pm_utils.

Oh! I think you were replying to TheHebes about blacklisting and I took it to mean you were talking about my method. My bad. smile


GNU/Linux: Keep your options "open".

Offline

#11 2011-08-10 02:46:21

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

@Dumbledore: At this point, I am using the built in drivers and they work fine (with your suspend fix). Unmodified, for my laptop, the built in modules cause suspend issues, while the proprietary drivers cause connection issues. Final verdict? The built in modules work far better.
On a side note, you said the 3.0 kernel fixes many problems? I'll have to take a look. I'm still chillin at 2.6.39. smile


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#12 2011-08-10 07:17:34

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Suspend issues with Lenovo x120e

I don't know about many problems, but it did fix a few networks for me "automagically". big_smile
I think they must have updated the inbuilt drivers upstream in the new kernel.


GNU/Linux: Keep your options "open".

Offline

#13 2011-08-10 15:27:49

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

Hmm, well I do know that realtek recently released an actual RTL8188CE driver, so that the RTL8192CE is no longer necessary. Perhaps that's what's included? I'll need to look at the changelog.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#14 2011-08-10 15:52:45

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Suspend issues with Lenovo x120e

lsmod reveals that I'm still using rtl8192ce. I'd checked realtek some 3 weeks back and I had found that the two drivers are really the same. So what you saw must have been more recent.


GNU/Linux: Keep your options "open".

Offline

#15 2011-08-12 02:11:43

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [SOLVED] Suspend issues with Lenovo x120e

Yeh, I believe the last time I looked was < a week ago.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

Board footer

Powered by FluxBB