vorrei abilitare i tasti funzione che ho nel mio portatile, in linee generali ho capito come fare ma sarebbe meglio se qualche anima buona mi aiutasse per bene. Grazie

Moderatore: Staff






#!/bin/bash
case "$3" in
# Mute button
00000032)
o=`aumix -q | egrep 'vol 0, ?0'`
if [ -z $o ]; then
aumix -S
aumix -v0
else
aumix -L
fi
;;
# Volume up button
00000030)
/usr/bin/aumix -v +2
;;
# Volume down button
00000031)
/usr/bin/aumix -v -2
;;
# Touchpad button
0000006b)
TPSTATUS=`/usr/local/bin/synclient -l | grep TouchpadOff | awk '{print $3}'`
test -z $TPSTATUS && exit 1
if [ $TPSTATUS = 0 ]; then
/usr/local/bin/synclient TouchpadOff=1
else
/usr/local/bin/synclient TouchpadOff=0
fi
;;
0000005c)
;;
# WiFi button
0000005d)
state=`. /etc/acpi/wireless.sh`
if [ "$state" = "0" ]; then
echo -n 0 > /proc/acpi/asus/wled
else
echo -n 1 > /proc/acpi/asus/wled
fi
;;
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
echo -n 2 > $DEVICE/device/power/state;
echo 0
else
# It's powered off. Switch it on.
echo -n 0 > $DEVICE/device/power/state;
echo 1
fi
fi
done

modprobe asus-acpiAsus Laptop ACPI Extras version 0.30
unsupported model A6VC, trying default values
send /proc/acpi/dsdt to the developers


#!/bin/bash
case "$3" in
# Mute button
00000032)
o=`aumix -q | egrep 'vol 0, ?0'`
if [ -z $o ]; then
aumix -S
aumix -v0
else
aumix -L
fi
;;
# Volume up button
00000030)
/usr/bin/aumix -v +2
;;
# Volume down button
00000031)
/usr/bin/aumix -v -2
;;
# Touchpad button
0000006b)
TPSTATUS=`/usr/local/bin/synclient -l | grep TouchpadOff | awk '{print $3}'`
test -z $TPSTATUS && exit 1
if [ $TPSTATUS = 0 ]; then
/usr/local/bin/synclient TouchpadOff=1
else
/usr/local/bin/synclient TouchpadOff=0
fi
;;
0000005c)
;;
# WiFi button
0000005d)
state=`. /etc/acpi/wireless.sh`
if [ "$state" = "0" ]; then
echo -n 0 > /proc/acpi/asus/wled
else
echo -n 1 > /proc/acpi/asus/wled
fi
;; 
cesco@meijah:~$ ls -R /etc/acpi/
/etc/acpi/:
acpi_handler.sh events hotkeys.sh resume.d
/etc/acpi/events:
default
/etc/acpi/resume.d:
80-wicd-connect.sh
cesco@meijah:~$ 

Visitano il forum: Nessuno e 1 ospite