Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

elnprk

macrumors newbie
Original poster
Aug 4, 2024
1
0
So I used the latest efi from here (https://github.com/KawaiiGirl2001/ThinkPadT470-OpenCore/) to hackintosh my t470 (i only edited config.plist with unique serial number (didn't bother with apecid) and replaced airportitlwm kext with the latest because the laptop restarted at the apple logo progress)

What bothers me is that I cannot map the modifier buttons as I wish: I want to have the t470 buttons to act in the same way as those of a mac keyboard located in the same positions do. So if i do not look at the keyboard i don't notice a difference with the real mac keyboard button positions.

I tested the bottom row with modifier buttons by pressing each button from left to right starting from fn button and ending with right control button, ignoring space bar: r/hackintosh - modifier keys: Right Alt Gr button acts the same as (duplicates) the Windows button (has the same key code) [closed]

By default (with default system settings keyboard shortcuts modifier keys):

fn button doesn't produce any event (btw is that correct?)
Control buttons act as intended
Windows button -> Left Option key
Left Alt button -> Left Command key
Right Alt Gr button -> Left Option key (!) same as the Windows key
PrtSc button -> f13 key

So, the left modifier buttons are working as I prefer. But the Right Alt Gr button has the same key codes as the Windows button as seen on the photo and thus produce the same effect. For this reason changing keyboard system settings or using 3rd party tools like Karabiner do not solve my problem with the Right Alt Gr button. I want the Windows button and Right Alt Gr button to produce different results but Right Alt Gr button is essentially a duplicate of a Windows button.

Prior to using that efi i tried installing ventura from https://github.com/MultimediaLucario/Lenovo-ThinkPad-T470 and I remember that the default key mapping was different from that produced by latest efi: Windows button acted as a Command key, Left Alt button acted as an Option key, and Right Alt Gr button acted as an Option key (don't remember if PrtSc did something). And after I switched command and option keys in system settings I got the result i wanted.

Does anybody know why is this happening that both buttons have same key codes? For comparison, left and right control buttons have different key codes as seen on the photo. My suspect is that the hardware key mappings (Windows button and Right Alt Gr) might depend on the efi. I know nothing about hackintosh, im just a user that follows manuals. If you know and can tell me how to change keyboard key codes through efi or find alternative solution that solves my problem it would be nice

p.s. some little bugs I found on my hackintosh is inability to connect my bluetooth mouse and that my bluetooth headphones couldn't connect after sleep yesterday (a reboot helped). Also, when connecting hdmi to tv the picture on tv was with a pink filter. Maybe you know how to solve these as well?
 
1.
Windows is bad compatible with different codes for left and right ALT.

In Windows, you can make separate key codes for left and right ALT, but then usually the right ALT will simply stop working. :(

In updates, they either turn on different codes for ALT, or they turn off the right ALT, and You have to reassign it yourself so that the right ALT works like the left ALT.

2.
Moreover, some keyboards for Windows intentionally give out codes only for the left ALT.
With the laptop, they could have done the same.
Not exclude hardware problem on notebooks.

3.
Also, the problem with key codes contains "keyboard layouts". This is solved by adding another keyboard layout, and REMOVING the problematic layout.

4.
Check current keys redirect.
If the keys are reassigned only in Windows, then this can be disabled by deleting the Scancode Map parameter in the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
If this section is already empty, the problem is on the driver or BIOS side.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.