View previous topic :: View next topic |
Author |
Message |
2u14 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12021889274555e7c64d42f.jpg)
Joined: 13 Apr 2005 Posts: 85
|
Posted: Tue Nov 22, 2005 10:16 am Post subject: acpi4asus & acpid [solved] |
|
|
Hi,
hab acpid und acpi4asus auf meinem ASUS M6800ne installiert acpid zum default runlevel hinzugefügt und ein script geschrieben
/etc/acpi/default.sh:
Code: | #!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
group=${1/\/*/}
action=${1/*\//}
case "$group" in
button)
case "$action" in
power) /sbin/shutdown -h now # /sbin/init 0
;;
# sleep) echo "sleep button" >> /var/log/acpida
# ;;
*) logger "ACPI action $action is not defined"
;;
esac
;;
hotkey)
code=${3}
case "$code" in
# Buttons below the screen
00000050) /etc/acpi/mail.sh # mail button
;;
00000051) /etc/acpi/browser.sh # browser button
;;
0000005d) /etc/acpi/wlan1.sh # wlan button
;;
0000006a) /etc/acpi/touchpad.sh # tochpad button
;;
0000005c) /etc/acpi/speedstep.sh # speedstep button
;;
# Buttons on the right
00000040) /etc/acpi/cdbackwd.sh # cd backwards button
;;
00000043) /etc/acpi/cdstop.sh # cd stop button
;;
00000045) /etc/acpi/cdplay.sh # cd play button
;;
00000041) /etc/acpi/cdforwd.sh # cd forward button
;;
0000004c) /etc/acpi/cdaudio.sh # cd audio button
;;
# Combined with funktion Key
0000005d) /etc/acpi/wlan2.sh # waln (Fn+F2)
;;
00000032) /etc/acpi/mude.sh # mude (Fn+F10
;;
00000031) /etc/acpi/voldown.sh # volume down (Fn+F11)
;;
00000030) /etc/acpi/volup.sh # volume up (Fn+F12)
;;
*) echo "$code unknown" >> /var/log/acpida
;;
esac
;;
*)
logger "ACPI group $group / action $action is not defined"
;;
esac |
die jeweiligen einzelnen Scripte funtionieren, wenn ich sie aus der Konsole aufrufe.
Was mach ich bis jetzt falsch?
Danke 2u14 _________________ Gentoo on Asus M6811Ne
By the way: Don't eat yellow snow!
Last edited by 2u14 on Tue Nov 22, 2005 11:16 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mathes.s Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Side_Show_Bob.jpg)
Joined: 18 Apr 2003 Posts: 279 Location: Brunswick, Germany
|
Posted: Tue Nov 22, 2005 10:19 am Post subject: |
|
|
Hi,
was steht denn bei dir in der Datei /var/log/acpid wenn du auf eine der Tasten drückst? Hast du auch das default.sh Skript ausführbar gemacht?
mfg Mathes _________________ Erst wenn der letzte Programmierer eingesperrt, das letzte Programm verwirklicht und die letzte Idee patentiert ist, werdet Ihr merken, dass Anwälte nicht programmieren können. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
2u14 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12021889274555e7c64d42f.jpg)
Joined: 13 Apr 2005 Posts: 85
|
Posted: Tue Nov 22, 2005 10:32 am Post subject: |
|
|
/var/log/acpid:
Code: | [...]
[Tue Nov 22 11:28:06 2005] END HANDLER MESSAGES
[Tue Nov 22 11:28:06 2005] action exited with status 2
[Tue Nov 22 11:28:06 2005] completed event "ac_adapter AC 00000080 00000000"
[Tue Nov 22 11:28:06 2005] received event "battery BAT0 00000080 00000001"
[Tue Nov 22 11:28:06 2005] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Tue Nov 22 11:28:06 2005] BEGIN HANDLER MESSAGES
/etc/acpi/default.sh: line 56: syntax error near unexpected token `;;'
/etc/acpi/default.sh: line 56: ` ;;'
[Tue Nov 22 11:28:06 2005] END HANDLER MESSAGES
[Tue Nov 22 11:28:06 2005] action exited with status 2
[Tue Nov 22 11:28:06 2005] completed event "battery BAT0 00000080 00000001"
[Tue Nov 22 11:28:06 2005] received event "battery BAT1 00000080 00000001"
[Tue Nov 22 11:28:06 2005] executing action "/etc/acpi/default.sh battery BAT1 00000080 00000001"
[Tue Nov 22 11:28:06 2005] BEGIN HANDLER MESSAGES
/etc/acpi/default.sh: line 56: syntax error near unexpected token `;;'
/etc/acpi/default.sh: line 56: ` ;;'
[Tue Nov 22 11:28:06 2005] END HANDLER MESSAGES
[Tue Nov 22 11:28:06 2005] action exited with status 2
[Tue Nov 22 11:28:06 2005] completed event "battery BAT1 00000080 00000001"
|
ich weiß aber nicht, was genau der syntax Fehler ist...
2u14 _________________ Gentoo on Asus M6811Ne
By the way: Don't eat yellow snow! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
2u14 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12021889274555e7c64d42f.jpg)
Joined: 13 Apr 2005 Posts: 85
|
Posted: Tue Nov 22, 2005 10:37 am Post subject: |
|
|
und jetzt gehts, danke...
hab Zeile 55 & 56 neu geschrieben.
Ich weiß aber nicht, was genau jetzt anders ist.
Danke 2u14 _________________ Gentoo on Asus M6811Ne
By the way: Don't eat yellow snow! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|