Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Resume from Hibernation with bad clock (kernel opt)

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
bjavotte
n00b
n00b
Posts: 6
Joined: Tue Dec 19, 2006 10:17 am

[SOLVED] Resume from Hibernation with bad clock (kernel opt)

  • Quote

Post by bjavotte » Tue Dec 19, 2006 11:09 am

I use Gentoo since 2 years now, and i've just bought a second-hand laptop, an ACER TravelMate 2303LM.
This machine supports ACPI 1.0b, both Suspend-to-RAM (S3) and Suspend-to-disk (S4) modes (specifications here:
http://linux.zamecnik.org/en/acer-tm-23 ... ifications).

Ok so i've just installed on it Gentoo 2006.1 release, and decided to patch my recent vanilla kernel 2.6.18.3 with the suspend2-2.2.9-for-2.6.18.3.patch.bz2 patch (see http://www.suspend2.net/), to have the benefit on an approved hibernation method. After having configured and patched my kernel, i installed the stable sys-power/hibernate-script package with emerge.

So i have tested the great hibernate script on my machine, to see that it can hibernate all the memory state on the disk (the default mode for the hibernate script): can see the progress bar of the hibernation process (in mode text) and that the machine is powered-off.

So i have tasted the resume process to see, when i pressed the power button, that i recover all my desktop correctly as it was, but i found a problem, that i could never solve: when the machine resume from hibernation the clock is changed and always the same: clock is 20:15, and year is 1932.

So i have invastigated on the hibernate.conf and so on, and found an Option for clock: SaveClock.
I tried this option with: yes, no and restore-only.

But at the resume time of my machine the clock come back constantly with: 20:15, and year is 1932.

I've searched, and found nothing. That is mysterious, is how can linux system halt my machine and then
restore a correct system time, but not suspend2 hibernation, and secondly nobody ever posted for the same probleme ...

Any help here ?
Last edited by bjavotte on Wed Dec 20, 2006 11:38 am, edited 1 time in total.
Top
pvincent
n00b
n00b
User avatar
Posts: 29
Joined: Sat Aug 02, 2003 9:02 pm

Re: Resume from Hibernation with bad clock (Software Supend

  • Quote

Post by pvincent » Tue Dec 19, 2006 11:30 am

bjavotte wrote: Any help here ?
Have you ever tried powersave ?
It should simplify the way ACPI deals with hibernation.
I know there is an option related to clock stuff.
On my recent laptop, It was not needed so I did not switch this option on.
Hope it helps...
Top
bjavotte
n00b
n00b
Posts: 6
Joined: Tue Dec 19, 2006 10:17 am

Re: Resume from Hibernation with bad clock (Software Supend

  • Quote

Post by bjavotte » Tue Dec 19, 2006 11:53 am

pvincent wrote: Have you ever tried powersave ?
It should simplify the way ACPI deals with hibernation.
I know there is an option related to clock stuff.
Hope it helps...
I think i'll try to emerge kpowersave soon, but i expect to have success with suspend2 method first, and to share my experience on it after. I like to encourage diversity, and i've also read that suspend2 is powerfull, and this explained my choice.
Top
bjavotte
n00b
n00b
Posts: 6
Joined: Tue Dec 19, 2006 10:17 am

  • Quote

Post by bjavotte » Wed Dec 20, 2006 12:06 am

I decided in the same time to test powersave with a 2.6.18.1 kernel that i had installed previously on that machine. This kernel version is one that is not pached with swsusp2 patch. All kernel options relative to ACPI were activated.

So i now boot by default with GRUB the 2.6.18.1 kernel, set the kernel option resume=/dev/hda2
(my default linux swap partition that is 3 times larger than the total ram size for safety)
and finally emerged sys-power/powersave-0.14.0.

Now with this new experience, i can say that powersave works as well as swsuspend2 works for me, i.e i can hibernate and resume greatly, EXCEPT for that BAD CLOCK my machine wake up always the same with: "20:15 2004" (not year 1932 as i mentionned in the post before but 2004 -- that was a little mistake).

With powersave to suspend to disk, you tape the command powersave -U in the console (see man powersave)

I read this night the documentation and configuration files of the sys-power/powersave package.
I changed those ones:

SUSPEND2DISK_RESTART_SERVICES="clock"
SUSPEND2DISK_SHUTDOWN_MODE="__ALL__POSSIBLE__VALUES__TESTED"
SUSPEND2DISK_RESTORE_CLOCK="__ALL__POSSIBLE__VALUES__TESTED"
SUSPEND2DISK_SHUTDOWN_MODE="__ALL__POSSIBLE__VALUES__TESTED"

But no more result for the clock issue.

So it take my nerves because each time i want to hibernate, after i resume i have to go into the BIOS to change the date to something decent.
I think the problem comes from my ACER TravelMate 2303LM, and probably that comes from the kernel itself with this hardware ...

What to do ? : installing Kubuntu ? I'm satisfied with gentoo !!
Last edited by bjavotte on Wed Dec 20, 2006 12:27 pm, edited 4 times in total.
Top
bjavotte
n00b
n00b
Posts: 6
Joined: Tue Dec 19, 2006 10:17 am

  • Quote

Post by bjavotte » Wed Dec 20, 2006 11:34 am

This thread is closed now, because i solved the problem of bad clock after suspending-to-disk (S4).

So now i will be able to use S4 mode with my ACER. It's great that i finally found what was the "mistake" or misconfiguration but i had to work around to find where the problem came from ...

To solve the bad clock, i searched into the kernel options relative to clock; so this logically led me to the submenu options in
Device Drivers ---> Real Time Clock and there i had to activate:

CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE = (rtc0)
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y


Conclusion:

ACER TravelMate 2303LM works fine with ACPI S4 mode whether i use powersave method or the Software Supend 2 method. Next step will be now to have a graphic front-end install to powersave packagen that is kpowersave (for KDE). I will soon install kpowersave when an ebuild will be created for the 0.7.1 version of it. I don't think i will use Software Suspend 2 any more, since powersave seems powerfull, as i just discovered, thanks to pvincent.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic