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)

Similar Messages

  • OS X install on a Dell Inspiron 9400

    Hi all,
    I have recently bought a Dell Inspiron 9400 for music production (Ableton etc). Due to the way XP assigns IRQs I am having a lot of trouble.
    Is it possible to buy OS X and install it on my Dell as I know this would fix my problem. Dell do not have drivers list at present. Does anyone know if this will change?
    Many thanks in advance.
    Aaron

    Aaron,
    Please read the terms of use on the right about rumored products. I think you will find the answer to your question can not be posted.
    I suggest selling your Dell, and getting a Mac. It can run both XP and Mac OS X on the same machine. Only Macs can do that. There are numerous solutions for running XP on a Mac on my FAQ:
    http://www.macmaps.com/macosxnative.html#WINTEL

  • MB pro not sleeping when lid closed

    Hi, I came to work today, opened my backpack and found my laptop extremely hot in its sleeve. It appears it had not gone to sleep when I closed the lid. It then failed to run properly for about 20 minutes until it cooled down. Now it is ok, except that it will not run in lid-closed mode. I plug in my external display, put it to sleep, and wake it back up with the lid closed in order to use the external display. The display fires up for a few seconds and then turns off again. I've tried this over and over again, the computer simply won't stay on for more than a few seconds. However, when the lid is opened, it will run the external display in mirrored mode just fine. I think something is toast. Coincidentally, I had just downloaded the keyboard update 1.0 a day earlier... Anybody know why my computer is not sleeping when I close the lid and why it won't work in closed-lid mode anymore?

    I've had a similar problem since I first got this a year ago. Sometimes when I shut the lid, the display does not go to sleep, and sometimes it restarts automatically when I shut the lid! I've also found it very hot at times when it should have been sleeping. So far, it's only been a minor annoyance.

  • MacBook Pro does not sleep when lid closed

    Hi there. I recently upgraded my MacBook Pro from Snow Leopard to Mountain Lion. Before the upgrade my mac would sleep automatically when the lid closed. However, ever since I've upgraded, when I close the lid, my mac doesn't go to sleep. However, if my mac isn't plugged in (running off the built in battery) it goes to sleep. I looked through system preferences and I can't seem to find any settings relating to this, does anyone have any suggestion on what's happening and how I can fix it? Many thanks in advanced.

    Test after each of the following steps that you haven’t already tried: Step 1 Apple menu > System Preferences > Print & Scan > Open Print QueueCheck all printers for unfinished jobs. Deal with any you find. Step 2 Apple menu > System Preferences > Energy Saver > Power Adapter > Wake for network access: uncheck. You may need to unlock the preference pane by clicking the lock icon in the lower left corner and entering your administrator password. Step 3 Apple menu > System Preferences > Energy Saver > Schedule > Start up or wake: uncheck.    Step 4   Apple menu > System Preferences > Sharing: uncheck all boxes. Step 5 Disconnect all wired peripherals except keyboard, mouse or trackball, and monitor, if applicable. Step 6 Launch the Activity Monitor application. Select All Processes from the menu in the toolbar of the Activity Monitor window, if not already selected. Enter “powerd” (without the quotes) in the "Filter" text field. Select the powerd process and click the Quit Process button in the toobar (stop-sign icon.) In the sheet that opens, click Force Quit. You’ll be prompted for your administrator password. The process will be relaunched immediately. Step 7 Reset the SMC. Step 8 Boot in safe mode and log in. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you clickLog in.
     The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal. Don’t launch any applicationsat first. If sleep still doesn’t work properly, back up all data and reinstall the OS. After that, if you still have the issue, make a “Genius” appointment at an Apple Store to have the machine tested. If sleep now works as expected, go on to the next step. Step 9 Still in safe mode, launch the usual set of applications that are running when you have the problem, including your login items, one at a time, testing after each one. Some applications may not work; skip them. You might be able to identify the cause of the problem this way. Step 10 If sleep is still working after you’ve launched all the usual applications, reboot as usual (not in safe mode) and test again. If sleep still works, you’re done, at least for the moment. If you still have the sleep issue after booting out of safe mode, post again.

  • Tecra M7: Tablet does not work after lid closing

    Has anyone had problems with the tablet not working after closing the lid on a Tecra M7? Bios is 3.20
    Doesn't seem to happen on hibernate or sleep.
    I have the lid set to do nothing on close.

    Hi
    What do you mean with tablet not working after closing the lid?
    Does the notebook freezes or what?? What happens exactly???
    The close the lid settings can be set to hibernation mode or standby mode or no action.
    These settings can be set in the power saver setup actions.
    If you have some problems with some installed Toshiba applications I would recommend reinstalling the TOSHIBA Common Modules and the program which doesnt run correctly!
    Best regards

  • X120e does not sleep when lid closed

    I found another similar post, however it was resolved by the individual reinstalling the operating system.
    My issue is more complicated. I have made sure everything is up to date, all the settings that tell the system to sleep when the lid is closed are turned on. I have even turned those settings off off, just so I could turn them back on to make sure there wasn't something quirky about it.
    I have tried restoring the system to factory settings using the recovery partition, as well as discs burned from the program that came with the computer. I have tried clean install from Windows 7, 8, and 8.1 discs.
    The unit still does not sleep. I don't ever remembering it being able to. I once closed the display thinking it would sleep (power was plugged in). Woke up the next day, went to work for 8 hours, came back and felt that the system was really hot. Opened the lid and the screen was exactly as I had left it the day before.
    When I first got the system in 2012, the screen did not work, so I actually had to send it to Atlanta, GA for repairs. It came back quickly, and it still did not work, so I actually sent it back to Atlanta, GA's repair center a second time in the same week. It came back working and I left it alone. I never tested the sleep/wake because I always just turned the system off when I was done with it, but now I am back in school and this little computer comes in handy, but I don't want to turn off the system manually going from class to class when I need to pack it away in my bag.
    Could there be a hardware issue? Something inside not connected? This laptop works perfectly EXCEPT for the fact that it will not sleep when the lid is closed. It is out of warranty but had I known this was an issue while it was still under warranty, I would have inquired. This unit is in pretty fantastic shape, looks brand new too. No damage, never been dropped, and only ever handled by me (never loaned out).
    How can I fix this?

    Thanks for the reply, gat0gelat0.
    Yes, those settings were the first things I checked. I also tried changing it to "Do nothing", then changing back to the sleeping option. It still does nothing when I close the lid.
    I would like the functionality of it going to sleep when I close the lid for the convenience, like when class ends, I have to rush to my next class, I just want to close the lid, put it in my bag and run to the next class. Keyboard shortcuts like Fn-F4 work, but this laptop should have the functionality I am describing, and I want to figure out why it isn't working and how to fix it.
    I suspect there is an issue with whatever is used hardware wise to sleep the machine. Either it's not being triggered, or it's not there, or it's broken. I've tried running a magnet around the bezel of the LCD screen as well as around the palm rest bezel and there is no activity as I've read that many laptops trigger sleep by interaction by a magnet. Still nothing.

  • IPhone / USB devices do not charge when lid closed

    I recently noticed an issue with my Macbook Air 13" (late 2010).
    Previously, when i plugged in my iPhone when the Air's lid was closed, the phone would charge.
    Now recently, when i plug the iPhone in whilst the lid is closed (in sleep mode), the phone does not charge...  what could have caused this, and how do you fix it?

    Thanks for your input vestan,
    however it does still seem odd. does anyone have any further explanation on this. something a little less ambiguous perhaps.
    i know many people who rave about the ability to charge devices whilst their macbook is "off".  (By off i mean the lid is closed. This is what most people do when they are finished working, so i don't know the right terminology for what power state my Macbook Air is in during this time)
    Can someone please clarify how to get this to work. Must be a power setting?

  • Macbook Pro not sleeping when lid closed

    Since upgrading my late 2011 13-inch Macbook Pro to Yosemite, I've noticed that it does not go to sleep properly when I close the lid. While the screen does turn off, the white LED remains on at full brightness and the fans spin up to maximum speed. When I open the lid again, the fans slow down but the screen doesn't turn back on until I press a key. This suggests it wasn't sleeping at all and the display saver simply activated.
    If I use the Apple menu (top left) to enter Sleep mode, wait for it to go to sleep then close the lid, it sleeps properly with the white LED glowing slowly.
    I have checked the Energy Saver preferences, and there is no Sharing set up so I doubt that's the problem. Is anyone else having this issue? Any ideas how to fix it?

    Similar issue after upgrade w my MBP (early 2011). 
    Close the screen with apps open... climb into bed... the laptop appears to enter sleep BUT several times thruout the night I hear the optical drive spin up along with the hard drive and screen glow (visible w screen closed as a glow)... then... it goes back to sleep (must detect closed screen). 
    Weird. 
    Did not do so with prior OS installs (not hardware issue... related to Yosie install).  

  • IBook will not sleep when lid closed

    Hi,
    I recently had my Hard Drive replaced, the old one died. It was all covered by AppleCare and the repairs done at a Apple Authorised Outlet. After installing everything again I just found out that my iBook will not sleep when the lid is closed. The screen is still on and bright. Any ideas why? Is this dangerous? Any quick fixes?
    Cheers,
    Jack

    Jack,
    Welcome to Apple Discussions.
    You need to give the Apple Authorized Repair center a call back and let them know what's going on. I've seen this before here on the forums, and it was attributed to a sleep magnet not being put back in. It's most likely this. Apparently, putting this magnet back in can be easily overlooked.
    Brian

  • After upgrading to Mounton Lion McBook pro does not sleep with lid closed

    Instead it gets very hot!
    Have tried to adjust "energy savings" to no avail. Please help!

    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Triple-click anywhere in the line below on this page to select it:
    pmset -g assertions | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V.
    Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • The latest update has resulted in a runtime error (R6034) and I keep being told Microsoft Visual C   Runtime Library is being accessed incorrectly.  Anyone know how to overcome the problem?  I am using a Dell Inspiron  9400 running Vista.

    The latest update to itunes has resulted in a whole series of runtime errors (R6034).  Microsoft Visual C++ Runtime Library states it is being accessed incorrectly.  I am also told that Apple Mobile Device Failed to Start.  Additional messages suggest the error is in itunes.exe and ituneshelper.exe.  I also get Error 7 (Windows error 1114).  Anyone got any ideas how to overcome this (these) problems?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99527)

  • LID switch broken - does not detect open lid

    I am posting this again, after getting no solutions a long time ago.
    I am using a Razer Blade 14" 2013 with linux-ck kernel (although I have tested in the main kernel and the issue remains).
    I like to be able to close the lid to suspend. But it is not working properly.
    Note: I am using
    cat /proc/acpi/button/lid/LID0/state
    to figure out the state of the lid.
    When I start the laptop, the lid is correctly reported as open. When I first close it, the laptop goes to sleep, and when I open it again, it wakes up.
    However, it is now reported as closed, although I just woke it up by opening the lid.
    If I close the lid, it also does not suspend (I have to manually suspend).
    I originally posted this in: https://bbs.archlinux.org/viewtopic.php?id=173280
    I tried searching for similar problems, and newer topics came up, but I'm not sure what to do related to those, since the problem does not seem to be exactly the same (as in, this does not work in any kernel I have experimented with, including linux-lts). For reference, these are the topics:
    https://bbs.archlinux.org/viewtopic.php?id=168361
    https://bbs.archlinux.org/viewtopic.php?id=179216
    Some extra details: I disabled suspend on lid switch, so I wouldn't have to rely on it, but the problem remains: even if the laptop does not suspend, the lid goes to the closed state, and stays in that state.
    For most cases, this is not a big issue, except if I plug in an external screen: then my laptop's main screen becomes unusable, since it's reported as having the lid closed.
    Any suggestions would be very welcome.
    Thank you,
    Rodrigo

    rgomes wrote:I apologize, I was under the impression that it was okay, as long as enough time had passed.
    For extra information: this problem happens in other distros, so it seems to be a kernel problem (not a hardware problem because it works on Windows).
    What steps should I take to diagnose this, or does anyone know who I should email about this?
    Yeah, I should have posed more, but I was in a hurry.  We would definitely prefer that posts intended to reanimate a thread contain new information.  Share what you have learned about the problem -- it demonstrates initiative by establishing that one is not just waiting around for an answer.  Things like where you have searched, additional observations, new revisions of programs, etc...    It just helps keep the signal to noise ratio of the forums up.

  • Dell Inspiron 7000 Windows 8 Dual Monitor Setup

    Dell Inspiron 7000 Windows 8
    DVI and HDMI video outputs.
    I want to connect two monitors. The Best Buy rep says use and DVI to VGA cable with splitter. However, I spoke to tech support reps here at work who set up and support computers and they said that may not work and if it does the displays may not extended but be mirrors of each other.. At work I use a higher end dell with the traditional docking station. The Dell Inspiron does not have that option. Using a cable is easier that purchasing what amounts to a usb hub that is called a USB 3.0 dual video docking station.

    Hi,
    I have the same issue here... I tried the adapter either for VGA or HDMI, but it still didn't work....Could you please let me know how to fix it? I used Dell before and everything was fine but only for this series... really waste me a lot of time to find an answer to fix it but didn't work....sigh..Thanks

  • [SOLVED]Gnome 3.4 is not suspending when the lid is closed.

    Hey..
    Since upgrading to gnome 3.4.1, my laptop does not suspend when the lid is closed.
    I have read this this thread without getting a clear answer...
    I have checked the setting in gnome tweak tool, and they are both set to "Suspend"
    The laptop has no problem suspending, if i run the command, or choose the option in the menu to the right.
    Is this a bug ?
    What can i do to fix it. ?
    Last edited by Munken (2012-06-20 05:54:08)

    See this thread for updates on the problem.

  • How do I wake up Dell Inspiron 6400 after closing the lid? [SOLVED]

    I'm running Arch on a Dell Inspiron 6400 laptop (same as Inspiron e1505).  When I close the top to an angle of less than about 30 degrees, the machine goes into some kind of sleep state and Arch is suspended (black screen, no response to anything).  It may be easy to wake up Windows from such a condition but what must I do get Arch back and working, short of having to reboot?
    Last edited by RobF (2007-07-05 20:08:41)

    thayer.w wrote:
    RobF, it's hard to say, without knowing what your setup is... GNOME, KDE? Any power management software installed such as Powersaved or hibernation scripts? 
    If you're still having troubles with it, check out the Inspiron 6400 wiki I've been working on.  It includes step-by-step instructions on setting up hibernation/suspend features and I can verify it works on my own 6400.
    http://wiki.archlinux.org/index.php/Dell_Inspiron_6400
    I'm using KDE, and I haven't specifically installed any power management software aside from what came with the Arch base install and KDE.
    I went through your Dell Inspiron 6400 Wiki (great work! I'll add to it) and installed acpid and powersave and hoped to install kpowersave or kpowersave-devel but neither of these will compile.  kpowersave requires unsermake-svn but unsermake-svn will not compile because of the error: "unsermake-svn is not available for the 'i686' architecture," and: "Note that many packages may need a line added to their PKGBUILD such as arch=('i686')."  So much about that.
    Trying to build the package kpowersave-devel also aborts with the error:
    Checking for Qt... configure: error: Qt (>= Qt 3.2 and < 4.0) (headers an .....  r installation!
    For more details about this problem, look at the end of config.log.
    make: *** No targets specified and no makefile found.  Stop.
    ==> ERROR: Build Failed.  Aborting...
    So much about that.
    About kpowersave-devel, srabd commented a month ago: "It doesn't compile now, but compiles if you use unsermake instead of make in the two final lines."  Wonderful!  But as I reported above, "unsermake-svn is not available for the 'i686' architecture."
    I seem to be stuck.  Any ideas how I can get around this?
    Robert

Maybe you are looking for