Trung_Nguyen Posted December 2, 2017 Share Posted December 2, 2017 My brightness key on my keyboard are fn+arrowup and fn+arrowdown key. Currently, it's remapped to fn+insert and fn+f3 key. Is there a way to fix this? Thanks More info: I tried ACPIDebug and it always log EC _Q66 for all keyboard hotkeys In the Attachment, there are the info.plist of voodoops2keyboard which I found many mapping there and also my DSDT.aml (Which patched by guys from osxlatitude forum). Archive.zip   Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/ Share on other sites More sharing options...
foskvs Posted December 2, 2017 Share Posted December 2, 2017 Can you attach your DSDT from origin? Which version of VoodooPS2Controller are you using? Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2542837 Share on other sites More sharing options...
Trung_Nguyen Posted December 2, 2017 Author Share Posted December 2, 2017 Can you attach your DSDT from origin? Which version of VoodooPS2Controller are you using? VoodooPS2Controller: http://forum.osxlatitude.com/index.php?/topic/8285-refined-alps-touchpad-driver/page-48&do=findComment&comment=65797 I think I use the latest Keyboard plugin from Rehabman Origin DSDT:origin.zip Thank you very much P/s: A few other hotkeys: Fn+F1:Sleep Fn+F2:Numlock Fn+F3:Scroll lock Fn+F10: Previous track? Fn+F11:Play/pause Fn+f12:Next Track?  P/s2:A little about system hardware(anything that I think you will need): Motherboard: AMIBIOS? CPU+GPU:IvyBridge i7 Intel HD 4000:   Chipset Model: Intel HD 4000  Type: GPU  Bus: Built-In  VRAM (Dynamic, Max): 1536 MB  Vendor: Intel  Device ID: 0x0166  Revision ID: 0x0009  Metal: Supported, feature set macOS GPUFamily1 v3  Displays: Display:  Resolution: 1366 x 768 @ 60 Hz  Framebuffer Depth: 24-Bit Color (ARGB8888)  Main Display: Yes  Mirror: Off  Online: Yes  Rotation: Supported  Automatically Adjust Brightness: No  Sound: IDT92HD93 Intel 82579LM PCI Express Gigabit Ethernet, rebranded BCM4322(DW1510) Laptop_Integrated_Webcam_E4HD:   Model ID: UVC Camera VendorID_3141 ProductID_25663  Unique ID: 0x1a1500000c45643f  Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2542853 Share on other sites More sharing options...
foskvs Posted December 2, 2017 Share Posted December 2, 2017 Supposing that you have a working brightness slider in System Preferences. Try this version of VoodooPS2Controller.kext:Â https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/downloads/RehabMan-Voodoo-2017-1130.zip It maps brightness keys to F14 and F15. The other hotkeys should work OOB. Your _Q66 Method calls NEVT Method which calls EVxx Methods. Try to debug brightness hotkeys with this DSDT. DSDT.aml.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2542865 Share on other sites More sharing options...
Trung_Nguyen Posted December 3, 2017 Author Share Posted December 3, 2017 Supposing that you have a working brightness slider in System Preferences. Try this version of VoodooPS2Controller.kext:Â https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/downloads/RehabMan-Voodoo-2017-1130.zip It maps brightness keys to F14 and F15. The other hotkeys should work OOB. Your _Q66 Method calls NEVT Method which calls EVxx Methods. Try to debug brightness hotkeys with this DSDT. Here is the result for both up and down brightness hotkey:Â ACPIDebug: "EC _Q66 enter" ACPIDebug: "EV4 (0x0800,Zero)" Â Here is the Log of ApplePS2Keyboard with LogScanCode 1 Arrow up:ApplePS2Keyboard: sending key e048=7e down Arrow Down:Â ApplePS2Keyboard: sending key e050=7d down P/s: I don't use any Backlight kext from Rehabman or from any other hackintohser. I use native one, untouched from Apple. Â Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2543246 Share on other sites More sharing options...
Slice Posted December 3, 2017 Share Posted December 3, 2017 See my guide for Dell Laptop. The link is in my signature. Briefly 1. I don't use any Brightness kext. 2. I don't patch DSDT for brightness. 3. Brightness hot keys are F1 and F2 as it should be for real Mac. 4. My version of VoodooPS2Keyboard + VoodooPS2Trackpad by DrHurt. I have full brightness control for both cases Optimus=Enable/Disable. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2543276 Share on other sites More sharing options...
Trung_Nguyen Posted December 3, 2017 Author Share Posted December 3, 2017 See my guide for Dell Laptop. The link is in my signature. Briefly 1. I don't use any Brightness kext. 2. I don't patch DSDT for brightness. 3. Brightness hot keys are F1 and F2 as it should be for real Mac. 4. My version of VoodooPS2Keyboard + VoodooPS2Trackpad by DrHurt. I have full brightness control for both cases Optimus=Enable/Disable. But The problem is the Fn+F1 key will hibernate the Operating system. When I boot up again, It completely freezed Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2543302 Share on other sites More sharing options...
Slice Posted December 4, 2017 Share Posted December 4, 2017 But The problem is the Fn+F1 key will hibernate the Operating system. When I boot up again, It completely freezed Differ Fn+F1 from just F1. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2543939 Share on other sites More sharing options...
wern apfel Posted December 4, 2017 Share Posted December 4, 2017 Try this kext it should enable your brightness keys. 1 Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2543981 Share on other sites More sharing options...
Trung_Nguyen Posted December 4, 2017 Author Share Posted December 4, 2017 Try this kext it should enable your brightness keys. Could you please enable that from my DSDT please? I couldn't find anywhere to insert the patch. Thanks DSDT.dsl.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544055 Share on other sites More sharing options...
wern apfel Posted December 4, 2017 Share Posted December 4, 2017 Could you please enable that from my DSDT please? I couldn't find anywhere to insert the patch. Thanks DSDT.dsl.zip We've made a working code with Rehabman but since Sierra it becomes useless. It's an known issue, the brightness up key lowers also the volume. The EC query _Q66 is the right place but only useful @10.11 and earlier. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544148 Share on other sites More sharing options...
RehabMan Posted December 4, 2017 Share Posted December 4, 2017 It's an known issue, the brightness up key lowers also the volume. No such issue in current macOS 10.12.6/10.13.x. 1 Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544190 Share on other sites More sharing options...
wern apfel Posted December 5, 2017 Share Posted December 5, 2017 Could you please enable that from my DSDT please? I couldn't find anywhere to insert the patch. Thanks DSDT.dsl.zip You have removed the WMI code from this DSDT, but it is needed for the brightness key fix. If you upload a DSDT with the WMI part I'll add the code to it, also a kext by Dr Hurt (which you're probably use) with the ADB Map fix. Â No such issue in current macOS 10.12.6/10.13.x. No more! You've changed the ADB codes on your VoodooPS2.kext, but your trackpad code does not support ALPS trackpads. I think the most ALPS user are using Dr Hurts kext without changed ADB codes. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544440 Share on other sites More sharing options...
Trung_Nguyen Posted December 5, 2017 Author Share Posted December 5, 2017 You have removed the WMI code from this DSDT, but it is needed for the brightness key fix. If you upload a DSDT with the WMI part I'll add the code to it, also a kext by Dr Hurt (which you're probably use) with the ADB Map fix. The ADB mapping of the kext was untouched. P/s: the kext in the Archive.zip may be touched without intention, Please get the original one from http://forum.osxlati...e-48#entry65797 Thanks I have re-added some AMW code from the original dsdt to the one i sent you. Archive.zip Trying to patch DSDT myself. The brightness are now only controlled by the FN+F3 and FN+Insert key. The Fn+Arrow(Which I couldn't managed to get the scancodes) stop changing brightness independently now!DSDT 2.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544461 Share on other sites More sharing options...
wern apfel Posted December 5, 2017 Share Posted December 5, 2017 The ADB mapping of the kext was untouched. P/s: the kext in the Archive.zip may be touched without intention, Please get the original one from http://forum.osxlati...e-48#entry65797 Thanks I have re-added some AMW code from the original dsdt to the one i sent you. Archive.zip Trying to patch DSDT myself. The brightness are now only controlled by the FN+F3 and FN+Insert key. The Fn+Arrow(Which I couldn't managed to get the scancodes) stop changing brightness independently now!DSDT 2.zip  Here is your DSDT with the brightness keys fix DSDT_brightness_fix.zip  Here Dr Hurts fork with Rehabmans ADB map fix VoodooPS2Controller.kext_ADBMap_brightness_fix.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544494 Share on other sites More sharing options...
Trung_Nguyen Posted December 5, 2017 Author Share Posted December 5, 2017 Here is your DSDT with the brightness keys fix DSDT_brightness_fix.zip  Here Dr Hurts fork with Rehabmans ADB map fix VoodooPS2Controller.kext_ADBMap_brightness_fix.zip  What a pity that it doesn't work as expected Brightness still map to fn+f3 and fn+Insert instead of fn+Arrow up and down Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544527 Share on other sites More sharing options...
wern apfel Posted December 5, 2017 Share Posted December 5, 2017 What a pity that it doesn't work as expected Brightness still map to fn+f3 and fn+Insert instead of fn+Arrow up and down Does it work with the WMI kext? Is it the E6430? Here, the DSDT patch works again after the ADB map fix on a E6420, thanks to Rehabman. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2544623 Share on other sites More sharing options...
Trung_Nguyen Posted December 6, 2017 Author Share Posted December 6, 2017 Does it work with the WMI kext? Is it the E6430? Here, the DSDT patch works again after the ADB map fix on a E6420, thanks to Rehabman. I'm on the E6230. The fn+Arrow seem stop changing the brightness, make the Fn+f3/Insert the only way to change the brightness. kernel ApplePS2Keyboard: sending key e045=71 down //Fn+ Insert: cause the screen brighten up kernel ApplePS2Keyboard: sending key 46=6b down //Fn+ F3: cause the screen brighten down kernel ApplePS2Keyboard: sending key e048=7e down //Arrow Up kernel ApplePS2Keyboard: sending key e050=7d down //Arrow Down Here is the only related scancodes I could fetch Fn+up and Fn+Down doesn't result in scancodes:Only ACPI _Q66 Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545031 Share on other sites More sharing options...
wern apfel Posted December 6, 2017 Share Posted December 6, 2017 I'm on the E6230. The fn+Arrow seem stop changing the brightness, make the Fn+f3/Insert the only way to change the brightness.  kernel ApplePS2Keyboard: sending key e045=71 down //Fn+ Insert: cause the screen brighten up kernel ApplePS2Keyboard: sending key 46=6b down //Fn+ F3: cause the screen brighten down kernel ApplePS2Keyboard: sending key e048=7e down //Arrow Up kernel ApplePS2Keyboard: sending key e050=7d down //Arrow Down Here is the only related scancodes I could fetch Fn+up and Fn+Down doesn't result in scancodes:Only ACPI _Q66 The brightness keys are ACPI controlled, so no scan codes. The DSDT I've uploaded was a .dsl file, have you saved it as binary?, if not here is the .aml. DSDT.aml.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545057 Share on other sites More sharing options...
Trung_Nguyen Posted December 6, 2017 Author Share Posted December 6, 2017 The brightness keys are ACPI controlled, so no scan codes. The DSDT I've uploaded was a .dsl file, have you saved it as binary?, if not here is the .aml. DSDT.aml.zip caused the computer freezed when press fn+arrow or fn+f3/insert. took a few reboot early to get back on. Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545070 Share on other sites More sharing options...
wern apfel Posted December 6, 2017 Share Posted December 6, 2017 caused the computer freezed when press fn+arrow or fn+f3/insert. took a few reboot early to get back on. That's a good sign, it seems that the code does something. But your DSDT is a mess, you've added the WMI device to the wrong place. Other code is missing. Here is the DSDT from Slice, with the brightness code it is probably the same, try it. But, I recommend you to create a new DSDT with the brightness code. DSDT.aml_SLICE_brightness.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545141 Share on other sites More sharing options...
Trung_Nguyen Posted December 7, 2017 Author Share Posted December 7, 2017 That's a good sign, it seems that the code does something. But your DSDT is a mess, you've added the WMI device to the wrong place. Other code is missing. Here is the DSDT from Slice, with the brightness code it is probably the same, try it. But, I recommend you to create a new DSDT with the brightness code. DSDT.aml_SLICE_brightness.zip I couldn't try it because it cause the screen black(brightness=0) Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545682 Share on other sites More sharing options...
Trung_Nguyen Posted December 7, 2017 Author Share Posted December 7, 2017 System abrupt when press Fn Arrows with this DSDT(I try to edit the dsdt that i received from osxlatitude). I couldn't patch the dsdt from beginning. DSDT-2.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2545730 Share on other sites More sharing options...
wern apfel Posted December 7, 2017 Share Posted December 7, 2017 System abrupt when press Fn Arrows with this DSDT(I try to edit the dsdt that i received from osxlatitude). I couldn't patch the dsdt from beginning. DSDT-2.zip Maybe your laptop needs other codes, try it with the WMI kext below, it's a debug version. Look at the Console. I think it's better to patch a new DSDT, press F4 @Clover menu and upload the DSDT. IOWMIFamily.kext_debug.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2546125 Share on other sites More sharing options...
Trung_Nguyen Posted December 8, 2017 Author Share Posted December 8, 2017 Maybe your laptop needs other codes, try it with the WMI kext below, it's a debug version. Look at the Console. I think it's better to patch a new DSDT, press F4 @Clover menu and upload the DSDT. IOWMIFamily.kext_debug.zip Here is it: origin.zip Link to comment https://www.insanelymac.com/forum/topic/330190-dell-keyboard-hotkeys-remapping/#findComment-2546530 Share on other sites More sharing options...
Recommended Posts