You are not logged in.
Ok I am totally confused as to how to setup acpid and pm-utils for laptop-mode.conf
Requirements
I need brightness control based on Battery or AC and screen switchoff based on the same
I need auto suspend/ hibernate based on battery state
I need to auto suspend if my laptop lid is closed
Now when I see the conf files inside /etc/laptop-mode
it points to an hibernate file inside /usr/sbin/hibernate I do not have any such file in my system, I have pm-hibernate/pm-suspend
Also I have acpid installed, i did not put it in rc.conf since i have HAL there already, what changes do i have to make to acpid?
If i read wiki i am even more confused between acpid/powersaved/laptop-mode/pm-utils/cpufreq etc.
Is it possible for some one to explain what i need to do to achieve my needs?
Thanks
Acer Aspire V5-573P Antergos KDE
Offline
Hello.
Well, here is how I made my laptop-mode-tools to work.
The config file for the brightness is in /etc/laptop-mode/config.d/lcd-brightness.conf, and that is what I have in it:
CONTROL_BRIGHTNESS=1
BATT_BRIGHTNESS_COMMAND="echo 0"
LM_AC_BRIGHTNESS_COMMAND="echo 7"
NOLM_AC_BRIGHTNESS_COMMAND="echo 7"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VGA/LCD/brightness"
When I am on battery, my screen become dark, and when I am on DC, the screen is bright again.
And here is my /etc/laptop-mode/auto-hibernate.conf
ENABLE_AUTO_HIBERNATION=1
HIBERNATE_COMMAND=/usr/sbin/pm-hibernate
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=4
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
Everything is working as charm.
And about the lid. I am using a script that I found here. Just scroll down to "Suspend When Battery is Low ".
Hope that help.
Regards.
Offline
How did you find the levels of brightness to use? I mean the echo 7 stuff.
Also do you know how to find the bluetooth interface ?
Acer Aspire V5-573P Antergos KDE
Offline
the screen switching off and brightness change while in battery settings are lost after the system is recovered from a hibernation state, anyway to fix it?
Acer Aspire V5-573P Antergos KDE
Offline
Hi.
The levels for the brightness are in /proc/acpi/video/VGA/LCD/brightbnss. On the top of he file are all the possible levels, and above them is the current level. After you look at the file, you will see them. ( #cat /proc/acpi/video/VGA/LCD/brightness ).
I have no bluetooth, so sorry but I do not know how to find it.
I do not know about the lost settings after resume from hibernation too. Everything is working fine for me.
Regards.
Offline
So after you resume from hibernate, the screen brightness changes still happen?
Have you tried the DPMS setting? It also doesnt work after resuming from hibernation.
Last edited by venky80 (2008-06-24 18:56:43)
Acer Aspire V5-573P Antergos KDE
Offline
Well, I am not sure about the DPMS. If it work after resuming from hibernation. I can check, but after a day or so. I have an important data transfer on the run now, and I cannot stop my PC.
Offline