Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Computer & Wake-Up & Script
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
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Fri Sep 09, 2005 1:07 pm    Post subject: Computer & Wake-Up & Script Reply with quote

Kennt jemand ein Script, das nach einem Wake-Up aufgerufen
wird? Ich möchte gerne Bestimmte eigene Scripts bei einem
Wake-Up ausführen.

Wer weiss bescheid?
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
Back to top
View user's profile Send private message
redflash
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 213
Location: Germany

PostPosted: Fri Sep 09, 2005 2:10 pm    Post subject: Reply with quote

Wenn du möchtest dass die Skripte gestartet werden bevor ein Benutzer angemeldet ist.

Dein Skript einfach in /etc/conf.d/local.start eintragen.
Code:
# /etc/conf.d/local.start

# This is a good place to load any misc programs
# on startup ( use 1>&2 to hide output)
Back to top
View user's profile Send private message
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Sun Sep 11, 2005 8:47 pm    Post subject: Das ist noch nicht die Lösung Reply with quote

redflash wrote:
Wenn du möchtest dass die Skripte gestartet werden bevor ein Benutzer angemeldet ist.

Dein Skript einfach in /etc/conf.d/local.start eintragen.
Code:
# /etc/conf.d/local.start

# This is a good place to load any misc programs
# on startup ( use 1>&2 to hide output)


Nee, das geht so nicht !!!

Dort läuft es nur beim System-Start durch. Nicht aber wenn
man den Rechner in den Sleep Modus (bei mir S1) geschaltet
hat, und jetzt z.B. per Tastatur den Wake-Up einleitet.

Gibt es weitere Vorschläge?
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
Back to top
View user's profile Send private message
ribalba
n00b
n00b


Joined: 11 Jun 2005
Posts: 28

PostPosted: Sun Sep 11, 2005 11:54 pm    Post subject: Hmmm Reply with quote

Ist gibt ein script welches alle button (/proc/acpi/button) mit funktionen belegt.
Hier könntest du doch was rein schreiben :roll:
Leider fällt mir der Name nicht mehr ein
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Mon Sep 12, 2005 2:37 pm    Post subject: Reply with quote

Das Script ist Teil von acpid und unter /etc/acpi/default.sh zu finden.
_________________
...it's only Rock'n'Roll, but I like it!


Last edited by Anarcho on Tue Sep 13, 2005 7:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Mon Sep 12, 2005 7:01 pm    Post subject: Reply with quote

Anarcho wrote:
Das Script ist dein von acpid und unter /etc/acpi/default.sh zu finden.


Das sieht ganz gut aus; aber wie benutzt man das Script!
Kann einer mal ein Beispiel aufzeigen?
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
Back to top
View user's profile Send private message
ribalba
n00b
n00b


Joined: 11 Jun 2005
Posts: 28

PostPosted: Mon Sep 12, 2005 11:28 pm    Post subject: hmmm Reply with quote

Also du kannst wahrscheinlich so machen

Du schaust nach in
Code:
/proc/acpi/button
was für buttons du hast. Dann tust du in
Code:
/etc/acpi/events/default
den event defieniern und dann dürf das klappen. Weiß allerdings nicht ob das auch als Wakeup so geht. Musst mal probieren.[/code]
Back to top
View user's profile Send private message
Holger Radke
n00b
n00b


Joined: 26 Jan 2005
Posts: 31
Location: Münster

PostPosted: Tue Sep 13, 2005 5:52 pm    Post subject: Re: hmmm Reply with quote

ribalba wrote:
Also du kannst wahrscheinlich so machen

Du schaust nach in
Code:
/proc/acpi/button
was für buttons du hast. Dann tust du in
Code:
/etc/acpi/events/default
den event defieniern und dann dürf das klappen. Weiß allerdings nicht ob das auch als Wakeup so geht. Musst mal probieren.[/code]


Hier finde ich ausschließlich folgendes:

# /proc/acpi/button/power/PWRF/info

Wenn ich dann ein cat ausführe bekomme ich folgendes:

# type: Power Button (FF)

Damit kann ich derzeit nicht wirklich etwas anfangen!

Gibt es weiter Ideen welches Script beim Wakeup ausgeführt wird!
_________________
EPIA MII 1200; 1GB RAM; 160 GB Drive; DVD-RW; PVR-350
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