You are not logged in.

#1 2009-01-28 20:39:13

fourier
Member
Registered: 2008-06-04
Posts: 10

[SOLVED]laptop-mode problems

I wanted to dim my LCD when the power was unplugged, so I modified the following file:

/etc/laptop-mode/conf.d/lcd-brightness.conf

When I unplugged my laptop, the screen was not dimmed.  But, when I issued the following command:

sudo laptop-mode

The screen dimmed as expected.  Also, I noticed that laptop-mode was not running previously because I got the following message after running sudo laptop-mode:

Laptop mode enabled, active

Instead of:

Laptop mode enabled, active [unchanged]

Anyone know what I must do to have laptop-mode run when I unplug my laptop?

Please note that my rc.conf has the following:

DAEMONS=(... laptop-mode ...)

Any help is appreciated.

Thanks!

Last edited by fourier (2009-01-29 03:33:38)

Offline

#2 2009-01-29 01:09:08

fourier
Member
Registered: 2008-06-04
Posts: 10

Re: [SOLVED]laptop-mode problems

Do I need to install ACPID?  I am not yet sure exactly how pm-utils and acpid interact.

Offline

#3 2009-01-29 02:30:39

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: [SOLVED]laptop-mode problems

In your /etc/laptop-mode/laptop-mode.conf, you need to specify when laptop-mode is enabled:

ENABLE_LAPTOP_MODE_ON_BATTERY=1/0
ENABLE_LAPTOP_MODE_ON_AC=1/0
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1/0

These variables should be fairly self-explanatory.

I think acpid is required for some functions, but likely not LCD brightness.

Last edited by pointone (2009-01-29 02:32:15)


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#4 2009-01-29 02:39:08

fourier
Member
Registered: 2008-06-04
Posts: 10

Re: [SOLVED]laptop-mode problems

pointone wrote:

In your /etc/laptop-mode/laptop-mode.conf, you need to specify when laptop-mode is enabled:

ENABLE_LAPTOP_MODE_ON_BATTERY=1/0
ENABLE_LAPTOP_MODE_ON_AC=1/0
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=1/0

These variables should be fairly self-explanatory.

I think acpid is required for some functions, but likely not LCD brightness.

Thanks for the response. smile  I already had ENABLE_LAPTOP_MODE_ON_BATTERY=1 set in laptop-mode.conf, but, the screen will not actually dim until I run "sudo laptop_mode" once I have unplugged the power cord.

Offline

#5 2009-01-29 03:03:26

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: [SOLVED]laptop-mode problems

I think you need acpid installed to detect the change in AC state on the fly.

Offline

#6 2009-01-29 03:32:15

fourier
Member
Registered: 2008-06-04
Posts: 10

Re: [SOLVED]laptop-mode problems

Wittfella wrote:

I think you need acpid installed to detect the change in AC state on the fly.

Yup, you are correct, ACPID is needed to detect the change in AC state on the fly.  Anyone have any thoughts on whether or not this should be added to the laptop TWiki page?

Thanks!

Offline

Board footer

Powered by FluxBB