Page 1 sur 1
[SLiM] retour d'hibernation (résolu)
Publié : dim. 20 janv. 2013, 12:03
par NeanderMarcl
Salut,
J'ai installé SLiM, je n'ai pas de soucis lors de la connexion mais lorsque je veux mettre en hibernation mon système via la commande
Quand je veux sortir de l'hibernation, mon système se démarre .
J'ai activé le service SLiM
Et je n'arrive pas à vérouiller mon écran
Re: SLiM hibernation
Publié : dim. 20 janv. 2013, 12:11
par FoolEcho
Salut,
Format du titre, stp.
http://wiki.archlinux.fr/Forum#Format_du_titre
Pour ce qui est de l'hibernation, as-tu suivi ce qui est indiqué sur le wiki (la commande seule ne suffit pas, il faut HOOKS et resume au démarrage + refaire l'image... et avoir assez de swap, c'est-à-dire autant que la RAM):
http://wiki.archlinux.fr/Systemd#Syst.C3.A8me ?
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 12:38
par NeanderMarcl
En ce qui concerne le SWAP j'ai 6Gb et j'ai 3Gb de RAM.
J'ai des LV que j'ai ajouté au HOOKS.
Mais t'as raison j'ai oublié de spécifier
resume=/dev/mapartitionswap
Il faut refaire un
?
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 12:56
par benjarobin
Qu'est ce que tu as réellement mis comme option à ta ligne kernel ?
Peux tu donner la sortie de
Ainsi que la sortie de
blkid
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 13:55
par NeanderMarcl
Code : Tout sélectionner
/dev/sda1: UUID="7Srrh2-9Hlm-bkUj-ipnZ-metF-Q6Oj-KWKkX7" TYPE="LVM2_member"
/dev/sdb1: UUID="74ba6f6c-be9a-4016-a532-f6684099d1ed" TYPE="ext4"
/dev/sdb2: UUID="5bc61a9b-4a89-41b7-8811-4ed8f6f33793" TYPE="swap"
/dev/sdb3: UUID="kwgszK-qScR-rUHl-Cd3S-zGHn-ncO1-hOHrUr" TYPE="LVM2_member"
/dev/mapper/arch-root: UUID="21d7f1b0-187c-43a6-811b-f9b4a3198b01" TYPE="ext4"
/dev/mapper/arch-home: UUID="1232df82-b2d0-4451-8b15-e3208b178338" TYPE="ext4"
grep resume /var/log/Xorg.0.log
ne donne rien (même en root)
J'ai mis :
dans /etc/mkinitcpio.conf
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:01
par benjarobin
Le rapport avec /etc/mkinitcpio.conf, d'ailleurs tu l'as mis ou dans mkinitcpio.conf ? C'est une option à passer au kernel, et c'est Grub/syslinux qui lance le kernel, donc c'est la configuration du bootloader qu'il faut changer...
De plus je te recommande d'utiliser des UUID au lieu des noms avec le format /dev/sdXY
Peux tu donner la configuration de Grub/syslinux
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:06
par NeanderMarcl
Code : Tout sélectionner
# 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 autodetect modconf block lvm2 filesystems usbinput 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_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""
resume=/dev/sdb2
Code : Tout sélectionner
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0 # Set to 1 if you always want to display the boot: prompt
TIMEOUT 10
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
LABEL arch
MENU LABEL Arch Linux
LINUX /vmlinuz-linux
APPEND root=/dev/mapper/arch-root ro
lvmwait=/dev/sdb3,/dev/sda1 ro
INITRD /initramfs-linux.img
LABEL archfallback
MENU LABEL Arch Linux Fallback
LINUX /vmlinuz-linux
APPEND root=/dev/mapper/arch-root ro 3
INITRD /initramfs-linux-fallback.img
#LABEL windows
# MENU LABEL Windows
# COM32 chain.c32
# APPEND hd0 1
LABEL hdt
MENU LABEL HDT (Hardware Detection Tool)
COM32 hdt.c32
LABEL reboot
MENU LABEL Reboot
COM32 reboot.c32
LABEL off
MENU LABEL Power Off
COMBOOT poweroff.com
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:10
par benjarobin
Petite question (ce n'est pas méchant, mais c'est pour éviter que d'autre personne fasse cette même erreur) : Ou as tu vu qu'il fallait faire une telle chose, pourquoi dans ce fichier ? Il y a surement une explication...
Donc c'est cette ligne qu'il faut modifier
Ce qui donne
Code : Tout sélectionner
APPEND root=/dev/mapper/arch-root ro resume=/dev/disk/by-uuid/5bc61a9b-4a89-41b7-8811-4ed8f6f33793
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:13
par NeanderMarcl
D'accord, je test.
Merci
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:16
par benjarobin
Sinon que fait le
sur une autre ligne ?!
Il ne devrait pas être ici... Ce qui donne
Code : Tout sélectionner
APPEND root=/dev/mapper/arch-root lvmwait=/dev/disk/by-uuid/7Srrh2-9Hlm-bkUj-ipnZ-metF-Q6Oj-KWKkX7,/dev/disk/by-uuid/kwgszK-qScR-rUHl-Cd3S-zGHn-ncO1-hOHrUr ro resume=/dev/disk/by-uuid/5bc61a9b-4a89-41b7-8811-4ed8f6f33793
Re: [SLiM] reour d'hibernation
Publié : dim. 20 janv. 2013, 14:24
par FoolEcho
En complément, pour le HOOK resume dans mkinitcpio.conf ce n'est pas au bon endroit (la ligne
resume=
n'a strictement aucun sens ici), il faut par exemple (ça me semble pourtant clair dans le wiki

):
Code : Tout sélectionner
HOOKS="base udev autodetect resume modconf block lvm2 filesystems usbinput fsck"
Puis refaire l'image:
Re: [SLiM] retour d'hibernation
Publié : dim. 20 janv. 2013, 15:15
par NeanderMarcl
Toujours le même problème..
Re: [SLiM] retour d'hibernation
Publié : dim. 20 janv. 2013, 17:23
par Youpi
pour le verrouillage de l’écran, il y a le paquet slimlock, tu as essayé ?
Re: [SLiM] retour d'hibernation
Publié : dim. 20 janv. 2013, 17:35
par NeanderMarcl
heu... non
je vais tester, merci

Re: [SLiM] retour d'hibernation
Publié : dim. 20 janv. 2013, 18:12
par Youpi
une fois installer, tu le lances avec la commande :
ensuite, plus qu'à lier une touche avec cette commande, à faire selon ton environnement (obkey, openbox, ...)
Re: [SLiM] retour d'hibernation
Publié : sam. 02 févr. 2013, 09:29
par NeanderMarcl
J'ai essayer d'installer SLiMLOCk mais lors de l'execution de la commande
j'ai ce message
Re: [SLiM] retour d'hibernation
Publié : sam. 02 févr. 2013, 09:30
par NeanderMarcl
Cela ne fonctionnait pas car j'étais su !
Merci beaucoup !
Re: [SLiM] retour d'hibernation
Publié : sam. 02 févr. 2013, 11:01
par FoolEcho

(édition du titre du premier message, stp

)
Re: [SLiM] retour d'hibernation
Publié : sam. 02 févr. 2013, 15:00
par Youpi
ravi de t'avoir aidé
