User:Rhadamanthys

From Salix OS
Jump to: navigation, search

Contents

How to configure the function keys of your Notebook/Netbook

do it yourself

acpid

What is acpid?

When you run acpi_listen you can see all the acpi events received by acpid. The output can look like this

hotkey ASUS010:00 0000001d 00000013
hotkey ASUS010:00 0000001c 0000000d

button/zoom ZOOM 00000080 00000000
hotkey ASUS010:00 0000001b 00000004


Event rule


Handler

hotkey ASUS010:00 0000001d 00000013
$1     $2         $3       $4

button/zoom ZOOM 00000080 00000000
$1     $2   $3   $4       $5
 
#!/bin/sh
# Default acpi script that takes an entry for button,hotkey actions

IFS=${IFS}/
set $@

case "$1" in
    button)
        case "$2" in
            sleep) 
                /usr/sbin/pm-suspend
            ;;
            power)
               /usr/sbin/pm-hibernate
            ;;
            *) logger "ACPI button $2 is not defined"
                ;;
        esac
    ;;
    hotkey)
        case "$3" in
            00000014) 
                amixer sset Master 1-;
            ;;
            00000015) 
                amixer sset Master 1+;
            ;;
            *)  logger "ACPI hotkey action $2 $3 $4 is not defined"
            ;;
        esac
    ;;
    *)
        logger "ACPI group $1 / action $2 is not defined"
    ;;
esac

xmodmap

xev


suggestions

acpid

xmodmap

user contributed scripts

vendormodelsscripts
Asus1000, 1000hacpi_assus_1000.tar.gz
 700...
Acer......