jiraiya42 Posted February 17, 2006 Share Posted February 17, 2006 Salut, Je voudrais configurer le bouton power pour faire en sorte de l'arreter proprement par une simple pression quelqu'un peut m'aider svp ? Link to comment Share on other sites More sharing options...
olasd Posted February 17, 2006 Share Posted February 17, 2006 Salut, Je voudrais configurer le bouton power pour faire en sorte de l'arreter proprement par une simple pression quelqu'un peut m'aider svp ? Il faudrait voir à faire une recherche du côté des évènements ACPI, mais je ne vois pas de tuto bien fait pour Debian... Le tuto sur TLDP Bonne recherche Link to comment Share on other sites More sharing options...
zoto Posted February 18, 2006 Share Posted February 18, 2006 Salut Tu fait : apt-get remove apmd apt-get install acpi acpid sh /etc/init.d/apcid start a+ Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 20, 2006 Author Share Posted February 20, 2006 Salut Tu fait : apt-get remove apmd apt-get install acpi acpid sh /etc/init.d/apcid start a+ Salut, Et après il faut faire comment pour configurer le bouton stp ? J'ai tout fait comme tu as dis mais après je ne sais pas... Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 20, 2006 Author Share Posted February 20, 2006 Dans /etc/acpi/powerbtn.sh j'ai mis: #!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has been # pressed. #if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop #then # dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0 #else /sbin/shutdown -h now #fi Mais quand j'appuie sur le bouton ça coupe tout mais "méchamment" d'un coup. Je pense pas que ce soit très propre... J'ai pas bon où svp ? Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 20, 2006 Author Share Posted February 20, 2006 Et j'ai regardé si ACPI était supporté par le noyau par un dmesg | grep -i acpi BIOS-e820: 000000003fe70000 - 000000003fe72000 (ACPI NVS) BIOS-e820: 000000003fe72000 - 000000003fe93000 (ACPI data) ACPI: RSDP (v000 DELL ) @ 0x000feb90 ACPI: RSDT (v001 DELL DE051 0x00000008 ASL 0x00000061) @ 0x000fd283 ACPI: FADT (v001 DELL DE051 0x00000008 ASL 0x00000061) @ 0x000fd2b7 ACPI: SSDT (v001 DELL st_ex 0x00001000 MSFT 0x0100000d) @ 0xfffd1e41 ACPI: MADT (v001 DELL DE051 0x00000008 ASL 0x00000061) @ 0x000fd32b ACPI: BOOT (v001 DELL DE051 0x00000008 ASL 0x00000061) @ 0x000fd397 ACPI: DSDT (v001 DELL dt_ex 0x00001000 MSFT 0x0100000d) @ 0x00000000 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] disabled) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] disabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] disabled) Using ACPI for processor (LAPIC) configuration information ACPI: Subsystem revision 20040326 ACPI: Interpreter disabled. PCI: ACPI tables contain no PCI IRQ routing entries shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001 pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001 Mais euh c'est pas très explicite pour moi quelqu'un peut me dire ce que ça veut dire svp ? Ce serait très gentil Link to comment Share on other sites More sharing options...
naparuba Posted February 20, 2006 Share Posted February 20, 2006 Vu comme ça j'aurais tendence à dire que c'est bien activé. Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 20, 2006 Author Share Posted February 20, 2006 Ah c'est déjà bien, mais quand j'appuie sur le bouton ça coupe d'un coup sans fermer proprement, ya pas une manip à faire ou je sais pas ? C'est une Debian Sarge Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 21, 2006 Author Share Posted February 21, 2006 Svp, j'ai jusqu'à vendredi pour trouver un moyen pratique pour les employés d'éteindre le serveur facilement et rapidement, quelqu'un peut m'aider svp ? Link to comment Share on other sites More sharing options...
naparuba Posted February 21, 2006 Share Posted February 21, 2006 Là désolé je ne vois pas Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 21, 2006 Author Share Posted February 21, 2006 Là désolé je ne vois pas Arf ! Merci de la réponse déjà :) quelqu'un peut m'aider svp ? Link to comment Share on other sites More sharing options...
jiraiya42 Posted February 21, 2006 Author Share Posted February 21, 2006 Si quelqu'un a une solution autre que le bouton power et Cron pour arreter facilement je suis preneur. Quelque chose qu'un employé pourrait faire facilement et rapidement chaque soir... svp ? Link to comment Share on other sites More sharing options...
lambda Posted February 23, 2006 Share Posted February 23, 2006 Si quelqu'un a une solution autre que le bouton power et Cron pour arreter facilement je suis preneur. Quelque chose qu'un employé pourrait faire facilement et rapidement chaque soir... svp ? Console... Halt sa t'évite de devoir appuyer sur le bouton ^^ Perso lorsque je presse le buton il me coupe la machine. voici mon fichier: #!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has been # pressed. [ -f /var/lock/acpisleep ] && exit 0 # If PowerManager is running, let it handle policy if [ `pidof PowerManager` ]; then exit fi if ps -Af | grep -q '[k]desktop' && test -f /usr/bin/dcop then dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0 else /sbin/shutdown -h now "Power button pressed" fi Si sa ne fontionne pas essaye sa: #!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has beeb # pressed. #if ps -Af | grep -q ' [k]desktop' && test -f /usr/bin/dcop #then #dcop --all-sessions --all-users ksmserver ksmserver logout 0 2 0 && exit 0 #else /sbin/shutdown -fh now #fi Dis moi si sa fonctionne ++ Mike Link to comment Share on other sites More sharing options...
zoto Posted February 24, 2006 Share Posted February 24, 2006 Salut Il y a une autre solution . Le serveur s'eteind tous seul comme un grand . Tu fixe une heure puis dans la crontab tu met qu'a tel heure le serveur doit s'eteindre :) . a+ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.