You are not logged in.
Pages: 1
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
Do I need to install ACPID? I am not yet sure exactly how pm-utils and acpid interact.
Offline
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
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/0These variables should be fairly self-explanatory.
I think acpid is required for some functions, but likely not LCD brightness.
Thanks for the response. 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
I think you need acpid installed to detect the change in AC state on the fly.
Offline
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
Pages: 1