Bonsoir et joyeux noël,
avec la release, aujourd'hui même, du noyau 2.6.27.9-159 tous les problèmes qui restaient ont été résolus
et tous les composants de mon portable sont parfaitement fonctionnels:
Carte wifi
Bluetooth
Webcam + micro
Carte son
Carte graphique
Touchpad
Lecteur d'empreintes digitales
J'ai pu configurer les différentes touches multimédia et le bouton d'interruption du wifi dont je parle
ici grâce à ces fichiers que j'ai
pu récupérer sur le wiki du projet Fedora ici
Eeepc et modifier pour mon portable:
Fichier
hotkeys.conf à placer dans
/etc/acpi/events
event=hotkey ATKD .*
action=/etc/acpi/actions/hotkeys.sh %e
Le fichier
hotkeys.sh à placer dans
/etc/acpi/actions
#!/bin/bash
export DISPLAY=:0
XUSER=`who|grep ' :'|awk '{printf $1}'`
case "$3" in
# Wlan On - Fn+F2
0000005d)
HOTKEY="Fn+F2"
/etc/acpi/actions/wlan.sh poweron
ACTION="Wireless ON"
;;
# Wlan Off - Fn+F2
0000007e)
HOTKEY="Fn+F2"
/etc/acpi/actions/wlan.sh poweroff
ACTION="Wireless OFF"
;;
# Wlan On - Button
0000005e)
HOTKEY="Button ON"
/etc/acpi/actions/wlan.sh poweron
ACTION="Wireless ON"
;;
# Wlan Off - Button
0000005f)
HOTKEY="Button OFF"
/etc/acpi/actions/wlan.sh poweroff
ACTION="Wireless OFF"
;;
# Open Mail box
00000050)
HOTKEY="Fn+F3"
su -l $XUSER -c 'thunderbird --display=:0.0' &
ACTION="Email"
;;
# Open web browser
00000051)
HOTKEY="Fn+F4"
su -l $XUSER -c 'firefox --display=:0.0' &
ACTION="Web Browser"
;;
# Volume mute
00000032)
HOTKEY="Fn+F10"
/usr/bin/amixer set -D hw:0 Master toggle
ACTION="Mute"
;;
# Volume down
00000031)
HOTKEY="Fn+F11"
/usr/bin/amixer set -D hw:0 Master 5%- unmute
ACTION="Volume Down"
;;
# Volume up
00000030)
HOTKEY="Fn+F12"
/usr/bin/amixer set -D hw:0 Master 5%+ unmute
ACTION="Volume Up"
;;
# Next track - command depends on the player
00000041)
HOTKEY="Fn+ ->"
su -l $XUSER -c 'amarok --next'
ACTION="NEXT"
;;
# Previous track - command depends on the player
00000040)
HOTKEY="Fn+ <-"
su -l $XUSER -c 'amarok --previous'
ACTION="PREVIOUS"
;;
# Stop - command depends on the player
00000043)
HOTKEY="Fn+ arrow up"
su -l $XUSER -c 'amarok --stop'
ACTION="STOP"
;;
# Play/pause - command depends on the player
00000045)
KEYCODE="Fn+ arrow down"
su -l $XUSER -c 'amarok --play-pause'
ACTION="PLAY-PAUSE"
;;
# Open Webcam - command depends on the viewer
00000082)
KEYCODE="Fn+v"
su -l $XUSER -c 'cheese'
ACTION="Webcam"
;;
# Touchpad On/Off - Fn+F9
0000006b)
KEYCODE="Fn+F9"
/etc/acpi/actions/touchpad.sh
ACTION="Touchpad On/Off"
;;
# Touchpad On/Off - button
0000008a)
KEYCODE="Touchpad button"
/etc/acpi/actions/touchpad.sh
ACTION="Touchpad On/Off"
;;
*)
HOTKEY="Undefined"
ACTION="Action Undefined"
;;
esac
echo '' > /tmp/asus_acpi
echo $3" - "$HOTKEY" - "$ACTION" - "$XUSER >> /tmp/asus_acpi
fichier
wlan.sh à placer dans
/etc/acpi/actions
#!/bin/bash
WSTATUS=$(cat /sys/devices/platform/asus-laptop/wlan)
UnloadModules() {
rmmod ath9k
}
LoadModules() {
modprobe ath9k
}
case $1 in
poweron)
if [[ "$WSTATUS" = "0" ]]; then
# modprobe pciehp pciehp_force=1
LoadModules
echo 1 > /sys/devices/platform/asus-laptop/wlan
ifconfig ath0 up
# rmmod pciehp
fi
;;
poweroff)
if [[ "$WSTATUS" = "1" ]]; then
# modprobe pciehp pciehp_force=1
ifconfig ath0 down
wlanconfig ath0 destroy
UnloadModules
echo 0 > /sys/devices/platform/asus-laptop/wlan
# rmmod pciehp
fi
;;
esac
et fichier
touchpad.sh à placer dans
/etc/acpi/actions
#!/bin/bash
TPSTATUS=$(synclient -l|grep TouchpadOff|awk '{printf $NF}')
if [[ "$TPSTATUS" = "0" ]]; then
synclient TouchpadOff=1
elif [[ "$TPSTATUS" = "1" ]]; then
synclient TouchpadOff=0
fi
Rendre les
2 3 scripts
hotkeys.sh,
wlan.sh et
touchpad.sh exécutables:
cd /etc/acpi/actions
chmod 700 *.sh
Bien sûr après cela il faut penser à relancer le serveur acpi:
cd /etc/init.d
./acpid restart
Les autres principaux raccourcis du clavier Asus sont tous fonctionnels nativement (Fn+F1=Zz, Fn+F7=LCD off, Fn+F=LCD/OUT),
reste à activer sur le même modèle:
Fn+F9 = Touchpad actif / inactif *
* Ne pas oublier de rajouter une configuration pour le touchpad dans le fichier
/etc/X11/xorg.conf
Section "ServerLayout"
...
InputDevice "Touchpad" "SendCoreEvents"
...
EndSection
Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
Fn+c = différents niveaux de gamma pour le moniteur LCD
Fn+v= lance la webcam
Fn+space= changer le mode de consommation d'énergie
Fn+t= lance un appel téléphonique ?!
Je compléterais ce poste par la suite, avec ces nouvelles fonctions.
Je donnerais également un retour sur l'ouverture de session par lecture des empreintes digitales si j'arrive à mettre cela en place.
EDIT: pour la lecture d'empreintes digitales il est important de créer une règle udev pour pouvoir accéder au lecteur
en tant que simple user, pour cela on créer un fichier
20-fprint.rules que l'on place dans
/etc/udev/rules.d
# libusb device nodes
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
EDIT2: souris bluetooth quelques précisions:
j'ai une souris Microsoft Bluetooth Notebook Mouse 5000, voici quelques précisions pour mettre en œuvre sa détection et son utilisation sous Fedora 10:
1) ajouter les lignes suivantes dans la section
start() du fichier
/etc/init.d/bluetooth
# Rajouté avant l'instruction "return $RETVAL"
HIDD_ENABLED=1
HIDD_OPTIONS="--connect 00:1D:D8:92:89:97 --server"
2) modifier le fichier
/etc/X11/xorg.conf et rajouter:
Section "ServerLayout"
...
InputDevice "Microsoft Notebook 5000 Bluetooth" "SendCoreEvents"
...
EndSection
Section "InputDevice"
Identifier "Microsoft Notebook 5000 Bluetooth"
Driver "mouse"
Option "SendCoreEvents" "True"
EndSection
S.