www.centos.org Forum Index CentOS 5 - General Support Laptop: Suspend
|
Bottom Previous Topic Next Topic |
|
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: Laptop: Suspend | #2 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/1/7
From Central IL USA
Posts: 1967
|
Don't run the xen kernels!
|
||
Posted on: 2009/11/5 17:48
|
|||
|
Re: Laptop: Suspend | #3 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
I don't usually tweak the kernel. xen is the default kernel that comes with CentOS, right?
Will switching to a non-xen fix this problem? Or is it generally good advice that might also fix this problem? Is there an easy set of instructions for changing the kernel? What kernel do I change to? Can I do it with a yum update? If the kernel update fails, then I won't be able to boot the laptop, right? I'm a little uncomfortable with that. |
||
Posted on: 2009/11/5 18:41
|
|||
|
Re: Laptop: Suspend | #4 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/1/7
From Central IL USA
Posts: 1967
|
The .xen kernels are for running Xen virtualization. The command "yum install kernel" should be enough and is safe. The yum default is to keep other kernels (to a limit) on the system. You can always choose some other kernel to boot from the grub screen when you boot. Should be no big deal.
|
||
Posted on: 2009/11/5 19:37
|
|||
|
Re: Laptop: Suspend | #5 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
I did "yum install kernel" and rebooted. However, I don't think I got the right kernel:
And, of course, I still don't have the power-saving features. What did I do wrong? What else must I do? Thanks |
||
Posted on: 2009/11/5 19:58
|
|||
|
Re: Laptop: Suspend | #6 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/1/7
From Central IL USA
Posts: 1967
|
Run "rpm -q kernel". There should be entires (just to make sure). You can 1) hit "any key" when you see the Grub kernel boot screen to select an alternative kernel or 2) edit (vi,emacs,whatever) /etc/grub.conf and change the "default=" line to match the title number (starting at 0) the kernel you want to boot by default.
|
||
Posted on: 2009/11/5 20:21
|
|||
|
Re: Laptop: Suspend | #7 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
[code]
> rpm -q kernel kernel-2.6.18-164.6.1.el5 [\code] I'm not sure why that output disagrees with the "uname -rmi" output, which indicates it's a xen kernel. Anyway, this thread is really about getting the power saving features working. What next? |
||
Posted on: 2009/11/5 20:47
|
|||
|
Re: Laptop: Suspend | #8 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
Never mind, I figured out how to tell grub to boot the new kernel. The Power-Save features work now. Thanks for your help!
|
||
Posted on: 2009/11/5 20:55
|
|||
|
Re: Laptop: Suspend | #9 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
Quote:
The xen kernel becomes the default only if you choose "Virtualization" at install time. For the record, and to get the correct default after future updates, you need to edit /etc/sysconfig/kernel and change DEFAULTKERNEL=kernel-xen to DEFAULTKERNEL=kernel You may also want to "yum remove kernel-xen\*". |
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/11/6 1:15
|
|||
|
Re: Laptop: Suspend | #10 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
|
Perhaps a --
-- would now be the most appropriate step to take. |
||
Posted on: 2009/11/6 14:40
|
|||
|
Re: Laptop: Suspend | #11 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
So, I hate to resurrect a one-week old thread, but, after installing the new non-xen kernel, and using it, the power-save features worked briefly: maybe one or two times. Then, they no long work. I click "suspend" or "hybernate" from the Gnome power manager, and the power saving steps appear to initiate (screen goes blank, etc) but then 10 or 20 seconds later, the suspend fails, and then the laptop is left in fully powered on. Net result: the suspends still aren't working.
How would I go about debugging this? |
||
Posted on: 2009/11/11 0:18
|
|||
|
Re: Laptop: Suspend | #12 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
Any clues as to what might have changed between the working and non-working states?
|
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/11/11 1:22
|
|||
|
Re: Laptop: Suspend | #13 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
Yes: almost nothing changed. I tried rebooting and then simply did repeated Suspends, then un-suspends. Absolutely nothing changed from a configuration point of view. The suspends stopped working after the 3rd or 4th try.
|
||
Posted on: 2009/11/11 2:27
|
|||
|
Re: Laptop: Suspend | #14 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
I followed the advice given in response to this issue (I updated the kernel) and the power saving features like suspend and hybernate still don't work. What should I do?
|
||
Posted on: 2009/11/17 0:33
|
|||
|
Re: Laptop: Suspend | #15 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
|
|||
Posted on: 2009/11/17 14:36
|
|||
|
Re: Laptop: Suspend | #16 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
I tried to login at the bug-tracker page, but could not. I can not submit bug reports.
|
||
Posted on: 2009/11/17 18:16
|
|||
|
Re: Laptop: Suspend | #17 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/1/7
From Central IL USA
Posts: 1967
|
Not sure about the bug login issue. Please post the output of
Do you happen to have installed ndiswrapper or wireless something or other device between the time it worked and did not? |
||
Posted on: 2009/11/17 18:25
|
|||
|
Re: Laptop: Suspend | #18 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
Here we go. That's a lot of stuff. I did not install ndiswrapper or wireless anything.
The power suspends work fine when I boot the machine. That's only for a few tries. Then they stop working. I didn't touch any root-owned files during the interval between working and non-working states. And further, when they don't work (meaning the laptop won't fully go into suspend-mode) the laptop does appear to proceed partially to suspend-mode: the screen blanks for a little while, and it looks almost as if it does make it to suspend-mode and then immediately wakes up. Does that help? |
||
Posted on: 2009/11/17 19:40
|
|||
|
Re: Laptop: Suspend | #19 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/8/21
From Spokane, Washington USA
Posts: 34
|
I logged on to search for and/or post a somewhat related query -- hibernate isn't working on my desktop computer.
I didn't notice this for a couple of days, but when you boot, do you notice it saying something like 'unable to access resume device LABEL=SWAP-sda3 (or whatever sda your swap device is ?) It would be right after it starts to boot. If so, perhaps look for my thread on that topic. Otherwise, carry on ![]() Edit: I don't need to start a thread, I found something that worked here. I hadn't moved my partitions or anything but something got confused. I used the mkswap with -L per message 5 on above link and it hibernated ok and no resume device error message when I rebooted. |
||
Posted on: 2009/11/17 22:49
|
|||
|
Re: Laptop: Suspend | #20 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2009/5/31
From
Posts: 45
|
There is no "LABEL=SWAP-sda3" message, or anything similar in dmesg.
Can someone submit a bug report on this? I've been trying to get the basic power saving features to work for months. I'm really worried that because of this bug in CentOS Linux, the excess CO2 from millions of energy wasting Linux laptops is going to destroy planet earth. |
||
Posted on: 2009/11/18 19:22
|
|||
Top Previous Topic Next Topic |
|
|



Topic options
Print Topic
Threaded
Newest First
JamesBoard






You cannot start a new topic.
You can view topic.