Results 1 to 2 of 2

Thread: lid closed screen off/on solution

Hybrid View

  1. #1
    Senior Member PrairieFire's Avatar
    Join Date
    Apr 2007
    Posts
    705

    Default lid closed screen off/on solution

    I want to first state that I have only tested this on my Dell D620 & D820 and do not know what else it will work on. I do remember several people complaining about this problem, mainly dell users.

    The problem: When using BT2 with my notebook lid closed the LCD will not turn off.

    The solution: Use of a script to check the state of the lid and either turn on or off the LCD appropriately.

    Step One:
    Code:
    #From konsole type:
    nano /etc/acpi/events/lid
    
    event=button/lid*
    action=etc/acpi/lid.sh %e
    Step Two:
    Code:
    nano /etc/acpi/lid.sh
    
    #!/bin/bash
    if grep -q open /proc/acpi/button/lid/LID/state
    
    then
            XAUTHORITY="$( ps -C xinit f|tail -n 1|sed s/.*-auth\ //|sed s/serverauth.*/Xauthority/ )" /usr/bin/xset -display :0.0 dpms force on
    
    else
    
            XAUTHORITY="$( ps -C xinit f|tail -n 1|sed s/.*-auth\ //|sed s/serverauth.*/Xauthority/ )" /usr/bin/xset -display :0.0 dpms force off
    
    fi
    Now you should have a file called lid located @ /etc/acpi/events/ and a file called lid.sh located @ /etc/acpi/

    Thanks go to my Google'Fu™
    Μολὼν λαβέ - Great spirits encounter heavy opposition from mediocre minds.

  2. #2
    Senior Member
    Join Date
    Apr 2007
    Posts
    3,385

    Default

    Yep! I remember this problem of yours. From way back in June!! I tried to give you my Dell Latitudes c610 nano /etc/X11/xorg.conf command fix..but it didn't work on yours. I found the thread...here it is..
    I remember us banging our heads on this for quite some time! Very glad you figured it all out. Now people with Dell D620 & Dell D820 will be able to close their lid and not have to worry about losing their whole session and having to reboot.

    Excellent work PrairieFire!
    [CENTER][FONT=Book Antiqua][SIZE=5][B][COLOR=blue][FONT=Courier New][COLOR=red]--=[/COLOR][/FONT]Xploitz[FONT=Courier New][COLOR=red]=--[/COLOR][/FONT][/COLOR][/B][/SIZE][/FONT][FONT=Courier New][COLOR=Black][SIZE=6][B] ®[/B][/SIZE][/COLOR][/FONT][/CENTER]
    [CENTER][SIZE=4][B]Remote-Exploit.orgs Master Tutorialist.[/B][/SIZE][SIZE=6][B]™
    [/B][/SIZE]
    [URL="http://forums.remote-exploit.org/showthread.php?t=9063"][B]VIDEO: Volume #1 "E-Z No Client WEP Cracking Tutorial"[/B]
    [/URL]
    [URL="http://forums.remote-exploit.org/showthread.php?t=7872"][B]VIDEO: Volume #2 "E-Z No Client Korek Chopchop Attack Tutorial"[/B]
    [/URL]
    [URL="http://forums.remote-exploit.org/showthread.php?t=8230"][B]VIDEO: Volume #3 "E-Z WPA/WPA2 Cracking Tutorial"[/B][/URL]

    [URL="http://forums.remote-exploit.org/showthread.php?t=8041"][B]VIDEO: Volume #4 "E-Z Cracking WPA/WPA2 With Airolib-ng Databases"[/B][/URL]
    [/CENTER]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •