summarylogtreecommitdiffstats
path: root/acpi-eeepc-generic.conf
blob: eb07c640a28ea06675c7b4a8d50d1ee5e6a502cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
#
# Configuration file for EeePC ACPI utilities
#
# Please edit to your liking!!!
#
# http://code.google.com/p/acpi-eeepc-generic/
# http://aur.archlinux.org/packages.php?ID=23318
#
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
#
# acpi-eeepc-generic is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# acpi-eeepc-generic is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with acpi-eeepc-generic.  If not, see <http://www.gnu.org/licenses/>.
#
#################################################################
#
# Put your username in "XUSER". It _is_ important.
#
# Some defaults are defined, but
# they might not work on your system. For example, the task manager
# used is "lxtask", which is part of the LXDE desktop environment.
# You can install it with "pacman -S lxtask". You can use
# something else if you want, just be sure to edit the appropriate
# variable.
#
#################################################################
# Format:
# Format of the settings is as follow:
#   VARIABLE_NAME=("command number 1" "command number 2" "etc.")
#
#################################################################
# Note that:
#   -Commands with spaces _need_ to be double-quoted
#   -You can put as many commands as you want, as in the previous example
#   -Some defaults are provided which might not work on your
#    system. Please edit as your liking. Look at
#    COMMANDS_WIFI_POST_UP for example. It uses by
#    default "wicd" for for network management. It is killed and
#    re-run to save battery. If you don't use wicd, please remove
#    it from the commands to run!!!
#   -All commands are executed as root. To execute a command as
#    yourself (not root), put @ in front of the command. This allow
#    graphical applications to work.
#   -If a key is not working, uncomment KEY_SHOW. It will show
#    you the code of the key you pressed. Then report it to me
#    with your model number.
#   -Change your wifi module. By default it uses "rt2860sta", which
#    is the one used in the 901/1000*.
#   -You can choose between different OSD:
#       libnotify: by default (GTK), you need "notification-daemon"
#       knotify: OSD used by KDE, you need "kdebase"
#       dzen: Small OSD, you need "dzen2"
#       NONE: You guessed it... none :)
#
#################################################################
# Different helper script you can use:
#
#   Rotate the screen
#       /etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh
#   Suspend to ram
#       /etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh
#   Toggle bluetooth on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh
#   Toggle between different monitors
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh
#   Toggle a suspension lock on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-lock-suspend.sh
#   Toggle card reader on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-cardr.sh
#   Change between supported screen resolutions
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh
#   Enable or disable the touchpad (needs SHM)
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh
#   Toggle webcam on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-webcam.sh
#   Toggle wifi on and off
#       /etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh
#
#################################################################
# Different hardware states can be saved and restored when needed.
# To restore at boot, just add "eeepc-restore" to your DAEMONS
# array in /etc/rc.conf
#################################################################

### Fallback user to be used for X session if autodetection fails
XUSER=

### Choose what kind of notification you want. libnotify is the
### default, but can disable it with NONE.
NOTIFY="libnotify"  # Gnome, XFCE, GTK
#NOTIFY="kdialog"   # KDE, QT
#NOTIFY="dzen"      # dwm, wmii, xmonad or any other
#NOTIFY="naughty"   # Awesome window manager
#NOTIFY=NONE
NOTIFY_DURATION="2000" # Duration, in ms, of the OSD
# Uncomment to disable showing unknown keys
NOTIFY_IGNORE_UNKNOWN="yes"

### Show the ACPI key event
#KEY_SHOW="1"

### Some scripts needs to be run as root. Specify how to gain priviledges
#SUDO="sudo"
#SUDO="kdesu -i eee"
SUDO="gksu" # Append "--sudo-mode" to use sudo instead of su

#################################################################
### Drivers used by this Eee. Most used are "rt2860sta", "ath9k"
### and "iwlagn". For Madwifi, you can try this exact list:
###     "wlan_tkip" "wlan_ccmp" "ath_pci" "ath_rate_sample" "ath_hal" "wlan_scan_sta" "wlan"
WIFI_DRIVERS=("rt2860sta")
BLUETOOTH_DRIVERS=("bluetooth")
CAMERA_DRIVERS=("uvcvideo")
# Let acpi-eeepc-generic load/unload modules?
#DRIVERS_LOAD="no"      # default: yes
#DRIVERS_UNLOAD="no"    # default: yes

#################################################################
### Volume options
ALSA_VOLUME_MIXER=("Master") # Mixer(s) to change volume

#################################################################
### Defined commands on specific key press
### Please edit to what you want!!!
### Some defaults are provided, but they might not work on your
### system if you don't have the utility installed.

COMMANDS_POWER_BUTTON=("/sbin/shutdown -t3 -h now")
# Users of LXDE might consider the following:
#COMMANDS_POWER_BUTTON=("@_LXSESSION_PID=`pidof lxsession` lxde-logout")
# See http://code.google.com/p/acpi-eeepc-generic/issues/detail?id=26
# and http://wiki.archlinux.org/index.php/LXDE#Shutdown_and_Reboot_from_LXDE

# These are the 4 silver buttons, located above the Fn+F2 to
# Fn+F6 on certain models and the Fn+Spacebar. The first just
# shutdown your screen to save power. The second toggle the touchpad on and off.
# Note the "@" in from of the two user button commands: because
# of this, theese commands will be executed as yourself and not root.
# The User1, User2 & User3 (when available) are executed as your username!!!
COMMANDS_BUTTON_BLANK=("xset dpms force off")
COMMANDS_BUTTON_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
COMMANDS_BUTTON_USER1=("@terminal")
COMMANDS_BUTTON_USER2=("@pcmanfm --no-desktop")

COMMANDS_SHE_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-she.sh")

COMMANDS_SLEEP=("/etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh")
# On some models, calling the wifi toggle script can prevent the card from
# being re-enabled. If you have that problem, just don't call the script and
# let the BIOS dis/enable the card.
# See http://wiki.github.com/nbigaouette/acpi-eeepc-generic/wireless
COMMANDS_WIFI_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-wifi.sh")
COMMANDS_WIFI_UP=()
COMMANDS_WIFI_DOWN=()
COMMANDS_WIFI_PRE_UP=()
#COMMANDS_WIFI_POST_UP=("/etc/rc.d/wicd start" "@wicd-client")
#COMMANDS_WIFI_PRE_DOWN=("pkill wicd-client" "/etc/rc.d/wicd stop" "pkill wpa_supplicant" "pkill dhcpcd")
COMMANDS_WIFI_POST_UP=()
COMMANDS_WIFI_PRE_DOWN=()
COMMANDS_WIFI_POST_DOWN=()
COMMANDS_BLUETOOTH_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-bluetooth.sh")
COMMANDS_BLUETOOTH_UP=()
COMMANDS_BLUETOOTH_DOWN=()
COMMANDS_BLUETOOTH_PRE_UP=()
COMMANDS_BLUETOOTH_POST_UP=()
COMMANDS_BLUETOOTH_PRE_DOWN=()
COMMANDS_BLUETOOTH_POST_DOWN=()
COMMANDS_TOUCHPAD_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-touchpad.sh")
COMMANDS_RESOLUTION=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-resolution.sh")
COMMANDS_BRIGHTNESS_DOWN=() # Brightness down controled by BIOS
COMMANDS_BRIGHTNESS_UP=()   # Brightness up controled by BIOS
#COMMANDS_SCREEN_OFF=(/etc/acpi/eeepc/acpi-eeepc-generic-rotate-lvds.sh)
COMMANDS_SCREEN_OFF=("${COMMANDS_BLUETOOTH_TOGGLE[@]}")
#COMMANDS_XRANDR_TOGGLE=("@lxrandr") # Run as user (not root)
COMMANDS_XRANDR_TOGGLE=("/etc/acpi/eeepc/acpi-eeepc-generic-toggle-displays.sh")
COMMANDS_XRANDR_TOGGLE_VGA="above"  # VGA is: right-of, left-of, above or below of LVDS
COMMANDS_TASKM=("@lxtask")
#COMMANDS_TASKM=("@xterm htop")
#COMMANDS_TASKM=("@ksysguard")

# If you use OSS, you can use http://ossvol.sourceforge.net/
COMMANDS_MUTE=("alsa_toggle_mute")
COMMANDS_VOLUME_DOWN=("alsa_set_volume 5%-")
COMMANDS_VOLUME_UP=("alsa_set_volume 5%+")

COMMANDS_AC_UNPLUGGED=()
COMMANDS_AC_PLUGGED=()
COMMANDS_ON_LID_CLOSE="yes"
COMMANDS_LID_CLOSE_ON_AC=("xset dpms force off")        # Just turn the backlight off
#COMMANDS_LID_CLOSE_ON_AC=("${COMMANDS_SLEEP[@]}")      # Do the same as COMMANDS_SLEEP
COMMANDS_LID_CLOSE_ON_BATTERY=("${COMMANDS_SLEEP[@]}")  # Do the same as COMMANDS_SLEEP


#################################################################
### Check for these processes before suspending
SUSPEND_BLACKLISTED_PROCESSES=(vlc mplayer smplayer kmplayer skype dragon songbird-bin amarok)
### Change the suspend commands.
SUSPEND2RAM_COMMANDS=("echo -n \"mem\" > /sys/power/state") # Simple suspend
#SUSPEND2RAM_COMMANDS=("pm-suspend") # Use pm-utils
#SUSPEND_QUIRKS_VTSWITCH="yes"

#################################################################
### Display toggling options (excluding LVDS only, since you
### need that one!). You can use any of these three, in any order.
#XRANDR_AVAILABLE_MODES=("clone" "vga" "both")
XRANDR_AVAILABLE_MODES=("vga" "both")

#################################################################
### Restore feature: On boot, restore different hardware states
RESTORE_BLUETOOTH=0
RESTORE_BRIGHTNESS=0
RESTORE_TOUCHPAD=0
RESTORE_WIFI=0

#################################################################
### If you mount /var/log in ram (to protect an SSD drive), you
### might want to backup them on shutdown/suspend, just in case.
### Add "logsbackup" to your DAEMONS array in /etc/rc.conf. You
### can also set the folder where to send these compressed backups.
LOGSBACKUP_FOLDER="/logs_backup"

#################################################################
### Please comment/remove the following, to prove that you edited
### and read fully the file ;)
### Else, you will get a 20 second warning.
EEEPC_CONF_DONE="no"