Seite 1 von 1
hibernate geht nicht in i3
Verfasst: Samstag 9. Juli 2016, 15:59
von leesrott
Hallo zusammen. Ich bin von xfce auf i3 umgestiegen und arbeite mich gerade ein. Leider funktioniert die hibernate Funktion nicht. Ich habe das mal über das Terminal mit
getestet. Der Bildschirm verschwimmt, aber der Rechner geht nicht in den Ruhezustand. Suspend und die anderen Funktionen funktionieren. Nur eben hibernate nicht. Würde mich über Anregungen freuen. Danke!
Re: hibernate geht nicht in i3
Verfasst: Samstag 9. Juli 2016, 21:17
von LuMI
Es sollte mit:
funktionieren.
MfG
Re: hibernate geht nicht in i3
Verfasst: Samstag 9. Juli 2016, 22:44
von leesrott
Ergebnis:
Code: Alles auswählen
~]$ systemctl hibernate
Failed to hibernate system via logind: Sleep verb not supported
Hat jemand noch eine Idee? Unter Xfce lief das eigentlich. Der Rechner inklusive Powerleuchte ging vollständig aus.
Re: hibernate geht nicht in i3
Verfasst: Sonntag 10. Juli 2016, 09:43
von LuMI
Re: hibernate geht nicht in i3
Verfasst: Sonntag 10. Juli 2016, 19:40
von leesrott
Hm ... okay. Also was ich bisher gemacht habe, ist Folgendes: In der Datei "/etc/default/grub" habe ich die Zeile
angegeben. "dev/sda2" ist meine Swap-Partition.
Danach habe ich im Terminal den Befehl
ausgeführt und den Rechner neu gestartet. Leider funktioniert der Befehl
immer noch nicht. Was mich wundert ist dabei, dass die Datei "boot/grub/grub.cfg" weiterhin leer ist. Da müsste ich doch eigentlich etwas verändert haben, oder nicht? Würde mich über weitere Hinweise freuen. Danke!
Re: hibernate geht nicht in i3
Verfasst: Sonntag 10. Juli 2016, 20:48
von LuMI
Schau ob in
/etc/mkinitcpio.conf in der
Zeile 52 resume dabei ist.
Code: Alles auswählen
HOOKS="base udev resume autodetect modconf block filesystems keyboard fsck"
MfG
Re: hibernate geht nicht in i3
Verfasst: Sonntag 10. Juli 2016, 20:51
von gosia
Hallo leesrott,
[quote="leesrott"]
Was mich wundert ist dabei, dass die Datei "boot/grub/grub.cfg" weiterhin leer ist. Da müsste ich doch eigentlich etwas verändert haben, oder nicht?
[/quote]
Blöde Nachfrage, aber "leer" heisst bei dir tatsächlich, daß die /boot/grub/grub.cfg eine Größe von 0 hat??? Das ist sehr verwirrend, weil der Befehl grub-mkconfig richtig war.
Ich kann nur vemuten: irgendein Schreibfehler, z.B. Komma statt Punkt bei grub.cfg? Passiert mir manchmal, weil meine Tastatur etwas abgenutzt ist. Oder wie in deinem Zitat, statt /boot/grub/grub.cfg doch nur boot/grub/grub.cfg eingegeben?
Sonst hilft nur Wiederholung, vielleicht erster Versuch ohne Option -o, also auf die stdout oder Umlenkung per pipe.
Ich wüsste jedenfalls nicht, warum
nicht in die grub.cfg schreiben sollte.
Viele Grüße gosia
Re: hibernate geht nicht in i3
Verfasst: Sonntag 10. Juli 2016, 22:12
von leesrott
Sorry, ich hatte mich versehen. "grub.cfg" war leer, weil ich die Datei nicht mit root-Rechten geöffnet hatte. "resume" habe ich in "mkinitcpio.conf" ergänzt, und "grub-mkconfig" noch einmal ausgeführt. Leider auch nicht mit dem gewünschten Ergebnis. Hier mal die beiden Inhalte.
grub.cfg
Code: Alles auswählen
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
set menu_color_normal=light-gray/black
set menu_color_highlight=green/black
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
else
search --no-floppy --fs-uuid --set=root 03288f31-f2ed-4214-a616-04787e3dba8c
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=de_DE
insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
else
search --no-floppy --fs-uuid --set=root 03288f31-f2ed-4214-a616-04787e3dba8c
fi
insmod png
background_image -m stretch /usr/share/grub/background.png
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-03288f31-f2ed-4214-a616-04787e3dba8c' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
else
search --no-floppy --fs-uuid --set=root 03288f31-f2ed-4214-a616-04787e3dba8c
fi
echo 'Linux 4.4.13-1-MANJARO x64 wird geladen …'
linux /boot/vmlinuz-4.4-x86_64 root=UUID=03288f31-f2ed-4214-a616-04787e3dba8c rw resume=UUID=73138653-931d-4831-b00f-617d653953f5 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64.img
}
submenu 'Erweiterte Optionen für Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-03288f31-f2ed-4214-a616-04787e3dba8c' {
menuentry 'Manjaro Linux (Kernel: 4.4.13-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-1-MANJARO x64-advanced-03288f31-f2ed-4214-a616-04787e3dba8c' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
else
search --no-floppy --fs-uuid --set=root 03288f31-f2ed-4214-a616-04787e3dba8c
fi
echo 'Linux 4.4.13-1-MANJARO x64 wird geladen …'
linux /boot/vmlinuz-4.4-x86_64 root=UUID=03288f31-f2ed-4214-a616-04787e3dba8c rw resume=UUID=73138653-931d-4831-b00f-617d653953f5 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64.img
}
menuentry 'Manjaro Linux (Kernel: 4.4.13-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-1-MANJARO x64-fallback-03288f31-f2ed-4214-a616-04787e3dba8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
else
search --no-floppy --fs-uuid --set=root 03288f31-f2ed-4214-a616-04787e3dba8c
fi
echo 'Linux 4.4.13-1-MANJARO x64 wird geladen …'
linux /boot/vmlinuz-4.4-x86_64 root=UUID=03288f31-f2ed-4214-a616-04787e3dba8c rw resume=UUID=73138653-931d-4831-b00f-617d653953f5 quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/intel-ucode.img /boot/initramfs-4.4-x86_64-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
search --fs-uuid --no-floppy --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 03288f31-f2ed-4214-a616-04787e3dba8c
linux16 /boot/memtest86+/memtest.bin
}
fi
### END /etc/grub.d/60_memtest86+ ###
Code: Alles auswählen
# 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=""
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency 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 any way. This is useful for config files.
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 block filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev resume autodetect modconf block keyboard keymap filesystems fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
Re: hibernate geht nicht in i3
Verfasst: Montag 11. Juli 2016, 12:51
von leesrott
Was ich noch vergessen hatte, war
Code: Alles auswählen
~]$ sudo mkinitcpio -p linux44
[sudo] Passwort für avohlen:
==> Building image from preset: /etc/mkinitcpio.d/linux44.preset: 'default'
-> -k /boot/vmlinuz-4.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.4-x86_64.img
==> Starting build: 4.4.13-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [resume]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.4-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux44.preset: 'fallback'
-> -k /boot/vmlinuz-4.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.4-x86_64-fallback.img -S autodetect
==> Starting build: 4.4.13-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [resume]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-4.4-x86_64-fallback.img
==> Image generation successful
resume scheint jetzt dabei zu sein. Leider immer noch nicht das gewünschte Ergebnis.
Code: Alles auswählen
~]$ systemctl hibernate
Failed to hibernate system via logind: Sleep verb not supported
Re: hibernate geht nicht in i3
Verfasst: Montag 11. Juli 2016, 17:32
von leesrott
Also was ich jetzt noch versucht habe. In der Datei "/etc/grub.d/10_linux" habe ich die Zeile
Code: Alles auswählen
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args}
in
Code: Alles auswählen
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args} resume=UUID="swapon --show=UUID | tail -1"
verändert und noch mal
und
durchgezogen. Leider ohne Erfolg. Langsam weiß ich nicht mehr weiter.

Re: hibernate geht nicht in i3
Verfasst: Montag 11. Juli 2016, 18:33
von Radaku
Schreib doch mal im "Offiziellen" Forum den oberon an, der sollte dir weiterhelfen können

Re: hibernate geht nicht in i3
Verfasst: Dienstag 12. Juli 2016, 00:21
von LuMI
Das Hibernate Problem ist nicht wirklich neu.
Probier mit Kernel 4.2
Die einen sagen es ist der Kernel, die anderen es ist systemd.
https://forum.ubuntuusers.de/post/8224733/
https://bbs.archlinux.org/viewtopic.php?id=196237
MfG