Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157640 - suspend2-sources-2.6.18-r1 "File Allocator didn't initialise okay"
Summary: suspend2-sources-2.6.18-r1 "File Allocator didn't initialise okay"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 13:12 UTC by Laurento Frittella (mrfree)
Modified: 2006-12-18 05:55 UTC (History)
1 user (show)

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 Laurento Frittella (mrfree) 2006-12-09 13:12:03 UTC
Using the same config files that works with suspend2-source-2.6.18, I obtain this error (hibernate doesn't work):
  FileAllocator is the active writer,  but no filename has been set.
  File Allocator didn't initialise okay.

This is the dmesg (part of interest):
  Suspend2 Core.
  Suspend2 Userspace UI Support module loaded.
  Suspend2 Checksumming module loaded.
  Suspend2 Userspace Storage Manager module loaded.
  Suspend2 Compressor module loaded.
  Suspend2 Encryptor module loaded.
  Suspend2 Block I/O module loaded.
  Suspend2 File Allocator module loaded.
  Suspend2 FileAllocator: Testing whether you can resume:
  Suspend2 2.2.9: FileAllocator: File signature found.
  Suspend2 2.2.9: Resuming enabled.
  Suspend2 2.2.9: No image found.
  FileAllocator is the active writer,  but no filename has been set.
  File Allocator didn't initialise okay.
  Suspend2 2.2.9: Initialise modules failed!

I'm using sys-power/hibernate-script-1.93-r6
Comment 1 Laurento Frittella (mrfree) 2006-12-09 16:47:00 UTC
Searching the web I found that there are some path-name changes with the new release: /sys/power/suspend2/filewriter/ became /sys/power/suspend2/file/
but I haven't found any notes about that in the suspend2 changelog.

So I tryed this (from a fedora ml (found using google))
  change /usr/share/hibernate/scriptlets.d/suspend2 (line 23) from
    [ -d "$SWSUSP_ROOT/filewriter/" ] && FILEWRITER_ROOT="$SWSUSP_ROOT/filewriter"
  to
    [ -d "$SWSUSP_ROOT/file/" ] && FILEWRITER_ROOT="$SWSUSP_ROOT/file"

But this doesn't work for me, hibernate script still return:
  # hibernate
  hibernate: WARNING: Filewriter location given, but kernel does not have filewriter
  hibernate: support. Ignoring.

The kernel config contains (cat .config | grep SUSPEND):
CONFIG_SUSPEND2_CRYPTO=y
CONFIG_SUSPEND2=y
CONFIG_SUSPEND2_FILE=y
# CONFIG_SUSPEND2_SWAP is not set
CONFIG_SUSPEND2_DEFAULT_RESUME2=""
# CONFIG_SUSPEND2_KEEP_IMAGE is not set
CONFIG_SUSPEND2_REPLACE_SWSUSP=y
CONFIG_SUSPEND_SHARED=y
CONFIG_USB_SUSPEND=y

Can hibernate-1.94 (actually it isn't in portage) solves this problem?
Comment 2 Laurento Frittella (mrfree) 2006-12-09 16:54:28 UTC
Hey hey hey hey... changing suspend2 script the hibernate process starts!!! (In the previous attempt I forgot to change the first filewriter occurrency)

...but hibernate fails (dmesg part of interest):

Suspend2 2.2.9: FileAllocator: Testing whether you can suspend:
Suspend2 2.2.9: FileAllocator: File signature found.
Suspend2 2.2.9: Resuming enabled.
Suspend2 2.2.9: Suspending enabled.
Suspend2 2.2.9: Initiating a software suspend cycle.
fbsplash: console 15 using theme 'suspend2'
fbsplash: switched splash state to 'on' on console 15
Stopping tasks... done.
Free:330856(168363). Sets:130401(59496),60835(1435). Header:18. Nosave:2-0=2. Storage:0/191754(256000). Needed:-99287|-64246|0.
Restarting tasks...done.
Stopping tasks... done.
Free:330856(168363). Sets:130419(59514),60835(1435). Header:18. Nosave:2-0=2. Storage:0/191772(256000). Needed:-99278|-64228|0.
Restarting tasks...done.
Stopping tasks...
 Stopping tasks timed out after 20 seconds (1 tasks remaining):
  kswapd0
Free:272414(55330). Sets:59034(42888),60835(1435). Header:18. Nosave:129486-129484=2. Storage:256000/120387(256000). Needed:-50987|-135613|0.
Restarting tasks...<6>Strange, kswapd0 not stopped
done.
Suspend2 debugging info:
- SUSPEND core   : 2.2.9
- Kernel Version : 2.6.18-suspend2-r1
- Compiler vers. : 4.1
- Attempt number : 1
- Parameters     : 17 16400 0 1 0 0
- Overall expected compression percentage: 0.
- Compressor is 'lzf'.
- FileAllocator active.
  Storage available for image: 256000 pages.
- No I/O speed stats available.
- Extra pages    : 0 used/500.
fbsplash: switched splash state to 'off' on console 15

Strange kswapd doesn't want to go to sleep...
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-16 13:46:10 UTC
Please add the following to /etc/hibernate/suspend2.conf
ProcSetting full_pageset2 1

Reboot and try again.
It should solves the kswapd issue.
Reopen if does not help.
Comment 4 Laurento Frittella (mrfree) 2006-12-18 05:55:38 UTC
(In reply to comment #3)
> Please add the following to /etc/hibernate/suspend2.conf
> ProcSetting full_pageset2 1
> 
> Reboot and try again.
> It should solves the kswapd issue.
> Reopen if does not help.

I read this workaround on the suspend2-user mailing-list it seems to help, but sometimes the suspend process hangs during the "preparing image" phase and I need to brutally switchoff my notebook :(

I think I'll try the latest suspend2-sources-2.6.19 ebuild... if the problem persist I'll reopen the bug (or open a new more specific bug)