View previous topic :: View next topic |
Author |
Message |
raphael24 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/1398694502411f3ccd49a0b.jpg)
Joined: 20 Oct 2003 Posts: 90 Location: Karlsruhe, Germany
|
Posted: Thu Nov 11, 2004 8:15 am Post subject: Zuklappen des Notebooks mit Script verknüpfen ? |
|
|
Hi,
ich habe den Hibernate Modus (http://softwaresuspend.berlios.de/) an meinem Notebook "Inspiron 8600c" zum Laufen bekommen.
Damit mein Notebook in diesen Modus wechselt, muss ich als "root" ein bestimmtes Skript ausführen.
Jetzt hätte ich gerne, dass dieser Skriptaufruf implizit durch das Zuklappen des Notebooks ausgeführt wird.
Hat jemand eine Idee, wie und ob das überhaupt geht ?
Ich vermute, ich muss dieses ACPI Signal abfangen und mit dem Skript verknuepfen.
VIele Gruesse und danke im Voraus,
Raphael |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ian! Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1114116401443d66f15cb90.jpg)
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Thu Nov 11, 2004 8:42 am Post subject: Re: Zuklappen des Notebooks mit Script verknüpfen ? |
|
|
raphael24 wrote: | Hat jemand eine Idee, wie und ob das überhaupt geht ?
Ich vermute, ich muss dieses ACPI Signal abfangen und mit dem Skript verknuepfen. |
Ja. Ich bekomme bei meinem Notebook unter /proc/acpi.. im lid-Eintrag was brauchbares. Musst du mal schauen, ob dieser Eintrag auch bei dir existiert. Dann kannst du das mit dem acpid abfangen und darauf reagieren. In der acpid.conf sind Beispiele dazu, IIRC. _________________ "To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
py-ro Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1714555094ed55010ccff6.jpg)
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Thu Nov 11, 2004 8:42 am Post subject: |
|
|
Theoretisch such mal nach acpi und event.
Nur leider ist bei allen mir bekannten Inspirons leider das ACPI Event System broken.
Kannst du aber ganz leicht mit
Code: | cat /proc/acpi/event |
[edit] Dann zu und wieder aufklappen [/EDIT]
testen.
MfG
Py |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ossi Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/258714184407a59b67a9de.jpg)
Joined: 11 Apr 2004 Posts: 221 Location: DDR
|
Posted: Thu Nov 11, 2004 8:57 am Post subject: |
|
|
hast du acpid am laufen ?
was sagen deine logs wenn du den lid betätigst?
ich habe den selben laeppi und schalte bei mir beim zuklappen des deckels die beleuchtung des displays aus. kann dir heute abend gerne weiterhelfen.
was hast du den für eine grafik ? ati od. nvidia ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Nov 11, 2004 1:51 pm Post subject: |
|
|
Code: | # cat > /etc/acpi/events/lid << "EOF"
event=button[ /]lid
action=/sbin/hibernate
EOF
# /etc/init.d/acpid restart |
Setzt natürlich ein installiertes hibernate-script voraus. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
raphael24 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/1398694502411f3ccd49a0b.jpg)
Joined: 20 Oct 2003 Posts: 90 Location: Karlsruhe, Germany
|
Posted: Thu Nov 11, 2004 2:29 pm Post subject: |
|
|
Hallo Maenner,
danke fuer Eure Tipps - soabld ich zu Hause bin, werde ich das ganze mal testen.
@earthwings -> Erzaehl mal was von Dir !
Du bist auch aus KA ?
Student ? Wie biste zu der Aufgabe als Moderator gekommen ? Wieviel Zeit kostet sowas pro Woche ? Hat Dir dieser Job bei Bewerbungen bzw. generell in Deinem Lebenslauf schon mal was eingebracht ?
Gruss,
Raphael |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
raphael24 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/1398694502411f3ccd49a0b.jpg)
Joined: 20 Oct 2003 Posts: 90 Location: Karlsruhe, Germany
|
Posted: Thu Nov 11, 2004 6:36 pm Post subject: |
|
|
@earthwings !
Deine KOmmandos haben gefunzt - das "Runterfahren" per Zuklappen klappt wunderbar !!
VIelen Dank,
Raphael |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|