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



[gentoo-user] hibernation and various programs.

2006-12-06 Thread Xamindar
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? 

Thanks for any insight.
-- 
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