Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping Caps Lock to Command #103

Closed
bel3atar opened this issue Dec 11, 2016 · 14 comments
Closed

Mapping Caps Lock to Command #103

bel3atar opened this issue Dec 11, 2016 · 14 comments

Comments

@bel3atar
Copy link

Results in command being pressed all the time.
To reproduce: System preferences => Keyboard => Modifier Keys

@RehabMan
Copy link
Owner

RehabMan commented Dec 12, 2016

I assume you're on 10.12.
If so, "won't fix". This is an artifact of the capslock bug work around.

Note that you can do such mapping with "Custom PS2 Map" or "Custom ADB Map". Such Info.plist overrides can be done in ACPI via RMCF.

@bel3atar
Copy link
Author

I'm 10.12.1, does that make a difference?

@RehabMan
Copy link
Owner

My comment is applicable to all versions of 10.12 so far.

@DaiMaoTsai
Copy link

I understand "won't fix." Is there another way around this? I'm using an IBM model M and have limited choices for a command-key substitution. I pretty much have to remap CAPS LOCK to something. Thanks!

@RehabMan
Copy link
Owner

RehabMan commented Feb 1, 2017

You can remap the key with ACPI "Custom ADB Map".
See the u430 repo (and keyboard remap wiki) for ideas.

@marvolo3d
Copy link

marvolo3d commented Jul 5, 2017

I'm trying to do the same thing as DaiMaoTsai, but can't figure out the PS2 scan codes I need. I've installed the debug kext and daemon, rebuilt caches and permissions and rebooted but I don't know where I'm supposed to see the scan codes.

Also if I don't actually have a physical "Option" (Windows) key, how will I find the code? Or is it even possible?

Any help would be appreciated.

@DaiMaoTsai
Copy link

DaiMaoTsai commented Jul 5, 2017 via email

@marvolo3d
Copy link

Yeah I tried with karabiner elements too, but was having the same issue with the key sticking.

If I watch with the karabiner event viewer, while caps is mapped to control for example, the release event happens BEFORE the press event (where it gets stuck). Pressing the actual control key then frees it from being stuck again.

How do you have yours configured exactly?

@DaiMaoTsai
Copy link

Just one single remap does it for me.

image

@marvolo3d
Copy link

Okay and you have the mapping in system prefs default? It seems karabiner overrides that anyway, but I'm not sure why I can't get it working. I guess I should just pick up a ps/2 to usb converter at this point.

@DaiMaoTsai
Copy link

DaiMaoTsai commented Jul 6, 2017

Yes, I use the defaults and everything works great.

image

PS/2 to USB is probably a good idea since these devices will probably be orphaned at some point, even though mine shows no sign of aging. Also Unicomp (original MFGR of the Model M) makes new ones with MacOS keys.

Or, if you're handy with hobbyist-level electronics, there is a tutorial on how to convert your Model M to Bluetooth, in which all sorts of re-mapping can be done in the firmware.

Good luck

@marvolo3d
Copy link

Picked up the converter. It works fine now, but only with Karabiner. The system pref remapping doesn't seem to have any affect with the converter.

I've seen the bluetooth and usb mods around, maybe I will check them out one day.

@plumps
Copy link

plumps commented Aug 7, 2017

As a follow-up for somebody else struggling with Karabiner Elements and a sticky CapsLock key. Here is what I did.

diskutil mount /dev/disk0s1
open /Volumes/EFI/EFI/CLOVER/kexts/other/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist

And added the following key to IOKitPersonalities>ApplePS2Keyboard>Platform Profile>Default>Custom ADB Map

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<string>3a=3d;swap caps_lock with right_option</string>
</plist>

@4volodin
Copy link

As a follow-up for somebody else struggling with Karabiner Elements and a sticky CapsLock key. Here is what I did.

diskutil mount /dev/disk0s1
open /Volumes/EFI/EFI/CLOVER/kexts/other/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/Contents/Info.plist

And added the following key to IOKitPersonalities>ApplePS2Keyboard>Platform Profile>Default>Custom ADB Map

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<string>3a=3d;swap caps_lock with right_option</string>
</plist>

hi bro, did you have the problem like here ? #194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants