Wake/Sleep   Lid Closed/Opened????

Hi.
Need help on wake/sleep problem on my MBP 13" Early 2011 model. I have these symptoms now:
a) Computer does no wake from sleep. Must reboot everytime it goes to sleep.
b) When the computer is in sleep mode and I close the lid, the computer wakes up...
c) When I open the lid, the computer goes into sleep mode...
I have this problem since I used an external monitor.
Do you guys know how to solve this?

I have replied to a similar question on another thread: https://discussions.apple.com/message/18196556#18196556
Basically, I think I have the same problem as you do. 
Do you ever see a fully functional cursor on your screen when your machine is otherwise not waking up?
Put your screen in the sunlight at a nearly 90 degree angle (to illuminate the pixels a bit). Do you see any hints of operating pixels meaning the screen backlight is just off?
Do you use any apps in full-screen mode?  I'm trying to figure out if the problem is related to full-screen mode.
Do you use Snapz Pro?
I see all of these issues. Hints?

Similar Messages

  • 10.5.2 wake/sleep and closed-lid problems

    As of 10.5.2 my MBP no longer works correctly in closed lid mode using a hardware
    setup that previously worked flawlessly. After plugging in power and video, plugging
    in the USB keyboard seems to wake the system, but no video. I then must open the
    lid, unplug the USB and video and try to get the system to respond. I often must cycle
    the power to reset the system--very disturbing to do that.
    Also as of 10.5.2, I have had to power-cycle the machine when it has refused to wake
    in open-lid mode and this weekend I the entire machine froze (no mouse movement,
    no expose, etc) in the middle of work using a graphics-intensive program and I had
    to reboot by cycling the power.
    A friend also reported similar issue in which the system would not respond after the
    screensaver became active.
    Are others seeing problems like these? I am beginning to suspect that the post-10.5.2
    graphics update has problems.

    I just wiped my HD and reinstalled everything besides the Graphics Update. I can now close the lid of my MBP and use my external monitor alone. The Graphics Update had made that impossible.
    Further, I am in the habit of putting my MCP to sleep and putting it in a backpack in the morning, meeting friends for breakfast, and re-awakening it at the office. When I did get to my office, I found (as another user had on another thread) that the MBP, even closed, had woken itself up and was hot as heck. I am uncertain that sleep will work properly under 10.5.2, but I know that the display wackiness of the Graphics Update was driving me nuts. I will not install it until Apple fixes it.
    I looked around for awhile for a way to uninstall the Graphics Update, but could not find it...I suspect it exists somewhere.
    The 10.5.2 Combo update (343MB download) DOES NOT include the Graphics Update, and at this time, I seem quite ok with everything else updated.

  • White stairs on screen after waking from sleep (lid closed)

    recently my Mid 2012 MBP has started to show large jagged white stairs on screen after awaking from sleep. Anybody have any ideas? I will try to attach a picture when it happens again. (new phone)
    last one had what looked like blown pixels. goes away after reboot

    Mid 2012 you are still under warrenty. I would not hesitate to call their help desk or take it in for elvaluation.
    Genius reservation http://www.apple.com/retail/geniusbar/
    check warranty https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • [SOLVED] how to prevent suspending/sleeping when closing laptop lid

    Hi all,
    My laptop, a Lenovo Thinkpad T430u, suspends whenever I close the lid. It's been doing this since I first installed Arch.  I want to turn this feature off.  How can I do it?
    Relevant information:
    acpid is installed
    the configuration file /etc/acpi/handler.sh
    #!/bin/bash
    # Default acpi script that takes an entry for all actions
    case "$1" in
    button/power)
    case "$2" in
    PBTN|PWRF)
    logger 'PowerButton pressed'
    logger "ACPI action undefined: $2"
    esac
    button/sleep)
    case "$2" in
    SLPB|SBTN)
    logger 'SleepButton pressed'
    logger "ACPI action undefined: $2"
    esac
    ac_adapter)
    case "$2" in
    AC|ACAD|ADP0)
    case "$4" in
    00000000)
    logger 'AC unpluged'
    00000001)
    logger 'AC pluged'
    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
    case $(cat /proc/acpi/button/lid/LID0/state | awk '{print $2}') in
    closed) XAUTHORITY=$(ps -C xinit -f --no-header | sed -n 's/.*-auth //; s/ -[^ ].*//; p') xset -display :0 dpms force off ;;
    open) XAUTHORITY=$(ps -C xinit -f --no-header | sed -n 's/.*-auth //; s/ -[^ ].*//; p') xset -display :0 dpms force on ;;
    esac
    logger "ACPI group/action undefined: $1 / $2"
    esac
    # vim:set ts=4 sw=4 ft=sh et:
    dmesg output:
    [ 1530.790532] PM: Syncing filesystems ... done.
    [ 1530.805678] PM: Preparing system for mem sleep
    [ 1530.844445] Freezing user space processes ... (elapsed 0.01 seconds) done.
    [ 1530.856658] Freezing remaining freezable tasks ... (elapsed 0.10 seconds) done.
    [ 1530.963435] PM: Entering mem sleep
    [ 1530.963572] Suspending console(s) (use no_console_suspend to debug)
    [ 1531.123543] iwlwifi 0000:03:00.0: iwl_pcie_cmdq_reclaim: Read index for DMA queue txq id (9), index 207 is out of range [0-256] 208 208.
    [ 1531.124216] sd 0:0:0:0: [sda] Synchronizing SCSI cache
    [ 1531.124579] sd 0:0:0:0: [sda] Stopping disk
    [ 1531.360682] mei 0000:00:16.0: suspend
    [ 1531.440517] ahci 0000:00:1f.2: power state changed by ACPI to D3hot
    [ 1531.687309] PM: suspend of devices complete after 722.490 msecs
    [ 1531.687784] PM: late suspend of devices complete after 0.469 msecs
    [ 1531.688232] pcieport 0000:00:1c.3: System wakeup enabled by ACPI
    [ 1531.714222] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
    [ 1531.727619] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
    [ 1531.754015] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
    [ 1531.767422] PM: noirq suspend of devices complete after 79.565 msecs
    [ 1531.768301] ACPI: Preparing to enter system sleep state S3
    [ 1531.797647] PM: Saving platform NVS memory
    [ 1531.799282] Disabling non-boot CPUs ...
    [ 1531.900721] smpboot: CPU 1 is now offline
    [ 1532.004162] smpboot: CPU 2 is now offline
    [ 1532.107554] smpboot: CPU 3 is now offline
    I have pmutils and tlpinstalled
    tlp config
    # tlp - Parameters for power save
    # Hint: some features are disabled by default, remove the leading # to enable them
    # Set to 0 to disable/1 to enable TLP
    TLP_ENABLE=1
    # Seconds laptop mode has to to wait after the disk goes idle before doing a sync.
    # Non-zero value enables, zero disables laptop mode.
    DISK_IDLE_SECS_ON_AC=0
    DISK_IDLE_SECS_ON_BAT=2
    # Dirty page values (timeouts in secs).
    MAX_LOST_WORK_SECS_ON_AC=15
    MAX_LOST_WORK_SECS_ON_BAT=60
    # Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative
    # Important:
    # - You *must* disable your distribution's governor settings or conflicts will occur
    # - ondemand is sufficient for *almost all* workloads, you should know what you're doing!
    #CPU_SCALING_GOVERNOR_ON_AC=ondemand
    #CPU_SCALING_GOVERNOR_ON_BAT=ondemand
    # Set the min/max frequency available for the scaling governor.
    # Possible values strongly depend on your cpu. For available frequencies see
    # tlp-stat output, Section "+++ Processor".
    # Hint: Parameters are disabled by default, remove the leading # to enable them,
    # otherwise kernel default values are used.
    #CPU_SCALING_MIN_FREQ_ON_AC=0
    #CPU_SCALING_MAX_FREQ_ON_AC=0
    #CPU_SCALING_MIN_FREQ_ON_BAT=0
    #CPU_SCALING_MAX_FREQ_ON_BAT=0
    # Set the cpu "turbo boost" feature: 0=disable / 1=allow
    # Requires an Intel Core i processor and kernel 3.7 or later.
    # Important:
    # - This may conflict with your distribution's governor settings
    # - A value of 1 does *not* activate boosting, it just allows it
    #CPU_BOOST_ON_AC=1
    #CPU_BOOST_ON_BAT=0
    # Minimize number of used cpu cores/hyper-threads under light load conditions
    SCHED_POWERSAVE_ON_AC=0
    SCHED_POWERSAVE_ON_BAT=1
    # Kernel NMI Watchdog
    # 0=disable (default, saves power) / 1=enable (for kernel debugging only)
    NMI_WATCHDOG=0
    # Change CPU voltages aka "undervolting" - Kernel with PHC patch required
    # Freq:voltage pairs are written to /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
    # CAUTION: only use this, if you thoroughly understand what you are doing!
    #PHC_CONTROLS="F:V F:V F:V F:V"
    # Hard disk devices, separate multiple devices with spaces (default: sda).
    # Devices can be specified by disk id too (lookup with: tlp diskid).
    DISK_DEVICES="sda sdb"
    # Hard disk advanced power management level: 1(max saving)..254(off)
    # Levels 1..127 may spin down the disk.
    # Separate values for multiple devices with spaces.
    DISK_APM_LEVEL_ON_AC="254 254"
    DISK_APM_LEVEL_ON_BAT="128 128"
    # Hard disk spin down timeout:
    # 0: spin down disabled
    # 1..240: timeouts from 5s to 20min (in units of 5s)
    # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
    # (see 'man hdparm' for details)
    #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
    #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
    # Select io scheduler for the disk devices: noop/deadline/cfq (Default: cfq)
    # Separate values for multiple devices with spaces.
    #DISK_IOSCHED="cfq cfq"
    # SATA aggressive link power management (ALPM):
    # min_power/medium_power/max_performance
    SATA_LINKPWR_ON_AC=max_performance
    SATA_LINKPWR_ON_BAT=min_power
    # PCI Express Active State Power Management (PCIe ASPM):
    # default/performance/powersave
    # Hint: needs kernel boot option pcie_aspm=force on some machines
    PCIE_ASPM_ON_AC=performance
    PCIE_ASPM_ON_BAT=powersave
    # Radeon graphics clock speed (profile method): low/mid/high/auto/default
    # auto = mid on BAT, high on AC; default = use hardware defaults
    # (Kernel >= 2.6.35 only, not with fglrx driver!)
    RADEON_POWER_PROFILE_ON_AC=high
    RADEON_POWER_PROFILE_ON_BAT=low
    # WiFi power saving mode: 1=disable/5=enable
    # (Linux 2.6.32 and later, some adapters only!)
    WIFI_PWR_ON_AC=1
    WIFI_PWR_ON_BAT=5
    # Disable wake on lan: Y/N
    WOL_DISABLE=Y
    # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
    # A value of 0 disables / >=1 enables power save.
    SOUND_POWER_SAVE=1
    # Disable controller too (HDA only): Y/N
    SOUND_POWER_SAVE_CONTROLLER=Y
    # Set to 1 to power off optical drive in UltraBay (ThinkPads only)
    # when running on battery. A value of 0 disables this Feature (Default).
    # Drive can be powered on again by releasing (and reinserting) the
    # eject lever or by pressing the disc eject button on newer models.
    # Note: an UltraBay hard disk is never powered off.
    BAY_POWEROFF_ON_BAT=0
    # Optical drive device to power off (default sr0)
    BAY_DEVICE="sr0"
    # Runtime Power Management for pci(e) bus devices
    # (Kernel >= 2.6.35 only): on=disable/auto=enable
    RUNTIME_PM_ON_AC=on
    RUNTIME_PM_ON_BAT=auto
    # Runtime PM for *all* pci(e) bus devices: 0=disable / 1=enable
    # Warning: experimental option, could cause system instabilities
    RUNTIME_PM_ALL=0
    # Set to 0 to disable/1 to enable usb autosuspend feature
    USB_AUTOSUSPEND=1
    # Devices from the following list are excluded from usb autosuspend
    # (separate with spaces). Use lsusb to get the id's.
    # Note: input devices (usbhid) are excluded automatically
    #USB_BLACKLIST="1111:2222 3333:4444"
    # Set to 1 to disable autosuspend before shutdown/0 to do nothing
    # (workaround for usb devices that cause shutdown problems)
    #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
    # Restore radio device state (bluetooth, wifi, wwan) from previous shutdown
    # on system startup: 0=disable/1=enable
    # Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
    # are ignored when this is enabled!
    RESTORE_DEVICE_STATE_ON_STARTUP=0
    # Radio devices to disable on startup: bluetooth wifi wwan
    #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
    # Radio devices to enable on startup: bluetooth wifi wwan
    #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
    # Radio devices to disable on shutdown: bluetooth wifi wwan
    # (workaround for devices that are blocking shutdown)
    #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
    # Radio devices to enable on shutdown: bluetooth wifi wwan
    # (to prevent other operating systems from missing radios)
    #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
    # Radio devices to enable when wireless radio switch is turned on:
    # bluetooth wifi wwan (Ubuntu + ThinkPad only)
    #DEVICES_TO_ENABLE_ON_RADIOSW="wifi wwan"
    # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module required)
    # Charging starts when the remaining capacity falls below the START_CHARGE_TRESH
    # value and stops when exceeding the STOP_CHARGE_TRESH value.
    # Main battery (values in %)
    #START_CHARGE_THRESH_BAT0=75
    #STOP_CHARGE_THRESH_BAT0=80
    # Ultrabay or slice battery (values in %)
    #START_CHARGE_THRESH_BAT1=75
    #STOP_CHARGE_THRESH_BAT1=80
    # Set to 1 to disable use of tpacpi-bat on Sandy Bridge or newer Thinkpads
    # and force usage of tp-smapi instead
    #DISABLE_TPACPIBAT=1
    # tlp-rdw - Parameters for the radio device wizard
    # Possible devices: bluetooth/wifi/wwan
    # Hint: parameters are disabled by default, remove the leading # to enable them
    # Radio devices to disable on connect
    DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
    DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
    DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
    # Radio devices to enable on disconnect
    DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
    #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
    #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
    # Radio devices to enable/disable when docked
    #DEVICES_TO_ENABLE_ON_DOCK=""
    #DEVICES_TO_DISABLE_ON_DOCK=""
    # Radio devices to enable/disable when undocked
    #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
    #DEVICES_TO_DISABLE_ON_UNDOCK=""
    thanks guys
    I love arch
    Last edited by beitme (2013-06-08 10:05:37)

    @ Karol, done
    @ 65kid, here's my logind.conf
    [Login]
    #NAutoVTs=6
    #ReserveVT=6
    #KillUserProcesses=no
    #KillOnlyUsers=
    #KillExcludeUsers=root
    #Controllers=
    #ResetControllers=cpu
    #InhibitDelayMaxSec=5
    #HandlePowerKey=poweroff
    #HandleSuspendKey=suspend
    #HandleHibernateKey=hibernate
    #HandleLidSwitch=ignore
    #PowerKeyIgnoreInhibited=no
    #SuspendKeyIgnoreInhibited=no
    #HibernateKeyIgnoreInhibited=no
    #LidSwitchIgnoreInhibited=yes
    #IdleAction=ignore
    #IdleActionSec=30min

  • 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)

  • Wake/Sleep issue - Lid closed awake, lid open sleeping, wont wake

    MBP/Lion - I'm using my MBP in dual monitor mode with an external monitor and power supply connected. If I close the lid and then disconnect the monitor, my MBP won't wake after opening the lid. I know that with Lion a change was made and the power stays on  with an external monitor attached and the lid closed (with the adapter plugged in), but if you unplug the display, there doesn't seem a way out of this state. Even plugging the monitor back in, the display wont refresh (just black).
    In this state the power managment is confused. When closed, the power light is on, with the lid opened the power light goes off, the display remains blank and I can't wake the device. The only solution is to re-boot. 
    This *****, as I just want to close the lid, unplug power and the monitor and leave work to go home. I end up running the battery down if I don't catch it before putting the MBP in my bag, and I always have to reboot. Anyone else with this problem? Any solutions out there?

    I got a fix for you but you have to follow these instructions exactly:
    1. Unplug everything from your Macbook Pro.
    2. Open Terminal.
    3. Type: sudo nvram boot-args="iog=0x0"
    4. Enter your password.
    5. Reset your Mac and plug everything back in.
    6. Your computer will now be free of one more lion bug.
    If for any reason you want the old functionality back Zap the PRAM (Turn on your Mac and hold down the Command, Option, P, and R keys all at the same time)

  • Can I change the settings for sleep/wake when display is opened/closed?

    Every time I try to close my display the clasp doesn't catch completely & the display pops open causing it to wake from sleep mode. I have to put something heavy on top of the display when it is closed to keep it closed. The clasp is broken & I was wondering if I could simply change the automatic setting of waking the computer when the lid is opened? Everytime I move it, it pops open & I don't want my battery depleted.

    Hi, desire. To set PB so opening the display doesn't wake the computer:
    Applications > Utilities > Terminal
    Type or paste the following in the Terminal window:
    sudo pmset lidwake 0
    It will ask for your password. Type that in, hit return, and quit the Terminal.
    To change it back so the system wakes when you open the lid, type:
    sudo pmset lidwake 1
    Credit to Deegan for this tip.

  • 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..

  • Macbook sleep wake up with lid closed

    Hi everybody. Since 10.9 I had a strange issue with sleep on my MBP 15. If I put it in sleep with the button and I close the lid, it will wake up closed waiting for the password.
    Also, if it is in sleep while charging, or charged, and I plug off the magsafe, it will wake up again....even with lid closed.
    Already resetted PRAM, SMC, all the basics, any idea?
    Thnx in advance

    Sleep - Why your Mac might not sleep or stay in sleep mode
    Sleep - Won’t

  • Wake on wireless possible?  Disable sleep when lid closed?

    I just bought my first Mac & am still trying to figure some things out.
    Is there a way to have it wake on wifi? I like to be able to connect to my machines when I'm at the office. My Macbook goes to sleep & then I can't remotely access it. Wake on LAN works fine, but I don't want to keep an ethernet cable plugged in.
    Another thing I can't seem to get is how to disable the Macbook sleeping when I close the lid. On my old Windows laptop, I'd often put on a podcast & listen while falling asleep & have one start as an alarm clock in the morning. I like to keep the lid closed to keep out dust, etc.
    I found a 3rd party app InsomniaX, but would rather find a supported way of doing this.

    Insomniax is your best bet. The only other way would be have an external monitor, keyboard, and mouse hooked up.

  • Automatically wake from sleep when lid closed?

    I would like my MBP to wake from sleep when the lid is closed (no external monitor attached) in the middle of the night to initiate a backup to another computer. Is it possible to get the computer to wake up with closed and nothing attached? Do I need a third-party app to do this?
    Thanks
    Brian

    But, that won't wake the computer up if the lid is closed and nothing else is hooked up to it. I want to wake it up in the middle of the night when the lid is closed and it is hooked up to a power supply.

  • Wakes from sleep when lid closed

    i usually put my macbook to sleep by closing it. recently, it sleeps then a second later i hear the noise that it's waking. so while the computer is closed, the apple icon is lit as it's turned back on. ideas?

    You might try the following procedure. I did it last night and I think it may have corrected the sleeping problem although at this moment I can't say for sure. A word of warning IF you do this procedure. It takes SEVERAL seconds and maybe even a minute to reboot after you do this 4-finger wave before the computer boots back up. A LONG time looking at a blue screen while I held my breath. This NVRAM procedure is buried toward the bottom in the link below. Since I read somewhere to do this procedure, I didn't get a chance to run through all the procedures listed in the link.
    Reset NVRAM [Useful for: does not properly go to sleep; wakes from sleep while lid is closed; fails to wake from sleep]
    A number of users report that resetting NVRAM resolves wake-from-sleep issues. In order to perform this process, shut down your Mac, then start it back up while immediately holding the following keys: Command, Option, P and R. Hold the keys down until the computer restarts and you hear the startup sound for the third time
    http://www.macfixit.com/article.php?story=20070129234938244

  • My mbp doesn't always wake from sleep when I open the lid

    (mbp is recent thunderbolt version)
    TItle says it all really.
    Usually I can coax it back from sleep by closing lid and leaving for a minute a few times. Annoying.
    Sometimes, briefly pressing the power button seems to give it a jolt and back it comes.
    Hopefully this is a software issue and an update will rectify it. Please let me know if this is a hardware problem!
    Thanks

    oups .. wrong post. sorry ...
    Parismatt wrote:
    Usually I can coax it back from sleep by closing lid and leaving for a minute a few times. Annoying.
    Sometimes, briefly pressing the power button seems to give it a jolt and back it comes.
    Open Disk Utility and perform a permissions repair on your system disk, as updates and so on can mix the permissions on system files up.
    Don't bother about upcoming warnings during that process. It's normal -> http://support.apple.com/kb/ts1448
    After that, your system should work fine again.
    Lupunus

  • Resuming sleep from lid-closed mode?

    Sorry if this has already been answered, but searching through the manual and 34 pages of previous posts didn't turn up anything.
    When I get to work, I connect my MBP (in sleep mode) to my external monitor and then to my usb keyboard/mouse, which triggers the computer to wake up and go into lid-closed mode. I work all day with the lid closed.
    The problem is that when I'm ready to leave at the end of the day, I cannot just disconnect everything and resume sleep mode for the transport home.
    If I go to Apple/Sleep, it'll go to sleep for 1-2 sec, then re-enter lid-closed mode. If I unplug everything, then the computer stays in lid-closed mode and won't go to sleep. The only way to get it back into sleep mode is to disconnect everything and open up the lid, wait for the display to come on, then close it again. Time consuming measures like this clash severely with my impatience at getting out of the office.
    Any tips on how to re-sleep from lid-closed mode without having to open the lid? Thanks in advance.

    My impatience was my own undoing. Upon further testing, once the magsafe is disconnected, the laptop begins the routine to go to sleep. I'm a very happy camper now...don't have to open the laptop at all, and I get to reduce the rate of dimming of my laptop screen.

Maybe you are looking for

  • Query can't include an "ORDER BY" clause when having column heading sorting

    I'm getting the following error when I try to include "ORDER BY" in my sql statement : "Your query can't include an "ORDER BY" clause when having column heading sorting enabled" I have used other sql statements with "ORDER BY" but this is the first t

  • Servlet that contains native metrhods

              Hi,           I'm getting an error of unstatisfied link error whenever I call a servlet that           containes a native methods.           Does anyone know how to do this? The Weblogic Frequently Asked Questions:(S-side           java ser

  • Budget - K022  - PROBLEM IN CURRENT BUDGET

    Hi guys, i have an issue while entering the over all budget in KO22. When i enter over all budget the "current budget  column "is having an impact. (it is adjusting the variance amount  , but not over writing it) but my requirment is it shoudl overwr

  • Screen field disable in vlo1n

    Dear sir, in sales order we are putting incoterm and it comes automatically to delivery vlo1n so i want this incoterm should be in disable mode so that nobody can change plz suggest me how to disable it . Regards, Debesh Tripathy

  • R12.1.1 - Linux 32 or 64 bit

    Hello everyone, We are in the process of moving our E-Business R12.1.1 from HPUX to Red Hat Enterprise Linux 5 - 64 bit. We have already moved the database over, and it is working fine. We are currently working on moving the Application tier over. I