[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Laptop suspend to disk



> 
> I'm running Debian Slink on my newly found laptop. Is it possible to 
> enable the 'Suspend to Disk' option, and if it is, how should I go 
> about it. I guess that I would probably create a dedicated partition 
> the bios can use for suspend. I did not recieve any documentation 
> with my laptop (since I got it secondhand, or more like thirdhand), 
> but any pointers would be appreciated.
> 

Unfortunately you may not be able to.  Some laptops have a dos/windows based
sleep area generator.  Mine needs it at a specific spot on the hard drive I can
not find.  However mine still suspends properly without one.  Go fig (-:

> Also, how could I specify a runlevel from the lilo prompt. I want to 
> use different runlevels for a 'docked' setup (with net stuff, etc.) and 
> a 'undocked' setup (dummy net, etc.). Or are there a better way of 
> doing this??
> 

Best thing here is VERY early in the boot, come up with a way to check what run
level you are in, then place a script like this:

if docked then
	telinit "dock level"
elsif undocked then
	telinit "undock level"
else
	go boom
fi

telinit is passed the number for the desired level.


Reply to: