Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:slackware_admin:hibernation [2013/02/26 01:00 (UTC)]
yenn Corrected append-resume line + minor title correction
howtos:slackware_admin:hibernation [2014/01/10 05:51 (UTC)] (current)
aaditya /*Add method for hibernation using sudo*/
Line 98: Line 98:
 ''​xlock''​ is a command that locks your X session. Upon rebooting, you will be asked for the //root// password. The ''​sleep''​ command may be omitted, but I think it's safer to leave it, so you are sure that ''​xlock''​ has enough time to run properly. You don't have to use ''​exit''​ (or ''​logout''​) at the end of the command or the script, as it has no use concerning security. You may want to use it though to automatically close the xterm on resuming. ''​xlock''​ is a command that locks your X session. Upon rebooting, you will be asked for the //root// password. The ''​sleep''​ command may be omitted, but I think it's safer to leave it, so you are sure that ''​xlock''​ has enough time to run properly. You don't have to use ''​exit''​ (or ''​logout''​) at the end of the command or the script, as it has no use concerning security. You may want to use it though to automatically close the xterm on resuming.
 <note warning>​Security warning: this "​trick"​ will only lock the X system! If you are logged on as root in any of the other ttys, ''​xlock''​ can be killed, leaving full access to the X session.\\ For people using init3 (no automatic X startup), remember to also logout from the tty from where you launched the X system with ''​startx'':​ hit <​key>​CTRL+Z</​key>​ (to suspend the task), then ''​bg''​ (to resume the task in the background),​ then <​key>​CTRL+D</​key>​ (or ''​logout''​) to logout.</​note>​ <note warning>​Security warning: this "​trick"​ will only lock the X system! If you are logged on as root in any of the other ttys, ''​xlock''​ can be killed, leaving full access to the X session.\\ For people using init3 (no automatic X startup), remember to also logout from the tty from where you launched the X system with ''​startx'':​ hit <​key>​CTRL+Z</​key>​ (to suspend the task), then ''​bg''​ (to resume the task in the background),​ then <​key>​CTRL+D</​key>​ (or ''​logout''​) to logout.</​note>​
 +
 +=== An alternate ===
 +
 +If one is a sudoer, ie, can use sudo, then the following can also be used:
 +
 +<code bash>​sudo /​usr/​sbin/​pm-hibernate</​code>​
 +
  
 ===== Further reading ===== ===== Further reading =====

In Other Languages
QR Code
QR Code howtos:slackware_admin:hibernation (generated for current page)