The RHEL 5 release notes for their desktop version claim "Improved ACPI support with features such as suspend to disk" but this isn't working with CentOS 5.
I've installed all the packages and updates for CentOS 5 i386 on a ThinkPad T43 but when selecting suspend, Gnome pops up a URL to a site that didn't seem to give a solution. Gnome makes an entry in /var/log/messages indicating that the suspend button was pressed, immediately followed by the "Resuming computer" message.
Suspend to ram and suspend to disk work on Ubuntu 6.10 on this machine with an older kernel (2.6.17-10-generic) than CentOS 5 has.
Are there some packages or a different kernel that should be installed? Will this feature be added to CentOS 5 or is it considered a server distro that doesn't need this? Thinkwiki.org mentions the swsusp program but it seems to be absent.
CentOS 4 and CentOS 5 have been running well on this machine but having the suspend feature would be very nice.
Thanks, and thanks to the team for making CentOS available. roland
roland_renaud at Mitel.COM
On Tue, 1 May 2007, Roland Renaud wrote:
The RHEL 5 release notes for their desktop version claim "Improved ACPI support with features such as suspend to disk" but this isn't working with CentOS 5.
I've installed all the packages and updates for CentOS 5 i386 on a ThinkPad T43 but when selecting suspend, Gnome pops up a URL to a site that didn't seem to give a solution. Gnome makes an entry in /var/log/messages indicating that the suspend button was pressed, immediately followed by the "Resuming computer" message.
Suspend to ram and suspend to disk work on Ubuntu 6.10 on this machine with an older kernel (2.6.17-10-generic) than CentOS 5 has.
Are there some packages or a different kernel that should be installed? Will this feature be added to CentOS 5 or is it considered a server distro that doesn't need this? Thinkwiki.org mentions the swsusp program but it seems to be absent.
CentOS 4 and CentOS 5 have been running well on this machine but having the suspend feature would be very nice.
Hibernate to disk and suspend to memory both work on my T43 with CentOS 5. My feeling is this is mostly related to the graphical card. I have an Intel 915M, and I know the ATI version is known to have more problems.
For me I only needed to add a kernel boot option (acpi_sleep=s3_bios).
A very important resource for Linux problems with your thinkpad is ThinkWiki:
http://www.thinkwiki.org/wiki/ThinkWiki
Almost every problems is discussed in detail (in a distribution-agnostic way) and solutions are provided.
http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram http://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_res...
Kind regards, -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Dag Wieers writes: (On Mon, 11 Jun 2007) | On Tue, 1 May 2007, Roland Renaud wrote: | | > The RHEL 5 release notes for their desktop version claim | > "Improved ACPI support with features such as suspend to disk" | > but this isn't working with CentOS 5. ... | > Are there some packages or a different kernel that should be installed? ...
| Hibernate to disk and suspend to memory both work on my T43 with CentOS 5. | My feeling is this is mostly related to the graphical card. I have an | Intel 915M, and I know the ATI version is known to have more problems. | | For me I only needed to add a kernel boot option (acpi_sleep=s3_bios). | | A very important resource for Linux problems with your thinkpad is | ThinkWiki: | | http://www.thinkwiki.org/wiki/ThinkWiki | | Almost every problems is discussed in detail (in a distribution-agnostic | way) and solutions are provided. | | http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram | http://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_res...
Thanks for your reply Dag.
Sorry for not responding sooner. I was hoping to report on a fix for the xen kernel but haven't yet had time to resolve that problem.
I got suspend to ram and suspend to disk working on May 27 but didn't follow up since no one on this list seemed interested in this thread.
The graphical card was never an issue for me; the machine wouldn't suspend in the first place.
I've included some notes for those who might have similar troubles.
SUMMARY: - I knew about adding "acpi_sleep=s3_bios" to the kernel boot parameters. - Using that, and "resume=/dev/sda2" (my swap partition) did the trick. - But not for the xen kernel. - Reference information in http://thinkwiki.org/wiki/Swsusp - A quick way to tell if it's going to work is to run "lshal |grep suspend" ... power_management.can_suspend_to_disk = true (bool) power_management.can_suspend_to_ram = true (bool) power_management.can_suspend = true (bool) - The kernel provided by CentOS does support suspend to ram and suspend to disk.
DETAILS:
- When using GNOME to suspend or hibernate the computer it points to the following website, implying that the feature isn't available in the kernel.
http://live.gnome.org/GnomePowerManager/FAQ
Entry: 8. Why does GNOME Power Manager not let me suspend or hibernate? Says:
% lshal | grep suspen ... power_management.can_suspend_to_disk = false (bool) power_management.can_suspend_to_ram = true (bool) power_management.can_suspend = true (bool)
- Get and install the kernel source: http://wiki.centos.org/HowTos/I_need_the_Kernel_Source % yum list 'kernel*' ... % yum install 'kernel*' ... Total download size: 63 M
http://mirror.centos.org/centos/5/os/SRPMS/ Got kernel-2.6.18-8.el5.src.rpm from above and installed it.
rpmbuild -bp --target i686 kernel-2.6.spec
That produces a config file in /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i686/.config
- It looks like the kernel does support the suspend. This can be viewed in the config file
% grep SUSPEND .config CONFIG_SOFTWARE_SUSPEND=y CONFIG_SUSPEND_SMP=y # CONFIG_APM_IGNORE_USER_SUSPEND is not set # CONFIG_USB_SUSPEND is not set
It can also be viewed via the kernel config gui % make xconfig &
- This ThinkWiki page provides the answer
http://thinkwiki.org/wiki/Swsusp ... NOTE! For some people suspending did not work if resume_partition was specified in the kernel config. In such case specify the resume partition as a kernel parameter instead.
- All that's required is to add this to the boot parameters: resume=/dev/resume_partition (swap partition) resume=/dev/sda2
- Add this to grub and boot from this config. Added to grub: title CentOS (2.6.18-8.1.4.el5 hibernate) root (hd0,0) kernel /vmlinuz-2.6.18-8.1.4.el5 ro root=LABEL=/ rhgb resume=/dev/sda2 acpi_sleep=s3_bios quiet initrd /initrd-2.6.18-8.1.4.el5.img
- Now lshal looks better % lshal | ma susp disk ... power_management.can_suspend_to_disk = true (bool) power_management.can_suspend_to_ram = true (bool) power_management.can_suspend = true (bool)
- It can now suspend to ram or disk using gnome or these commands:
To suspend to ram: echo mem > /sys/power/state
To suspend to disk: echo disk > /sys/power/state
- ThinkWiki is an excellent resource that I've known about for quite some time. Why didn't I notice the note on the Swsusp page earlier?
I've tried the suggestions on this page in the past but with kernels that didn't support them. I still can't get it working with the xen kernel.
Thanks again Dag.
Thanks also to the CentOS team and this mailing list for their software and their support.
roland
Hello
Is there any glibc-2.6 rpm available for centos 4.4. I was trying to upgrade aspell to .6 which I got following error : error: Failed dependencies: libc.so.6(GLIBC_2.4) is needed by aspell-0.60.3-7.1.i386 rtld(GNU_HASH) is needed by aspell-0.60.3-7.1.i386
so I think i need to upgrade glibc and glibc-common to be able to upgrade aspell, and I get dependency error while I am upgrading glibc or glibc-common. glibc and glibc-common seems to be in loop dependency wise.
error: Failed dependencies: glibc < 2.5 conflicts with glibc-common-2.5-12.i386 glibc-common = 2.3.4-2.36 is needed by (installed) glibc-2.3.4-2.36.i686
error: Failed dependencies: glibc-common = 2.5-12 is needed by glibc-2.5-12.i386 glibc > 2.3.4 conflicts with glibc-common-2.3.4-2.36.i386 glibc = 2.3.4-2.36 is needed by (installed) glibc-headers-2.3.4-2.36.i386 glibc = 2.3.4-2.36 is needed by (installed) glibc-devel-2.3.4-2.36.i386
On 6/27/07, Centos centos@unixplanet.biz wrote:
Hello
Is there any glibc-2.6 rpm available for centos 4.4.
No. glibc is pretty core to the system, and upgrading it would likely require a massive rebuild of most other system packages. Upgrading glibc is a 'bad idea'
How were you attempting to upgrade aspell? I can't imagine that it's specifically linked to a version of glibc, unless you're attempting to install an aspell rpm from a different release or distribution.
well, the version of aspell that I need to upgrade to is only built for contos 5 and I think that is the reason I get that error. it seems that aspell-0.6 is not compiled for centos4 which was strange.
here is the error that i get,
warning: aspell-0.60.3-7.1.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897 error: Failed dependencies: libc.so.6(GLIBC_2.4) is needed by aspell-0.60.3-7.1.i386 rtld(GNU_HASH) is needed by aspell-0.60.3-7.1.i386
do you think if i rebuild the rpm from scratch it will help ?
Jim Perrin wrote:
On 6/27/07, Centos centos@unixplanet.biz wrote:
Hello
Is there any glibc-2.6 rpm available for centos 4.4.
No. glibc is pretty core to the system, and upgrading it would likely require a massive rebuild of most other system packages. Upgrading glibc is a 'bad idea'
How were you attempting to upgrade aspell? I can't imagine that it's specifically linked to a version of glibc, unless you're attempting to install an aspell rpm from a different release or distribution.
On 6/27/07, Centos centos@unixplanet.biz wrote:
well, the version of aspell that I need to upgrade to is only built for contos 5 and I think that is the reason I get that error. it seems that aspell-0.6 is not compiled for centos4 which was strange.
You can't jump distributions like this. If you really absolutely need this version of aspell on centos4 (and can't upgrade to centos5) then you'll have to rebuild this package from the src.rpm.
What you're trying to do is install something built specifically for centos5 on centos4. That won't work.
Thanks Jim,
I did recompile srpm then I could upgrade aspell with no problem.
Jim Perrin wrote:
On 6/27/07, Centos centos@unixplanet.biz wrote:
well, the version of aspell that I need to upgrade to is only built for contos 5 and I think that is the reason I get that error. it seems that aspell-0.6 is not compiled for centos4 which was strange.
You can't jump distributions like this. If you really absolutely need this version of aspell on centos4 (and can't upgrade to centos5) then you'll have to rebuild this package from the src.rpm.
What you're trying to do is install something built specifically for centos5 on centos4. That won't work.
one more question, I couldn't find aspell srpm from centos , I have downloaded srpm from rpm.phone.net, but I got following error:
rpm -i aspell-0.60.3-7.1.src.rpm error: open of <HTML> failed: No such file or directory error: open of <HEAD> failed: No such file or directory error: open of <TITLE>RPM failed: No such file or directory error: open of Search failed: No such file or directory error: open of </TITLE> failed: No such file or directory error: open of <META failed: No such file or directory error: open of HTTP-EQUIV=Content-Type failed: No such file or directory error: open of CONTENT=text/html; charset=iso-8859-2> failed: No such file or directory error: open of <META failed: No such file or directory error: open of NAME=Keywords failed: No such file or directory error: open of CONTENT=rpm,search,find,linux,redhat,pbone,mandrake,suse,pld,conectiva,rpm search> failed: No such file or directory error: open of <!-- failed: No such file or directory error: open of rpm failed: No such file or directory error: open of search failed: No such file or directory error: open of linux failed: No such file or directory error: open of find failed: No such file or directory
it worked with another srpm but not with the one that I found in rpm.phone.net. where is the srpm for centos 5 so I can compile that one.
but I downloaded another srpm from other Centos wrote:
Thanks Jim,
I did recompile srpm then I could upgrade aspell with no problem.
Jim Perrin wrote:
On 6/27/07, Centos centos@unixplanet.biz wrote:
well, the version of aspell that I need to upgrade to is only built for contos 5 and I think that is the reason I get that error. it seems that aspell-0.6 is not compiled for centos4 which was strange.
You can't jump distributions like this. If you really absolutely need this version of aspell on centos4 (and can't upgrade to centos5) then you'll have to rebuild this package from the src.rpm.
What you're trying to do is install something built specifically for centos5 on centos4. That won't work.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 6/28/07, Centos centos@unixplanet.biz wrote:
one more question, I couldn't find aspell srpm from centos , I have downloaded srpm from rpm.phone.net, such file or directory
it worked with another srpm but not with the one that I found in rpm.phone.net. where is the srpm for centos 5 so I can compile that one.
This one?
http://mirror.centos.org/centos/5/os/SRPMS/aspell-0.60.3-7.1.src.rpm
On 6/28/07, Centos centos@unixplanet.biz wrote:
one more question, I couldn't find aspell srpm from centos , I have downloaded srpm from rpm.phone.net,
Make sure you match your distribution when you do this.
but I got following error:
rpm -i aspell-0.60.3-7.1.src.rpm error: open of <HTML> failed: No such file or directory error: open of <HEAD> failed: No such file or directory error: open of <TITLE>RPM failed: No such file or directory
You didn't get the src.rpm, you got their webpage, named as a src.rpm. You can verify this with 'file foo.src.rpm'
you are right, the url suppose to show as html file rather than rpm .
http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/aspell-0.60.3-7.1.sr...
thanks for help.
Jim Perrin wrote:
On 6/28/07, Centos centos@unixplanet.biz wrote:
one more question, I couldn't find aspell srpm from centos , I have downloaded srpm from rpm.phone.net,
Make sure you match your distribution when you do this.
but I got following error:
rpm -i aspell-0.60.3-7.1.src.rpm error: open of <HTML> failed: No such file or directory error: open of <HEAD> failed: No such file or directory error: open of <TITLE>RPM failed: No such file or directory
You didn't get the src.rpm, you got their webpage, named as a src.rpm. You can verify this with 'file foo.src.rpm'