Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] battery runlevel
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
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Sun Dec 02, 2007 10:57 am    Post subject: [gelöst] battery runlevel Reply with quote

Hallo zusammen,
Ich bin beim meinem notebook nach der powermanagement-anleitung auf der deutschen gentoo-webseite vorgegangen. Alles funktioniert auch soweit ganz gut nur gibts da eine sache, die mich stört. Jedesmal wenn das runlevel geändert wird schaltet der rechner von X auf die erste konsole und spamt diese mit acpid meldungen zu. Gibts da ne möglichkeit, das im hintergrund ablaufen zu lassen? Das ist irgendwie häßlich.
Grüße, dk


Last edited by Stormkings on Wed Dec 05, 2007 8:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 12:42 pm    Post subject: Reply with quote

Hat hier niemand Gentoo auf nem Notebook?
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Wed Dec 05, 2007 12:47 pm    Post subject: Reply with quote

Ich habe ein Samsung x11c mit gentoo laufen und habe mir auch ein battery runlevel eingerichtet, zu dem ich mittels rc battery wechsle. X laeuft bei mir weiter und acpi spammt mich nicht voll, von daher kann ich das leider nicht nachvollziehen.
Ich find jetzt auf anhieb auch leider nicht die doku. Kannst du den Link bitte posten?
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 12:50 pm    Post subject: Reply with quote

Gibheer wrote:
Ich habe ein Samsung x11c mit gentoo laufen und habe mir auch ein battery runlevel eingerichtet, zu dem ich mittels rc battery wechsle. X laeuft bei mir weiter und acpi spammt mich nicht voll, von daher kann ich das leider nicht nachvollziehen.
Ich find jetzt auf anhieb auch leider nicht die doku. Kannst du den Link bitte posten?


Hi,
klar kann ich den link posten: http://www.gentoo.de/doc/de/power-management-guide.xml
Mir scheint, dass wir das ganze unterschiedlich benutzen. Hier wechselt er automatisch das runlevel, sobald ich den netzstecker ziehe oder einstecke. Vielleicht liegts ja auch an der acpid konfiguration.
DK
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Wed Dec 05, 2007 1:08 pm    Post subject: Reply with quote

welchen log-daemon benutzt du und hast du xdm im battery-runlevel?
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 1:18 pm    Post subject: Reply with quote

Ich nutze syslog-ng, xdm ist auch im runlevel:
Code:
Runlevel: battery
 acpid                                                              [ started  ]
 hald                                                               [ started  ]
 local                                                              [ started  ]
 NetworkManager                                                     [ started  ]
 pmg_wlan                                                           [ stopped  ]
 powersaved                                                         [ started  ]
 syslog-ng                                                          [ started  ]
 vixie-cron                                                         [ started  ]
 xdm                                                                [ started  ]

Arbeite gerade mit stecker. Zuerst dachte ich es liegt daran, dass syslog gar nicht läuft im battery runlevel, aber das hat sich nicht bestätigt. Acpid hat auch keine extra-optionen in seiner konfiguration. Das gleiche macht übrigens der Networkmanager.
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Wed Dec 05, 2007 2:16 pm    Post subject: Reply with quote

kannst du mal die config vom syslog-ng posten? Ich denke mal, dass da der "Fehler" drin ist.
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 2:47 pm    Post subject: Reply with quote

Meine syslog-ng.conf sieht so aus:
Code:
options {
        chain_hostnames(off);
        sync(0);
        stats(43200);
};

source src {
    unix-stream("/dev/log" max-connections(256));
    internal();
    pipe("/proc/kmsg");
};

destination messages { file("/var/log/messages"); };
destination d_null { program("/bin/cat >/dev/null"); };

filter f_logger { match("ACPI event"); };
filter f_acpi { program("acpid"); };

destination console_all { file("/dev/tty12"); };
log { source(src); filter(f_acpi); destination(d_null); flags(final); };
log { source(src); filter(f_logger); destination(d_null); flags(final); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };

Es gab mal einen thread im deutschen forum, in dem es darum ging nicht mehr alles zu loggen. Daran hab ich mich gehalten. Für die logeinträge in messsages funktioniert das auch sehr gut.
Gruß, dk
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Wed Dec 05, 2007 2:50 pm    Post subject: Reply with quote

Code:
log { source(src); destination(console_all); };


ich glaub das ist der schuldige fuer das konsolenlogging. Wuerde ich zumindest denken.
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 3:05 pm    Post subject: Reply with quote

Ah, danke. Hätte ich auch drauf kommen können. Das stellt zumindest das loggen auf der konsole ab.
Ändert leider aber nichts daran, dass ich trotzdem da lande, wenn ich den stecker ziehe und vorher in X war. Verstehe ich irgendwie nicht. Ist es nicht möglich im hintergrund ein runlevel zu wechseln?
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Wed Dec 05, 2007 3:28 pm    Post subject: Reply with quote

es ist moeglich, ich mach es ja auch. Probier am besten mal unter X
Code:
rc battery
Landest du da auch auf der Konsole? Wenn nicht, dann ist vielleicht powermgmt-base der verursacher
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Wed Dec 05, 2007 8:33 pm    Post subject: Reply with quote

Danke hat mir sehr geholfen. Man landet in der konsole, wenn ein script nicht korrekt ausgeführt wurde. Allerdings hab ich das leider nicht sehen können bei pmg_wlan.
Grüße, dk
Back to top
View user's profile Send private message
Gibheer
Guru
Guru


Joined: 27 Dec 2004
Posts: 300

PostPosted: Thu Dec 06, 2007 4:59 am    Post subject: Reply with quote

das ist gut zu wissen. na dann viel spass mit deinem laptop ^^
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