Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zuklappen des Notebooks mit Script verknüpfen ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
raphael24
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 90
Location: Karlsruhe, Germany

PostPosted: Thu Nov 11, 2004 8:15 am    Post subject: Zuklappen des Notebooks mit Script verknüpfen ? Reply with quote

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
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Thu Nov 11, 2004 8:42 am    Post subject: Re: Zuklappen des Notebooks mit Script verknüpfen ? Reply with quote

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
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Thu Nov 11, 2004 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
ossi
Apprentice
Apprentice


Joined: 11 Apr 2004
Posts: 221
Location: DDR

PostPosted: Thu Nov 11, 2004 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Nov 11, 2004 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
raphael24
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 90
Location: Karlsruhe, Germany

PostPosted: Thu Nov 11, 2004 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
raphael24
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 90
Location: Karlsruhe, Germany

PostPosted: Thu Nov 11, 2004 6:36 pm    Post subject: Reply with quote

@earthwings !

Deine KOmmandos haben gefunzt - das "Runterfahren" per Zuklappen klappt wunderbar !!

VIelen Dank,

Raphael
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum