Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [code] Device Boot Start End Blocks Id System
- /dev/sda1 63 560732759 280366348+ 83 Linux
- /dev/sda2 560732760 594292544 16779892+ 83 Linux
- /dev/sda3 * 594292736 616675327 11191296 7 HPFS/NTFS/exFAT
- /dev/sda4 616675328 625141759 4233216 5 Extended
- /dev/sda5 616677376 625141759 4232192 82 Linux swap / Solaris
- menu.lst
- [/code]
- [code]# (0) Arch Linux
- title Arch pf
- root (hd0,1)
- kernel /boot/vmlinuz-linux-pf resume=swap:/dev/sda5 ro quiet loglevel=3 vga=361 sr0=ide-scsi pcie_ports=native root=/dev/sda2
- initrd /boot/initramfs-linux-pf.img[/code]
- /etc/hibernate/tuxonice.conf
- [code]# Example tuxonice.conf file.
- #
- # See hibernate.conf(5) for help on the configuration items.
- #
- # NOTE: TuxOnIce is an improved version of suspend-to-disk which currently
- # requires patching your kernel. For more information, see www.tuxonice.net
- #
- # If you do not wish to patch your kernel but still be able to suspend to
- # disk, see disk.conf instead.
- ### TuxOnIce
- UseTuxOnIce yes
- Reboot no
- EnableEscape yes
- DefaultConsoleLevel 1
- Compressor lzo
- Encryptor none
- ProcSetting extra_pages_allowance 7500
- ProcSetting no_multithreaded_io 1
- # ImageSizeLimit 200
- ## useful for initrd usage:
- SuspendDevice swap:/dev/sda5
- ## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
- # PowerdownMethod 5
- ## Any other /proc/software_suspend setting can be set like so:
- # ProcSetting expected_compression 50
- ## Or traditionally like this:
- # TuxOnIceAllSettings 0 0 2056 65535 5
- ## Or even from the results of hibernate --save-settings with this:
- # TuxOnIceAllSettingsFile /etc/hibernate/suspend-settings.conf
- ## For filewriter:
- # FilewriterLocation /suspend_file 1000
- # VerifyFilewriterResume2 yes
- ## Specify a userui like this:
- # ProcSetting userui_program /usr/local/sbin/tuxoniceui_text
- # Scale CPU to full speed to make sure we suspend as fast as possible.
- FullSpeedCPU yes
- Include common.conf
- [/code]
- /etc/hibernate/common.conf
- [code]# Configuration options common for suspending to disk or RAM.
- # Options are not case sensitive.
- #
- # See hibernate.conf(5) for help on the configuration items.
- ##############################################################################
- ### Some global settings
- ##############################################################################
- Verbosity 0
- LogFile /var/log/hibernate.log
- LogVerbosity 1
- # LogTimestamp yes
- # AlwaysForce yes
- # AlwaysKill yes
- # HibernateVT 15
- Distribution arch
- OnSuspend 00 sync; echo 3 > /proc/sys/vm/drop_caches
- # XDisplay :0
- ##############################################################################
- ### Scriptlets
- ### Scriptlets provide support for doing all sorts of things before and after
- ### suspending. The defaults settings here should work for most people, but
- ### you may wish to edit these to taste. Consult "hibernate -h" for help on
- ### the configuration settings.
- ##############################################################################
- ### bootsplash
- ## If you use bootsplash, also enabling SwitchToTextMode is recommended if
- ## you use X, otherwise you may end up with a garbled X display.
- # Bootsplash on
- # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
- SwitchToTextMode yes
- ### clock
- SaveClock restore-only
- #DirectIsa
- ### devices
- # IncompatibleDevices /dev/dsp /dev/video*
- ### diskcache
- # DisableWriteCacheOn /dev/hda
- ### fbsplash (enable SwitchToTextMode if you use this)
- # FBSplash on
- # FBSplashTheme tuxonice
- ### filesystems
- #Unmount /mnt/win
- # UnmountFSTypes smbfs nfs
- UnmountGraceTime 1
- #Mount /mnt/win
- ### grub
- # ChangeGrubMenu yes
- # GrubMenuFile /boot/grub/menu.lst
- # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
- # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
- # see http://bugs.debian.org/317479
- # RemountXFSBoot yes
- ### hardware_tweaks
- # IbmAcpi yes
- # RadeonTool yes
- # Runi915resolution yes
- # FullSpeedCPU yes
- ### lilo
- # EnsureLILOResumes yes
- ### lock (generally you only want one of the following options)
- ## For console you need vlock available.
- ## For x you need xscreensaver-command-command available.
- ## For gnome you need gnome-screensaver-command available.
- ## For kde you need dcop, kscreensaver available.
- ## For XAuto you need xautolock available.
- ## For Xtr you need xtrlock available.
- ## For Freedesktop (for example KDE4) you need dbus-send available
- # LockConsoleAs root
- # LockXScreenSaver yes
- # LockGnomeScreenSaver yes
- # LockFreedesktop
- # LockKDE yes
- # LockXLock yes
- # LockXAutoLock yes
- # LockXtrLock yes
- ### misclaunch
- # OnSuspend 20 echo "Good night!"
- # OnResume 20 echo "Good morning!"
- ### modules
- # UnloadModules snd_via82cxxx usb-ohci
- # UnloadAllModules yes
- #UnloadBlacklistedModules yes
- LoadModules auto
- # LoadModulesFromFile /etc/modules
- ### modules-gentoo
- # GentooModulesAutoload yes
- ### network
- # DownInterfaces eth0
- # UpInterfaces auto
- ### networkmanager
- # EnableNMReconnect yes
- ### pause_audio
- # MuteAudio yes
- # PauseAudio yes
- ### pcmcia
- # EjectCards yes
- ### programs
- # IncompatiblePrograms xmms
- ### services
- # RestartServices laptop_mode anacron
- # StopServices alsasound
- # StartServices aumix
- ### vbetool
- #EnableVbetool yes
- #RestoreVbeStateFrom /var/lib/vbetool/vbestate
- #VbetoolPost yes
- #RestoreVCSAData yes
- ### xhacks
- #SwitchToTextMode yes
- #UseDummyXServer yes
- #DummyXServerConfig xorg-dummy.conf
- ### xstatus
- ## This can be set to gnome, kde or x:
- ## For gnome you need zenity available.
- ## For kde you need dcop, kstart, kdialog available.
- ## For x you need to have xosd OR xmessage available.
- # XStatus gnome
- # XmessageDisable yes
- # XSuspendText Preparing to suspend...
- # XResumeText Resuming from suspend...
- ## When using XStatus x, and you have xosd installed:
- # XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
- ### xbacklight
- # BackLight yes
- ### gaim
- ## You need to have dbus, gaim_remote available.
- # LogoutGaim yes
- # GaimRestoreStatus yes
- # GaimLogoutMessage Hibernating
- # GaimLoginMessage Back from hibernation
- ### pidgin
- # LogoutPidgin yes
- # PidginRestoreStatus yes
- # PidginLogoutMessage Hibernating - bye!
- # PidginLoginMessage I'm back!
- ### SSH and PGP keys
- # AgentsClearGPG yes
- # AgentsClearSSH yes
- ### Virtualbox
- # SuspendVirtualbox yes
- [/code]
- /etc/mkinitcpio.conf
- [code]# vim:set ft=sh
- # MODULES
- # The following modules are loaded before any boot hooks are
- # run. Advanced users may wish to specify all system modules
- # in this array. For instance:
- # MODULES="piix ide_disk reiserfs"
- MODULES="lzo"
- # BINARIES
- # This setting includes, into the CPIO image, and additional
- # binaries a given user may wish. This is run first, so may
- # be used to override the actual binaries used in a given hook.
- # (Existing files are NOT overwritten is already added)
- # BINARIES are dependancy parsed, so you may safely ignore libraries
- BINARIES=""
- # FILES
- # This setting is similar to BINARIES above, however, files are added
- # as-is and are not parsed in anyway. This is useful for config files.
- # Some users may wish to include modprobe.conf for custom module options,
- # like so:
- # FILES="/etc/modprobe.conf"
- FILES=""
- # HOOKS
- # This is the most important setting in this file. The HOOKS control the
- # modules and scripts added to the image, and what happens at boot time.
- # Order is important, and it is recommended that you do not change the
- # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
- # help on a given hook.
- # 'base' is _required_ unless you know precisely what you are doing.
- # 'udev' is _required_ in order to automatically load modules
- # 'filesystems' is _required_ unless you specify your fs modules in MODULES
- # Examples:
- # This setup specifies all modules in the MODULES setting above.
- # No raid, lvm2, or encrypted root is needed.
- # HOOKS="base"
- #
- # This setup will autodetect all modules for your system and should
- # work as a sane default
- # HOOKS="base udev autodetect pata scsi sata filesystems"
- #
- # This is identical to the above, except the old ide subsystem is
- # used for IDE devices instead of the new pata subsystem.
- # HOOKS="base udev autodetect ide scsi sata filesystems"
- #
- # This setup will generate a 'full' image which supports most systems.
- # No autodetection is done.
- # HOOKS="base udev pata scsi sata usb filesystems"
- #
- # This setup assembles an pata raid array with an encrypted root FS.
- # Note: See 'mkinitcpio -H raid' for more information on raid devices.
- # HOOKS="base udev pata raid encrypt filesystems"
- #
- # This setup loads an lvm2 volume group on a usb device.
- # HOOKS="base udev usb lvm2 filesystems"
- HOOKS="base udev pata scsi sata resume filesystems"
- # COMPRESSION
- # Use this to compress the initramfs image. With kernels earlier than
- # 2.6.30, only gzip is supported, which is also the default. Newer kernels
- # support gzip, bzip2 and lzma.
- #COMPRESSION="gzip"
- #COMPRESSION="bzip2"
- #COMPRESSION="lzma"
- [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement