updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acpi-eeepc-generic / acpi-eeepc-generic.conf
blob54f2f719b8081e1e0a68f8abfb59904f33e01db1
2 # Configuration file for EeePC ACPI utilities
4 # Please edit to your liking!!!
6 # http://code.google.com/p/acpi-eeepc-generic/
7 # http://aur.archlinux.org/packages.php?ID=23318
9 # Copyright 2009 Nicolas Bigaouette
10 # This file is part of acpi-eeepc-generic.
12 # acpi-eeepc-generic is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation, either version 3 of the License, or
15 # (at your option) any later version.
17 # acpi-eeepc-generic is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with acpi-eeepc-generic.  If not, see <http://www.gnu.org/licenses/>.
25 #################################################################
27 # Put your username in "XUSER". It _is_ important.
29 # Some defaults are defined, but
30 # they might not work on your system. For example, the task manager
31 # used is "lxtask", which is part of the LXDE desktop environment.
32 # You can install it with "pacman -S lxtask". You can use
33 # something else if you want, just be sure to edit the appropriate
34 # variable.
36 #################################################################
37 # Format:
38 # Format of the settings is as follow:
39 #   VARIABLE_NAME=("command number 1" "command number 2" "etc.")
41 #################################################################
42 # Note that:
43 #   -Commands with spaces _need_ to be double-quoted
44 #   -You can put as many commands as you want, as in the previous example
45 #   -Some defaults are provided which might not work on your
46 #    system. Please edit as your liking. Look at
47 #    COMMANDS_WIFI_POST_UP for example. It uses by
48 #    default "wicd" for for network management. It is killed and
49 #    re-run to save battery. If you don't use wicd, please remove
50 #    it from the commands to run!!!
51 #   -All commands are executed as root. To execute a command as
52 #    yourself (not root), put @ in front of the command. This allow
53 #    graphical applications to work.
54 #   -If a key is not working, uncomment KEY_SHOW. It will show
55 #    you the code of the key you pressed. Then report it to me
56 #    with your model number.
57 #   -Change your wifi module. By default it uses "rt2860sta", which
58 #    is the one used in the 901/1000*.
59 #   -You can choose between different OSD:
60 #       libnotify: by default (GTK), you need "notification-daemon"
61 #       knotify: OSD used by KDE, you need "kdebase"
62 #       dzen: Small OSD, you need "dzen2"
63 #       NONE: You guessed it... none :)
65 #################################################################
66 # Different helper script you can use:
68 #   Rotate the screen
69 #       /etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh
70 #   Suspend to ram
71 #       /etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh
72 #   Toggle bluetooth on and off
73 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh
74 #   Toggle between different monitors
75 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh
76 #   Toggle a suspension lock on and off
77 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-lock-suspend.sh
78 #   Toggle card reader on and off
79 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-cardr.sh
80 #   Change between supported screen resolutions
81 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh
82 #   Enable or disable the touchpad (needs SHM)
83 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh
84 #   Toggle webcam on and off
85 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-webcam.sh
86 #   Toggle wifi on and off
87 #       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh
89 #################################################################
90 # Different hardware states can be saved and restored when needed.
91 # To restore at boot, just add "eeepc-restore" to your DAEMONS
92 # array in /etc/rc.conf
93 #################################################################
95 ### Fallback user to be used for X session if autodetection fails
96 XUSER=
98 ### Choose what kind of notification you want. libnotify is the
99 ### default, but can disable it with NONE.
100 NOTIFY="libnotify"  # Gnome, XFCE, GTK
101 #NOTIFY="kdialog"   # KDE, QT
102 #NOTIFY="dzen"      # dwm, wmii, xmonad or any other
103 #NOTIFY="naughty"   # Awesome window manager
104 #NOTIFY=NONE
105 NOTIFY_DURATION="2000" # Duration, in ms, of the OSD
107 ### Show the ACPI key event
108 #KEY_SHOW="1"
110 ### Some scripts needs to be run as root. Specify how to gain priviledges
111 #SUDO="sudo"
112 #SUDO="kdesu -i eee"
113 SUDO="gksu" # Append "--sudo-mode" to use sudo instead of su
115 #################################################################
116 ### Drivers used by this Eee. Most used are "rt2860sta", "ath9k"
117 ### and "iwlagn". For Madwifi, you can try this exact list:
118 ###     "wlan_tkip" "wlan_ccmp" "ath_pci" "ath_rate_sample" "ath_hal" "wlan_scan_sta" "wlan"
119 WIFI_DRIVERS=("rt2860sta")
120 BLUETOOTH_DRIVERS=("bluetooth")
121 CAMERA_DRIVERS=("uvcvideo")
122 # Let acpi-eeepc-generic load/unload modules?
123 #DRIVERS_LOAD="no"      # default: yes
124 #DRIVERS_UNLOAD="no"    # default: yes
126 #################################################################
127 ### Volume options
128 ALSA_VOLUME_MIXER=("Master") # Mixer(s) to change volume
130 #################################################################
131 ### Defined commands on specific key press
132 ### Please edit to what you want!!!
133 ### Some defaults are provided, but they might not work on your
134 ### system if you don't have the utility installed.
136 COMMANDS_POWER_BUTTON=("/sbin/shutdown -t3 -h now")
137 # Users of LXDE might consider the following:
138 #COMMANDS_POWER_BUTTON=("@_LXSESSION_PID=`pidof lxsession` lxde-logout")
139 # See http://code.google.com/p/acpi-eeepc-generic/issues/detail?id=26
140 # and http://wiki.archlinux.org/index.php/LXDE#Shutdown_and_Reboot_from_LXDE
142 # These are the 4 silver buttons, located above the Fn+F2 to
143 # Fn+F6 on certain models and the Fn+Spacebar. The first just
144 # shutdown your screen to save power. The second toggle the touchpad on and off.
145 # Note the "@" in from of the two user button commands: because
146 # of this, theese commands will be executed as yourself and not root.
147 # The User1, User2 & User3 (when available) are executed as your username!!!
148 COMMANDS_BUTTON_BLANK=("xset dpms force off")
149 COMMANDS_BUTTON_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
150 COMMANDS_BUTTON_USER1=("@terminal")
151 COMMANDS_BUTTON_USER2=("@pcmanfm --no-desktop")
153 COMMANDS_SHE_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-she.sh")
155 COMMANDS_SLEEP=("/etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh")
156 # On some models, calling the wifi toggle script can prevent the card from
157 # being re-enabled. If you have that problem, just don't call the script and
158 # let the BIOS dis/enable the card.
159 # See http://wiki.github.com/nbigaouette/acpi-eeepc-generic/wireless
160 COMMANDS_WIFI_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh")
161 COMMANDS_WIFI_UP=()
162 COMMANDS_WIFI_DOWN=()
163 COMMANDS_WIFI_PRE_UP=()
164 #COMMANDS_WIFI_POST_UP=("/etc/rc.d/wicd start" "@wicd-client")
165 #COMMANDS_WIFI_PRE_DOWN=("pkill wicd-client" "/etc/rc.d/wicd stop" "pkill wpa_supplicant" "pkill dhcpcd")
166 COMMANDS_WIFI_POST_UP=()
167 COMMANDS_WIFI_PRE_DOWN=()
168 COMMANDS_WIFI_POST_DOWN=()
169 COMMANDS_BLUETOOTH_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh")
170 COMMANDS_BLUETOOTH_UP=()
171 COMMANDS_BLUETOOTH_DOWN=()
172 COMMANDS_BLUETOOTH_PRE_UP=()
173 COMMANDS_BLUETOOTH_POST_UP=()
174 COMMANDS_BLUETOOTH_PRE_DOWN=()
175 COMMANDS_BLUETOOTH_POST_DOWN=()
176 COMMANDS_TOUCHPAD_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
177 COMMANDS_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh")
178 COMMANDS_BRIGHTNESS_DOWN=() # Brightness down controled by BIOS
179 COMMANDS_BRIGHTNESS_UP=()   # Brightness up controled by BIOS
180 #COMMANDS_SCREEN_OFF=(/etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh)
181 COMMANDS_SCREEN_OFF=("${COMMANDS_BLUETOOTH_TOGGLE[@]}")
182 #COMMANDS_XRANDR_TOGGLE=("@lxrandr") # Run as user (not root)
183 COMMANDS_XRANDR_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh")
184 COMMANDS_XRANDR_TOGGLE_VGA="above"  # VGA is: right-of, left-of, above or below of LVDS
185 COMMANDS_TASKM=("@lxtask")
186 #COMMANDS_TASKM=("@xterm htop")
187 #COMMANDS_TASKM=("@ksysguard")
189 # If you use OSS, you can use http://ossvol.sourceforge.net/
190 COMMANDS_MUTE=("alsa_toggle_mute")
191 COMMANDS_VOLUME_DOWN=("alsa_set_volume 5%-")
192 COMMANDS_VOLUME_UP=("alsa_set_volume 5%+")
194 COMMANDS_AC_UNPLUGGED=()
195 COMMANDS_AC_PLUGGED=()
196 COMMANDS_ON_LID_CLOSE="yes"
197 COMMANDS_LID_CLOSE_ON_AC=("xset dpms force off")        # Just turn the backlight off
198 #COMMANDS_LID_CLOSE_ON_AC=("${COMMANDS_SLEEP[@]}")      # Do the same as COMMANDS_SLEEP
199 COMMANDS_LID_CLOSE_ON_BATTERY=("${COMMANDS_SLEEP[@]}")  # Do the same as COMMANDS_SLEEP
202 #################################################################
203 ### Check for these processes before suspending
204 SUSPEND_BLACKLISTED_PROCESSES=(vlc mplayer smplayer kmplayer skype dragon songbird-bin amarok)
205 ### Change the suspend commands.
206 SUSPEND2RAM_COMMANDS=("echo -n \"mem\" > /sys/power/state") # Simple suspend
207 #SUSPEND2RAM_COMMANDS=("pm-suspend") # Use pm-utils
208 #SUSPEND_QUIRKS_VTSWITCH="yes"
210 #################################################################
211 ### Display toggling options (excluding LVDS only, since you
212 ### need that one!). You can use any of these three, in any order.
213 #XRANDR_AVAILABLE_MODES=("clone" "vga" "both")
214 XRANDR_AVAILABLE_MODES=("vga" "both")
216 #################################################################
217 ### Restore feature: On boot, restore different hardware states
218 RESTORE_BLUETOOTH=0
219 RESTORE_BRIGHTNESS=0
220 RESTORE_TOUCHPAD=0
221 RESTORE_WIFI=0
223 #################################################################
224 ### If you mount /var/log in ram (to protect an SSD drive), you
225 ### might want to backup them on shutdown/suspend, just in case.
226 ### Add "logsbackup" to your DAEMONS array in /etc/rc.conf. You
227 ### can also set the folder where to send these compressed backups.
228 LOGSBACKUP_FOLDER="/logs_backup"
230 #################################################################
231 ### Please comment/remove the following, to prove that you edited
232 ### and read fully the file ;)
233 ### Else, you will get a 20 second warning.
234 EEEPC_CONF_DONE="no"