Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
/etc/acpi/lidswitch.sh #!/bin/sh # /etc/acpi/lidswitch.sh # Re-activates the screen when the lid is opened again LID_STATE="/proc/acpi/button/lid/LID/state" LCD_STATE="/proc/acpi/video/VID/LCD/state" VT_NR="/tmp/lid_vt" if [ -e /tmp/acpi_sleep ]; then rm /tmp/acpi_sleep exit fi grep -q open $LID_STATE if [ $? -eq 0 ]; then #open the lid echo 0x80000001 > $LCD_STATE if [ -e $VT_NR ]; then #we closed the lid in X chvt `cat $VT_NR` rm $VT_NR fi else # closing the lid # if X is running, we assume vt7. X=`ps aux | grep /usr/bin/X11/X | grep -v grep | wc -l` if [ $X -gt 0 ]; then echo 7 > $VT_NR chvt 1 fi fi |
Quellcode |
|
1 2 3 4 5 6 7 |
/etc/acpi/events/lidswitch # /etc/acpi/events/lidswitch # This is called when the lid is closed or opened and calls # /etc/acpi/lidswitch.sh for further processing. event=button[ /]lid action=/etc/acpi/lidswitch.sh |
Quellcode |
|
1 2 |
date ; unzip | port ; touch | head ; strip | top ; finger socket ; grep ; mount | tail ; gasp < yes & yes ; umount ; sleep |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »würmchen« (16.07.2006, 21:00)
Quellcode |
|
1 |
sys-power/acpid |
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »sidious« (12.07.2006, 23:21)
Zitat
Original von maggu2810
Bist du eigentlich sicher, dass es bei dir auch
/proc/acpi/button/lid/LID/state
/proc/acpi/video/VID/LCD/state
heißen muss?
Quellcode |
|
1 2 |
/proc/acpi/button/lid/LID/state state: open |
Quellcode |
|
1 2 3 |
/proc/acpi/video/VID/LCD/state state: 0x0f query: 0x00 |
Quellcode |
|
1 2 |
/etc/init.d/acpid status * status: started |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Section "Device" # unsupported card #VideoRam 65536 # Insert Clocks lines here if appropriate Identifier "X300" Driver "radeon" EndSection Section "Device" Identifier "ATI Graphics Adapter 0" Driver "fglrx" BusID "PCI:1:0:0" EndSection |
Quellcode |
|
1 2 |
date ; unzip | port ; touch | head ; strip | top ; finger socket ; grep ; mount | tail ; gasp < yes & yes ; umount ; sleep |
Quellcode |
|
1 2 |
date ; unzip | port ; touch | head ; strip | top ; finger socket ; grep ; mount | tail ; gasp < yes & yes ; umount ; sleep |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »würmchen« (13.07.2006, 11:44)
Quellcode |
|
1 |
Screen 0 "aticonfig Screen 0" 0 0 |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
Section "Screen" Identifier "aticonfig Screen 0" Device "ATI Graphics Adapter 0" Monitor "aticonfig Monitor 0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection |
Quellcode |
|
1 2 3 4 5 |
Section "Device" Identifier "ATI Graphics Adapter 0" Driver "fglrx" BusID "PCI:1:0:0" EndSection |
Quellcode |
|
1 2 3 |
Section "Monitor" Identifier "aticonfig Monitor 0" EndSection |
Quellcode |
|
1 2 |
date ; unzip | port ; touch | head ; strip | top ; finger socket ; grep ; mount | tail ; gasp < yes & yes ; umount ; sleep |
Quellcode |
|
1 2 |
date ; unzip | port ; touch | head ; strip | top ; finger socket ; grep ; mount | tail ; gasp < yes & yes ; umount ; sleep |