[Solved] Pressing AltGr for a few seconds shuts down the computer

Hi
A couple of months ago I had some water damage on my Thinkpad x220. Cleaned it dried it and everything expect one keyboard key works fine.
The problem is when im pressing the AltGr key for longer than a second it shuts down the computer. It basically acts the same way as my power button. It's even possible to turn on my computer with the AltGr key. I know its caused from the water damage and it would be easier to buy a new keyboard but a couple of days ago I booted up a Ubuntu on a usb stick and the AltGr key worked as expected. So instead of buying a new keyboard I thought maybe its possible to re-map my key somehow so it would work as its supposed to.
I tried to identify the keycode. When I push the key for a short time it gives me:
[root@arch:erykroom master▲]# showkey --keycodes
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress).
keycode 100 press
keycode 100 release
When I try to get the keycode for the longer press it just shuts down.
Any help would be appriciated
EDIT:
Managed to solve the issue.
I had to edit my /etc/systemd/logind.conf and change the power key to ignore
HandlePowerKey=ignore
Last edited by erykroom (2015-06-05 07:14:00)

Post the full Panic Log. Look here for the location, which will be in Console in Applications>Utilities.
http://support.apple.com/kb/HT2546
Suggested reading
http://www.thexlab.com/faqs/kernelpanics.html

Similar Messages

  • I am working on a Veterans Day program for school and I shut down the computer and now I can't get the desktop to load.  It is all a white screen.  What do I need to do, and can I get my video back?

    I am having difficulty getting back on my computer.  I have to have the Veterans Day Program done by next Monday, and it will not boot back up.  All I get is a white screen.  If I push Options and F4 I can get system preferences, but that doesn't seem to do any good.  It was telling me before I shut it down that my Start up menu was full?  What does that mean, and would that be my problem, and how would I fix it?  I would appreciate all the help I can get, I haven't saved anything yet that I was creating.  I have videos of the student singing that I will not be able to do over again.  Please Help!!!
    Thank you!
    Charlene23

    How about in your Applications folder?

  • Safari will lock up on my MacBook Pro. Force quit doesn't help. When I try to restart the computer, I get an error saying Safari cancelled the restart. I have to press the power button to shut down the computer.

    While I'm using safari,  it will freeze up. When I force quit safari and reopen it, I find that I'm back to where I was when I did the force quit and safari remains locked up. When I try to restart the computer, I get a pop up that says that safari cancelled my restart. I then press the power button to shut down the computer. When I reboot the computer and open safari, I see all the tabs and windows that were opened when this issue began, only this time safari isn't frozen. This problem started yesterday.
    Has anyone experienced the same problem? Is there a fix for this problem?

    Try Resetting Safari: Open Safari. Cick on the name Safari in the menu bar. In the drop down menu click Reset Safari.

  • Attempting to download Maverick it has been running for nearly 24hrs. I have tried shutting down the computer but the setup assistant keeps canceling the shut down.

    Attempting to download Maverick it has been running for nearly 24hrs. I have tried shutting down the computer but the setup assistant keeps canceling the shut down.

    Just hold down the power button for about ten seconds and the machine will turn off.
    I'm not sure how fast your Internet speed is but my Mavericks downloads usually only take about 20-25 minutes for a 5.33GB file.
    No telling what will be waiting for your when you power back on... call back if you can't login to your computer.
    Clinton

  • I cannot quit the icon for mail. It stays on and because of that, I cannot shut down the computer?

    I cannot quit mail, the icon stays on and if I try to shut down the computer, the window appears and tell me to quit mail first and then shut down the computer. How do I get to quit the mail?

    Choose Force Quit from the Apple menu and shut Mail down from there.
    (90101)

  • Now that I upgraded to Maverick on my Mac air, I can not use the power button to shut down the computer anymore. any suggestions?

    Now that I upgraded to Maverick on my Mac air, I can not use the power button to shut down the computer anymore. I now have to go to the apple icon in the upper left corner.  Any short cuts instead of going to the apple in the top left corner and hitting shut down.  Doing that all the time, I feel like I am back at work using a "Windows" computer.

    This a is tricky one, but you can still do it. Instead of pressing the power button, hold it down for a few seconds and then you'll see the shut down options dialog pop up.
    I guess they were trying to prevent accidental touching of that button. They did something similar with the Eject button a few versions ago, where you have to hold down Eject instead of just tapping it so that you don't pop out a CD by mistake.

  • I can't quit mail and thus, I can't shut down the computer. How do you "manually " shut down mail or computer (control-alt-delete in wintel world)

    I cannot quit mail for some reason. How can I shut it down?
    I need to do this before I can shut down the computer.

    To Force Quit a program go to the Apple Logo item in the menu bar and select Force Quit. Select the program from the list and click Force Quit.
    To Hard Power down it is the same as Wintel. Press the power button until the system Turns Off. Not the best solution but needed sometimes. Yes even on a Mac.

  • Does not start, but when I shut down the computer then the browser shows up right before sytem shuts down.

    I am having problems with Firefox. When I click on the shortcut, or the .exe file nothing happens. I check task manager to see if it is running and it does not show Firefox is running.
    But when I shut down the computer then the browser shows up right before the computer shuts down. I have tried starting the browser in safe mode and the same thing happens. I cannot give any troubleshooting info because the browser is not visible for me to click on help or any other button.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox and any leftover program files and then reinstall Firefox. Please follow these steps one by one:
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu) and confirm all upcoming messages.
    #Now, uninstall Firefox by following the steps mentioned in the [[Uninstall Firefox from your computer#w_uninstall-firefox|Uninstall Firefox]] article.
    '''IMPORTANT:''' On Windows, the uninstaller has the option to remove your personal data and settings. Make sure that you do '''not''' check this option; otherwise all of your bookmarks, passwords, extensions, user customizations and other Firefox [[Profiles|user profile data]] will be removed from your computer.
    After uninstalling Firefox on Windows, delete the "Mozilla Firefox" program folder, located by default in one of these locations:
    * '''(On 32-bit Windows)''' ''C:\Program Files\Mozilla Firefox''
    * '''(On 64-bit Windows)''' ''C:\Program Files (x86)\Mozilla Firefox''
    #Go to the Windows Start menu and click on "Computer".
    #In the Explorer window that opens, double click Local Disk (C:) to open the C:\ drive.
    #Find the "Program Files (x86)" folder or "Program Files" folder.
    #* On 32-bit Windows, double-click the '''Program Files''' folder to open it.
    #* On 64-bit Windows, you will see a "Program Files (x86)" folder AND a "Program Files" folder. Open the '''Program Files (x86)''' folder.
    #Look for a '''Mozilla Firefox''' folder. If you find one, right-click it and select ''Delete'' and confirm that you want to move the folder to the Recycle Bin.
    Now, go ahead and reinstall Firefox:
    #Double-click the downloaded installation file and go through the steps of the installation wizard.
    #Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • I'm trying to delete a movie and it says...operation can't be completed because the item "     ".m4v is un use.  I've shut down the computer, closed out of everything etc.  I don't know what else to do?

    I'm trying to delete a video to free up space on my mac.  I've moved it to trash and when I try to empty the trash it keeps coming up with...."The operation cannot be completed because the item " .........  .m4v is in use".  I'm not exactly computer literate - I don't even know what the m4v is, but I've read some discussions saying to shut down the computer - which I did - nothing everything else I've found on the m4v is too technical for me to grasp.  Can anyone help me?

    Sorry, didn't notice that you cd'd into that directory. Can't explain why you can't delete it, but I don't do server or NAS stuff. You might want to repost to the Unix forum.

  • Shut down the computer from a java program

    Hello!
    Can anyone tell me if can be made an java program that can shut down the computer (windows 2000 operating system) and forces all the programs to close?
    If it can be made, can you give me some tips?
    Thanks
    Kata

    That's possible
    but you don' really use java but Windows (only available for 2000 and XP)
    you should try that
    try {
    Runtime.getRuntime().exec("shutdown -s -t01") // stop
    }catch(...
    or
    try {
    Runtime.getRuntime().exec("shutdown -r -t01") // reboot
    }catch(...
    or
    try {
    Runtime.getRuntime().exec("shutdown -l -t01") // logout
    }catch(...
    you're welcome.
    NaiosKAE{FR}

  • Is it possible to continue downloading OS X Lion after shutting down the computer?

    I am downloading the OS X Lion app on my MacBook Pro and is only at 180mb after an hour. I am downloading this app for free because I recently purchased a MacBook Pro. Is there a way I can continue the download even after shutting down the computer? Will I be charged the next time I try to re-download the app--as in, will the code for downloading the app for free expire?
    Thank you SO much!

    I downloaded OS X Lion over the period of a day or so and what you have to do is pause the download (for a snow leopard user that should be in your dock) and then shut down your machine. When you boot it back up, you should be able to resume the download by clicking the OS X Lion logo and typing in your Apple ID info and the download should resume at the same spot where it was when you left it.

  • I tried to download picture/video files from iPhone 5S to MacBook Pro but it won't stop importing and I don't have phone connected.  I need to shut down the computer and I can't stop the import from spinning

    I tried to import picture/video files from iPhone 5S to MacBook Pro Aperature.  It appeared to be trying to download every picture I have ever taken even tho I checked do not import duplicates.  The phone is not connected to lap top.  It has been spinning for 1/2 day.  I can't stop it. I can't shut down the computer. How do I stop the import and shut computer down.

    Hey L. DENISE,
    I recommend that you use the following article to help you address this issue:
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/ht3411
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • The new firefox twitter app is great - except it disappears every time I shut down the computer and I have to remove and then reinstall it every day!?? I am working on an iMac - if that is causing the problem ...? Thanks.

    The new firefox twitter app (mini tab on left of page) is great - except it disappears every time I shut down the computer and I have to remove and then reinstall it every day!?? It won't appear on the page until I do. I am working on an iMac - if that is causing the problem ...? Thanks.

    Eustace, thank you so much for writing back.  I will try what you suggested!!
    thx for your reply - apparently when I went to the Apple store a long time ago, they restore maybe photos and itunes etc from my external hard drive (passport).  I guess at that time they reinstalled an earlier operating system than my macbook came with and that somehow corrupted FileVault.  apparently there was no sparse bundle (whatever that is) for my old admin account and they said that ever since the install of the older OS that it was actually NEVER backing up anything in my admin account.
    Then, I bought Time Capsule and starting backing up to that instead.  I started having problems with it being slow etc and then StartUp Disk full errors and didn't know what to do, so I "Restored" from Time Capsule and that's when I lost everything in my Admin account and was locked out when I tried to log in - it said File Vault error ..."
    anyway - that's THAT sad story.  I was told to create a new admin account and I've basically been trying to start over - even though I have a partial save of my computer in Crash Plan and I DO see a sparse bundle listed in there, but I just don't know enough about computers to know if it's something I can get back or if I am just totally doomed. 
    I'm afraid to reinstall anything because if there is even a remote shot that the other files are still floating around in my computer, I feel like that chance will be shot forever.  I need to hire McGee from NCIS, I just KNOW he could get those files back for me!!!

  • Shutting down the computer via Java?

    Is there a way this can be done? I know how to use Runtime's and all that, but I dont know of any commands that would shut down the computer. Please help!

    in windows xp ( may be 200 too) you can execute command
    "shutdown -s -t 60"it tells the system to shut the pc in 60secs but you need some priviladges to do this
    but i dont know what are the exact privilages
    basicaly :- this work in my office and home pc and in the univercity I am studying the computers say that I dont have right to do it even though I can shut down the pc manualy
    and you can shut down the pcs remotly over the network using this tool
    just type "shutdown -h" in command prompt for more information
    to abort the shutdown you can run command "shutdown -a" befor the clock run out

  • Can't open Elements 8 more than once without shutting down the computer

    After starting up my computer, I can open Elements 8 (organizer and/or editor) and work as usual.  However, if I close the program, then check email or work on something else, and then I decide to open Elements again, I get the opening screen, click Organizer, and it just disappears.  When I shut down the computer, it says there are programs waiting to close, but it shuts down quickly despite that.  Once I have restarted, all is normal again, until I decide to open Elements twice.
    I have Windows 7 professional.
    Do I need to reinstall Elements 8?
    Cam

    It sounds like the Organizer and Editor aren't closing all the way, which makes it so you can't re-open them.
    To know for sure if this is the case, after you close either program, open Task Manager (CTRL+SHIFT+ESC), go the Processes tab, click the option at the bottom to show processes from all users, and then scan the list for PhotoshopElementsEditor.exe and/or PhotoshopElementsOrganizer.exe.
    If there, then that means they aren't getting closed.
    As a temporary workaround until you find out why they won't close, you can end the process in Task Manager instead of rebooting the computer.
    As for the cause, it is possible that something else you have running in the background, perhaps security software, is causing the issue. To determine if that's the case, restart the computer without any startup items or non-essential services, and then run Elements 8. Here are some instructions:
    Windows 7/Vista: http://go.adobe.com/kb/ts_kb404913_en-us
    Windows XP: http://go.adobe.com/kb/ts_kb404984_en-us
    If you can close and re-open the Editor/Organizer properly without anything else running, then something was preventing the program from closing properly. Use a process of elimination to determine what; something similar to this method:
    Open the System Configuration utility.
    Re-enable approximately half of the items that were disabled.
    Click OK, and restart your computer for the changes to take effect.
    Check if you can close and re-open the Editor/Organizer.
    If you can't anymore, open the System Configuration utility and disable half of the most recently enabled items.
    If you can still, open the System Configuration utility and re-enable half of the remaining items.
    Go back to Step 3, and continue dividing the items into halves until  you have determined which startup item or service is causing the issue.
    Once you have isolated the problematic startup item or service,  contact its manufacturer for an update or configuration information, or  leave it disabled.
    HTH

Maybe you are looking for

  • Migration 11.2.4 to 11.3

    Hi, I want to migrate my existing server to 11.3 qith the setup.exe -R command but the migration on ly took a few seconds then I receive that message: The MIGRATION of ZENworks Server is finished, but some serious errors occured during the migration.

  • How do we specify the username in sql

    Hi^^, while writing the conectivity statement we use this statement Connection con = DriverManager.getConnection("url","username","password"); were we specify that: username="root"; password="root" url="-----" My question is where in the system it is

  • Lightroom 5 License Activation Trouble

    I purchased a boxed version (including CD and activation code) of lightroom 5 in Dec. 2013 from a store.  My hard drive crashed last month and can't find the box with the activation code, but I still have the original receipt.  How to I get an activa

  • Can you use the apple remote to control tv programs?

    Can you use the apple remote control like a tv remote to control tv programs & DVDs on the computer? Everything I've found about the Apple Remote talks about using it for products other than desktops. I watch some regular tv shows on my iMac & would

  • "Persistent" audio in slideshow with Manual transitions

    What I want: Add music to a slideshow, which will loop as the slideshow plays; AND Slide duration = Manual WITH Dissolve transition. Is this possible? When I add audio to a slideshow, the "Manual" option under the "Slide duration" dropdown grays out.