Re: [gentoo-user] Hibernation without initramfs

2024-04-26 Thread Michael
On Friday, 26 April 2024 10:23:28 BST Wojciech Kuzyszyn wrote:
> On Fri, 26 Apr 2024 09:40:54 +0100
> 
> Michael  wrote:
> > [*] Hibernation (aka 'suspend to disk')
> > [*]   Userspace snapshot device
> > (/dev/sdb6)Default resume partition
> 
> My swap partition is /dev/nvme0n1p2 - this would work I assume, right?

Yes, it is a block device accessed via the PCIe bus.


> > However, if you are using RAM heavily when you try to hibernate, e.g.
> > because you are compiling some large package, have many memory hungry
> > applications open, etc., you may find hibernation fails due to lack
> > of space.  This would be more acute if your RAM is not large enough
> > and swap is used on a regular basis.  With large enough RAM less swap
> > space will be used, since swap would be virtually empty.  Therefore
> > size your swap device accordingly.
> 
> I have oldschool swap - 2x RAM.

OK, with this much space you'd have at least 2x more hibernation storage space 
than you will need.  :-)

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Hibernation without initramfs

2024-04-26 Thread Wojciech Kuzyszyn
On Fri, 26 Apr 2024 09:40:54 +0100
Michael  wrote:

> [*] Hibernation (aka 'suspend to disk')
> [*]   Userspace snapshot device
> (/dev/sdb6)Default resume partition 

My swap partition is /dev/nvme0n1p2 - this would work I assume, right?

> However, if you are using RAM heavily when you try to hibernate, e.g.
> because you are compiling some large package, have many memory hungry
> applications open, etc., you may find hibernation fails due to lack
> of space.  This would be more acute if your RAM is not large enough
> and swap is used on a regular basis.  With large enough RAM less swap
> space will be used, since swap would be virtually empty.  Therefore
> size your swap device accordingly.

I have oldschool swap - 2x RAM.


-- 
xWK


pgpoV0GlBa6Gb.pgp
Description: Podpis cyfrowy OpenPGP


Re: [gentoo-user] Hibernation without initramfs

2024-04-26 Thread Michael
On Thursday, 25 April 2024 22:29:01 BST Wojciech Kuzyszyn wrote:
> Hello!
> 
> Quick question: is it possible to use hibernation (suspend to disk)
> with no initramfs?

Yes.

> I don't have one and don't want to have one. So I'd
> rather disable hibernate in kernel (so I won't do this by accident) or
> leave it to use it happily when needed.

You have to specify a swap block device - a swap partition, or a preconfigured 
swap file on an already mounted partition - in your kernel configuration, for 
hibernation to work, e.g.:

[*] Hibernation (aka 'suspend to disk')
[*]   Userspace snapshot device
(/dev/sdb6)Default resume partition 

This swap device will be used at hibernation time to compress and store what 
is running in your RAM.  Since the contents of your RAM will be compressed 
less space will be required than the size of your RAM.

However, if you are using RAM heavily when you try to hibernate, e.g. because 
you are compiling some large package, have many memory hungry applications 
open, etc., you may find hibernation fails due to lack of space.  This would 
be more acute if your RAM is not large enough and swap is used on a regular 
basis.  With large enough RAM less swap space will be used, since swap would 
be virtually empty.  Therefore size your swap device accordingly.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] hibernation

2014-12-05 Thread J. Roeleveld
On Thursday, December 04, 2014 07:52:44 PM J.  Roeleveld wrote:
 On 4 December 2014 18:32:16 CET, Michael Vetter michael.vetter@uni-
konstanz.de wrote:
 Am 04/12/14 18:10, schrieb Randolph Maaßen:
  2014-12-04 17:58 GMT+01:00 Michael Vetter
 
 michael.vet...@uni-konstanz.de:
  Did you try suspending using the echo command I mentioned earlier?
  
  Yes, it seemed to work (just starting up again didn't).
  
  You can set the resume partition in the kernel. Might be an option.
  
  Okay, so I changed my kernel command string from root=/dev/sdb2 to
  root=/dev/sdb2,resume=/dev/mapper/g-SWAP.
  
  In my menuconfig I have a space separated list, not comma separated.
  So I guess the boot failure is, that the kernel can't find the root
  partition /dev/sdb2,resume...
 
 Okay, sorry thought this is equivalent to [1].
 Anyways, I changed it to space and my system boots now.
 So I tried the suspend command again, but when rebooting its like a
 fresh reboot.
 
 Any ideas?
 
 [1] http://man7.org/linux/man-pages/man7/bootparam.7.html
 
 Yes.
 If using LVM for the swap partition (and subsequently the resume) you need
 to use an initramfs.
 
 I will dig out the script I use on my laptop and post it tomorrow. (It boots
 faster with a custom script compared to the genkernel or dracut ones)

Bit later then planned.

The init file is the initramfs init-file.
The config is what I configure in the kernel:

$ zcat /proc/config.gz | grep initramfs
CONFIG_INITRAMFS_SOURCE=/usr/src/initramfs/config

There are a few changes you'll need to do:
1) In the init file, change the name of the swap-partition you use
2) In the config file, change the following paths:
  - init-file
3) In the config file, run the command mentioned at the end of the file and
add the result of the command to the end of the  config  file.

I have been using this config succesfully for over a year on my laptop.

--
Joost
# vim: set ft=initramfs :

# init script
file /init /usr/src/initramfs/init 0755 0 0

# basic device nodes
dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1

# mount point for our real root
dir /root 0700 0 0

dir /lib 0755 0 0

dir /etc 755 0 0

# utilities needed to do anything useful
dir /bin 0755 0 0
dir /sbin 0755 0 0
dir /usr 755 0 0
dir /usr/lib 755 0 0
dir /usr/sbin 755 0 0
dir /usr/bin 755 0 0
dir /lib64 755 0 0
dir /usr/lib64 755 0 0
file /bin/busybox /bin/busybox 0755 0 0

# some busybox symlinks
slink /bin/dd busybox 777 0 0
slink /bin/cp busybox 777 0 0
slink /bin/df busybox 777 0 0
slink /bin/ln busybox 777 0 0
slink /bin/ls busybox 777 0 0
slink /bin/mv busybox 777 0 0
slink /bin/ps busybox 777 0 0
slink /bin/rm busybox 777 0 0
slink /bin/sh busybox 777 0 0
slink /bin/vi busybox 777 0 0
slink /bin/ash busybox 777 0 0
slink /bin/cat busybox 777 0 0
slink /bin/pwd busybox 777 0 0
slink /bin/sed busybox 777 0 0
slink /bin/tar busybox 777 0 0
slink /bin/date busybox 777 0 0
slink /bin/echo busybox 777 0 0
slink /bin/grep busybox 777 0 0
slink /bin/gzip busybox 777 0 0
slink /bin/kill busybox 777 0 0
slink /bin/more busybox 777 0 0
slink /bin/ping busybox 777 0 0
slink /bin/sync busybox 777 0 0
slink /bin/true busybox 777 0 0
slink /bin/zcat busybox 777 0 0
slink /bin/chgrp busybox 777 0 0
slink /bin/chmod busybox 777 0 0
slink /bin/chown busybox 777 0 0
slink /bin/dmesg busybox 777 0 0
slink /bin/egrep busybox 777 0 0
slink /bin/false busybox 777 0 0
slink /bin/fgrep busybox 777 0 0
slink /bin/mkdir busybox 777 0 0
slink /bin/mknod busybox 777 0 0
slink /bin/mount busybox 777 0 0
slink /bin/pidof busybox 777 0 0
slink /bin/rmdir busybox 777 0 0
slink /bin/sleep busybox 777 0 0
slink /bin/touch busybox 777 0 0
slink /bin/uname busybox 777 0 0
slink /bin/gunzip busybox 777 0 0
slink /bin/hostname busybox 777 0 0
slink /bin/mktemp busybox 777 0 0
slink /bin/umount busybox 777 0 0
slink /bin/usleep busybox 777 0 0
slink /usr/bin/[ ../../bin/busybox 777 0 0
slink /usr/bin/du ../../bin/busybox 777 0 0
slink /usr/bin/id ../../bin/busybox 777 0 0
slink /usr/bin/tr ../../bin/busybox 777 0 0
slink /usr/bin/wc ../../bin/busybox 777 0 0
slink /usr/bin/cmp ../../bin/busybox 777 0 0
slink /usr/bin/cut ../../bin/busybox 777 0 0
slink /usr/bin/env ../../bin/busybox 777 0 0
slink /usr/bin/tee ../../bin/busybox 777 0 0
slink /usr/bin/tty ../../bin/busybox 777 0 0
slink /usr/bin/yes ../../bin/busybox 777 0 0
slink /usr/bin/chvt ../../bin/busybox 777 0 0
slink /usr/bin/find ../../bin/busybox 777 0 0
slink /usr/bin/expr ../../bin/busybox 777 0 0
slink /usr/bin/free ../../bin/busybox 777 0 0
slink /usr/bin/head ../../bin/busybox 777 0 0
slink /usr/bin/deallocvt ../../bin/busybox 777 0 0
slink /usr/bin/tail ../../bin/busybox 777 0 0
slink /usr/bin/sort ../../bin/busybox 777 0 0
slink /usr/bin/test ../../bin/busybox 777 0 0
slink /usr/bin/time ../../bin/busybox 777 0 0
slink /usr/bin/uniq ../../bin/busybox 777 0 0
slink /usr/bin/wget ../../bin/busybox 777 0 0
slink /usr/bin/dirname ../../bin/busybox 777 0 0
slink /usr/bin/killall ../../bin/busybox 777 0 

Re: [gentoo-user] hibernation

2014-12-04 Thread Michael Vetter
 Maybe you need to pass the resume-partition parameter to the kernel in
the bootloader. Point it to your swap device.

Maybe I should add: I have EFI notebook, and my kernel is copied to
/boot/EFI/Boot/bootx64.efi. So I boot over that EFI thing because it
seemed the easiest thing to set up..

 b) suspend to disk, which means that the whole content of the RAM is
 being written on your HDD and after that your computer is being shut
 down entirely?

Yes, thats what I want to achive.



Re: [gentoo-user] hibernation

2014-12-04 Thread J. Roeleveld
On 4 December 2014 17:30:28 CET, Michael Vetter 
michael.vet...@uni-konstanz.de wrote:
 Maybe you need to pass the resume-partition parameter to the kernel
in
the bootloader. Point it to your swap device.

Maybe I should add: I have EFI notebook, and my kernel is copied to
/boot/EFI/Boot/bootx64.efi. So I boot over that EFI thing because it
seemed the easiest thing to set up..

You can set the resume partition in the kernel. Might be an option.

 b) suspend to disk, which means that the whole content of the RAM is
 being written on your HDD and after that your computer is being shut
 down entirely?

Yes, thats what I want to achive.

Did you try suspending using the echo command I mentioned earlier?

--
Joost


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] hibernation

2014-12-04 Thread Michael Vetter
 Did you try suspending using the echo command I mentioned earlier?
Yes, it seemed to work (just starting up again didn't).

 You can set the resume partition in the kernel. Might be an option.
Okay, so I changed my kernel command string from root=/dev/sdb2 to
root=/dev/sdb2,resume=/dev/mapper/g-SWAP.

Then typed your suspension command again, now the system isn't booting
up anymore: kernel prints trace.

-- 
Michael



Re: [gentoo-user] hibernation

2014-12-04 Thread Randolph Maaßen
2014-12-04 17:58 GMT+01:00 Michael Vetter michael.vet...@uni-konstanz.de:
 Did you try suspending using the echo command I mentioned earlier?
 Yes, it seemed to work (just starting up again didn't).

 You can set the resume partition in the kernel. Might be an option.
 Okay, so I changed my kernel command string from root=/dev/sdb2 to
 root=/dev/sdb2,resume=/dev/mapper/g-SWAP.

In my menuconfig I have a space separated list, not comma separated.
So I guess the boot failure is, that the kernel can't find the root
partition /dev/sdb2,resume...


 Then typed your suspension command again, now the system isn't booting
 up anymore: kernel prints trace.

 --
 Michael




-- 
Mit freundlichen Grüßen / Best regards

Randolph Maaßen



Re: [gentoo-user] hibernation

2014-12-04 Thread Michael Vetter
Am 04/12/14 18:10, schrieb Randolph Maaßen:
 2014-12-04 17:58 GMT+01:00 Michael Vetter michael.vet...@uni-konstanz.de:
 Did you try suspending using the echo command I mentioned earlier?
 Yes, it seemed to work (just starting up again didn't).

 You can set the resume partition in the kernel. Might be an option.
 Okay, so I changed my kernel command string from root=/dev/sdb2 to
 root=/dev/sdb2,resume=/dev/mapper/g-SWAP.
 
 In my menuconfig I have a space separated list, not comma separated.
 So I guess the boot failure is, that the kernel can't find the root
 partition /dev/sdb2,resume...

Okay, sorry thought this is equivalent to [1].
Anyways, I changed it to space and my system boots now.
So I tried the suspend command again, but when rebooting its like a
fresh reboot.

Any ideas?

[1] http://man7.org/linux/man-pages/man7/bootparam.7.html

-- 
Michael



Re: [gentoo-user] hibernation

2014-12-04 Thread J. Roeleveld
On 4 December 2014 18:32:16 CET, Michael Vetter 
michael.vet...@uni-konstanz.de wrote:
Am 04/12/14 18:10, schrieb Randolph Maaßen:
 2014-12-04 17:58 GMT+01:00 Michael Vetter
michael.vet...@uni-konstanz.de:
 Did you try suspending using the echo command I mentioned earlier?
 Yes, it seemed to work (just starting up again didn't).

 You can set the resume partition in the kernel. Might be an option.
 Okay, so I changed my kernel command string from root=/dev/sdb2 to
 root=/dev/sdb2,resume=/dev/mapper/g-SWAP.
 
 In my menuconfig I have a space separated list, not comma separated.
 So I guess the boot failure is, that the kernel can't find the root
 partition /dev/sdb2,resume...

Okay, sorry thought this is equivalent to [1].
Anyways, I changed it to space and my system boots now.
So I tried the suspend command again, but when rebooting its like a
fresh reboot.

Any ideas?

[1] http://man7.org/linux/man-pages/man7/bootparam.7.html

Yes.
If using LVM for the swap partition (and subsequently the resume) you need to 
use an initramfs.

I will dig out the script I use on my laptop and post it tomorrow. (It boots 
faster with a custom script compared to the genkernel or dracut ones)

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] hibernation

2014-12-04 Thread Marc Stürmer

Am 04.12.2014 um 17:30 schrieb Michael Vetter:


Yes, thats what I want to achive.


The sad thing about hibernation is, that it has always kinda been some 
kind of lackluster in the kernel and quite disappointing. It is a kind 
of area which does not get much love in the kernel for at least over one 
decade.


he number of computers it does not work is bigger than the number of 
computers it does work on correctly.


At least last time I tried it it was quite like that. Hibernation is 
disabled by default on Ubuntu 14.04, because it is so unreliable and 
broken.


In fact, there are three different kind of implementations around namely:

a) the thing in the main line kernel, which seems to work quite subpar, 
which is being used by the utility swsusp,

b) something in the user space being called uswsusp,
c) and an alternative implementation for the kernel being named Tux on 
Ice.


Many do consider Tux on Ice the most reliable way to get hibernation up 
and running on Linux, unfortunately development seems to be stalled 
since always about one year and it is not part of the main line kernel.


So if you want to get this working reliable, good luck. You'll need it.



Re: [gentoo-user] hibernation

2014-12-03 Thread Randolph Maaßen
On Dec 3, 2014 11:33 AM, Michael Vetter michael.vet...@uni-konstanz.de
wrote:

 Hello there,

 I use i3 as my window manager and use xfce4-power-manager for saving
 battery and stuff on my laptop. Today I tried hibernation for the
 first time and realized: it does not work.

 All I did so far was installing fce4-power-manager selecting some
 sections in kernel config that seemed necessary and installed polkit.

 However when I close my notebook's lid (I configured xfce4-power-manager
 to switch into hibernation in this case) it shuts down, but when i press
 the start button, it just does a normal restart.
 What am I missing?

 Michael


Maybe you need to pass the resume-partition parameter to the kernel in the
bootloader. Point it to your swap device.

You can boot normal with this parameter set and not hibernated


Re: [gentoo-user] hibernation

2014-12-03 Thread J. Roeleveld
On Wednesday, December 03, 2014 11:32:10 AM Michael Vetter wrote:
 Hello there,
 
 I use i3 as my window manager and use xfce4-power-manager for saving
 battery and stuff on my laptop. Today I tried hibernation for the
 first time and realized: it does not work.
 
 All I did so far was installing fce4-power-manager selecting some
 sections in kernel config that seemed necessary and installed polkit.
 
 However when I close my notebook's lid (I configured xfce4-power-manager
 to switch into hibernation in this case) it shuts down, but when i press
 the start button, it just does a normal restart.
 What am I missing?
 
 Michael

To test hibernate try the following:

1) Stop all important stuff
2) run the following as root:
#  echo disk  /sys/power/state

If this works, then you can try to configure a power management tool. 
Please also ensure you only have 1 power management tool configured.

--
Joost



Re: [gentoo-user] hibernation

2014-12-03 Thread Marc Stürmer

Am 03.12.2014 um 11:32 schrieb Michael Vetter:


However when I close my notebook's lid (I configured xfce4-power-manager
to switch into hibernation in this case) it shuts down, but when i press
the start button, it just does a normal restart.


Do you want to configure

a) simply hibernation, which means that the RAM is still powered by your 
battery and just the rest of the computer is being switched off (CPU, 
HDDs and so on)


or

b) suspend to disk, which means that the whole content of the RAM is 
being written on your HDD and after that your computer is being shut 
down entirely?




Re: [gentoo-user] Hibernation doesn't work

2010-11-15 Thread J. Roeleveld
On Monday 15 November 2010 07:11:14 Benyamin Dvoskin wrote:
 Hi ,
 
 I've been trying to configure hibernation to work on my netbook , and
 for some reason it doesnt work
 when I go to hibernate , and then power up again , it starts as if from
 scratch
 
 what can i check ?
 what is the right way to configure it ?

I'm trying to get the same working on mine, not had much time to look into it 
myself yet.

Do you get any messages in your logs?

--
Joost



Re: [gentoo-user] Hibernation doesn't work

2010-11-15 Thread J. Roeleveld
On Monday 15 November 2010 09:27:09 J. Roeleveld wrote:
 On Monday 15 November 2010 07:11:14 Benyamin Dvoskin wrote:
  Hi ,
  
  I've been trying to configure hibernation to work on my netbook , and
  for some reason it doesnt work
  when I go to hibernate , and then power up again , it starts as if from
  scratch
  
  what can i check ?
  what is the right way to configure it ?
 
 I'm trying to get the same working on mine, not had much time to look into
 it myself yet.
 
 Do you get any messages in your logs?
 
 --
 Joost

Also, the following might help:
http://www.informit.com/articles/article.aspx?p=1565700

I've only just started going through it, so not sure how usefull it really is, 
but it might give some pointers.

--
Joost



Re: [gentoo-user] Hibernation doesn't work

2010-11-15 Thread Fatih Tümen
On Mon, Nov 15, 2010 at 08:11, Benyamin Dvoskin
benyamin.dvos...@gmail.com wrote:
 Hi ,

 I've been trying to configure hibernation to work on my netbook , and
 for some reason it doesnt work
 when I go to hibernate , and then power up again , it starts as if from 
 scratch

 what can i check ?
 what is the right way to configure it ?

 Thanks
 Benny



Did you remember to add resume=/dev/swap partition to which you
hibernated  to kernel line in grub.conf?

--
   Fatih



Re: [gentoo-user] Hibernation doesn't work

2010-11-15 Thread Iain Buchanan
On Mon, 2010-11-15 at 08:11 +0200, Benyamin Dvoskin wrote:
 Hi ,
 
 I've been trying to configure hibernation to work on my netbook , and
 for some reason it doesnt work
 when I go to hibernate , and then power up again , it starts as if from 
 scratch
 
 what can i check ?
 what is the right way to configure it ?


what hibernate? vanilla? tuxonice? I assume disk but you could also be
talking about ram...

it can all be managed by (and I highly recommend) using
hibernate-script.  It will handle blacklisted modules, starting/stopping
services, filesystems, and more!

-- 
Iain Buchanan iaindb at netspace dot net dot au

One learns to itch where one can scratch.
-- Ernest Bramah




Re: [gentoo-user] hibernation and various programs.

2006-12-07 Thread Xamindar
Thomas Rösner wrote:
 Xamindar wrote:
 Richard Fish wrote:
  
 On 12/6/06, Xamindar [EMAIL PROTECTED] wrote:

 I have hibernation set up on my laptop and am just wondering if there
 are any programs that are unsafe to have running when hibernating. 
 One
 of the main ones im wondering about would be vmware.  Can I hibernate
 while I have windows xp running in vmware and still have it exactly
 how
 I left it when I power back on?  I will probably try it soon anyway
 but
 just wondering if anyone else out there has more experience.
   
 I have done this, but end up rebooting the vmware session every time I
 try, because I move around to different networks and the networking
 between linux and XP gets confused.  So generally I'd recommend
 suspending the virtual machine with vmware's suspend function first,
 and then hibernate.
 
 You are right, it kills the vmware machine on hibernate.  I just tried
 it.  Oh well, at least it doesn't freeze.  I'll try that vmware suspend
 function.
   

 vmware uses Alsa, no? I see no way you can keep sound apps running if
 you have to unload the alsa module before hibernating.

 Regards,
T.
hmm, maybe that is it.  I'll try not unloading the alsa drivers and see
if it still crashes.  Do most sound drivers resume just fine?  I think
with mine the sound will still work on a resume and will only NOT work
if I was playing music while I hibernated.  So I just set it to unload
them every time to be safe.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] hibernation and various programs.

2006-12-07 Thread Richard Fish

On 12/7/06, Xamindar [EMAIL PROTECTED] wrote:

Dang this is stupid.  You are right, vmware stays up if I hibernate
without restarting alsasound.  But for me I have no sound when I start
up again.  Oh well.


You could disconnect vmware from the sound device while the virtual
machine is still running, which should allow you to restart alsasound
without it killing vmware.

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] hibernation and various programs.

2006-12-06 Thread Michael Crute

On 12/6/06, Xamindar [EMAIL PROTECTED] wrote:

I have hibernation set up on my laptop and am just wondering if there
are any programs that are unsafe to have running when hibernating.  One
of the main ones im wondering about would be vmware.  Can I hibernate
while I have windows xp running in vmware and still have it exactly how
I left it when I power back on?  I will probably try it soon anyway but
just wondering if anyone else out there has more experience.

Also, I notice that my cpu governors and being able to change the clock
speed of the cpu no longer function once I resume from suspend.

One other thing is that any programs that use the sound device are
killed when I hibernate (because hibernate is set to restart alsasound
or else sound doesn't work any more)any way to stop that from
happening?


I have had problems with Firefox 2 crashing every time I resume, it
spouts some nonsense about gnome-vfs and dies. I have also on occasion
not been able to enter my password into xscreensaver after a reboot,
for that Ctrl+Alt+F1 and login then kill xscreensaver works without
harming anything else. HTH.

-Mike

--

Michael E. Crute
http://mike.crute.org

God put me on this earth to accomplish a certain number of things.
Right now I am so far behind that I will never die. --Bill Watterson
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] hibernation and various programs.

2006-12-06 Thread Xamindar
Michael Crute wrote:
 On 12/6/06, Xamindar [EMAIL PROTECTED] wrote:
 I have hibernation set up on my laptop and am just wondering if there
 are any programs that are unsafe to have running when hibernating.  One
 of the main ones im wondering about would be vmware.  Can I hibernate
 while I have windows xp running in vmware and still have it exactly how
 I left it when I power back on?  I will probably try it soon anyway but
 just wondering if anyone else out there has more experience.

 Also, I notice that my cpu governors and being able to change the clock
 speed of the cpu no longer function once I resume from suspend.

 One other thing is that any programs that use the sound device are
 killed when I hibernate (because hibernate is set to restart alsasound
 or else sound doesn't work any more)any way to stop that from
 happening?

 I have had problems with Firefox 2 crashing every time I resume, it
 spouts some nonsense about gnome-vfs and dies. I have also on occasion
 not been able to enter my password into xscreensaver after a reboot,
 for that Ctrl+Alt+F1 and login then kill xscreensaver works without
 harming anything else. HTH.

 -Mike

Yeah, I have those same problems.  I noticed though that xscreensaver
runs extremely slow on resume and I can't enter a password.  If I wait
sometimes it recovers but most of the time  just do what you do and kill it.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] hibernation and various programs.

2006-12-06 Thread Xamindar
Richard Fish wrote:
 On 12/6/06, Xamindar [EMAIL PROTECTED] wrote:
 I have hibernation set up on my laptop and am just wondering if there
 are any programs that are unsafe to have running when hibernating.  One
 of the main ones im wondering about would be vmware.  Can I hibernate
 while I have windows xp running in vmware and still have it exactly how
 I left it when I power back on?  I will probably try it soon anyway but
 just wondering if anyone else out there has more experience.

 I have done this, but end up rebooting the vmware session every time I
 try, because I move around to different networks and the networking
 between linux and XP gets confused.  So generally I'd recommend
 suspending the virtual machine with vmware's suspend function first,
 and then hibernate.
You are right, it kills the vmware machine on hibernate.  I just tried
it.  Oh well, at least it doesn't freeze.  I'll try that vmware suspend
function.

 Also, I notice that my cpu governors and being able to change the clock
 speed of the cpu no longer function once I resume from suspend.

 One other thing is that any programs that use the sound device are
 killed when I hibernate (because hibernate is set to restart alsasound
 or else sound doesn't work any more)any way to stop that from
 happening?

 Are you using the alsa drivers from the kernel, or the alsa-drivers
 package?  And which sound driver?
Alsa drivers from the kernel.
snd_hda_intel 
snd_hda_codec


 I guess the 2 points of advice I can offer here are:

 1. If you are doing suspend-to-ram, do *not* unload any hardware
 drivers.  A lot of hardware expects the OS to preserve state through
 STR, and that is really only possible if the drivers remain in memory.
I don't, suspend to ram works great.

 2. If you are doing suspend-to-disk, it should be possible to
 unload/reload virtually any modules, such as acpi.  This is because
 the BIOS is executed and is responsible for setting the initial
 hardware states.

 -Richard
With hibernate I am still working on the acpi stuff.  I tried having it
unload the cpu governor modules but it says they are in use when I try
to hibernate.  Cpu sticking on maximum after a resume from hibernation
is really annoying.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] hibernation and various programs.

2006-12-06 Thread Iain Buchanan
On Wed, 2006-12-06 at 15:15 -0800, Xamindar wrote:
 Richard Fish wrote:
  On 12/6/06, Xamindar [EMAIL PROTECTED] wrote:
  I have hibernation set up on my laptop and am just wondering if there
  are any programs that are unsafe to have running when hibernating.  One
  of the main ones im wondering about would be vmware.  Can I hibernate
  while I have windows xp running in vmware and still have it exactly how
  I left it when I power back on?  I will probably try it soon anyway but
  just wondering if anyone else out there has more experience.
 
  I have done this, but end up rebooting the vmware session every time I
  try, because I move around to different networks and the networking
  between linux and XP gets confused.  So generally I'd recommend
  suspending the virtual machine with vmware's suspend function first,
  and then hibernate.

 You are right, it kills the vmware machine on hibernate.  I just tried
 it.  Oh well, at least it doesn't freeze.  I'll try that vmware suspend
 function.

I am able to hibernate while vmware is running, and when I resume,
vmware works just as before!

Not much help for you, but at least you know it _can_ work.

cya,
-- 
Iain Buchanan iaindb at netspace dot net dot au

If bankers can count, how come they have eight windows and only four tellers?

-- 
gentoo-user@gentoo.org mailing list