You are not logged in.

#1 2010-05-19 08:05:40

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 907

laptop-mode doesn't work

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      = 254

But 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=2

Is there something wrong in my configuration? Maybe CONTROL_HD_POWERMGMT="auto" is the problem?
Thanks

Offline

#2 2010-05-19 18:36:30

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: laptop-mode doesn't work

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

#3 2010-05-19 20:27:44

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 907

Re: laptop-mode doesn't work

demian wrote:

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

#4 2010-05-20 01:20:38

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: laptop-mode doesn't work

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

#5 2010-05-20 06:45:08

snack
Member
From: Italy
Registered: 2009-01-13
Posts: 907

Re: laptop-mode doesn't work

ngoonee wrote:

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-profile

Edit: 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

#6 2012-09-27 14:10:51

rggjan
Member
Registered: 2007-01-06
Posts: 69

Re: laptop-mode doesn't work

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

#7 2012-09-27 14:36:03

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: laptop-mode doesn't work

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

Board footer

Powered by FluxBB