2 # This is easy to automate. Do it!
3 sed -i 's/^[^#]/#&/' /etc/acpi/events/anything
5 # Make sure the right modules are loaded
6 modprobe eeepc_laptop &> /dev/null
7 modprobe rfkill &> /dev/null
9 /etc/rc.d/acpid restart
12 echo ">>> Note that the file /etc/acpi/handler.sh is useless now."
13 echo ">>> It is superseeded by /etc/acpi/acpi-eeepc-generic-handler.sh"
14 echo ">>> See /etc/conf.d/acpi-eeepc-generic.conf for configurable options."
16 echo ">>> To protect your SSD, you should"
17 echo ">>> mount /var/log as a ramfs in your /etc/fstab:"
18 echo " none /var/log tmpfs defaults,size=10M 0 0"
19 echo ">>> If you do, add 'logsbackup' to your DAEMONS array"
20 echo ">>> in /etc/rc.conf if you want to copy your logs"
21 echo ">>> from /var/log/ to /logs_backup/DATE on shutdown/suspend."
23 echo ">>> You will need to load these modules: 'rfkill' and 'eeepc_laptop'"
24 echo ">>> You can load them at boot in your /etc/rc.conf file:"
25 echo ">>> MODULES=(... rfkill eeepc_laptop ...)"
26 echo ">>> If you want bluetooth, load the module:"
27 echo ">>> MODULES=(... bluetooth ...)"
29 echo ">>> Please verify that your model is supported. Type:"
30 echo " sudo dmidecode -s system-product-name"
31 echo ">>> and verify that there is a file '/etc/acpi/eeepc/models/acpi-eeepc-MODEL-events.conf'"
32 echo ">>> where 'MODEL' is what the previous command return."
33 echo ">>> You can look up the file for your model and verify that it is"
36 echo ">>> If you found any bug or problem, if something is not working like"
37 echo ">>> it should or if your model is not (yet) supported or fully supported,"
38 echo ">>> please report it:"
39 echo ">>> on AUR: http://aur.archlinux.org/packages.php?ID=23318"
40 echo ">>> on the forum: http://bbs.archlinux.org/viewtopic.php?pid=484713"
44 . /etc/acpi/eeepc/acpi-eeepc-generic-functions.sh
53 /etc/rc.d/acpid restart
55 echo ">>> Note that the file /etc/acpi/eee-handler.sh is now the default."
56 sed -e 's/#event/event/g' -e 's/#action/action/g' -i /etc/acpi/events/anything