Lid closed: who is calling suspend?

Hi there.
I haven't installed acpid nor pm-utils.
My /etc/systemd/logind.conf contains "HandleLidSwitch=ignore".
And yet my Samsung series 9 laptop gets suspended on "lid close".
dmesg shows the same entries whether I invoke "systemctl suspend" or close the lid.
Questions:
  .1 how is the event flow for "lid close" without acpid / pm-utils - who handles the event?
  .2 how can I deactivate the handler or specify my own?
Thanks in advance,
Andy
Last edited by andy4712 (2013-05-20 18:23:04)

@andy4712
In my case I'm using XFCE as DE. I just changed my /etc/systemd/logind.conf
Standard:
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=ignore
To:
HandlePowerKey=ignore (In my case I need change the Xfce Power Manager the action that I want in this button)
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=ignore
This is my whole file /etc/systemd/logind.conf
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See logind.conf(5) for details
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=ignore
PowerKeyIgnoreInhibited=yes
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes

Similar Messages

  • Suspends only every second time when lid closed

    Hello everybody, my problem is as the  subject: to suspend I have to close usually the laptop lid twice.
    I'm using kde, but I have also used years ago fluxbox, tweaking scripts and using laptop-mode (which is not running now). Thanks in advance for every idea where to look.
    /etc/acpi$ cat handler.sh
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    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)
    case "$2" in
    PBTN|PWRF)
    logger "PowerButton pressed: $2"
    poweroff
    logger "ACPI action undefined: $2"
    esac
    button/sleep)
    case "$2" in
    SLPB|SBTN)
    echo -n mem >/sys/power/state
    logger "ACPI action undefined: $2"
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    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)
    logger 'Battery online'
    00000001)
    logger 'Battery offline'
    esac
    CPU0)
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/lid)
    case "$3" in
    close)
    logger 'LID closed'
    open)
    logger 'LID opened'
    logger "ACPI action undefined: $3"
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    # vim:set ts=4 sw=4 ft=sh et:

    I actually do not understand who comands at the end - this handler.sh or the settings in Kde-powermanaging, I guess it's the second, I did remove the actions for suspend on lid close time ago. I made a test now, when I change handler.sh and check "do nothing when lid close" in kde powersettings happens exact the same: performs suspend every second time only.
    button/lid)
    case "$3" in
    close)
    logger 'LID closed'
    /usr/sbin/pm-suspend
    open)
    logger 'LID opened'
    logger "ACPI action undefined: $3"
    esac
    Last edited by steff (2012-07-21 17:08:46)

  • Dell Inspiron 9400 not suspending on lid closing

    I am currently running arch linux 64 bit with LXDE.  I aslo have loaded modules acpid, howvever when I close the laptop lid it does not suspend to ram. After using google, I did not doscover any solution that worked for me.  According to one site, I added tthe following code to /etc/acpi/events/lid
    event=button/lid
    action=/etc/acpi/actions/lid.sh
    /etc/acpi/actions/lid.sh contains:
    #!/bin/bash
    sleep &
    sudo /usr/sbin/pm-suspend
    acpid is runnig, however, when the lid is closed and acpi_listern is running there is printed to the terminal.
    Would appreciate any help that help me solve this problem.

    I tried that first, but it did not work. 
    /etc/acpi/handler.sh contains:
    #!/bin/sh
    # Default acpi script that takes an entry for all actions
    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
    PBTN|PWRF) logger "PowerButton pressed: $2" ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    button/sleep)
    case "$2" in
    SLPB|SBTN) echo -n mem >/sys/power/state ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    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)
    case "$3" in
    close)
    #echo "LID closed!">/dev/tty5
    sudo /usr/sbin/pm-suspend
    logger -s "ACPI lid closed";
    open)
    #echo "LID opened!">/dev/tty5
    logger -s "ACPI lid opened"
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    According to one site I give member of the power group the ability to shutdown and restart the system without the requiring a password.
    /etc/sudoers contains:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    %power ALL=(ALL) NOPASSWD: /usr/sbin/pm-hibernate
    %power ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
    %power ALL=(ALL) NOPASSWD: /sbin/halt
    %power ALL=(ALL) NOPASSWD: /sbin/reboot
    %wheel ALL=(ALL) NOPASSWD: /usr/bin/yaourt -Sy
    %jupiter ALL=NOPASSWD: /usr/lib/jupiter/scripts/bluetooth, /usr/lib/jupiter/scripts/camera, /usr/lib/jupiter/scripts/cpu-control, /usr/lib/jupiter/scripts/resolutions, /usr/lib/jupiter/scripts/rotate, /usr/lib/jupiter/scripts/touchpad, /usr/lib/jupiter/scripts/vga-out, /usr/lib/jupiter/scripts/wifi
    The pm-suspend does work, I can suspend from lxde menu and the suspend button but not when the lid is closed.
    Last edited by amcollie (2012-04-16 13:15:36)

  • Crashing MBA w/lid closed?

    I have been having some very weird intermittent problems with my MBA (description below).  Sometimes, when the lid is closed, it will chime and reboot.  Never happens with the lid open/not sleeping.  Sometimes it's right away and other times it can be after a long sleep.
    I can't actually tell whether this is a software issue or a hardware issue, and it seems difficult to reproduce reliably.  It only seems to crash when VMware Fusion 5.0.2 running, although it doesn't matter whether a guest is running, suspended, or not even open.  I haven't seen a crash with Fusion *not* running.  Usually nothing else is running (except of course Finder).
    But OTOH, it seems like it could be a hardware problem because if I touch or gently squeeze the MBA at the back near the hinge, I can sometimes get it to crash.  Lid closed, touch or pinch the back hinge, and you'll hear the chime, and if you open the lid it will have restarted.  It doesn't seem like it's related to the power button at the upper right because if I pinch the MBA closer to where the button would be, it doesn't crash.
    I have an open issue with VMware on this, but they can't figure it out, and as I say, it may not even be a software issue, except that I can't crash it if Fusion isn't running (yet ).
    I'm totally perplexed.

    I've finally verified that this has nothing to do with Fusion.  With the lid closed and nothing running, I can (sometimes) crash the machine just by pinching the top and bottom, near the rear hinge about 1-2" from both edges.  Maybe it's a hardware bug - has anyone else seen thing?  I suppose I need to call support.

  • Computer freezes in lid-closed mode when connected to external display

    I have a Sylvania SC190 CRT display connected to my Powerbook via a VGA to DVI adapter. Every time I put the computer in lid-closed mode and try to run it off of just the SC190, after a few minutes it freezes up and I have to hard restart it(hold power button down).
    Now, a few days ago, my powerbook stopped recognizing the display as an SC190, and just recognized it as a VGA Display. Don't know if this is relevant, as I have never used lid-closed mode before.
    Does anyone know what the problem is, and/or what I can do about it?
    Thank you.
    PowerBook 15" G4 1.67 GHz   Mac OS X (10.4.8)   512MB, 80GB, SD-DL

    I have the exact same problem.
    Here's my story:
    To give you some backgroud, my setup involves having the macbook on a mstand hooked up to an external monitor. I run a usb hub from my macbook, this is where my mouse transceiver is plugged in. I use am Apple wireless bluetooth keyboard (latest slim model)
    I recently purchased the 13.3' inch 2.26 MBP as I gave my older 2.0 uMB to a family member. The computer is in the stock configuration with no hardware upgrades.
    I have noticed weird behaviour when waking the computer from sleep when the lid is closed. When i wake the computer up (by tuning on bt keyboard), the keyboard light blinks like there is not bt connection and the computer will wake in an inactive state. The led light will be on, but when i flip the screen up....nothing. Screen is dark, keyboard pressing does not illicit any responses. I have to do a hard reboot by holding down the power button to restart the computer. Unfortunately any previous data or work is lost.
    I work in IT so I completed troubleshooting and also things outlined on forums in google. Reset PRAM, reset SMC and also reinstalled OSX. Still I get the same result. Fearing I purchased a defective unit, I called Apple and they told me i could exchange the computer so I dropped by the apple store and exchanged it quite easily.
    I've spent hours restoring from time machine and I am experiencing the same issue on my new laptop. I'm now assuming its not hardware but more firmware related as I had to do a bluetooth firmaware upgrade when I bought the computer when I checked for software updates.
    Is anyone else having any wake issues with their new MBPs? And what should I do next? Should I exchange for a 3rd unit? Thanks for you help everyone.

  • Why doesn't the Macbook work lid-closed??

    I've only just discovered that the Macbook will try to go to sleep every time i close it's lid. For me, this is possibly the most annoying thing that any laptop could ever do!
    I know the Macbook is designed for lid closed use when external keyboard, mouse and display are connected. But if it doesn't overheat in this situation, then why should it be a problem without any of these connected!?
    I use my laptops esentially as desktops. Download and encode video overnight, play mp3's 24/7 and don't want to leave the lid open for dust to collect just to be able to do these things.
    Can anyone think of anything to explain this crazy behaviour? Or vouch for the use of software to work around this, such as sleepless.
    Macbook (White) 2.0GHz   Mac OS X (10.4.6)   - 2Gb RAM, 80Gb HD

    Wtihout knowing Aple's specific reasons I would think that it were a safely reason. With the lid closed it would hence but unknown if it were on. There are no lights or anything to say this so potentially you can grab it and move it as though you would when off. Thi s could be extremely bad, even with the sudden motion sensor.
    When it is connected to an external monitor you will at minimum have to disconnect it and USB mouse/keyboard which does give you time to think that it's on.
    I have the same issue as you do though as I have a PowerBook currently running as a server. I use a very high tech device to keep the lid open just enough to keep the thing from sleeping.… it's called an eraser.

  • Is there anyway to have an 11 inch mac air connected to an external monitor with lid closed and still be able to see content. I have a wireless ketboard and mouse and have tried everything. Only works when plugged in.

    Is there anyway to have an 11 inch mac air connected to an external monitor with lid closed and still be able to see content. I have a wireless ketboard and mouse and have tried everything. Only works when plugged in.

    You are referring to a feature called Clamshell Mode, please read Clamshell Mode setup for instructions.
    BTW when posting when you use generalities such as "have tried everything" this tells us nothing. When posting please be specific and try to paint a complete picture. It just makes things easier for those trying to help you.

  • Will Logitech Wireless keyboard/mouse work in lid closed mode?

    I know you are supposed to plug in a USB keyboard and mouse to get the MacBook to work in lid closed mode.
    Is it a strict requirement to be USB wired? Or will the Logitech wireless desktop be sufficient (with radio dongle plugged into USB)?
    Thanks.
    iMac Core Duo 2.0 Ghz   Mac OS X (10.4.7)  

    I honestly do not have a lot of confidence in this working.
    Unless you can find someone who's done it or somehow get an answer from Logitech (good luck with that one) I don't know how you're gonna find out, short of buying the combo and returning it if it doesn't work.
    Applecare is willing to help things work properly when they should, but something like this isn't gonna get you any response or help over the phone other then a reference back to these forums or to Logitech/google.
    Hope you find an answer, but all i know is that if it says USB...then there must be a reason. Doesn't mean nothing else will work though, but might not be the easiest thing to get an "in advance" response on.

  • Wakes from sleep while lid closed

    I got my MBP three weeks ago and I have noticed that when I have the lid closed and it is sleeping and I set it down it begins to make noise and when I open the lid I see that has already come out of sleep mode. I know that the MBP's have a motion sensor that shuts off the hard drives when it senses that the computer is falling or something. When I'm putting it down and it does this, it is always on a hard surface but it's not like I'm dropping the computer down, I'm gently placing it. Any thoughts?

    That's cool.. It's good to see they fixed it on the latest revision. The college ordered these right before apple's last upgrade to the MBP. These are the 2.33 GHZ Core 2 Duo machines. The tech did mention that I could take these to the nearest Apple store.. a 2 hour drive, and one of the people at the store could evaluate them and then decide if they should be fixed. No guarantee they would.. and according to him and my description.. "the behaviour is expected.."
    While it would be worth popping them into a fedex shipper to know they'd get fixed.. I guess I have to decide if it's worth a two hour drive to maybe get it fixed. The sleep sensor is such a simple and small part.. I'm reasonably confident I can fix it. I'll weigh my options in the next couple of days. Now that I know what's causing it.. I'm not as worried about it as I was. I had envisioned bare wires shorting out in the lid or something.
    I will contrast Apple's support with Dell's though. I really despise Dell.. but, when the college has a problem with a machine, they send a part out no questions asked. The college has it's own tech support team and Dell will either send a tech immediately, or send the part to one of our team members. I'd really like to see the college choose more apple products. But, their response to our repair request has hurt that effort. Can you see us with a lab full of macs driving them two hours to an Apple store because of some hardware problem? We don't pay any extra for the Dell support, it's part of the product warranty. Apple could learn a thing or two...
    I may stew on this a few days and call tech support again..

  • Watching video with lid closed

    Is it possible to close the lid and have the DVD playing continue when theto the mini DVI port is connected to an external display device??
    Thanks
    Lewis

    Short answer is no, the reason is that the iBook vents out the kerboard and if you run it with the top closed it will overheat.
    long answer is yes, you can run it with the lid closed, it would probably void warranty, but its possible. I run linux in my iBook and it lets me run with the lid closed, and there is some hack for mac that lets you do the same, I don't remember what it is called, but being a long answer you can probably find it on google.

  • Can you watch movies with lid closed on Powerbook G4 that's connected to TV

    Hi there, is it possible to have a Powerbook G4 connected to a TV and watch movies with the Powerbook's lid closed.

    yes, but you need some sort of device like a mouse or a keyboard to "wake" it up. can be wired or wireless.
    an app called "caffeine" may also work, you can try it, it's a free utility that keeps the machine awake.
    http://lightheadsw.com/caffeine/

  • New HDD keeps spinning with lid closed

    I have replaced the original 160GB HDD in a Macbook late 2008, OS-10.6.8, with a WD Black Scorpio 750GB.
    The thing is that when I close the lid, the screen gets black but the disk keeps spinning.
    If I set it to sleep in the Apple menu, then the drive get silent. … Worrisome?

    My iBook G4 went back to Apple just an hours ago. A lot of issues developed, which I suspect is a bad logic board, but who knows:
    * Intermittent problems like yours where it can't sleep with the lid closed
    * Waking up to either the black screen of death or else the screen freezes (and the cursor disappears) within a few seconds after waking up (the panic log suggested an AirPort issue, but who knows?)
    * The combo drive will not play or rip some CDs (although if I make a copy of the CD on another computer, it plays fine)
    * Yesterday in the middle of writing an e-mail, the screen went dark with a series of vertical white lines
    The last issue convinced me it was a logic board problem and had to go back.
    I'm typing this on my previous iBook (G3, 800 MHz) that had some issues with the battery and AC adapter failing and did have the closed lid/sleep/wake cycle issue that you have but it works fine now and never had a documented logic board problem. I'm surprised the bugs haven't gotten worked out of the iBook after all these years. Very disappointing!

  • Laptop lid closing function doesnt work correctly

    Hello,
    I use openbox and acpid is installed.
    When I close laptop screen, my laptop does not sleep nor hibernate, fans continue to work and if I put the laptop in to a laptop bag ( which I did because I thought it was working ),  the laptop becomes very hot in very short time.
    If I want to open the laptop again, screen does not open. I dont know if the system is really working or not but it doesnt open no matter what. So I'm forced to do hard reset.
    systemd-logind service logs like its working normally but it is not;
    Mar 01 20:02:11 isg00051371 systemd-logind[356]: Lid closed.
    Mar 01 20:02:11 isg00051371 systemd-logind[356]: Suspending...
    Mar 01 20:02:11 isg00051371 logger[1286]: LID closed
    -- Reboot --
    What should I do to fix this problem ?

    Both of them failed again.
    systemctl restart systemd-login made X crashed, so I started X again and used them together "sudo systemctl restart systemd-login && systemctl suspend", but same thing happened
    pm-utils made fast move and I thought it worked, but then fan started to make noise, and when I tried to open it, it failed again;
    Mar 02 00:46:34 isg00051371 sudo[601]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pacman -S pm-utils
    Mar 02 00:46:34 isg00051371 sudo[601]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
    Mar 02 00:46:44 isg00051371 sudo[601]: pam_unix(sudo:session): session closed for user root
    Mar 02 00:47:10 isg00051371 sudo[647]: kerem : TTY=pts/0 ; PWD=/home/kerem ; USER=root ; COMMAND=/usr/bin/pm-suspend
    Mar 02 00:47:10 isg00051371 sudo[647]: pam_unix(sudo:session): session opened for user root by kerem(uid=0)
    Mar 02 00:47:10 isg00051371 kernel: EXT4-fs (sda5): re-mounted. Opts: data=ordered,commit=0
    Mar 02 00:47:10 isg00051371 systemd-udevd[215]: error opening USB device 'descriptors' file
    Mar 02 00:47:10 isg00051371 kernel: usb 3-7: USB disconnect, device number 2
    -- Reboot --
    I find arch wiki very confusing, it's not helpful. Only helpful guide was beginner's guide, the rest is either confusing or incomplete.
    I think I'll install either Xfce or Gnome, because this is making me feel I'm going nowhere.
    Also, another thing is, I dont know if its about  disabling acpid but, now whenever I do something new, like opening a tab in firefox, clicking on search area in arch wiki, my machine acts like a new cd inserted, but instead it uses hdd, it stops for 1 second, drive starts moving, then it acts, and I'm talking about 8gb ram, i7 machine...

  • Laptops in docking station with lid closed go to sleep during in-place migration from XP to Windows 7

    We have an issue where existing XP laptops are targeted with SCCM 2012 OSD TS for upgrade to Windows 7.  The laptops are in a docking station, with the lid closed.  The laptops are going to sleep when the OSD is booted in WinPE, just before the
    Setup Windows and Configmgr step.  I have copied powercfg.exe from a Windows 8.1 machine (both AMD64 and x86 versions) to the MDT Tool package...." and then a step to run:
    %DeployRoot%\Scripts\%PROCESSOR_ARCHITECTURE%\PowerCfg.exe -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
    However, the laptops are still sleeping during the Setup Windows and Configmgr step.   Any insight to correcting this will be extremely helpful.

    Hi
    We came across this issue, seems odd that SCCM doesn't suspend the power management in the OS during the TS - (But then again it also seems odd that Windows 7 will go to sleep if you close the lid of a laptop half way through a shutdown, so that when you
    lift the lid it wakes only to complete the shutdown, did MS not spot that, or choose to ignore it!?).
    These commands should be run soon after the Setup Windows and ConfigMgr step and will disable the device and screen from sleep/hibernating:
    Prevent sleep during OSD (Battery power)
    cmd.exe /c powercfg -x -standby-timeout-dc 0
    Prevent sleep during OSD (AC power)
    cmd.exe /c powercfg -x -standby-timeout-ac 0
    Prevent monitor off during OSD (Battery power)
    cmd.exe /c powercfg -x -monitor-timeout-dc 0
    Prevent monitor off during OSD (AC power)
    cmd.exe /c powercfg -x -monitor-timeout-ac 0
    Prevent hibernate during OSD (Battery power)
    cmd.exe /c powercfg -x -hibernate-timeout-dc 0
    Prevent hibernate during OSD (AC power)
    cmd.exe /c powercfg -x -hibernate-timeout-ac 0
    At the end of the TS, you can revert these changes by running the following command to reset the power scheme:
    powercfg -restoredefaultschemes
    Hope this helps
    Thank you.  However, we did put similar steps in our Task Sequence right after the "Setup Windows and..." step, but the issue we are having is that the "Sleep" occurs during the "Setup Windows and...." so it never reaches
    anything after that step until the lid is opened.

  • Any way to prevent macbook air from sleeping when lid closed?

    I believe there is no way to keep your macbook/air running when you shut the lid.
    I am running a background job where I am downloading a huge amount of data from the internet, which is coming through slowly (other applications could be where I am running a web server....). I want the machine to be running, but not keep the lid open - since I might want to move the laptop, not leave the screen/keyboard exposed.
    Where can I request Apple to add support for this behavior? Or did they anticipate this request in Mountain Lion already?
    Any suggestions? Others who would like the same feature?

    NoSleep makes closing of your MacBook lid possible without going into sleep mode. Now you shouldn't plug your mouse and monitor to stay computer awake - just check a tick in the System Preferences and continue downloading of huge files and watching favorite movies over the network with lid closed.
    here you go : http://lifehacker.com/5934158/nosleep-for-mac-prevents-your-macbook-from-sleepin g-when-you-close-the-lid

Maybe you are looking for

  • Online Store 1.0  - which process set the value of App Item 'FULLNAME'

    Hi, I just very curious about which process set the value of App Item 'FULLNAME' ini the packaged Apex App - Online Store 1.0 . At Navigation Bar, there is a entry named "If you are not &FULLNAME., Click here |". However I can't find how the app set

  • HT1657 Why can't you rent 'A Separation' in the iTunes store?

    They only let you buy the movie, and not rent it What Gives?

  • Fex on N7K with license?

    Hello, I would like to connect only one Fabric Extender to the Nexus 7000. For this purpose I need an XL module to connect to. Am I right? Is it necassary to buy the "Scalable Feature License" additionally or do I need only an 5.1 NX-OS without this

  • Activating Photoshop CS2?

    Help: I have CS2 and Photoshop is giving me an error message that I have to get a new authorization because it detected changes to my computer (running windows 7) the options given to get authorization are no longer valid (tried two phone numbers and

  • !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".

    Hi experts, when in Design Studio, I have selected, Tools, Preferences and then Backend Conections, appears this problem with eclipse, What happend?, Thanks in advance, !ENTRY org.eclipse.jface 4 2 2014-05-27 12:37:08.751 !MESSAGE Problems occurred w