You are not logged in.
Pages: 1
Topic closed
Hi, I have laptop-mode installed on my laptop, and when I first set it up it worked smoothly. Yesterday I noticed that the power management (hdparm -B) doesn't work anymore. In fact, when unplugging the power supply it remains at the same value it has when on AC:
$ sudo hdparm -B /dev/sda
/dev/sda:
APM_level = 254But according to my /etc/laptop-mode/laptop-mode.conf it should become 1:
ENABLE_LAPTOP_MODE_TOOLS=1
VERBOSE_OUTPUT=0
LOG_TO_SYSLOG=1
DEBUG=0
ENABLE_LAPTOP_MODE_ON_BATTERY=1
ENABLE_LAPTOP_MODE_ON_AC=1
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
ENABLE_AUTO_MODULES=0
MINIMUM_BATTERY_CHARGE_PERCENT=10
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
HD="/dev/[hs]d[abcdefgh]"
PARTITIONS="auto /dev/mapper/*"
ASSUME_SCSI_IS_SATA=1
LM_BATT_MAX_LOST_WORK_SECONDS=600
LM_AC_MAX_LOST_WORK_SECONDS=120
CONTROL_READAHEAD=1
LM_READAHEAD=3072
NOLM_READAHEAD=128
CONTROL_NOATIME=0
USE_RELATIME=1
CONTROL_HD_IDLE_TIMEOUT=1
LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
CONTROL_HD_POWERMGMT="auto"
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254
CONTROL_HD_WRITECACHE=1
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=0
CONTROL_MOUNT_OPTIONS=1
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30
XFS_HZ=100
LM_SECONDS_BEFORE_SYNC=2Is there something wrong in my configuration? Maybe CONTROL_HD_POWERMGMT="auto" is the problem?
Thanks
Offline
Can you apply the setting manually? There are drives that don't support (all) power saving levels/mechanisms.
Also you might want to try 1 instead of auto at ctrlhdpwrmgmt.
no place like /home
github
Offline
Can you apply the setting manually? There are drives that don't support (all) power saving levels/mechanisms.
Also you might want to try 1 instead of auto at ctrlhdpwrmgmt.
Yes, if I type "sudo hdparm -B 254 /dev/sda" it works. I tried also with CONTROL_HD_POWERMGMT=1, but it still doesn't work. The strange thing is that it worked perfectly when I first set it up about one year ago, but sadly I have no idea when it got broken or why... By the way, my laptop is Sony Vaio VGN-SR21M/S.
Offline
Do you actually start laptop-mode in rc.conf?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Do you actually start laptop-mode in rc.conf?
Yes:
DAEMONS=(syslog-ng network rpcbind @nfs-common crond hal @alsa @cpufreq @laptop-mode @autofs @ntpd net-profileEdit: by the way, now it works on my i686 setup. I changed CONTROL_HD_POWERMGMT=1 and it works: plugging and unplugging AC correctly switches the HD power management parameter. But what I wrote in a previous reply should still be valid, since the same modiication in my x86_64 setup didn't change anything. Maybe I'm geting confused, so it's better I doublecheck x86_64 before going any further in this discussion.
Last edited by snack (2010-05-20 06:50:29)
Offline
I have the same problem... Since switching to systemd (I think), the powermode is not set anymore by the laptop-mode tools.
Doing it manually also works "sudo hdparm -B 254 /dev/sda"
Offline
Hi rggjan, please start a new thread. The circumstance for your issue are different than from 2 years ago. Forum Etiquette: Old Threads / Necro-Bumping, closing.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1
Topic closed