Power key handler

I am running the latest Arch (pacman -Suy executed on 2013-07-07, kernel 3.9.9.1) with OpenBox on a Samsung 900X4C.
No acpid installed.
When I press the power key/button the system gets shut down all right (I can see some log messages).
My question is WHY?!
As I understand https://wiki.archlinux.org/index.php/Sy … management, /etc/systemd/logind.conf controls
what happens when the power key is pressed. Here is mine:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandlePowerKey=ignore
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
PowerKeyIgnoreInhibited=yes
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
So, unless there is a systemd-ghostd handling the power key (and possibly also ignoring the lid switch), I'd expect
NOTHING to happen on keydown for the power button.
What IS the real "chain of command" here?
Thanks a lot for your help,
André
Last edited by andy4712 (2013-07-07 10:33:59)

my logind.conf and my laptop doesn't shut down
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
PowerKeyIgnoreInhibited=ignore
SuspendKeyIgnoreInhibited=ignore
HibernateKeyIgnoreInhibited=ignore
LidSwitchIgnoreInhibited=ignore
#IdleAction=ignore
#IdleActionSec=30min
I don't know if this is perfect, but it works

Similar Messages

  • Why can't I shut down my MacBook unless I hold down the power key?

    Hi all,
    I have had this problem my MacBook Pro using both Leopard and Jaguar. It is a problem when I shut down using either the drop down menu or by the power key menu. It appears to shut down but when I close the lid the "sleep" light comes on and is steady. It isn't actually shutting down because if I don't have the power charger plugged in it will run out of charge.
    So, to shut down, I hold the power key down for about 10 seconds.
    If it does fall asleep I am unable to awaken it (the sleep light is steady) and have to go through the holding down the power key procedure to shut it down and then use the power key to start it back up.
    Am I damaging it by doing this? I have tried the trouble shooting options as described in the manual. I had this problem before and one day it just wouldn't turn on and I had the hard drive replaced.
    Thank-you very much for any help!
    Becky Bell
    Sydney AUS
    Model Name: MacBook Pro 17"
    Model Identifier: MacBookPro1,2
    Processor Name: Intel Core Duo
    Processor Speed: 2.16 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 2 MB
    Memory: 1 GB
    Bus Speed: 667 MHz
    Boot ROM Version: MBP12.0061.B03
    SMC Version: 1.5f10
    Serial Number: SystemSerialNumb
    Sudden Motion Sensor:
    State: Enabled

    I have found a solution on another thread that seems to have solved the problem for me. That is, I haven't experienced since, either the double password prompt at wake from sleep or the issue of not being able to shutdown.
    The solution requires deleting a preference file that apparently carried over from Tiger in the upgrade to Leopard and which is causing all the problems described. Preference files or .plist files hold configuration preferences and settings generally defined by the user for a particular operating system function. Deleting one of these files will result in the system recreating it on reboot with all settings set to default values, this is a simple way of fixing an incompatible/corrupt preference file.
    WARNING: Deleting preference files will reset all configurations for that files associated function. Custom user settings made in the +system preferences>Hardware>Energy Saver+ preference panel will have to be re-configured by the user.
    *_Step 1:_* Delete .plist files
    /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
    /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist (may not be necessary, holds schedule details for the Energy Saver preferences)
    *_Step 2:_* Reset Parameter RAM
    +Resetting PRAM and NVRAM+
    1. +Shut down the computer.+
    2. +Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.+
    3. +Turn on the computer.+
    4. +Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.+
    5. +Hold the keys down until the computer restarts and you hear the startup sound for the second time.+
    6. +Release the keys.+

  • My laptop keyboard is having problems. I took it if to change my bottom case it worked fine prior and then after just the power key worked. I cleaned everything nothing is bent in the cable. now my power key is not working

    Hi my keyboard is not working I took off the bottom case to change it prior my keyboard was fine and after just the power key worked. I checked everything no portions were bent and it plugged in good. I tried to turn it on this morning and now the power key doors not work??

    Back up all data.
    Triple-click anywhere in the line below to select it:
    pmset -g assertions
    Copy the selected text to the Clipboard (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 (command-V).
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.

  • Backspace + power keys freezes the computer

    macbookair (2013) has near buttons backspace and power key, then I sometimes pres booth these keys together, then computer sleep and immediately (looks like) wake up but freezed.
    in this state:
    - keyboard backlight is ON
    - display is OFF
    - no response on keyboard or trakcpad
    - if is connected external monitor, then it show only on external monitor last picture, but image is freezed
    - it respons only on power button long press for restart the computer
    this state is on my computer 100% repeatable.
    when I press power button only, this is working normally.
    thanks for any solution.

    Did you recently upgrade to 10.4.8? Not sure of your OS version due to the multiple items listed at the bottom of your post.
    There are two things you can quickly try:
    move the com.apple.safari.plist file in your User Library>Preferences to the desktop and restart Safari. Does the crash stop? If not, move the file back to its original location, replacing the newly created Preference file. If it works, then you'll need to reset your Safari Preferences as well as View menu and Edit menu (spelling) selections you may have chosen.
    Try Safari from another User Account. Does it crash? You can create another user account by going to System Preferences>Accounts. Apple directions are here..
    Post back with results.

  • No Power Key - How To Identify Model - In Chinese!

    My wife has a Nokia Lumia 710. We think. She's got it all set up in Chinese. Left it with me to fix. The problem is she can't sent text messages. I can't read Chinese.
    When I go to trouble shoot I download the manual and straightaway find much mention of the 'power key' at the top of the machine. This one has no such key. This one has a little round hole and then a sort of mini usb and then a larger hole.
    Seems to me it must be something other than a nokia 710 but I don't know how to find out what it is. It certainly looks like one in every other respect.
    And I need to be able to switch it to English.
    I can't even get it to keep a display on for any length of time. There's a sort of green upside down 'U' at the bottom on the left and a red one on the right. Pressing those gets me a display with a white box at the bottom (with some chinese writing in it) and pressing that gets me a display with eight icons and a list at top with 1. Virgin Mobile and 2. Sim written there.
    What is this phone?
    How can I put it in English so's I can come to grips with it?
    How to fix this won't send text problem?
    Solved!
    Go to Solution.

    That's *#06# and *#0000#
    And Nokia Suite is for your PC, not the phone, It will tell you what phone you connect to the PC using a USB cable when you do..
    Your phone is a C2-03 or a C2-06, not a Lumia 710, here's the user manual.
     If the phone is not yet setup try dialling *#7370# followed by (if asked for) security code 12345
    This will reset the phone to defaults erasing all user data and if Chinese is not the default language it generally goes to English. You can also go to settings (MENU-> cogwheel icon) and try options there to find the language settings.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Broken power key

     Hi,
    I´ve got broken power key on my E50. Is it any alternative way or any code to turn it on and backup data.

    No, it is the only button and method that can switch it on.
    A nokia care point may be able to fix it for you.
    http://europe.nokia.com/support/repair-and-recycle

  • My play and power key doesn't work?

    My play and power key doesn't work any ideas?

    If none of the 5 R's of troubleshooting were able to resolve the issue, we can be certain that it is hardware related meaning you'll need to take/send your iPod in for service or repair.
    http://www.apple.com/support/ipod/five_rs/
    B-rock

  • I have an imac g4 purchased Dec 2003 runnung OS 10.5.8.  It runs fine with airport off, but when I turn airport on it freezes with the black page,  "restart by holding power key . . ."  I swapped the airport extreme card with the one in my ibook G4 (purch

    i have an imac g4 purchased Dec 2003 runnung OS 10.5.8.  It runs fine with airport off, but when I turn airport on it freezes with the black page,  "restart by holding power key . . ."  I swapped the airport extreme card with the one in my ibook G4 (purchased same date and running same OS).  No change in operation.
    I am running wifi from verizon.  Recently changed from mifi2200 to jetpak 4620 in a 3G location.  Ibook running fine, desktop freezes.  If I can boot desktop in safe mode and get airport turned off in time. then I can reboot regularly and imac runs flawlessly with no wireless.Have run disk utilities and TechTool Pro rebuild etc, but nothing has worked.  How do I fine the culprit?

    the power logix thing was really sad. apple changed so much after 10.4.8 that there wasn't a viable way to patch the software.
    That statement is precisely why I don't believe in blindly updating the OS, especially in a non-standard machine.
    We can't expect third parties to support us forever, and it is shameful to break something that works fine, except that we updated the OS....
    I think that any upgrade or modification to a machine or the OS greatly increases the risk of trouble or incompatibility with current configuration and "new" system files.
    After all, the component or software could only be tested as far as the current OS version when the component or software was released.
    Beyond that, we are all "beta testing".
    Following a beta tester protocol, and applying updates to a cloned system drive first, is a prudent way to approach updates, and not only for older, heavily modified machines.
    After 10.4.8 and moreso with Leopard, the focus is primarily on Intel architecture, not PPC architecture.
    Like it or not, we are all updating to the abyss of the extinction of our machines, unless we can be satisfied with the last stable version of OS that works well with our hardware and software.
    I wish they would include the latest pkgs at least with software update.
    Yes, having individual packages, rather than lump "OS X 10.x.x" updates would be nice.
    This way, one could update as one sees fit. That is to say, for example, fix the Quicktime, but leave my Network alone, etc., etc.
    In all fairness, Apple does provide for some breakdown of updates, but I believe there is much room for improvement, especially, as you point out, with regard to the core services portion of the OS.
    Until then, I'll leave Software Update disabled.......

  • My mac os x version 10.7.4 i am being unable to shut down my mac unless i press the power key. pls help me ....

    my mac os x version is 10.7.4 i am being unable to shut down my mac unless i press the power key. pls help me ....

    No, but you do at least have to buy Snow Leopard. Whether you can run it depends on what iMac you have:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    Whilst Apple have withdrawn Snow Leopard from download, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $30.  You can also purchase the code to use to download Lion from the same number.
    If you are outside the US call your national Apple Helpline:
    http://support.apple.com/kb/HE57

  • No shutdown dialogue box with power key

    when I press the power key on my MP, I don't get the usual dialogue box about, sleep/cancel/shutdown/restart. Is there a preference I am missing? I unticked the one in energy saver that activates the sleep mode with the power button.

    The power key is devoid of that dialogue; use the mouse and menu an normal, if you want that subtlety.

  • What does doa cover. i mean i brought  a macbook 6 days back and it uses to restart  when its powerd off nd lid closed it has kinda defective power key also. can it be treated as doa

    what does doa cover. i mean i brought  a macbook 6 days back and it uses to restart  when its powerd off nd lid closed it has kinda defective power key also. can it be treated as doa

    DOA means different things to different manufacturers. For some DOA means it fails to work out of the box and will be replaced but if it worked out of the box and failed the next day it will be repaired. For other companies there is a liberal return policy - for Apple if you buy direct from Apple (online or an Apple store) you have 14 days to return. That means you can return a defective computer and then turn around and buy a new one.
    (I had a store manager try to get me to accept a repair on a computer with a bad keyboard out of the box. I refused and insisted on a full refund if she wasn't willing to replaced it.)

  • Iphone 4 shuts down automatically even when rebooting with the home and power keys

         My iPhone 4 shuts down by itself even though the battery is 40% charged. I tried the two button reboot (home+power key) at the same time, it starts first then it quickly shuts down again.
    This has been going on for about 4 days in a row now.
    Please help
    Thanx
    iPhone 4
    iOS 7.1.2

    Howdy asem18,
    This article provides troubleshooting tips that can help you resolve the issue with your iPhone 4 restarting unexpectedly upon start up.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    If your device gets stuck during startup
    When starting up, you might see the Apple logo or a red or blue screen for a long time, or your device might restart again. Try these steps:
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    Get more help
    If you still need help after trying the steps above, contact Apple Support.
    So long,
    -Jason

  • Windows 8.1 Configure keyboard power key (sleep key) to shutdown

    I have a keyboard with a power key that I would like to be able to use to instigate a PC shutdown in windows 8.1.
    Unfortunately in power management I only have options for Hibernate and Sleep.
    How can I configure the desired shutdown functionality

    I'd ask them over here.
    Windows 8.1 on Microsoft Answers
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • X-7 freeezes with no respond to power key

    How do I reset a device which has an integrated battery if the device jams or freezes and does not respond to power key even when pressed for a whole minute and what if my X-7 freezes in middle of night and i cannot even go to nokia centre ?

    Hold Volume Down ( - ) button + Camera button + Menu button + Power button. Just hold it until your phone vibrate 3 times and your phone will restarting. Sometimes it's happen to me as wel.
    Nokia X7-00

  • While i insalling the latestest update, i have to go for basketball, then i stupidly interruped the udpating by turn off the power key, now my apple mini cant see the login interface, only can see an apple and a loading symbol.does any1 know how could ido

    hello every one:
            while i am downloading the latest version of the update, it was fully downloaded, and then it need me to reboot the apple mini to instll the update, so
    i did reboot it, then i have to go outside for a basketball game, then, i stupdlly interrupted the installation by turn off the power key.
           and now, i only can see an apple and a loading symbol in a white background. how could i do?
    does anyone can help me. thx.
    gangspn

    Hello Barney:
            thank you for your reply, this helped a lot. but I faced a new problem, when i get into the interface, you mentioned, recovery HK, and i want to reinstall lion, after i get connect to the internet, it saids, i can't download the OS component without install the lion. thats really bothering me.
    thank you for your help anyways.  do you still know any other solutions?
    i tried disk utility function, and repaire all the errors, still can't get into the login interface.
    gangspn

Maybe you are looking for

  • The memory could not be read!  Safari on Windows

    The instruction at "0x121f377b" referenced memory at "0x00000000". The memory could not be "read". Click ok to terminate the program I get this error every time safari opens and every time you click a link from an exterior application like email or w

  • How to allow the special character in folder or filename

    when i add the special character "&" in folder or file name it gives following error "The file or folder name "P&A" contains invalid characters. Please use a different name. Invalid characters include the following: ~ " # % & * : < > ? / \ { | }. The

  • How do you connect 2010 Macbook to multiple external displays?

    Has anyone done this? Would love to get get this working. I'm also not using Apple displays. I also want to know what cables and such I would need.

  • Posting period in MM

    Can anyone please let me know how to change posting period for a given company code in MM. I am facing problem while issuing goods. Thanks & Regards, Nilesh Kumar

  • Mistakenly created HDV sequence for SD footage

    I didn't figure this out until I finished editing, but... I mistakenly created an HDV sequence (1440x1080) and inserted SD anamorphic footage into it. My question is, even if I change the sequence settings to SD anamorphic, will this affect the quali