Turn off monitor on lid close doesn't work after first reboot

On a fresh installation ( running daemons hal fam alsa gdm bluetooth cups and others present after fresh install ) it worked perfectly. I was so happy, cause this is the last issue Im having. I've tried other distros and winXP but always got back to arch Hardware HP6720s - 1GB RAM, X3100 ( looking forward to 2.6.28 and new intel drivers ). Installed software kernel 2.6.27, gnome, gnome-power-manager. The only thing that confuses me that it worked great till first reboot. Any sugesstions?

/etc/acpi/handler.sh
#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
set $*
case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) logger "PowerButton pressed: $2" ;;
*) logger "ACPI action undefined: $2" ;;
esac
button/sleep)
case "$2" in
SLPB) echo -n mem >/sys/power/state ;;
*) logger "ACPI action undefined: $2" ;;
esac
ac_adapter)
case "$2" in
AC)
case "$4" in
00000000)
echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
00000001)
echo -n $maxspeed >$setspeed
#/etc/laptop-mode/laptop-mode stop
esac
*) logger "ACPI action undefined: $2" ;;
esac
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
00000001) #echo "online" >/dev/tty5
esac
CPU0)
*) logger "ACPI action undefined: $2" ;;
esac
button/lid)
#echo "LID switched!">/dev/tty5
sh /etc/acpi/actions/lm_lid.sh
logger "ACPI group/action undefined: $1 / $2"
esac
/etc/acpi/actions/lm_lid.sh
/usr/bin/xset -display :0.0 dpms force off

Similar Messages

  • Phone is turning off and on. Clock doesn't work after resetting the whole phone.

    My phone turns off and on randomly . Before it turns off  blue red green lines would appear on my screen. (Like a computer before it turns on). I've tried every reset trick you can think of. Also my clock doesn't work. It never has the right time. I've tried to reset it manually. I tried to reset the network. Help!!

    Did you also try to set it up as new device without using the backup afterwards?
    How to back up your data and set up as a new device
    If the phone works after that, restore from the backup, if it does not, you'll have to get it serviced, the problem might be hardware related.
    Apple - Support - Service Answer Center

  • I lost my phone while it was turned off, so find my iphone doesn't work. Is there anyway that Apple have a failsafe where they can turn the iPhone on so it shows up. The phone hasn't been turned on since I lost it and while I was on the way to the airport

    It happened on the way to the airport. I went for my pocket when we were checking in and it wasn't there. I'd turned it off to save battery for the flight and when we got home I checked the house and it wasn't there. I think it may have fallen out in the taxi but we called them and the driver driver said he couldn't find anything. It hasn't been turned on since I last turned it on. But I was wondering can Apple remotely turn my phone on in any way possible?

    There is no way of communicating with a phone which is switched off, therefore there is no way to tell it to turn itself on.

  • Voice command for Contacts doesn't work after a re...

    Voice command for Contacts doesn't work after a reboot or a contacts restore.
    Steps to reproduce:
    1. Backup contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Back up now.
    2. Edit/save a contact, press and hold the call button, speak contacts name. The voice recognition works fine.
    3. Restore contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Restore.
    4. Reboot phone when prompted.
    5. Press and hold the call button, speak contacts name. The voice recognition does not work.
    Work around:
    Edit and save each contact.
    Additional Information:
    Social integration with contacts also does not work after a reboot. The facebook icon and "See what xxx is up to on Facebook" is not displayed. The same work around "Edit and save each contact" also applies. This occurs using the Nokia N8 and Nokia 808 Pureview.

    Nancy2015 wrote:
    I have my phone paired with my car, I can do everything except it does not recognize any of my contact names. If I try say a contact name, it says "not recognized" but if I say the contacts phone number, the name pops up onthe display in my car.
    Has anyone had this issue, is there a setting I am missing in my phone?
    Hello, 
    This is not necessarily and issue with the phone. It could also be an issue with the car`s bluetooth software that is only limited to some functions like reading your contacts list, last calls, missed calls, etc. which is most likely the basic 2.0 version. 
    The Z30 has the 4.0 version that has a lot more communication capability but if the car`s bluetooth its a lower version, then you will not be able to take full advantage of it unless you upgrade the bluetooth software in your car. Call your dealer and inquire about the bluetooth software upgrade in your car   

  • Bug: Windows 7 DLL call to turn off monitor message crashes LabVIEW 10.0f2

    Hi,
    I wanted to log this bug on the forum. I have already logged this with NI UK Support: CAR# 286873
    I was trying to find a way to turn off a laptop lcd
    monitor during measurements. I was trying to replicate this
    http://codereflect.com/2009/04/03/how-to-programmatically-turn-onoff-your-monitor/
    which uses windows messaging.
    I found the attached Monitor-1.vi somewhere on the forum that seems to do the above.
    However when I run the VI it crashes LabVIEW 10.f2 on Windows 7 32-bit.
    cheers
    David
    Solved!
    Go to Solution.
    Attachments:
    Monitor-1.vi ‏13 KB

    Hi Cosmin,
    That was it! Thank you so much!
    I will let NI UK support that you identified the issue and get them to close the CAR.
    cheers
    David
    Attachments:
    Turn off Monitor.vi ‏12 KB

  • [SOLVED] How to turn off monitor at CLI

    Hi
        I've been trying to find a way to turn off my monitor, but the solutions I've found were almost all for X environment.
        The best hint I've got was add following lines to /etc/rc.local:
    setterm -blank 1
    setterm -powersave on
    setterm -powerdown 1
    With that, monitor was suppose to blank screen after 1 minute and, after another 1 minute, shutdown. But it only blanks and nothing more. Without the first line: "setterm -blank 1", it just don't do anything.
        Does anybody has idea of what else should I try?
        Thanks in advance.
    Last edited by vinicius (2009-02-27 02:48:43)

    Hi, Nezmer
    Even with aliases, I would have to type von with monitor turned off.
    I've done a script, witch is not a perfect solution, but works fine.
    monitor_off:
    #!/bin/bash
    # Check if X is running or not, turn off monitor, #
    # wait for a key press and turn it on again. #
    grep_result_file=$PWD'/x_running'
    # Check if X is running.
    ps -e | grep -e "\bX\b" > $grep_result_file
    ps -e | grep -e "\bxorg\b" >> $grep_result_file
    ps -e | grep -e "\bxserver\b" >> $grep_result_file
    ## If you want to check result file, uncomment following lines.
    #echo "===== $grep_result_file - begin ====="
    #cat $grep_result_file
    #echo "===== $grep_result_file - end ====="
    if [ ! -s $grep_result_file ] || [[ $(tty) =~ tty ]] || [[ $(tty) =~ vc ]]; then
    echo 'Detected X not runnig or you are at console...'
    if [ $UID -ne 0 ]; then
    echo 'You need super user privileges to run this script at console.'
    echo 'Rerun as super user or start X and run from a terminal.'
    exit 0
    fi
    turn_off='vbetool dpms off'
    turn_on='vbetool dpms on'
    else
    echo 'Detected X running...'
    turn_off='xset dpms force off'
    fi
    echo 'Turning off monitor...'
    $turn_off
    echo 'Waiting for a key press...'
    read -n1 -s
    echo 'Turning on monitor...'
    $turn_on
    rm $grep_result_file
    echo 'Finished: monitor_off'
    It checks if X is running or not because at X environment vbetool was a little slow, at least for me.
    That's it!
    I hope this could be useful for someone else.
    Thank you for helping, guys.
    Vinícius
    P.S.: I'm setting this thread as solved, but any suggestion about the script is welcome.

  • My iphone turned off by itself and it doesn't turn on

    My iphone turned off by itself and it doesn't turn on, What should i do????

    IIf the battery was completely drained it might take some time before the phone will respond. Wait at least 30 minutes with the phone connected to the charger. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. If the phone starts up let it continue to charge until it's 100%.
    if the broken button will not let you do the reset Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • My screen wont turn on, and the screen is black. It was working fine, but then it just turned off. The only way it will work is if I close my laptop, and pinch the two screens together

    My screen wont turn on, and the screen is black. It was working fine, but then it just turned off. The only way it will work is if I close my laptop, and pinch the two screens together

    You have a hardware problem and you should take it into a apple store to be looked at and fixed.

  • ITunes disables Power Options- Turn Off Monitor

    If I just run iTunes on my Windows XP PC my monitor no longer turns off after the "Control Panel->Power Options->Power Schemes->Turn off monitor" time period has expired. The monitor stays on contiuously. This issue exists even if I exit iTunes. I need to manually go into control panel and reset the "Turn off monitor" setting.
    I suppose there might be a reason iTunes wants to disable this when it's executing but how about putting this energy saving setting back they way it found it when I exit iTunes.
    Is there a way to do this?
    Thanks,
    J

    Hello avalove2003,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More. 
    I have read your post on how your monitor is displaying an error message stating: "Power Button  Lockout", and I would be happy to guide you towards a resolution!
    Since you have already performed a factory reset on the monitor, I recommend contacting our technical support at 1-800-474-6836. If you live outside the US/Canada Region please click the link below to get the support number for your region.
    http://www.hp.com/cgi-bin/hpsupport/index.pl
    I hope this helps!
    Have a great weekend!
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • GT70 BSOD or Stuck after Windows puts it to sleep mode of turns off monitor

    Hi Everyone!
    i have an  issue (or 2) with my laptop.
    both happens when:
    1) whenever i put the laptop into sleep mode or either windows does so automatically (inactive period), - the laptop will go to sleep just fine.
    2) windows turns off monitor after a period of inactivity. (sleep mode due to inactivity was disabled in this case)
    in both the cases i mentions above, if i wake the computer within lets say 5 minutes, it'll turn on just fine.
    but after a certain period of time passes it wont.
    with the sleep mode, the computer will wake and will then produce a BSOD STOP error 0x4 and restart.
    with monitor turned off it'll simply wont turn on, not responding to neither keyboard, mouse or power button. - i have to do a hard reboot
    any ideas?
    anything i can check?
    note the laptop just came back from a warranty repair, so all parts have been tested and been found ok!
    system specs:
    MSI GT70-0ND
    CPU: Intel Core i7-3630QM 2.4GHz (Intel GPU HD 4000 included)
    Memory: 16GB DDR3
    Storage: 750GB HDD 7200rpm
                   128GB SSD (Patriot Pyro SE) - OS installed on this.
    GPU: 4GB NVIDIA Geforce GTX 675MX
    OS: Windows 7 64bit
    Thanks in Advance!!

    i dont think i have the same problem as in the other thread.
    my bios:
    my laptop doesnt restart when my screen is turned off and i try to wake it. it would simply wont wake up.
    and my BSOD happens only after i wake the laptop from sleep mode and only if it been in sleep mode for a while. meaning i if i wake it up within a few mins of going to sleep it'll boot justfine.

  • When I move mouse on Firefox-History (it must show context menu) he just begins to think, and after ~20 seconds he looks like I haven't pressed any buttons! I tried to turn off all addons but it doesn't help. Also he "thinks" everytime when gets download

    when I move mouse on Firefox-History (it must show context menu) he just begins to think, and after ~20 seconds he looks like I haven't pressed any buttons! I tried to turn off all addons but it doesn't help. Also he "thinks" everytime when he gets new downloading and sometimes on pushing Bookmarks

    Try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.

  • My iPod 5th generation won't turn on and my middle button doesn't work

    My ipod 5th generation won't turn on and my middle button doesn't work! What will I do? It all starmed when I updated iOS 8. It would be fine but would shut down at random, now it won't turn on at all!!! when I press the lock button to turn it on the Apple sign would come up for about 5/10 minutes!! so what will I do???

    Try:                                               
    - iOS: Not responding or does not turn on           
    Ignore the reset and when it says place the iPod in recovery mode
    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                          
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:       
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable              
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • How do you close a dragged applet, as Stage.close() doesn't work?

    I'm trying to implement a close button in a draggable applet, but Stage.close() doesn't work, and there's an odd little "X" icon which is causing me problems...
    My starting point and example is the simple draggable applet from the API documentation. It's the code listed under "User-Specified Close Example":
    http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.AppletStageExtension.html
    import javafx.scene.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.text.*;
    import javafx.stage.*;
    var textContent = "Click the box to return to the browser";
    var outside: Boolean = false;
    var s: Stage = Stage {
        title: "AppDeploy Demo"
        width : 300 height : 200
        style: StageStyle.TRANSPARENT
        opacity: 0.5
        scene : Scene {
                content: [
                    Text { content: bind textContent 
                           x: 25 y:35 fill: Color.BLACK
                           font: Font{size: 24}
                    Rectangle { x: 100 y: 100 width: 100 height: 100 fill: Color.RED
                                onMouseClicked: function(e: MouseEvent): Void {
                                    s.close();
        extensions: [
            AppletStageExtension {
                shouldDragStart: function(e: MouseEvent): Boolean {
                    return e.shiftDown and e.primaryButtonDown;
                useDefaultClose: false
    }However, the Stage.close() function in the user code doesn't seem to close the applet once it's dragged. It seems this can only be achieved by a mysterious little "X" in a box top right, acting as a close button.
    Here's a demonstration of the problem once you've compiled that code:
    1. Open browser with applet (I'm using IE8 on Windows XP)
    2. Shift-drag the applet out of the browser. Notice the little X in a box appears when you drop the applet on the desktop.
    3. Click the red rectangle to invoke the Stage.close() function in the user code.
    4. Applet disappears from screen and does not reappear in the browser.
    5. But minimising all the icons on the desktop shows the little X in a box is still there sitting on your desktop (actually I find the X has gone, but the box is still there). This suggests the applet is still running.
    6. Close the browser. The little X's box is still on the desktop.
    7. After a short pause a Java dialog box appears: "Desktop integration warning. The application would like to create shortcuts. Do you want to continue? OK/Skip" The applet wasn't closed, it is still running!
    8. Click Skip. Dialog box disappears. But the little X's box is still on the desktop. Is the applet still running?
    9. Try to recompile app again into a deployable Jar (I'm using Eclipse for this).
    10. The compiler stops with "ERROR: Jar file C:\[...].jar could not be deleted. The Jar is probably locked by running application, Web browser, emulator or antivirus. Please check that all windows related to the application have been closed." Yes, the applet Jar is still being used.
    11. Minimise all the windows. The little X's box is still on the desktop.
    12. Click the little X's box.
    13. After a few seconds the box disappears. Does this mean the applet is no longer in use...?
    14. Recompile the app again into a deployable Jar. It works!
    By the way, you get the same experience with another Sun sample: the DraggableMP3Player at
    http://javafx.com/samples/DraggableMP3Player/index.html
    That, too, thinks it's implementing it's own close button, and again the same problem occurs.
    So it seems Stage.close() doesn't properly close the applet, and only the the little X in a box will do this.
    I'd like to be able to really close the applet from my own code. How can I do this?
    Many thanks
    Nik
    Edited by: nik.silver on Aug 6, 2009 12:48 PM

    After double tap home button, swipe up on the app card that appears above the icon.

  • My ipod touch 5th generation will not turn on and the home button doesn't work. what do i do?

    Hello my name is Leslie and i would like to ask you guys a question on how to fix my ipod or what is wrong with it. My ipod touch 5th generation will not turn on and the home button doesn't work. what can i do to fix it ?

    Has the home button worked in the past, or is this been something that hasn't worked for some time? The only way to reset the device is with the sleep/wake (power) and home buttons together. Without it, you would have to wait until the battery dies and then plug it in to try and reset it. The Home button is used for several user troubleshooting steps. Without it, you cannot perform a reset, put the device into recovery mode, or place it in DFU mode. You need to get the home button repaired.

  • I updated imovie, which is now totally different.  I tried to import videos from iphotos, but the system is now stuck on "import" and it doesn't include iphotos.  Clicking on "close" doesn't work.  How do I get out of "import"?

    I updated imovie, which is now totally different.  I tried to import videos from iphotos, but the system is now stuck on "import" and it doesn't include iphotos.  Clicking on "close" doesn't work.  How do I get out of "import" and then how do I access iphoto?

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

Maybe you are looking for