LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Enabling resume from hibernation in Slackware on a laptop with Ubuntu and Windows 8 (https://www.linuxquestions.org/questions/slackware-14/enabling-resume-from-hibernation-in-slackware-on-a-laptop-with-ubuntu-and-windows-8-a-4175460112/)

ecoslacker 04-30-2013 01:09 AM

Enabling resume from hibernation in Slackware on a laptop with Ubuntu and Windows 8
 
A few weeks ago I bought an Asus X401A laptop with Windows 8 and installed Ubuntu 12.10 (64 bits) on it as dual boot. When I get bored I installed Slackware 14.0 (64 bits) by following the instructions on http://docs.slackware.com/howtos:sla..._uefi_hardware (using a USB bootdisk).
At finish I created a elilo.conf an put this code on it:

Code:

# cat /mnt/sda1/EFI/slackware/elilo.conf
prompt
timeout=50
default=huge

image=bzImage
  label=huge
  read-only
  root=/dev/sda10

Reboot and the system was still using GRUB (so noob to know why), I think elilo is not being used but I'm not even sure of that. Just enter to Ubuntu and run "boot-repair" and now I'm using grub to select my OS at starting.

All works fine now but I want to enable resume from hibernation on Slackware and can't figure out how to do it. I used LILO before and I like it, and never use GRUB before.

So, do I need to configure GRUB or elilo?

I use Slackware as my main distribution and I need a little Windows at work, so I don't care about Ubuntu and grub if they need to be removed.

This is my EFI partition:

Code:

# tree /mnt/sda1/EFI/
/mnt/sda1/EFI/
|-- ASUS
|  |-- BCD.LOG
|  |-- BCD.LOG1
|  |-- BCD.LOG2
|  |-- X301A.BIN
|  |-- X301A1.BIN
|  |-- X401A.BIN
|  |-- X401A1.BIN
|  |-- X501A.BIN
|  |-- X501A1.BIN
|  |-- bcd
|  |-- bcd_backup
|  |-- en-US
|  |  |-- ASBOOT.tag
|  |  |-- ASBOOT.tag.LOG
|  |  |-- ASBOOT.tag.LOG1
|  |  `-- ASBOOT.tag.LOG2
|  |-- es-ES
|  |  |-- ASBOOT.tag
|  |  |-- ASBOOT.tag.LOG
|  |  |-- ASBOOT.tag.LOG1
|  |  `-- ASBOOT.tag.LOG2
|  |-- pt-BR
|  |  |-- ASBOOT.tag
|  |  |-- ASBOOT.tag.LOG
|  |  |-- ASBOOT.tag.LOG1
|  |  `-- ASBOOT.tag.LOG2
|  `-- pt-PT
|      |-- ASBOOT.tag
|      |-- ASBOOT.tag.LOG
|      |-- ASBOOT.tag.LOG1
|      `-- ASBOOT.tag.LOG2
|-- Boot
|  |-- bkpbootx64.efi
|  `-- bootx64.efi
|-- Microsoft
|  `-- Boot
|      |-- BCD
|      |-- BCD.LOG
|      |-- BCD.LOG1
|      |-- BCD.LOG2
|      |-- BOOTSTAT.DAT
|      |-- Fonts
|      |  |-- chs_boot.ttf
|      |  |-- cht_boot.ttf
|      |  |-- jpn_boot.ttf
|      |  |-- kor_boot.ttf
|      |  |-- malgun_boot.ttf
|      |  |-- malgunn_boot.ttf
|      |  |-- meiryo_boot.ttf
|      |  |-- meiryon_boot.ttf
|      |  |-- msjh_boot.ttf
|      |  |-- msjhn_boot.ttf
|      |  |-- msyh_boot.ttf
|      |  |-- msyhn_boot.ttf
|      |  |-- segmono_boot.ttf
|      |  |-- segoe_slboot.ttf
|      |  |-- segoen_slboot.ttf
|      |  `-- wgl4_boot.ttf
|      |-- Resources
|      |  |-- bootres.dll
|      |  |-- en-US
|      |  |  `-- bootres.dll.mui
|      |  |-- es-ES
|      |  |  `-- bootres.dll.mui
|      |  |-- pt-BR
|      |  |  `-- bootres.dll.mui
|      |  `-- pt-PT
|      |      `-- bootres.dll.mui
|      |-- bg-BG
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- bkpbootmgfw.efi
|      |-- boot.stl
|      |-- bootmgfw.efi
|      |-- bootmgr.efi
|      |-- bootx64.efi
|      |-- bootx64.efi.grb
|      |-- cs-CZ
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- da-DK
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- de-DE
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- el-GR
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- en-GB
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- en-US
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- es-ES
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- et-EE
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- fi-FI
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- fr-FR
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- hr-HR
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- hu-HU
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- it-IT
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- ja-JP
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- ko-KR
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- lt-LT
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- lv-LV
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- memtest.efi
|      |-- nb-NO
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- nl-NL
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- pl-PL
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- pt-BR
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- pt-PT
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- qps-ploc
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- ro-RO
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- ru-RU
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- sk-SK
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- sl-SI
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- sr-Latn-CS
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- sv-SE
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- tr-TR
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- uk-UA
|      |  |-- bootmgfw.efi.mui
|      |  `-- bootmgr.efi.mui
|      |-- zh-CN
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      |-- zh-HK
|      |  |-- bootmgfw.efi.mui
|      |  |-- bootmgr.efi.mui
|      |  `-- memtest.efi.mui
|      `-- zh-TW
|          |-- bootmgfw.efi.mui
|          |-- bootmgr.efi.mui
|          `-- memtest.efi.mui
|-- slackware
|  |-- BOOTX64.EFI
|  |-- bzImage
|  |-- elilo.conf
|  `-- initrd.img
`-- ubuntu
    `-- grubx64.efi

Thanks!

TobiSGD 04-30-2013 03:30 AM

Usually all you have to do is to add an option to the kernel command line in your boot-loader's config file:
Code:

resume=/path/to/your/swap-partition
Since you boot with Grub you have to add it in Grub's config file, but it will be overwritten the next time Ubuntu thinks it has to update the boot-loader configuration. It is possible to make that persistent with writing a script for Grub, but I have next to no knowledge about grub 2, so I would recommend to look into the documentation how to do that.

ecoslacker 05-04-2013 02:05 AM

I started in Ubuntu and edited this file:

Code:

sudo nano /etc/default/grub
Put this line:

Code:

GRUB_CMDLINE_LINUX="resume=/dev/sda9"
Where sda9 is my swap partition. Next run this:

Code:

sudo grub-mkconfig -o /boot/grub/grub.cfg
Edit /boot/grub/grub.cfg and put this in the slackware menu entry:

Code:

linux /boot/vmlinuz root=/dev/sda10 resume=/dev/sda9 quiet
It works and now I can resume from hibernation. sda10 is my Slackware root partition. I now this configuration is not permanent but I'm ok with that.


All times are GMT -5. The time now is 01:50 AM.