Re: [OT?] initrd + suspend/resume on lvm partition?

2007-12-11 Thread Lennart Sorensen
On Tue, Dec 11, 2007 at 05:15:33PM +0100, Giacomo Mulas wrote:
> I recently upgraded the hard disk on my amd64 laptop and, since I was at it,
> I decided to give a spin to LVM partitions. I made use of the guided
> partitioning in the etch installer to do it, and it made a small /boot and
> the rest in a large volume group including both / and swap partition. I
> recovered my fully working sid install from backups, and after a small
> amount of fiddling had my system back up and running on the new disk. The
> only thing which does not seem to work ok is hibernation: I can hibernate
> the system ok, but the yaird-generated init ram disk is then unable to
> resume, apparently because it attempts resuming before setting up lvm. Short
> of hand-modifying the init ram disk, is it possible to configure
> yaird so that the init ram disk it generates loads lvm before attempting to
> resume from an hibernation?
> Mkinitramfs apparently does this right, but it also loads udev before
> hand-configured modules, which I want to avoid, since I must load a dummy
> device _with some module parameters_ before automatically loaded modules.
> So at the moment I boot off a mkinitramfs initrd, but every time I have to
> unload some modules, load dummy, reload those modules (not very nice).

Well I tried yaird in the past and it really sucked then.  mkinitramfs
worked much better, so I stuck with that.  Perhaps you could tell it
somewhere in it's config files to load the driver you want, since it
does have verious spots for hooks to be inserted into it.  That would
probably be the correct way to solve things.

--
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



[OT?] initrd + suspend/resume on lvm partition?

2007-12-11 Thread Giacomo Mulas

Hello,

I recently upgraded the hard disk on my amd64 laptop and, since I was at it,
I decided to give a spin to LVM partitions. I made use of the guided
partitioning in the etch installer to do it, and it made a small /boot and
the rest in a large volume group including both / and swap partition. I
recovered my fully working sid install from backups, and after a small
amount of fiddling had my system back up and running on the new disk. The
only thing which does not seem to work ok is hibernation: I can hibernate
the system ok, but the yaird-generated init ram disk is then unable to
resume, apparently because it attempts resuming before setting up lvm. Short
of hand-modifying the init ram disk, is it possible to configure
yaird so that the init ram disk it generates loads lvm before attempting to
resume from an hibernation?
Mkinitramfs apparently does this right, but it also loads udev before
hand-configured modules, which I want to avoid, since I must load a dummy
device _with some module parameters_ before automatically loaded modules.
So at the moment I boot off a mkinitramfs initrd, but every time I have to
unload some modules, load dummy, reload those modules (not very nice).

Hints, anyone? Thanks,
Giacomo

--
_

Giacomo Mulas <[EMAIL PROTECTED]>
_

OSSERVATORIO ASTRONOMICO DI CAGLIARI
Str. 54, Loc. Poggio dei Pini * 09012 Capoterra (CA)

Tel. (OAC): +39 070 71180 248 Fax : +39 070 71180 222
Tel. (UNICA): +39 070 675 4916
_

"When the storms are raging around you, stay right where you are"
 (Freddy Mercury)
_

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: suspend to disk

2007-03-24 Thread Daniel Schröter
Wolfgang Mader wrote:
> since there are several methods to suspend a linuxbox to disk, I wondered if 
> there is a prefered one, e.g. for debian systems?

Because you are using Kmail maybe you can live with kpowersave?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: suspend to disk

2007-03-23 Thread Emmanuel Fleury
Hej,

Wolfgang Mader wrote:
> 
> since there are several methods to suspend a linuxbox to disk, I wondered if 
> there is a prefered one, e.g. for debian systems?

The working ones... :)

Just use: hibernate

It gather all the methods and is highly configurable.

Regards
-- 
Emmanuel Fleury  | Room:  261
Associate Professor, | Phone: +33 (0)5 40 00 69 34
LaBRI, Domaine Universitaire | Fax:   +33 (0)5 40 00 66 69
351, Cours de la Libération  | Email: [EMAIL PROTECTED]
33405 Talence Cedex, France  | URL:   http://www.labri.fr/~fleury


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



suspend to disk

2007-03-23 Thread Wolfgang Mader
Hello list,

since there are several methods to suspend a linuxbox to disk, I wondered if 
there is a prefered one, e.g. for debian systems?

Thank you in advance.
W. Mader


pgpNIBJKdlXYT.pgp
Description: PGP signature


Re: hibernate / ACPI suspend: help needed

2005-04-04 Thread Paradise
Hi, Which hibernate do you use?
I apt-get from pure64,  but it is for swsp2?

# hibernate
Your kernel does not have any recent Software Suspend 2 support compiled in.
Please follow the HOWTO linked from http://softwaresuspend.berlios.de/ for
instructions on how to compile Software Suspend into your kernel.
hibernate: Aborting.


On Mar 22, 2005 9:25 PM, Rurik Wahlin <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I've installed debian pure 64 on a laptop (acer Aspire 1522WLMi) a few
> weeks ago. My previous experience with linux are pretty limited, but I've
> managed to get most of the system working. Now I'm trying to get hibernate
> to work on it wothout much success. I first tried the suspend2 patch on
> kernel 2.6.10, giving compilation errors, but later a post on their
> website said that it's not supposed to work. I'm now trying with the older
> ACPI suspend. I compile the kernel (2.6.8, now, I had additional problems
> with 2.6.10) setting:
> 
> #
> # Power management options
> #
> CONFIG_PM=y
> CONFIG_SOFTWARE_SUSPEND=y
> 
> I run the hibernate script configured for suspend to disk: UseACPISleep 4
> 
> The computer shuts down without any visual errormessages, (the hibernate
> log file is also not indicating any problems), but when starting the
> computer using grub:
> 
> title   Debian GNU/Linux, kernel 2.6.8 Resume
> root(hd0,4)
> kernel  /vmlinuz-2.6.8 root=/dev/hda6 ro resume=/dev/hda7
> initrd  /initrd.img-2.6.8
> savedefault
> boot
> 
> it starts as if no hibernate had been performed except for the lack of a
> swap partition.
> 
> Any sugestions? Am I doing something wrong? Has anyone managed to get the
> suspend function to work? I really need it.
> 
> I have the AMD Athlon 64 3000+, 1GB RAM and using a swap partition of 2GB.
> 
> Best regards,
> Rurik Wahlin
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 



-- 
Regards,
Paradise


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Zachary Rizer
--- Rurik Wahlin <[EMAIL PROTECTED]> wrote:
> Hi
> 
> This may be a stupid question, but when I search for
> a new kernel using
> apt-cache search I only find 2.6.10. I thought it
> might be because I only
> have 'unstable' in the source list and not
> 'testing'. But when I search
> for 2.6.11 kernel in all distributions on the debian
> home page I don't
> find any packages. How do I get the 2.6.11 kernel
> and sources for debian?
> 
> Best regards,
> Rurik Wahlin
> 

1) 2.6.11 isn't in unstable yet (aka "sid"). 
2) unstable is more recent packages than testing (aka
"sarge").

fyi.

> On Tue, 22 Mar 2005, Zachary Rizer wrote:
> 
> >
> > It's my understanding that you should probably be
> > using 2.6.11.4 for your situation -- if I'm not
> > mistaken, it has more acpi features.
> >
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Rurik Wahlin
Hi

This may be a stupid question, but when I search for a new kernel using
apt-cache search I only find 2.6.10. I thought it might be because I only
have 'unstable' in the source list and not 'testing'. But when I search
for 2.6.11 kernel in all distributions on the debian home page I don't
find any packages. How do I get the 2.6.11 kernel and sources for debian?

Best regards,
Rurik Wahlin

On Tue, 22 Mar 2005, Zachary Rizer wrote:

>
> It's my understanding that you should probably be
> using 2.6.11.4 for your situation -- if I'm not
> mistaken, it has more acpi features.
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Sebastian =?iso-8859-1?q?K=FCgler?=
On Tuesday 22 March 2005 17:32, Rurik Wahlin wrote:
> Thanks for the sugestions.
>
> > That's because the swappartition contains the memory image. It's highly
> > recommended that you add mkswap to your init scripts, otherwise your
> > risking severe filesystem corruption of you suspend, then boot a
> > non-suspend aware kernel and then try to resume afterwards. That's
> > because the filesystem is in inconsistent state during hibernate, booting
> > and mounting it will modify it, but a resumed kernel won't notice that it
> > has been booted and modified in the meantime and will thus cause
> > corruption.
>
> Yes I have been very carefull to restore the swap between each new try...
> ;)
>
> > Try to get rid of the initrd, i.e. compile in everything necessary to get
> > the system booting, and it should work.
>
> I'll try that. Do you think the 2.6.8 will be ok? Someone suggested
> earlier that I should use 2.6.11. I had some problems when trying to run
> with 2.6.10 and would prefer the kernel I know work without any problems
> with the rest of the system.

You can at least try 2.6.8, but there have been a couple of improvements over 
this version in more recent kernels: drivers cause less problems, swsusp 
should be a little faster and suspend more reliable. Also I'm not sure if 
2.6.8 already supported suspening x64, but newer kernels are supposed to. So 
especially if you run into problems, try later version (but I think that's 
obvious). There's a lot of work being done WRT powermanagement, so at least 
that should only be getting better.

FWIW, I myself am not using swsusp on my x64 hardware (yet), since it's 
running 24/7 anyway, but am a happy user of suspend2 on my x86 notebook.

Cheers,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The world is moving so fast these days that the man who says it can't be done 
is generally interrupted by someone doing it. - E. Hubbard



pgp4jyHSUL1mI.pgp
Description: PGP signature


Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Rurik Wahlin
Hi

Thanks for the sugestions.

> That's because the swappartition contains the memory image. It's highly
> recommended that you add mkswap to your init scripts, otherwise your risking
> severe filesystem corruption of you suspend, then boot a non-suspend aware
> kernel and then try to resume afterwards. That's because the filesystem is in
> inconsistent state during hibernate, booting and mounting it will modify it,
> but a resumed kernel won't notice that it has been booted and modified in the
> meantime and will thus cause corruption.

Yes I have been very carefull to restore the swap between each new try...
;)

> Try to get rid of the initrd, i.e. compile in everything necessary to get the
> system booting, and it should work.

I'll try that. Do you think the 2.6.8 will be ok? Someone suggested
earlier that I should use 2.6.11. I had some problems when trying to run
with 2.6.10 and would prefer the kernel I know work without any problems
with the rest of the system.

Best regards,
Rurik Wahlin



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Sebastian =?iso-8859-1?q?K=FCgler?=
On Tuesday 22 March 2005 16:05, you wrote:
> --- Sebastian Kügler <[EMAIL PROTECTED]> wrote:
> > That's because the swappartition contains the memory
> > image. It's highly
> > recommended that you add mkswap to your init
> > scripts, otherwise your risking
> > severe filesystem corruption of you suspend, then
> > boot a non-suspend aware
> > kernel and then try to resume afterwards. That's
> > because the filesystem is in
> > inconsistent state during hibernate, booting and
> > mounting it will modify it,
> > but a resumed kernel won't notice that it has been
> > booted and modified in the
> > meantime and will thus cause corruption.

> So you're saying that for swsusp you need an
> additional swap partition to "hibernate" to in
> addition of your default swap partition?

No, you can use your 'normal' swap partition, you just can't use it while the 
suspend image is stored in there until it's cleaned up. Cleaning up is done 
post-resume by swsusp or manually by using mkswap. Since the image is useless 
- even dangerous - and only consumes all your swapspace after a normal boot, 
it's safe and sensible to mkswap it on normal boot, e.g. by means of an 
initscript.

Cheers,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
So many beautiful women and so little time. - John Barrymore



pgpfTeJRt8RHq.pgp
Description: PGP signature


Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Sebastian =?iso-8859-1?q?K=FCgler?=
Hi,

On Tuesday 22 March 2005 14:25, Rurik Wahlin wrote:
> I've installed debian pure 64 on a laptop (acer Aspire 1522WLMi) a few
> weeks ago. My previous experience with linux are pretty limited, but I've
> managed to get most of the system working. Now I'm trying to get hibernate
> to work on it wothout much success. I first tried the suspend2 patch on
> kernel 2.6.10, giving compilation errors, but later a post on their
> website said that it's not supposed to work. I'm now trying with the older
> ACPI suspend. I compile the kernel (2.6.8, now, I had additional problems
> with 2.6.10) setting:

> CONFIG_SOFTWARE_SUSPEND=y
>
> I run the hibernate script configured for suspend to disk: UseACPISleep 4
>
> The computer shuts down without any visual errormessages, (the hibernate
> log file is also not indicating any problems), but when starting the
> computer using grub:

> initrd  /initrd.img-2.6.8

The problem is that vanilla's swsusp can't handle modular IDE yet, so you need 
this stuff compiled-in. Software Suspend2 can handle that, in that case you 
have to modify your initrd do initiate resume after IDE modules have been 
loaded, but Software Suspend2 does not run on x64 yet, it's work in progress.

> it starts as if no hibernate had been performed except for the lack of a
> swap partition.

That's because the swappartition contains the memory image. It's highly 
recommended that you add mkswap to your init scripts, otherwise your risking 
severe filesystem corruption of you suspend, then boot a non-suspend aware 
kernel and then try to resume afterwards. That's because the filesystem is in 
inconsistent state during hibernate, booting and mounting it will modify it, 
but a resumed kernel won't notice that it has been booted and modified in the 
meantime and will thus cause corruption. 

> Any sugestions? Am I doing something wrong? Has anyone managed to get the
> suspend function to work? I really need it.

Try to get rid of the initrd, i.e. compile in everything necessary to get the 
system booting, and it should work.

Kind regards,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mohandas K. Gandhi often changed his mind publicly. An aide once asked him how 
he could so freely contradict this week what he had said just last week. The 
great man replied that it was because this week he knew better.



pgphdpRV4X9EZ.pgp
Description: PGP signature


Re: hibernate / ACPI suspend: help needed

2005-03-22 Thread Zachary Rizer
--- Rurik Wahlin <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I've installed debian pure 64 on a laptop (acer
> Aspire 1522WLMi) a few
> weeks ago. My previous experience with linux are
> pretty limited, but I've
> managed to get most of the system working. Now I'm
> trying to get hibernate
> to work on it wothout much success. I first tried
> the suspend2 patch on
> kernel 2.6.10, giving compilation errors, but later
> a post on their
> website said that it's not supposed to work. I'm now
> trying with the older
> ACPI suspend. I compile the kernel (2.6.8, now, I
> had additional problems
> with 2.6.10) setting:
> 
> #
> # Power management options
> #
> CONFIG_PM=y
> CONFIG_SOFTWARE_SUSPEND=y
> 
> I run the hibernate script configured for suspend to
> disk: UseACPISleep 4
> 
> The computer shuts down without any visual
> errormessages, (the hibernate
> log file is also not indicating any problems), but
> when starting the
> computer using grub:
> 
> title   Debian GNU/Linux, kernel 2.6.8
> Resume
> root(hd0,4)
> kernel  /vmlinuz-2.6.8 root=/dev/hda6 ro
> resume=/dev/hda7
> initrd  /initrd.img-2.6.8
> savedefault
> boot
> 
> it starts as if no hibernate had been performed
> except for the lack of a
> swap partition.
> 
> Any sugestions? Am I doing something wrong? Has
> anyone managed to get the
> suspend function to work? I really need it.
> 
> I have the AMD Athlon 64 3000+, 1GB RAM and using a
> swap partition of 2GB.
> 
> Best regards,
> Rurik Wahlin
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 

It's my understanding that you should probably be
using 2.6.11.4 for your situation -- if I'm not
mistaken, it has more acpi features.  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



hibernate / ACPI suspend: help needed

2005-03-22 Thread Rurik Wahlin
Hi

I've installed debian pure 64 on a laptop (acer Aspire 1522WLMi) a few
weeks ago. My previous experience with linux are pretty limited, but I've
managed to get most of the system working. Now I'm trying to get hibernate
to work on it wothout much success. I first tried the suspend2 patch on
kernel 2.6.10, giving compilation errors, but later a post on their
website said that it's not supposed to work. I'm now trying with the older
ACPI suspend. I compile the kernel (2.6.8, now, I had additional problems
with 2.6.10) setting:

#
# Power management options
#
CONFIG_PM=y
CONFIG_SOFTWARE_SUSPEND=y

I run the hibernate script configured for suspend to disk: UseACPISleep 4

The computer shuts down without any visual errormessages, (the hibernate
log file is also not indicating any problems), but when starting the
computer using grub:

title   Debian GNU/Linux, kernel 2.6.8 Resume
root(hd0,4)
kernel  /vmlinuz-2.6.8 root=/dev/hda6 ro resume=/dev/hda7
initrd  /initrd.img-2.6.8
savedefault
boot

it starts as if no hibernate had been performed except for the lack of a
swap partition.

Any sugestions? Am I doing something wrong? Has anyone managed to get the
suspend function to work? I really need it.

I have the AMD Athlon 64 3000+, 1GB RAM and using a swap partition of 2GB.

Best regards,
Rurik Wahlin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Suspend

2005-02-01 Thread Lorenzo Milesi
> I've got a BrandX-laptop and have the same problem.
> The fan and the hdd spin up and that's it. The screen is forever black
> and the nic doesn't work too.

This is a known problem, but right now I can't remember the suggested
fix. Google around a bit, you will find it.

maxxer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Suspend

2005-02-01 Thread zeeman
Hi!
I'm wondering if anyone had successful tests in suspending the pc.
I'm more interested in standby/suspend to ram than in suspend to disk.
I can put to sleep my Asus A2K with the "echo ..." command, but then
there's no way to wake it up. I tried pressing every button on the pc
but stays in sleep forever. Also a friend of mine with a different
Asus has the same problem.
Is it a problem of Asus or acpi?
I've got a BrandX-laptop and have the same problem.
The fan and the hdd spin up and that's it. The screen is forever black 
and the nic doesn't work too.

Greets
Sebastian
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Suspend

2005-02-01 Thread Lorenzo Milesi
Hi

I'm wondering if anyone had successful tests in suspending the pc.
I'm more interested in standby/suspend to ram than in suspend to disk.
I can put to sleep my Asus A2K with the "echo ..." command, but then
there's no way to wake it up. I tried pressing every button on the pc
but stays in sleep forever. Also a friend of mine with a different
Asus has the same problem.

Is it a problem of Asus or acpi?

thanks
maxxer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]