Added 'acpi-eeepc-generic' from [testing], with some changes suggested by Lazy...

Added 'acpi-eeepc-generic' from [testing], with some changes suggested by Lazy which improve both performance and system integration.
parent 047bdafb
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=acpi-eeepc-generic
pkgver=1.0rc3
pkgrel=3
pkgdesc="ACPI scripts for EeePC netbook computers (700, 701, 900, 900A, 901, 904HD, S101, 1000, 1000H, 1000HD, 1000HE, 1005HA, 1005-HA-H, 1005PE, 1005P, 1008HA, 1201N, T91MT)"
url="http://code.google.com/p/acpi-eeepc-generic/"
arch=(any)
license=(GPL3)
depends=(acpid xorg-server-utils dmidecode)
optdepends=(
"unclutter: Hide cursor when touchpad is disabled"
"kdebase-runtime: KDE's super-user privileges gaining"
"kdebase-kdialog: KDE's OSD"
"sudo: super-user privileges gaining"
"gksu: GNOME/GTK super-user privileges gaining"
)
install=$pkgname.install
backup=(etc/conf.d/acpi-eeepc-generic.conf)
conflicts=("acpi-eee" "acpi-eee900" "acpi-eee901" "acpi-eee1000" "acpi-eeepc900" "buttons-eee901" "e3acpi" "eee-control" "eee-fan")
source=(
"acpi-eeepc-1000-events.conf"
"acpi-eeepc-1000H-events.conf"
"acpi-eeepc-1000HD-events.conf"
"acpi-eeepc-1000HE-events.conf"
"acpi-eeepc-1005HA-events.conf"
"acpi-eeepc-1005-HA-H-events.conf"
"acpi-eeepc-1005PE-events.conf"
"acpi-eeepc-1005P-events.conf"
"acpi-eeepc-1008HA-events.conf"
"acpi-eeepc-1001P-events.conf"
"acpi-eeepc-1201N-events.conf"
"acpi-eeepc-700-events.conf"
"acpi-eeepc-701-events.conf"
"acpi-eeepc-900-events.conf"
"acpi-eeepc-900A-events.conf"
"acpi-eeepc-901-events.conf"
"acpi-eeepc-904HD-events.conf"
"acpi-eeepc-S101-events.conf"
"acpi-eeepc-T91MT-events.conf"
"acpi-eeepc-defaults-events.conf"
"acpi-eeepc-generic-events"
"acpi-eeepc-generic-functions.sh"
"acpi-eeepc-generic-handler.sh"
"acpi-eeepc-generic-logsbackup.rcd"
"acpi-eeepc-generic-restore.rcd"
"acpi-eeepc-generic-rotate-lvds.sh"
"acpi-eeepc-generic-suspend2ram.sh"
"acpi-eeepc-generic-toggle-bluetooth.sh"
"acpi-eeepc-generic-toggle-cardr.sh"
"acpi-eeepc-generic-toggle-displays.sh"
"acpi-eeepc-generic-toggle-lock-suspend.sh"
"acpi-eeepc-generic-toggle-resolution.sh"
"acpi-eeepc-generic-toggle-she.sh"
"acpi-eeepc-generic-toggle-touchpad.sh"
"acpi-eeepc-generic-toggle-webcam.sh"
"acpi-eeepc-generic-toggle-wifi.sh"
"acpi-eeepc-generic.conf"
"bluetooth.png"
"eee.png")
md5sums=('be2c9c078c781185356c775f7a785569'
'be2c9c078c781185356c775f7a785569'
'be2c9c078c781185356c775f7a785569'
'8978b064b40be086942116b0c7779de6'
'5ec8097c18e623d6ba2bff1f5a814885'
'be56ea98b9aa016098bdab9cbb110334'
'03c04440f12e3700592664320b9138a6'
'03c04440f12e3700592664320b9138a6'
'5ec8097c18e623d6ba2bff1f5a814885'
'5ec8097c18e623d6ba2bff1f5a814885'
'c75b95926e0ac397b0eea6e054ea9154'
'75016dde1f414772434c2c151b159c29'
'75016dde1f414772434c2c151b159c29'
'ae981fe86cd99b736ba740fffbfec3e0'
'a34fbf623a7d3e41cdf378924837dbbe'
'0e7c2e4cdcb2894d67cb62f526ae491d'
'533018701f2f67873396994ec364bb36'
'ce02758525ba114f2f0ab3d5c564d4f3'
'75bd2c42f01a6733ab5a2f7a0c15c70d'
'323c03e32baec7eca3f360a282490cda'
'cf253e386d7e743a3d25ec4165051521'
'9444ff2c95380825af9f8c0c3ea65566'
'0964588390647e98b475af0fb3f688de'
'06137998d8ef768763bb327f8716641e'
'7e26565bd36e2411ab998d6bcfe15f9e'
'13c38e64dab996301f8d724342178cfc'
'026238ef581ca0e844d3304c5df9433f'
'3927305c811cef63ae52e803a169d7b2'
'e956bc5d3761630f3c01b8b7df80f1d1'
'45738315630165b45470694a67c8121d'
'87a977662d92c640b21b97e1c705ad57'
'12c506d5a4ae304833f22f04b5d5c1f0'
'614647590c18eb4de123263bd7bceaa8'
'ca53efde37b4484ca05a5a9dddde423c'
'fb7539a926831b28050267e13394c831'
'39f88b5f21b1249a1da04e921deeec95'
'398fda7498fa76f7dd511dc6bfad4a9b'
'b6e3ad05a0d6c9ed87bd0859267e86d8'
'4d9af939dbd59121cd4bb191d340eb1c')
package() {
mkdir -p $pkgdir/{etc/{acpi/{eeepc/models,events},conf.d,rc.d},usr/share/{applications,pixmaps}}
# Install our own handler.
install -m0755 ${srcdir}/acpi-eeepc-generic-handler.sh ${pkgdir}/etc/acpi/acpi-eeepc-generic-handler.sh
install -m0755 ${srcdir}/acpi-eeepc-generic-functions.sh ${pkgdir}/etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
install -m0755 ${srcdir}/acpi-eeepc-generic-events ${pkgdir}/etc/acpi/events/acpi-eeepc-generic-events
install -m0644 ${srcdir}/acpi-eeepc-generic.conf ${pkgdir}/etc/conf.d/acpi-eeepc-generic.conf
# Install events configuration files for each model.
for f in ${srcdir}/acpi-eeepc-*-events.conf; do
install -m0644 $f ${pkgdir}/etc/acpi/eeepc/models
done
install -m0755 ${srcdir}/acpi-eeepc-generic-restore.rcd ${pkgdir}/etc/rc.d/eeepc-restore
install -m0755 ${srcdir}/acpi-eeepc-generic-logsbackup.rcd ${pkgdir}/etc/rc.d/logsbackup
# Helper scripts.
install -m0755 ${srcdir}/acpi-eeepc-generic-rotate-lvds.sh ${pkgdir}/etc/acpi/eeepc
install -m0755 ${srcdir}/acpi-eeepc-generic-suspend2ram.sh ${pkgdir}/etc/acpi/eeepc
for f in ${srcdir}/acpi-eeepc-generic-toggle-*.sh; do
install -m0755 $f ${pkgdir}/etc/acpi/eeepc
done
install -m0644 ${srcdir}/eee.png ${pkgdir}/usr/share/pixmaps
install -m0644 ${srcdir}/bluetooth.png ${pkgdir}/usr/share/pixmaps
}
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Silver buttons
KEY_SILVER1="0000001a" # Blank
KEY_SILVER2="0000001b" # Change resolution
KEY_SILVER3="0000001c" # User 1
KEY_SILVER4="0000001d" # User 2
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8=("00000030" "00000031" "00000032") # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
#################################################################
### Match previous to functions
EEEPC_BLANK=$KEY_SILVER1
EEEPC_RESOLUTION=$KEY_SILVER2
EEEPC_USER1=$KEY_SILVER3
EEEPC_USER2=$KEY_SILVER4
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE_0=${KEY_Fn_F8[0]}
EEEPC_XRANDR_TOGGLE_1=${KEY_Fn_F8[1]}
EEEPC_XRANDR_TOGGLE_2=${KEY_Fn_F8[2]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Silver buttons
KEY_SILVER1="0000001a" # Blank
KEY_SILVER2="0000001b" # Change resolution
KEY_SILVER3="0000001c" # User 1
KEY_SILVER4="0000001d" # User 2
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8=("00000030" "00000031" "00000032") # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
#################################################################
### Match previous to functions
EEEPC_BLANK=$KEY_SILVER1
EEEPC_RESOLUTION=$KEY_SILVER2
EEEPC_USER1=$KEY_SILVER3
EEEPC_USER2=$KEY_SILVER4
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE_0=${KEY_Fn_F8[0]}
EEEPC_XRANDR_TOGGLE_1=${KEY_Fn_F8[1]}
EEEPC_XRANDR_TOGGLE_2=${KEY_Fn_F8[2]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Silver buttons
KEY_SILVER1="0000001a" # Blank
KEY_SILVER2="0000001b" # Change resolution
KEY_SILVER3="0000001c" # User 1
KEY_SILVER4="0000001d" # User 2
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8=("00000030" "00000031" "00000032") # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
#################################################################
### Match previous to functions
EEEPC_BLANK=$KEY_SILVER1
EEEPC_RESOLUTION=$KEY_SILVER2
EEEPC_USER1=$KEY_SILVER3
EEEPC_USER2=$KEY_SILVER4
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE_0=${KEY_Fn_F8[0]}
EEEPC_XRANDR_TOGGLE_1=${KEY_Fn_F8[1]}
EEEPC_XRANDR_TOGGLE_2=${KEY_Fn_F8[2]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Silver buttons
KEY_SILVER1="0000001a" # Blank
KEY_SILVER2="0000001b" # Change resolution
KEY_SILVER3="0000001c" # User 1
KEY_SILVER4="0000001d" # User 2
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="00000038" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_BLANK=$KEY_SILVER1
EEEPC_RESOLUTION=$KEY_SILVER2
EEEPC_USER1=$KEY_SILVER3
EEEPC_USER2=$KEY_SILVER4
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_ROTATE=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="0000001b" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_RESOLUTION=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Silver buttons
KEY_SILVER1="0000001a" # Blank
KEY_SILVER2="0000001b" # Change resolution
KEY_SILVER3="0000001c" # User 1
KEY_SILVER4="0000001d" # User 2
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="00000038" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_BLANK=$KEY_SILVER1
EEEPC_RESOLUTION=$KEY_SILVER2
EEEPC_USER1=$KEY_SILVER3
EEEPC_USER2=$KEY_SILVER4
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="0000001b" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_RESOLUTION=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
KEY_SILVER1=NONE
KEY_SILVER2=NONE
KEY_SILVER3=NONE
KEY_SILVER4=NONE
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="00000038" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_ROTATE=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
KEY_SILVER1=NONE
KEY_SILVER2=NONE
KEY_SILVER3=NONE
KEY_SILVER4=NONE
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="00000038" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_ROTATE=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
KEY_Fn_F3="00000037" # Touchpad
KEY_Fn_F4="0000001b" # Resolution
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)
KEY_Fn_F8="00000030" # XRandR
KEY_Fn_F9="00000012" # Task Manager
KEY_Fn_F10="00000013" # Mute
KEY_Fn_F11="00000014" # Volume Down
KEY_Fn_F12="00000015" # Volume Up
KEY_Fn_Space="00000039" # Space Bar
#################################################################
### Match previous to functions
EEEPC_SHE_TOGGLE=$KEY_Fn_Space
EEEPC_SLEEP=$KEY_Fn_F1
EEEPC_WIFI_TOGGLE=${KEY_Fn_F2[0]}
EEEPC_TOUCHPAD_TOGGLE=$KEY_Fn_F3
EEEPC_RESOLUTION=$KEY_Fn_F4
EEEPC_BRIGHTNESS_UP=$KEY_Fn_F5
EEEPC_BRIGHTNESS_DOWN=$KEY_Fn_F6
EEEPC_SCREEN_OFF=$KEY_Fn_F7
EEEPC_XRANDR_TOGGLE=${KEY_Fn_F8[0]}
EEEPC_TASKMAN=$KEY_Fn_F9
EEEPC_VOL_MUTE=$KEY_Fn_F10
EEEPC_VOL_DOWN=$KEY_Fn_F11
EEEPC_VOL_UP=$KEY_Fn_F12
# Copyright 2009 Nicolas Bigaouette
# This file is part of acpi-eeepc-generic.
# http://code.google.com/p/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/>.
# This laptop has one silver button (touchpad), witch give same code as Fn+F9
# Fn+F? combination
KEY_Fn_F1="00000080" # Sleep
KEY_Fn_F2=("00000010" "00000011") # Wifi toggle
# Fn+F3 and Fn+F4 does not have functions
KEY_Fn_F5="0000002*" # Brightness down
KEY_Fn_F6="0000002*" # Brightness up
KEY_Fn_F7="00000016" # Cross Screen Icon (Blank)