Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149352 - add "Default resume partition" for ACPI and sw suspend
Summary: add "Default resume partition" for ACPI and sw suspend
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Other
: Lowest normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-27 14:14 UTC by volov
Modified: 2006-10-01 11:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description volov 2006-09-27 14:14:10 UTC
as i've made the same mistake as others... is it possible to add another option to set in kernel options during installation regarding ACPI swap partition ?

in fact, we can follow all the guide because it is very well defined but some people lacks information about ACPI option that they should set to their swap partition. If they do not, they will get a kernel panic with bad image error message. I would say that it seems more consistent and logical to add this hint in the handbook in section that describes manual kernel settings (several options are defined but ACPI). This option is directly connected to the user work about partition. In my case, i've add a new disk to my windows system and installed my gentoo on it. If you do not set this option (and just follow the guide), you create your swap partition and decide for its location (for me it is /dev/hdb2) but during kernel configuration, a non expert will just modify or set kernel options described in the guide (as it seems to be enough in order to install the system for the first time : a lot of HOW TO manual could help in order to optimize its kernel configuration or to install nvidia drivers for example (which requires to deselect internal nvidia drivers in menuconfig). but this last hints is only needed for nvidia users. 

As you guide people in order to create their swap permission, i think it could help a lot if you add a comment in kernel config in order to set partition for ACPI to the same partition as the partition swap that we have defined earlier.

does it make sense ?
Comment 1 nm (RETIRED) gentoo-dev 2006-09-28 03:57:56 UTC
(In reply to comment #0)
> does it make sense ?

Not really. Can you be more specific? Do you have a link to the guide (which guide?) so that we can see what you're referring to?

Also, if you're implementing ACPI, we recommend that you read our ACPI doc (look in gentoo.org/doc/en/list.xml) -- not all systems properly support ACPI, which is why we have a separate document just for that, rather than clutter up the handbooks.
Comment 2 volov 2006-09-29 02:58:54 UTC
in the installation handbook :
A) setting for swap partition (you choose where you locate your swap partition with fdisk) [for me it was /dev/hdb2]
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4#doc_chap3

B) kernel manual configuration
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap3
I have a quite old standard config (athlon xp). If you just follow instructions code Listing 4 to 13, you could miss ACPI option activated by default to /dev/hda2 partition when you do a make menuconfig.

Code listing 10 to 13 are optional and used only if needed (for ex. i have no PPPoE or USB keyboard or Mouse needs).

It could be useful to add after code listing 13, just a link (to ACPI HOW TO) or a new code listing about ACPI as this option is activated by default. If you have change your swap location in A, you need to deselect ACPI option in menuconfig or set the partition to your swap location (for me i've changed /dev/hda2 into /dev/hdb2).
Once you have set this option, you can boot on your gentoo without problems. If you do not modify this *default* kernel setting, you will get a kernel panic.

As a lot of x86 platform could manage ACPI and make menuconfig activates by default ACPI with swap partition to /dev/hda2, don't you think that a link or short listing could help for a first gentoo installation ?

regards,

bruce.
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2006-09-29 03:42:49 UTC
You're not only using a different partitioning scheme, you're also using different kernel sources (suspend2-sources I guess). There is no such thing as an acpi swap partition in {vanilla,gentoo}-sources.
Comment 4 volov 2006-09-29 11:44:21 UTC
hi,

i've followed exactly what it is written in the gentoo handbook (i'm using Gentoo 2.6.17_r8) : (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap2) and i've done :
# USE="-doc symlink" emerge gentoo-sources

if now you do the next statement here : (described here http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap3)
# cd /usr/src/linux
# make menuconfig

then the following option is active by default :

Power management options (ACPI, APM) --->
  [*] Software Suspend
  (/dev/hda2) Default resume partition

if you do not deselect Software Suspend or you don't change the Default resume partition to your swap partition then you will have after a reboot :

     atempt to access beyond end of device
     hda2: rw=16, want 8, limit 2
     kernel panic - not syncing: I/O error reading memory image

this thread helps me to find the solution :
http://forums.gentoo.org/viewtopic-t-485963-highlight-panic+syncing+image.html
(frondziac solution in the thread)

as this happens to me (you can try to download gentoo-sources as explained above and try make menuconfig, you will see the option software suspend activated by default (i have x86 platform)), i just suggest to add here (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7#doc_chap3) just after Code Listing 13, a text like that :

-----------------------------------------------------------------------------
If you use Software Suspend, don't forget to set your Default resume partition to your swap partition:

==== Code Listing 14: Enabling Software Suspend =====
Power management options (ACPI, APM) --->
  [*] Software Suspend
  (/dev/hda2) Default resume partition
-----------------------------------------------------------------------------

it needs to increment next Code Listing numbers after this one (actual code listing 14 becomes code listing 15 and so on)

hope it helps,

regards,

bruce.
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2006-10-01 11:59:45 UTC
Don't you have to pass some option to kernel when booting to enable resuming?