Fix Backlight control with F1/F2 keys on Unsupported iMac7,1 & 8,1 with macOS 10.14 Mojave

alphascorp

macrumors regular
Original poster
Jul 16, 2018
147
230
Brest, France
Hi everybody

I run a new thread because someone deleted my addition about this on the first page of the thread "macOS 10.14 Mojave on Unsupported Macs" perhaps thinking that my discovery was useless and not worth it!

All is in the title!

I have two unsupported iMac8,1 with macOS Mojave and I had problems with the backlight control that did not work with F1/F2 keys.

So I followed the instructions by applying "bkltpatch10.14.2" from @dosdude1’s message #11156
but it didn't work on iMac8,1 and gives Kernel Panic.

If you decide to use the @dosdude1’s patch only replace the file "DisplayServices.framework" contained in "bkltpatch10.14.2"

Many thanks to @dosdude1 without whom it would not work.


The solution is: (without using Brightness Slider.app)


Automatic fix is as simple as this:
— download the .zip file below and unzip it
— locate install.sh inside the unzipped folder
— Launch Terminal and type "sudo" and drag "install.sh" next to
— reboot

Manual fix is as simple as this:
— download and unzip the .zip below
— locate « DisplayServices.framework » in System/Library/PrivateFrameworks/
— back it up
— replace it with « DisplayServices.framework » contained in the unzipped archive
— open Terminal and type:

Code:
        sudo chmod -R 755 /System/Library/PrivateFrameworks/DisplayServices.framework
        sudo chown -R 0:0 /System/Library/PrivateFrameworks/DisplayServices.framework
        sudo kextcache -system-caches
        sudo kextcache -system-prelinked-kernel
— reboot

After restarting, the F1 and F2 keys on the keyboard must change the backlight of your iMac.

Works with macOS Mojave 10.14.2 - 10.14.3 - 10.14.4 - 10.14.5 and 10.14.6 (including supplemental updates 18G87 & 18G95)

It works on iMac7,1 too (see @jowaju’s message #17029)

Not tested on iMac9,1 but maybe it works too. Could someone test with? Thank’s in advance
 

Attachments

Last edited:
  • Like
Reactions: Rassama and Yojx21

Bill Forest

macrumors newbie
Sep 7, 2019
5
1
Hi,
I have an iMac 9,1 and just tried your method to fix the fact that the Brightness buttons (F1, F2) do not work after installing dosdude's Mojave patch (Mojave 10.14.6).
First I must say that I am a novice in working with Terminal, so I may have done something incorrectly. At any rate, I tried both the manual and automatic fixes, and now the F1/F2 buttons adjust the Brightness, but only for about 2 seconds. It will turn Brightness up or down, but after 2 seconds, it reverts to low level brightness.
Do you have any suggestions?
Here is what I get when I run it in automatic:

sudo /Users/name/Downloads/Fix\ Backlight\ control\ with\ F1-F2\ keys\ for\ iMac\ 7\,1\ \&\ 8\,1/install.sh
Password:
cp: DisplayServices.framework: No such file or directory
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f8542d48800 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/AppleHDA.kext/", ID = "com.apple.driver.AppleHDA" }
kext file:///System/Library/Extensions/BJUSBLoad.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/EPSONUSBPrintClass.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f85443c5470 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/GeForceTesla.kext/", ID = "com.apple.GeForceTesla" }
kext file:///System/Library/Extensions/hp_designjet_series.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Deskjet_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_fax_io.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f85443eb2d0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/hp_Inkjet1_io_enabler.kext/", ID = "com.hp.print.hpio.Inkjet1.kext" }
kext file:///System/Library/Extensions/hp_Inkjet3_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Inkjet4_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Inkjet7_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Inkjet8_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Inkjet_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Officejet_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_Photosmart_io_enabler.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/hp_qc_io_enabler.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440e7680 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/", ID = "com.apple.iokit.IOUSBFamily" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440edc70 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBMergeNub.kext/", ID = "com.apple.driver.AppleUSBMergeNub" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440f0d30 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBCompositeDriver.kext/", ID = "com.apple.driver.AppleUSBComposite" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440f28b0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBHIDDriver.kext/", ID = "com.apple.iokit.IOUSBHIDDriver" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440f8200 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBUserClient.kext/", ID = "com.apple.iokit.IOUSBUserClient" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f85440ea3c0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBHostFamily.kext/", ID = "com.apple.iokit.IOUSBHostFamily" }
kext file:///System/Library/Extensions/JMicronATA.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/LexmarkUSBMerge.kext/ is in hash exception list, allowing to load
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f854467a540 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/MacOSXCameraDriver.kext/", ID = "com.flipvideo.IOUSBCameraMassStorage" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f85446a4ef0 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/LegacyUSBInjector.kext/", ID = "com.parrotgeek.LegacyUSBInjector" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f854471e6c0 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/LegacyUSBVideoSupport.kext/", ID = "com.parrotgeek.LegacyUSBVideoSupport" }
Kext with invalid signatured (-67050) allowed: <OSKext 0x7f8544718c20 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/SIPManager.kext/", ID = "com.parrotgeek.SIPManager" }
Kext with invalid signatured (-67050) allowed: <OSKext 0x7fd0937539f0 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/SIPManager.kext/", ID = "com.parrotgeek.SIPManager" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd09351c330 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/", ID = "com.apple.iokit.IOUSBFamily" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd093527400 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBHIDDriver.kext/", ID = "com.apple.iokit.IOUSBHIDDriver" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd09352bce0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBHostFamily.kext/", ID = "com.apple.iokit.IOUSBHostFamily" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd093525150 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBCompositeDriver.kext/", ID = "com.apple.driver.AppleUSBComposite" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7fd09372c390 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/LegacyUSBVideoSupport.kext/", ID = "com.parrotgeek.LegacyUSBVideoSupport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd093523690 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBMergeNub.kext/", ID = "com.apple.driver.AppleUSBMergeNub" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fd09347f320 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/LegacyUSBInjector.kext/", ID = "com.parrotgeek.LegacyUSBInjector" }
kext file:///System/Library/Extensions/JMicronATA.kext/ is in hash exception list, allowing to load
/System/Library/Extensions/IOUSBHostFamily.kext/Contents/PlugIns/AppleUSBVHCIBCE.kext - dependency 'com.apple.driver.usb.AppleUSBVHCI' not found.
/System/Library/Extensions/IOUSBHostFamily.kext/Contents/PlugIns/AppleUSBVHCIBCE.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd09352dca0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBUserClient.kext/", ID = "com.apple.iokit.IOUSBUserClient" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fd0934231e0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/GeForceTesla.kext/", ID = "com.apple.GeForceTesla" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7fd091e27dc0 [0x7fffa3f668e0]> { URL = "file:///System/Library/Extensions/AppleHDA.kext/", ID = "com.apple.driver.AppleHDA" }
Invalid signature -67050 for kext <OSKext 0x7fd0937539f0 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/SIPManager.kext/", ID = "com.parrotgeek.SIPManager" }
Invalid signature -67030 for kext <OSKext 0x7fd09372c390 [0x7fffa3f668e0]> { URL = "file:///Library/Extensions/LegacyUSBVideoSupport.kext/", ID = "com.parrotgeek.LegacyUSBVideoSupport" }
kxld[com.apple.driver.AppleUSBVHCI]: The vtable for AppleUSBVHCIHostCxQueue was not patched because its parent, the vtable for AppleUSBVHCIHostTransferQueue, was not patchable.
kxld[com.apple.driver.AppleUSBVHCI]: The vtable for AppleUSBVHCIHostTxRxQueue was not patched because its parent, the vtable for AppleUSBVHCIHostTransferQueue, was not patchable.
kxld[com.apple.driver.AppleUSBVHCI]: The vtable for AppleUSBVHCIHostTransferQueue was not patched because its parent, the vtable for AppleUSBVHCIBCETransferQueue, was not found.
Link failed (error code 5).
Prelink failed for com.apple.driver.AppleUSBVHCI; omitting from prelinked kernel.
KernelCache ID: F322D7383FA9F4B4370DEB60FEAAE3B3

Thanks for any suggestions!
Bill