Forums

Skip to content

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

Resuming from suspend2disk with from a LVM swap partition

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
3 posts • Page 1 of 1
Author
Message
Geralt
Apprentice
Apprentice
Posts: 150
Joined: Sat Jun 14, 2008 10:33 pm

Resuming from suspend2disk with from a LVM swap partition

  • Quote

Post by Geralt » Sun Oct 19, 2008 6:22 pm

Hi,

I've got a swap partition in my lvm group "gentoo", so its path is /dev/gentoo/swap. I've set as default resume partition in the kernel "/dev/gentoo/swap" and I'm passing as real_resume argument to the kernel /dev/gentoo/swap. But after suspending to disk with "sudo hibernate --force" and then restarting my notebook it just does a regular boot.
I'm using swsuspend.

What could cause this? I've got this problem before and added the real_resume parameter to the kernel parameters, but now I've got the same problem again.
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Oct 21, 2008 3:10 am

Check your dmesg output after a normal boot. My guess is that, at the time the kernel tries to resolve your path to a device node, the node does not exist, so the kernel cannot find the suspend device. Even if the hibernate script fixes that for you, the resume phase will not be able to find it either, and will require a normal boot. If this is the problem, you can have the initrd restate the resume path to the kernel after the device node is available. This is a common problem, and the typical resolution, on notebooks that use a dm-crypt protected swap partition.
Top
Geralt
Apprentice
Apprentice
Posts: 150
Joined: Sat Jun 14, 2008 10:33 pm

  • Quote

Post by Geralt » Thu Oct 23, 2008 4:03 pm

Hi,

I did that and there's nothing. I'm using the genkernel script to create my initramfs. I just checked with the "debug" kernel parameter myself that it's not possible to resume. When using the "debug" option I get a shell while running the init-script of genkernel. At this point all drives from my volume group are mounted and I tried myself echo "/dev/gentoo/swap" > /sys/power/resume" and nothing happend after exiting the debug shell.
The kernel does a regular boot.


Any ideas what could be the cause of this? If I would miss swsusp support in the kernel there would be no /sys/power/resume file right? And I wouldn't be able to suspend the system to disk/ram in the first place, right?




Geralt.
Top
Post Reply

3 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