Xmodmap changes won't stay [SOLVED]

It keeps switching back. Here's my .bashrc:
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
xmodmap ./.xmodmap
Here's .xmodmap:
! Swap Caps_Lock and Control_L
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
I'm using KDE. The keys switch back and forth seemingly randomly. Haven't figured out when or why...
EDIT: System Settings > Input Devices > Keyboard > Advanced > Ctrl key position > Swap Ctrl and Caps Lock
I guess KDE didn't care what xmodmap or setxkbmap were doing.
Last edited by YAOMTC (2011-03-19 05:22:17)

I used to have issues with xmodmap (every now and then it didn't load my config properly), until I started loading it together with X (/etc/X11/xorg.conf.d/20-xkmap.conf). Since then I haven't experienced any problems. Maybe you can give it a shot, too? This is how it looks (of course, you have to use your own mapping):
Section "InputClass"
Identifier "xkmap keyboard settings"
MatchIsKeyboard "yes"
#MODEL:
Option "XkbModel" "pc101"
#LAYOUT:
Option "XkbLayout" "us"
Option "XkbOptions" "caps:escape, terminate:ctrl_alt_bksp"
#VARIANT:-
EndSection
Last edited by bohoomil (2011-03-15 19:41:32)

Similar Messages

  • Messages picture change won't stay

    I have changed my picture in the Messages program on my Mac three times, but when I quit from Messages and restart it the picture reverts back to my Login picture.
    So I changed my my picture in my login account (and it sticks) but when I start Messages back up my old login picture is still there.  And after I change my Messages picture again, it still doesn't stick when I shutdown Messages and start it back up again.
    What do I need to do to make the 'picture change' in Messages STAY changed?

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data before proceeding.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button
    Select
               ▹ Restart
    from the menu bar.

  • Want to purchase using a shopping cart - preference change won't stay

    I purchase a lot of songs from the iTunes Store, and want to use the shopping cart. I went to the Edit menu, selected Preferences, clicked on the Store tab, and clicked on the button that says "Buy using a Shopping Cart." I don't see a place to click OK or save change anywhere, so I click the red close button at the top of the box. The program will not save the change I request, instead, when I repeat the process, I find the option reset to "Buy and download using 1-Click." How do I set that change? Thanks.

    Do a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 10.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    If that still gives problems then create a new profile.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    See also:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • PSE 10 Organizer layout changes won't stay

    Upgraded from PSE9 to PSE 10.  Win 7 OS.  Setting the Organizer to display in Folder view, and then adjusting the Photo bin size larger (to the left) does not "take."  It will remain as I set it as long as I remain in that session.  If I close the program and then restart, the Organizer layout has reverted to the default layout with a small Photo bin.  This was automatic in Version 9 and it saved it where I put it.  How do I fix this irritating problem please? 

    Thanks for the suggestion - it sure sounded good, but doesn't work for me.  Changed name to "oldpsa.prf", re-started PSE10, set up my workspace as I want it (essentially all I do is change the size of the Photo bin to make it larger - makes the folder display narrower), went into preferences just to hit "OK" and leave - then exited the pgm and re-started - It was back to the default workspace.  Thanks anyway - I am thinking seriously about removing all things Elements then using CCleaner and jv16PowerTools to scrub the registry just to make sure there are no remnants, then reload everything.  At this point I don't have any serious work to lose, so it might be better to do it now rather than lose good stuff down the road.  I am a new user, as you can probably tell.  If anyone has any other ideas, please send them on as I will wait a day or so before I bomb this thing.  Thanks!

  • I currently have a DROID RAZR M and I'm 1 year into my 2 year contract.  Since the Kitkat update, the phone won't stay charged and it's very buggy.  I know this is not Verizons fault but it's also not mine. I would like to change my phone to an iPhone 5s

    I currently have a DROID RAZR M and I'm 1 year into my 2 year contract.  Since the Kitkat update, the phone won't stay charged and it's very buggy.  I know this is not Verizons fault but it's also not mine. I would like to change my phone to an iPhone 5s and keep my same plan but switch to the Edge program. Is this possible? I don't think I should have to pay an early termination fee or anything like that since my phone has become almost unusable. I know under normal circumstances you have to wait 2 yrs to upgrade but due to the update and the poor service I'm now getting I hope Verizon can make an exception. Thank you.

    How recently did you switch?  If it's less than 60 days, then Verizon simply reinstates your previous account.  The fact that you were on the EDGE plan and mailed the devices back, and they apparently are somewhere in the system, could cause complications, and it might just work out that you just go back on the same plan and they set you up with the same devices.  I'm not sure how it will go - but since you are still being billed for the devices... 

  • I have bought the wireless keyboard for my iPad.  I was working for a day but now the power light won't stay on and as such won't connect to the iPad.  I have changed the batteries but still no difference.

    I have bought the wireless keyboard for my iPad.  I was working for a day but now the power light won't stay on and as such won't connect to the iPad.  I have changed the batteries but still no difference.

    Not knowing which wireless keyboard you bought, it is difficult to be specific.  but ...
    it is quite normal for the keyboard's power light not to stay on - it is a way of conserving battery power.
    Try this:
    turn you keyboard off
    on your iPad go to Settings > Bluetooth
    if your keyboard is listed under Devices, then touch the little blue i to its right and choose Forget this Device
    now reset your iPad:  hold both the Home and Power buttons down for about 10 seconds until the Apple logo appears, let go promptly when the Apple logo appears and wait another 30 seconds for your iPad to turn itself on
    After your iPad is back on again go back to Settings > Bluetooth
    now turn your keyboard back on and see if it appeard under Now Discoverable
         if it doesn't read your keyboard guide to figure out how to put it into Discovery mode
    touch the listing for your keyboard under Now Discoverable, it should now appear under Devices
    touch the listing for you keyboard under Devices, and choose to pair with it.

  • So my iPhone 4S started draining battery after recent update, battery got changed and it worked perfect for 3 days, all of a sudden the phone won't stay on unless connected to mains... Cannot receive any signal "searching" constantly. HELP

    So my iPhone 4S started draining battery after recent update, battery got changed and it worked perfect for 3 days, all of a sudden the phone  shut down and now won't stay on unless connected to mains... Claims its at 100% battery but thats impossible as it was at 30% before it shut down randomly.
    Cannot receive any signal "searching" constantly.
    Turns off as soon as removed from usb ... wont stay on connected to laptop!
    HELP!

    The iPhone includes a one year warranty. If an Apple store is not nearby, you can call AppleCare and handle an exchange under warranty over the phone. The exchange will be shipped to your door - someone must sign for the delivery so if no one will be at home, have it delivered where you work. You use the same box to return the existing iPhone back to Apple. Return shipping label and tape to reveal the box incuded - call the carrier with number incuded when the box is ready to be picked up. AppleCare will request a credit card in the event the existing iPhone is not returned within 10 days after the exchange under warranty is received.
    Hardware can fail - it happens, which is why there is a one year warranty.

  • Fix iTunes!!!!!  I cannot make changes to my account because I cannot sign in to iTunes since it won't stay up long enough.

    This is stupid.  Since iTunes 12 came out I cannot open the P.O.S. software on my computer (Windows 7 64-bit).  I have uninstalled the correct way, was told that my iTunes library was corrupted and to recreate it, which I did.  Then I was told to downgrade my iTunes to an older version.  Guess what?  I can't because my library was created with a newer version.  I cannot make changes to my account because I cannot sign in to iTunes since it won't stay up long enough.
    Anyone have any luck fixing this crap program??
    <Re-Titled by Host>

    As I said, some items cannot be purchased with an existing credit on an account no matter how much it is.  It can only be purchased with a charge to a credit card.

  • Visited links using Safari on my iPad 2 won't stay the "visited" color

    Visited links using Safari on my iPad 2 won't stay the "visited" color after I close the tab, put the iPad in sleep mode (or whatever it's called), or when I power off the iPad.
    There are certain sites I visit where it comes in very handy to be able to see which links I've already clicked on. The links will stay the "visited" color during the time I'm on the site, but later they all go back to the "unvisited" color.
    Is there any way I can fix this on an iPad?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Resolution won't stay on "Default for display" setting upon restart

    I have a Macbook Pro 13" 2014 edition with Yosemite.
    I have a problem in that my Macbook won't stay on the "Default for Display" option upon re-starting... Each time I restart the machine, I have to manually select this option (and then it works fine). Upon reboot, it always starts up as "Scaled". What can I do to make it start up as "Default for Display"?
    I noticed this problem started happening a few weeks ago when I had connected my MBP to an external projector. I did have to change around the display settings then. But now that I don't have it connected to any external display, i'd like it to default to "Default for Display" upon re-starting.

    Thanks for that... It led to me solving the issue.
    If you care to know the full story... Once I did those steps, I realized something important I didn't notice before... Upon restart, the machine would indeed to startup in "best for display"... You can tell by the "high resolution" of the background image and dock-icons, etc... The screen would then flicker for a second and would go to "low resolution". That led me to thinking it was one of my startup apps that was causing the problem... And thus not related to my connecting to a projector like I thought, nor to the actual restart of the machine itself. I then discovered the problem app ("iDisplay") and removed it from my "login apps"... and problem solved.
    Thanks!

  • IPod Nano won't stay mounted

    Hi this is my first post and hope someone can help. My problem is that when I attach my nano to my computer it will mount on the desktop, open iTunes check and see that it is update, which it is and then it umounts from the desktop within a few seconds. It remains in the iTunes window so I can access the nano preferences but then when I hit apply it searches for the nano and since it is not on the desktop says it can not find it. The iPod is not in the finder window but shows up in the system profiler as being attached to the USB. I am up to date on iTunes and the nano updater says it is up to date running 2006-06-28. I have tried everything such as restarting, using different USB ports, etc... to no avail. When I run the updater it stays mounted on the desktop but I can not acces the preferences. I really need to change my nano preferences as it will not update my new playlists because prefs, are set to update only the checked ones and I can not changes this and apply it if the nano won't stay mounted. Can anyone help? Much thanks

    This happened to me when using iTunes 6. Is that the version you are using? I was never able to find a complete answer to the "Preferences not saved" error or any knowledge base articles with an official explanation. I did however find a workaround in a previous discussion. Connect your iPod and in the short time that it is still visible on the desktop just as iTunes is opening, go to Preferences>iPod and tick "enable disk use". You have to be quick but it can be done. Once it is enabled you will be able to go back and update the preferences such as manual update etc. and and you'll not get the error.
    If you are using iTunes 7 try the same technique only tick "enable disk use" in the Summary tab before your iPod unmounts.

  • When I boot up my Mac, Messages opens automatically. I quit the app, but it just re-opens itself. It won't stay off!!! I can't figure out what's wrong with it!

    For the past few months, my Mac has been acting weird. EVERY time I boot up the computer, Messages opens automaticallly (I am runing OS X 10.8.x). I quit the app, but it just re-opens a few seconds later! It just won't stay off! I've looked it up online and nothing helps. I have no idea what to do!!!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. 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 click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    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, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Image Adjustments won't stay on

         Hey everybody, I'm Steven! I'm working on a sci-fi mural spacescape for my art class, and I'm having a bit of difficulty in the star scape area. See, whenever I do anything in the "Image > Adjustments" tab at the top of Photoshop, the preview on my page makes it look just how I want it, but after I click OK, or Apply, it either goes right back to how it was before I did the adjustment, or it does it to a degree, it just goes back halfway.
    For instance, when I click "add noise", then go to Image > Adjustments > Levels to thin the noise out to resemble stars, as a base layer to my starscape, and get it perfect, with the right amount of contrast and everything, when I click OK, it just goes back to big ugly noise. Now, I've added adjustment layers, but those effect everything under them, and I kind of need this to be specific. I've tried changing my mode to 32, 16 and 8 bit, as well as from RGB to CYMK and others. If anyone could help me out, I'd be really grateful! Thanks!
    (P.S. I'm using CS4, if that helps)
    Steven.

       Well, I did have one file that looked similar to it in the directory I was opening it from, so to be safe, I moved it and tried again, but it didn't work. The thing is, when I do Image > Adjustments, the preview on my actual canvas looks good, but when I click OK to lock it in, it just goes back to the way it was before, or kinda how I wanted it, but only a fraction, like half power. And when I save it, it also won't stay on. It will keep effect if I add an adjustments layer, and give me the desired effect, but it affects all the layers below it, not just the one I want, and it will revert to what it was before the effect if I save it as anything but a .PSD, for instance a .PNG, it will go back to white noise, not stars, just like Image > Adjustments. I did both Save and Save As, but they both had the same outcome. Haha, it seems I've really gotten myself in a pickle. Thanks for helping me out -
    -Steven

  • MBP display won't stay off, wakes from sleep

    I have a newish 15" MBP, 1680 display, hooked up to a Dell external monitor when it's at home. When I go to bed I cut power to the display via control-shift-eject, but generally don't put the computer to sleep overnight.
    With this new machine, after it's been running for a while (as little as a day, or as long as a couple weeks), the displays will come on again in the night. Once this happens, the displays won't stay off for longer than about five seconds. If I then put the machine to sleep, it'll wake itself up minutes or hours later (generally not long enough to miss a Time Machine interval). The only cure is rebooting.
    I tried an SMC reset, but that fix only lasted about as long as any other reboot.
    I've since tried systematically removing every peripheral (a USB hub, the external display, any directly-connected iOS devices) and testing display-off after each; no change. I've turned off my Bluetooth keyboard and mouse, then disabled Bluetooth on the computer, turned off wifi, quit every menu extra (jitouch, Viscosity, Dropbox, Pastebot, Fastscripts, Transmit, Teleport), and quit every running application. The problem remains repeatable after every step.
    It's repeatable at the moment — any suggestions for other things to try, preferably short of the reboot which temporarily masks the problem? I'm a little concerned that it's going to manifest at some point while I have the laptop sitting in a bag, which will then cook itself.
    I'm on 10.6.4 now, the problem started on 10.6.3.
    Thanks.

    Try checking the system logs in Applications/Utilities/Console.app for clues. The entries carry time stamps. Usually a wake event will leave some trace. By matching time stamps to the time of occurrence you may find the culprit.

  • Icons won't stay in dock

    Some icons won't stay in my dock when I drag them from the applications folder, but others will.
    I have tried the following without success:
    -gone to library/preferences and deleted com.apple.dock.plist then done a restart
    -gone to library/preferences and deleted com.apple.dock.db then done a restart
    -gone to library/preferences and deleted com.apple.DiskUtility.plist then done a restart
    -used disc utility to repair permissions
    -opened an application from the applications folder then whilst the icon is in the dock used right click.options/keep in dock
    -deselected dock synchronisation from mobile me sync
    None of these measures work though iPhoto & iTunes are not affected by the problem.
    The only workaround I have found is to create an alias of an application and drag this to the dock where it does stay put.
    Can anyone suggest anything else?
    jbs12345
    mac os 10.6.7,
    Macmini2,1
    Dock
      Version:          1.7
      Last Modified:          25/03/2011 19:52
      Kind:          Intel
      64-Bit (Intel):          Yes
      Get Info String:          Dock 1.7
      Location:          /System/Library/CoreServices/Dock.app

    -deselected dock synchronisation from mobile me sync
    I would pursue this avenue further.
    See this thread:
    How to stop application folder form disappearing from the dock
    and this article:
    How to Solve All Your MobileMe Sync Problems

Maybe you are looking for