You are not logged in.

#1 2010-08-15 20:04:57

redskolnikow
Member
Registered: 2010-08-15
Posts: 8

HAL forces to set it's own APM [Solved]

Hello,
I have a problem with HAL on my two laptops: Dell E6400 and M4400.

When Hal is started it forces it's own APM settings. I set my own in laptop-mode-tools.
While using battery my APM is 1, using AC Adapter 192. It's very annoying and harmful to disk.

When I don't start Hal at boot or kill it by using /etc/rc.d/hal stop, my APM setting in laptop-mode-tools works great -> battery 192, AC 254.
I'm using KDE 4.4.5, kernel 2.6.43-ARCH. I tried hal + xfce and gnome with the same results.

Now I'm working with hal disabled, it's a little bit annoying because I can't use suspend to ram, storage automount and other power settings in KDE (like display dim), but APM looks good.

Thank you in advance,
Konrad.

Last edited by redskolnikow (2010-08-16 00:01:26)

Offline

#2 2010-08-15 23:10:25

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: HAL forces to set it's own APM [Solved]

hal calls to pm-utils.

you can configure the default values or directly disable harddrive management with:

touch /etc/pm/power.d/harddrive

Offline

#3 2010-08-15 23:32:36

Richer
Member
Registered: 2008-02-26
Posts: 19

Re: HAL forces to set it's own APM [Solved]

djgera give the answer, but you can control APM settings with pm-utils too if you want to change the defaults, and PowerDevil (kde) would use that.

Simple write something like this in /etc/pm/power.d/harddrive and make the file executable:

# Default values on battery
DRIVE_SPINDOWN_VALUE_BAT="${DRIVE_SPINDOWN_VALUE_BAT:-6}"
DRIVE_WRITE_CACHE_BAT="${DRIVE_WRITE_CACHE_BAT:-0}"
DRIVE_POWER_MGMT_BAT="${DRIVE_POWER_MGMT_BAT:-1}"
DRIVE_ACOUSTIC_MGMT_BAT="${DRIVE_ACOUSTIC_MGMT_BAT:-2ad1r54}"

Change the default value in the bold text above

Offline

#4 2010-08-16 00:00:00

redskolnikow
Member
Registered: 2010-08-15
Posts: 8

Re: HAL forces to set it's own APM [Solved]

Thanks djgera and Richer!
This is exactly what I needed!

Offline

Board footer

Powered by FluxBB