Di recente ho aggiornato l'hardware del mio laptop, sostituendo il disco magnetico con uno a stato solido (ne ho parlato qui).
Visto che, di solito, per allungare la vita al drive, non si utilizza più una partizione di swap, ho seguito anch'io questo consiglio, optando però per una soluzione di swapfile gestita dal kernel linux-ice (il vecchio TuxOnIce che fino a qualche anno fa veniva manutenuto da Nigel Cunningham e che ora viene portato avanti dalla community di Arch).
Seguendo le impostazioni contenute in questa guida ed anche in quest'altra, dopo aver creato il mio swapfile, sono riuscito a far funzionare l'ibernazione, almeno fino a quando ho utilizzato il disco magnetico.
Ora che l'ho sostituito con l'SSD, qualcosa non va...
Se lancio questo comando:
Codice: Seleziona tutto
hibernate -F /etc/hibernate/tuxonice.conf
Codice: Seleziona tutto
hibernate: TuxOnIce reported the following errors:
- TuxOnIce was aborted (see dmesg).
- Not enough swapspace available. Free some memory?
- Failed to initialise all modules.
Codice: Seleziona tutto
GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume_offset=46932"
GRUB_CMDLINE_LINUX="elevator=noop resume=file:UUID=89ea43f42a7e4245a863ce04264a3602:0x5baa0"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT="5"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
Burroughs.