You are not logged in.

#1 2009-01-03 16:53:13

bluu
Member
Registered: 2009-01-03
Posts: 3

Encrypted hard drive / laptop-mode and hibernate won't work

Hallo everybody,

I just set up a hard drive encryption according to http://wiki.archlinux.org/index.php/Sys … r_dm-crypt. Swap is encrypted with a static key just like root and home. I'm actually quite happy with this setup. There are only to annoying issuses:

laptop-mode refuses to run correctly

cat /proc/sys/vm/laptop_mode
2

auto-hibernation doesn't work ether. It doesn't seen to do anything when battery-state is critical.

from my laptop-mode.conf:

#
# Enable laptop mode when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1


#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1


#
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
# power? (ACPI-ONLY)
#
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1

I'm not sure of this part:

#
# The drives that laptop mode controls.
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
# wildcard, which will get you all your IDE and SCSI/SATA drives.
#
HD="/dev/[hs]d[bcdefgh] /dev/mapper/root /dev/mapper/home"


#
# The partitions (or mount points) that laptop mode controls.
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
# also specify mount points, e.g. "/mnt/data".
#
PARTITIONS="auto /dev/mapper/*"


#
# If this is enabled, laptop mode tools will assume that SCSI drives are
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
# to control them. Set this to 0 if you have /dev/sd devices and you want
# laptop mode tools to use the "sdparm" command to control them. 
#
ASSUME_SCSI_IS_SATA=1

The second less important problem is: Hibernation does'nt work. I use pm-utils. Pm-suspend works nicely. Pm-hibernate doesn't.

Both laptop-mode and pm-hibernate worked before I setup encryption. Configs are just the same as before, except for the /dev/mapper/ stuff I'm not sure of.

Thanks for any help.

Offline

Board footer

Powered by FluxBB