Jump to content
TimeWalker75a

OSX on DELL Vostro 3450 / Inspiron N4110 / XPS L702x UEFI Clover

1,149 posts in this topic

Recommended Posts

Advertisement

I suppose you could try this on your LPCB bridge .. though I'm not sure if registers you are showing have to do anything with fan speed.

                Device (EC0)
                {
                    Name (_HID, EisaId ("PNP0C09"))  // _HID: Hardware ID
                    
                    OperationRegion (ECRM, EmbeddedControl, Zero, 0x0100)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        Offset (0x94), 
                        FANH,   8, // fan high rpm which I higly doubt because 3237 from your screenshor is just A5 0C 
                        FANL,   8, 
                        Offset (0xA8),
                        TCPD,   8, //CPU Die
                        TMEM,   8, //Memory Ambient 
                        TSYS,   8, //Motherboard Ambient
                        TCHS,   8, //some kind of chipset..must be pch but temps is way too different with below sensor
                        TPCD,   8, //PCH Die
                        
                    }
                }

Then address these registers the same way I do in SSDT-1.

Share this post


Link to post
Share on other sites

I suppose you could try this on your LPCB bridge .. though I'm not sure if registers you are showing have to do anything with fan speed.

                Device (EC0)
                {
                    Name (_HID, EisaId ("PNP0C09"))  // _HID: Hardware ID
                    
                    OperationRegion (ECRM, EmbeddedControl, Zero, 0x0100)
                    Field (ECRM, ByteAcc, Lock, Preserve)
                    {
                        Offset (0x94), 
                        FANH,   8, // fan high rpm which I higly doubt because 3237 from your screenshor is just A5 0C 
                        FANL,   8, 
                        Offset (0xA8),
                        TCPD,   8, //CPU Die
                        TMEM,   8, //Memory Ambient 
                        TSYS,   8, //Motherboard Ambient
                        TCHS,   8, //some kind of chipset..must be pch but temps is way too different with below sensor
                        TPCD,   8, //PCH Die
                        
                    }
                }

Then address these registers the same way I do in SSDT-1.

this bits when fan is off  become FF FF 

so sure this is thee bits of fan

do i use your ssdt-1 as it or must i edit it ?

 

 

the  different values of speed 

nearly because  aida64 has some delay on reading than rw everything

Share this post


Link to post
Share on other sites

Then these values show some kind of integer value representing tachometer level and not actual tachometer readout, or it's a float value in a form of XXXX.Y and you would have to convert it to be just XXXX... (94 97 probably is 3803.9 RPM) figuring this is up to you.

 

You can't use the table as it is because:

1. External register names are different for you

2. I have no idea where is your MUTEX to temporarily lock access to EC 

3. Fan control algorithms are not going to work at all

4. Your tachometer doesn't output data in plain hex bytes that you could concatenate by shifting, you need to come up with a way to strip the excess part off.

and 5... im not even sure if getting data from these registers would be possible the way I have shown you. 

 

try adding EC device, then try configuring acpi sensors to monitor just some temperature and see if it reflects accurately.. if it does - go on from there and add remaining temps, then think about the fan. it's not a task for 5 minutes.. took me at least 6 month to fully understand my EC.

Share this post


Link to post
Share on other sites

Then these values show some kind of integer value representing tachometer level and not actual tachometer readout, or it's a float value in a form of XXXX.Y and you would have to convert it to be just XXXX... (94 97 probably is 3803.9 RPM) figuring this is up to you.

 

You can't use the table as it is because:

1. External register names are different for you

2. I have no idea where is your MUTEX to temporarily lock access to EC 

3. Fan control algorithms are not going to work at all

4. Your tachometer doesn't output data in plain hex bytes that you could concatenate by shifting, you need to come up with a way to strip the excess part off.

and 5... im not even sure if getting data from these registers would be possible the way I have shown you. 

 

try adding EC device, then try configuring acpi sensors to monitor just some temperature and see if it reflects accurately.. if it does - go on from there and add remaining temps, then think about the fan. it's not a task for 5 minutes.. took me at least 6 month to fully understand my EC.

i added EC  device to dsdt

and used your ssdt-1 as it 

though it will get fan only to work

 

but nothing :(

 

i think florin9doi will do it better than me :)

Share this post


Link to post
Share on other sites

Nah, life won't be that easy .. you have to decipher registers, determine if they really output real data and not some garbage data.. then try to come up with a way to monitor this data. And eventually a way to control your fan, if it's even possible in some shape or form. 

 

I'm still looking for ways to enable Fn+F2 even though menu bar toggles for both wi-fi and bluetooth can be used. It works in UEFI ubuntu, so there must be a reason it fails in UEFI windows and OSX. I presume Ubuntu just parses WMI event from it (dell-wmi pack) and disables the interfaces .. but then again it should have froze due to FOWM call being executed. 

 

Also, @Mohemed .. I recalled why we had problems with restart upon disconnecting adapter - it was same FOWM method that tries to write to WCSE register when pressing Wi-Fi hotkey (Fn+F2). While this works in legacy boot mode (in both windows, or OSX booted with Chameleon, XPC or CloverEFI) it causes either a complete lock up or restart of the laptop in UEFI. So I had to disable FOWM method completely to prevent these problems.

Share this post


Link to post
Share on other sites

 after  i applied SLPE fix no problems occurred for some time then reappeared this on clover rev 2606

after update to rev 2621 after apitofix update by dmazar disappeared

 

about wifi bluetooth

i can disable wifi normally without any edit ( i dont use iowmi )

nearly fn keys have different method than that on your notebook

Share this post


Link to post
Share on other sites

Also, I should point out that your DSDT has ECGx methods, which are Embedded Controller GET methods to obtain data from EC. So your MUTEX probably is SMIX (SMI Lock). 

And judging by the way your battery information is obtained - RMSC is actually your embedded controller and this is your EC ram space:

            OperationRegion (MBOX, SystemMemory, 0xFE800000, 0x2000)
            Field (MBOX, ByteAcc, Lock, Preserve)
            {
                        Offset (0x01), 
                ENTF,   8, 
                        Offset (0x1001), 
                MBX0,   8, 
                MBX1,   8, 
                MBX2,   8, 
                MBX3,   8, 
                MBX4,   8, 
                MBX5,   8, 
                MBX6,   8, 
                MBX7,   8, 
                MBX8,   8, 
                MBX9,   8
            }

And SX methods (like SX10) are just interface methods to get data from EC via SMI protocol.

Share this post


Link to post
Share on other sites

 

Remove my SSDT table for i3-2350M and enable P and C state generation in clovers config file:

 

I tried removing SSDT table and enabling P-State and C-State generation still same issue:

 

P-State Stepper Error 18 at step 35 in context 2 on CPU 0

 

If anyone have a moment to take a look at attached config.plist I would appreciate it.

config-plist.txt

Share this post


Link to post
Share on other sites

I think i find a easy way to find the registers under windows. 

First, install windows then install AIDA64, then run it, like below:

post-459659-0-55897800-1393044502_thumb.jpg

you can see the sensors like the screen then right click from bottom bar, choose sensors dump--Embedded xxxx. then you can have this:

post-459659-0-27503400-1393044611_thumb.jpg

so, scroll down to bottom, you can see all the registers from you sensors, fan and other temps sensors. For fan, u can see the last two registers name( it can be found in the DSDT), other temps registers name, you just need to compare the value of them, basically it's a simple way to do that, also you can use RW, the find the Offset to match different register function. 

Share this post


Link to post
Share on other sites

When I first started deciphering registers Aida used direct Dell ec access which lagged, only when I posted some info about sensors Aida switched to monitoring through acpi. I'm not implying they used the knowledge I have collected, but its just a weird coincidence. Good find none the less!

 

Share this post


Link to post
Share on other sites

I tried removing SSDT table and enabling P-State and C-State generation still same issue:

 

P-State Stepper Error 18 at step 35 in context 2 on CPU 0

 

If anyone have a moment to take a look at attached config.plist I would appreciate it.

Hmm.. I can only see that you have no valid serial numbers for your system.. but that shouldn't cause any PM-related issues. Try some newer versions of Clover.. generator was changed at some point. Grab the binaries from https://www.dropbox.com/sh/b858dz2mwwsfsok/LRAFNw_WCe

Share this post


Link to post
Share on other sites

When I first started deciphering registers Aida used direct Dell ec access which lagged, only when I posted some info about sensors Aida switched to monitoring through acpi. I'm not implying they used the knowledge I have collected, but its just a weird coincidence. Good find none the less!

i think they collect different model laptop from internet, or they don't need to have all the device too test software, meanwhile u posted. But u did a good finding about this. 

Share this post


Link to post
Share on other sites

 

 

Hmm.. I can only see that you have no valid serial numbers for your system.. but that shouldn't cause any PM-related issues. Try some newer versions of Clover.. generator was changed at some point. Grab the binaries from https://www.dropbox....fsok/LRAFNw_WCe

 

Hi TimeWalker75, Thanks for all of your help - what version of clover would you recommend? I tried latest (Clover_rev2621.7z) couldn't boot at all.

Share this post


Link to post
Share on other sites

ok .. i seem to have located your mistake... your config got broken after adding generators because you edit with plain text editors..

so SSDT section got separated from it's parent ACPI section... and on top of that you are not dropping OEM tables, which you need to do. so every table gets mooshed together and you get kernel panics.

 

1. remove SSDT-4 I gave you

2. use enclosed config I have fixed for you

config.plist.zip

Share this post


Link to post
Share on other sites

TimeWalker75, Thank You! I removed SSDT-4 and replaced my config.plist with yours - unfortunately I still get the same error as before:

P-State Stepper Error 18 at step 35 in context 2 on CPU 0

Share this post


Link to post
Share on other sites

TimeWalker75, Thank You! I removed SSDT-4 and replaced my config.plist with yours - unfortunately I still get the same error as before:

P-State Stepper Error 18 at step 35 in context 2 on CPU 0

 

As suggest, u can use chameleon bootloader install firstly, it's more simple and easy to succeed. If you have done it, then try to use a usb key with clover installed to test, when it boots up well, then install it into EFI partition. 

Share this post


Link to post
Share on other sites

Updated some things in regards to keyboard .. thanks to RehabMan's latest changes to VoodooPS2 we can finally get rid of IOWMIFamily which sole purpose was to control backlight. Now all special keys on the keyboard (except Fn+F1 in standard mode) work in regular and inverted mode.. and you don't even have to go to BIOS to change the mode:

 

79Pgd.png

 

To install do the following:

0. Uninstall IOWMIFamily and remove 'AMW0 Override" patch from DSDT Patches section of config. Change the "HDMI+VGA+Brightness" patch a bit, change 1213 1213 to same as in Find sequence.

1. Update the DSDT patches (only the ones you currently have as Intel and AMD had slightly different patches) in your config from dsdt_and_kext_patches.plist

There was a serious flaw with one of the patches that was causing PS2M device to fall off LPCB.

2. Get the kexts from keyboard&backlight_bins.zip and install them properly

3. Compile SSDT-2 using your favorite tool and put in in ACPI/patched on your ESP

 

People with AMD models will need to perform some minor tweaking on SSDT-2 table. 

1. Add the code to disable AMD SG from the SSDT-2 that you are currently using

2. Remove _DSM from IGPU scope

 

Touchpad LED will now properly enable and disable when USB mouse is connected or removed. Keyboard profile is now board model independent while retaining Default configuration unchanged.

 

https://github.com/Dolnor/Vostro-3450-Fan-Override

 

(yeah.. I need to relocate this to a separate Repo..)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By STLVNUB
      Script file to clone and help build Clover, Opencore (official and unofficial) repos
      Script will create link to itself in /usr/local/bin/bob
      Wouldn't hurt to check there are no "Bob"'s there, i "Hope" there isn't.
      Then you only need to type bob. and a parameter
      "n" for NDK repo, unofficial
      "a" for ACID repo, official
      "c" for CLOVER
      It also takes "all" for ALL, if your game
       
      Easier typing bob than.....usual stuff
      Enjoy
       
    • By MaLd0n
      -Donations with PayPal
      https://tinyurl.com/r2bvzm7
       
      -Donations with Bitcoin
      33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3
       
      -Donations with PicPay 
      @danielnmaldonado
       
      ---TUTORIAL---
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
       
      --Original Post--
      https://www.olarila.com/topic/6531-olarila-hackbeast-z390-designare-thunderbolt-full-dsdt-patches-clover-opencore/
       
      --Bios/UEFI Settings--
       
      *Update bios/uefi to F7+*
      1- Go to M.I.T./Advanced Frequency Settings tab
       
      Extreme Memory Profile (X.M.P.) - Profile 1
       
      2- Go to BIOS tab
       
      CSM Support - Disabled
       
      3- Go to Peripherals/Thunderbolt(TM) Configuration tab
       
      Security Level - No Security
      Thunderbolt USB Support - Enabled
      GPIO3 Force Pwr - Enabled
       
      4- Go to Chipset tab
       
      Internal Graphics - Enable
       
      ---CLOVER FOLDER---
      https://olarila.com/files/Clover.Folder/EFI CLOVER Z390 DESIGNARE.zip
      *Use this folder with FULL DSDT PATCHED
       
      ---OPENCORE FOLDER---
      https://www.olarila.com/topic/6364-mojave-catalina-on-mobos-series-100200300-with-opencore-bootloader/
      *Use this folder with FULL DSDT PATCHED
       
       
      ---Extract one Full dump for DSDT edits, post files---
       
      RunMe.app
       
       
       
      ---HARDWARE---
       
      --MOBO

      GIGABYTE Z390 DESIGNARE
      -Link
      https://www.amazon.com/Z390-DESIGNARE-Gigabyte-Thunderbolt-Motherboard/dp/B07K8RJZRG/ref=sr_1_1?keywords=Z390+DESIGNARE&qid=1565492390&s=electronics&sr=1-1

      --PROCESSOR

      Intel Core i9-9900K
      -Link
      https://www.amazon.com/Intel-i9-9900K-Desktop-Processor-Unlocked/dp/B005404P9I/ref=sr_1_1_sspa?keywords=Intel+Core+i9-9900K&qid=1553358099&s=gateway&sr=8-1-spons&psc=1

      --COOLER

      CORSAIR H100i RGB PLATINUM AIO Liquid CPU Cooler
      -Link
      https://www.amazon.com/CORSAIR-H100i-PLATINUM-Liquid-Cooler/dp/B07JWB5BSN/ref=sr_1_4?keywords=WATER+COOLER+CPU&qid=1565492509&s=gateway&sr=8-4

      --MEMORY

      Corsair CMW32GX4M2C3200C16 Vengeance RGB PRO 32GB (2x16GB) DDR4 3200 (PC4-25600)
      -Link
      https://www.amazon.com/Corsair-CMW32GX4M2C3200C16-Vengeance-PC4-25600-Desktop/dp/B07GTG2T7L/ref=sr_1_15?keywords=memory+ddr4+32&qid=1553358238&s=gateway&sr=8-15

      --GPU

      MSI RX Vega 64 AIR Boost 8G OC
      -Link
      https://www.amazon.com/MSI-RX-64-AIR-8G/dp/B07DH7S1X1/ref=sr_1_2?keywords=vega+64+gigabyte&qid=1565492819&s=electronics&sr=1-2

      --SSD

      Samsung 970 EVO 1TB SSD (MZ-V7E1T0BW) NVMe M.2 V-NAND
      -Link
      https://www.amazon.com/Samsung-970-EVO-1TB-MZ-V7E1T0BW/dp/B07BN217QG/ref=sr_1_1?keywords=s+samsung+970+evo+1tb&qid=1565493002&s=electronics&sr=1-1

      --POWER SUPPLY

      EVGA Supernova 1000 P2 80+ Platinum, 1000W ECO Mode Fully Modular 
      -Link
      https://www.amazon.com/EVGA-Supernova-Platinum-Crossfire-220-P2-1000-XR/dp/B00EKJQM5E/ref=sr_1_3?keywords=power+supply+1000w&qid=1565493196&s=gateway&sr=8-3

      --WIRELESS

      TP-Link Archer T9E
      -Link
      https://www.amazon.com/TP-Link-Archer-T9E-Beamforming-Technology/dp/B00TQEX7AQ/ref=sr_1_1?keywords=TP-Link+Archer+T9E&qid=1553358397&s=gateway&sr=8-1

      --CASE

      Thermaltake Core P5 Tempered Glass Black Edition ATX Open Frame Panoramic Viewing
      -Link
      https://www.amazon.com/Thermaltake-Tempered-Panoramic-Certified-CA-1E7-00M1WN-03/dp/B01N4IGVSC/ref=sr_1_2?keywords=Thermaltake+Core+P5&qid=1565493567&s=gateway&sr=8-2

      --DSDT Patches--
      -FIX ACPI ERRORS -FIX OEM SSDTs to AVOID ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA -DMAC -REMOVE PROBLEMATIC AND UNUSED DEVICES -FIX K.P in REBOOT -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -FWHD -USBX -PMCR -PPMC -XSPI -CNVW -GMM -IMEI -EC -PNLF -ARPT -GFX0 -NVME -DTGP -ACQUIRE MUT0 0XFFFF -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -HDMI / HDAU -FULL RENAMED DEVICES ---SCREENSHOTs---




















      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Thanks to KGP for SSDT Thunderbolt
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, Sampath007, onemanosx, erroruser, Jenny David, Olarila Facebook Community, Hackintosh Facebook Community and many others!
      We're all here to have fun and learn from each other!
    • By Myfz
      Hi all,

      I recently build my hackintosh, I got Win10 on my 1st disk and MacOS Catalina on the 2nd disk.
       
      Unfortunately my Win10 disk was defective and I will need to change it.
       
      I was thinking to :
       
      - Remove my Win10 disk and replace by my new one
      - Temporarily remove my MacOS Disk (Clover)
      - Reinstall Win10 on my new disk
      - Put back my MacOS Disk

      I believe clover will still start, and I will still be able to boot on the new Win10 disk, what do you think ?

      Thank in advance for your help,
      regards
    • By Isptn
      Hi I am newbie to Mac development and currently trying to get info whether a display is captured, I found such info in doc: CGDisplayIsCaptured(_:).
      https://developer.apple.com/documentation/coregraphics/1562061-cgdisplayiscaptured.
      But this one is deprecated. How can I find out whether a display is captured in other way?
      The goal is: The app should be visible only for user not for those, who see shared screen. So II need to blur the app on screen capture or send notification to user that screen is currently capturing, so I need to know which event cold notify me about that.
    • By ErmaC
      Slice is glad to present a new EFI bootloader.

      CLOVER
      Now version 2 rEFIt based.


      It is open source based on different projects: Chameleon, rEFIt, XNU, VirtualBox. The main is EDK2 latest revision.
      I also want to thank all who help Slice with the development. Credits and copyrights remain in the sources.
      https://sourceforge.net/projects/cloverefiboot/?source=directory
      There is a WIKI 
      http://clover-wiki.zetam.org/
      Main features:


      If you have a question please provide outputs from DarwinDumper (formed from Trauma tool). Thanks Trauma!
      Continued by blackosx and STLVNUB.
      Post#2 CloverGrower - create Clover by yourself Post#3 Downloads Post#4 Installation of the bootloader Post#5 How to do UEFI boot Post#6 How to use - common words Post#7 Calculator for Automatic DSDT fix Post#8 Instructions for GraphicsInjector Post#9 ATIConnector patching Post#10 Any kexts patching with some Samples Post#11 CustomEDID Post#12 Hiding unnecessary menu entries Post#13 Instruction for DSDT corrections to do DeviceInjection works Post#14 Development Post#15 Themes Post#16 About kexts injection Post#17 Instructions for P- and C-states generator Post#18 Patching DSDT to get Sleep working Post#19 CPU settings and geekbench Post#20 ACPI tables loading Post#21 DSDTmini Post#22 Custom SMBios Post#23 F.A.Q. Post#24 iCloudFix Post#25 Using mouse. Post#26 How to make orange icons to be metallic Post#27 How to make software RAID (by Magnifico) Post#28 How to modify InstallESD.dmg (by shiecldk) Post#29 Config.plist settings Post#30 Using extra kexts and skipping kernelcache Post#31 Choosing EFI drivers Post#32 Configuration files Post#33 Automatic config.plist creating Post#34 Custom DSDT patches Post#35 How to do sleep/wake working with UEFI BOOT Post#36 DeviceID substitution (FakeID) Post#37 Using Custom OS Icons Post#38 Hibernation Post#39 Floating regions Post#41 Property List Editor Post#42 Blocking Bad Kext Post#43 AAPL,slot-name Post#44 FakeCPUID for unsupported CPU Post#45 Multiple Boot Options - to write into UEFI BIOS boot menu Post#46 How to install Windows UEFI Post#47 How to speedup Clover boot Post#48 Info.plist patching Post#49 Arbitrary device injection Post#50 Non-Standard Legacy Boot Files Post#51 Reboot to Windows UEFI from Mac OSX Post#52 Deprecated Features, part 1 Post#53 Using UDK2018 Post#54 Device Properties Post#55 Scalable themes Post#56 How to search Clover mistakes (bisection) Post#57 Deprecated features, part 2 Post#58 Programming Code Style -----------------
       
      Slice:
      I edited all posts in the thread to correspond to actual Clover revision.
      Please install Clover at least 2652 and use new instructions.
×