Jump to content

[Solved] Latitude 5490: need assistance finalizing Sonoma setup


badziew

Recommended Posts

Hello,

Machine specs:

CPU: i7-8650u

RAM: 16GB, 1 stick

SSD: 256GB

Intel Wifi and BT

 

I've followed the Dortania guide, and managed to get the following things running:

  • Internal display
  • Wifi
  • Bluetooth
  • Ethernet
  • Internal speakers
  • Battery readout
  • Volume and brightness hotkeys (brightness hotkeys thanks to borrowed config)
  • Microphone (alcid 17 worked)
  • Trackpad (works with the borrowed SSDT and other configs)

 

I was not able to get running:

  • Video output (HDMi, USB-C)
  • Sleep (laptop seems to sleep, but display does not come up)

 

Config.plist attached. I have used latest kexts for everything.

Trackpad and sleep are my priorities, others I may as well handle later.

 

Update: I have taken the SSDT and ACPI entries from GitHub - CloverLeafBG/Dell-Latitude-7490-OC-Hackintosh: OpenCore based EFI for Dell Latitude 7490, and it seems that trackpad is now up, and CPU power management is enabled also. I'll keep digging further in the meantime.

 

 

config.plist.zip

Edited by badziew
Link to comment
Share on other sites

Ayy, I've messed some things up a little. It's actually Kaby Lake-R, so the ig-platform-id and device-id were wrong. After fixing, display comes up after sleep. Still, no external displays present.

Attached entire EFI folder without AirportItlwm and IntelBluetoothFirmware.

EFI.zip

Link to comment
Share on other sites

  • Administrators

You inject KBL framebuffer layout 0x87C00000 which natively defines the following output ports:

ID: 87C00000, STOLEN: 34 MB, FBMEM: 0 bytes, VRAM: 1536 MB, Flags: 0x0000078B
TOTAL STOLEN: 35 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 103 MB, MAX OVERALL: 104 MB (109588480 bytes)
Model name: Intel HD Graphics KBL CRB
Camellia: CamelliaDisabled (0), Freq: 1388 Hz, FreqMax: 1388 Hz
Mobile: 1, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000098 - ConnectorLVDS
[1] busId: 0x05, pipe: 9, type: 0x00000400, flags: 0x00000187 - ConnectorDP
[2] busId: 0x04, pipe: 10, type: 0x00000400, flags: 0x00000187 - ConnectorDP
00000800 02000000 98000000
01050900 00040000 87010000
02040A00 00040000 87010000

 

You need to add the properties that patch connector con1 to HDMI:

framebuffer-con1-enable        1        NUMBER
framebuffer-con1-type   00080000        DATA

Whilst HDMI output usually works natively out of a DP port, sometimes it does not or not properly and the patch is required. It is necessary for HDMI audio output anyway.

 

I also doubt you need those, as seen in your config:

AAPL,GfxYTile                                 01000000        DATA
disable-external-gpu                          01000000        DATA
enable-backlight-registers-alternative-fix    01000000        DATA

I would remove those or, at least, comment them out with a leading # character.

 

If you still do not obtain HDMI output with the above changes, experiment with other KBL framebuffer layouts such as:

1) 0x59160000

ID: 59160000, STOLEN: 34 MB, FBMEM: 0 bytes, VRAM: 1536 MB, Flags: 0x00000B0B
TOTAL STOLEN: 35 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 103 MB, MAX OVERALL: 104 MB (109588480 bytes)
Model name: Intel HD Graphics KBL CRB
Camellia: CamelliaDisabled (0), Freq: 1388 Hz, FreqMax: 1388 Hz
Mobile: 1, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000098 - ConnectorLVDS
[1] busId: 0x05, pipe: 9, type: 0x00000400, flags: 0x00000187 - ConnectorDP
[2] busId: 0x04, pipe: 10, type: 0x00000800, flags: 0x00000187 - ConnectorHDMI
00000800 02000000 98000000
01050900 00040000 87010000
02040A00 00080000 87010000

 

2) 0x591B0000

ID: 591B0000, STOLEN: 38 MB, FBMEM: 21 MB, VRAM: 1536 MB, Flags: 0x0000130B
TOTAL STOLEN: 39 MB, TOTAL CURSOR: 1 MB (1572864 bytes), MAX STOLEN: 136 MB, MAX OVERALL: 137 MB (144191488 bytes)
Model name: Intel HD Graphics KBL CRB
Camellia: CamelliaDisabled (0), Freq: 1388 Hz, FreqMax: 1388 Hz
Mobile: 1, PipeCount: 3, PortCount: 3, FBMemoryCount: 3
[0] busId: 0x00, pipe: 8, type: 0x00000002, flags: 0x00000098 - ConnectorLVDS
[2] busId: 0x04, pipe: 10, type: 0x00000800, flags: 0x00000187 - ConnectorHDMI
[3] busId: 0x06, pipe: 10, type: 0x00000400, flags: 0x00000187 - ConnectorDP
00000800 02000000 98000000
02040A00 00080000 87010000
03060A00 00040000 87010000

which will require to patch connector con1 from 02040A00 to 01050900 as explained here. This can be done with the following injection that also contains the patch to HDMI type:

framebuffer-con1-enable                            1    NUMBER
framebuffer-con1-alldata    010509000008000087010000    DATA

 

Know that you may actually need to set DVMT to 64MB in your BIOS, at least for 4K output though it certainly was not required on my Kaby Lake Refresh 7490 to get HDMI output. See our FAQ topic on the matter.

Link to comment
Share on other sites

Posted (edited)

Hello,

I have removed the unnecessary entries incl. the backlight one, and with both the framebuffer layouts you've proposed, backlight control is working.

Unfortunately, I was still unable to activate the display outputs. I've checked with Fedora 39, and both HDMI and USB-C work properly.

I think the hardware identification of this particular UHD 620 goes like this:

Device:	00:02.0
Class:	VGA compatible controller [0300]
Vendor:	Intel Corporation [8086]
Device:	UHD Graphics 620 [5917]
SVendor:	Dell [1028]
SDevice:	Device [081c]
Rev:	07

I have confirmed this using the same Fedora live USB as above.

It seems like 5916 and 5917 are both UHD 620. Could this one be different because there's a VGA connector present on the laptop too?

 

Please let me know what else I can do.

 

 

Edited by badziew
Link to comment
Share on other sites

  • Administrators

Your issue has no relation to a VGA connector being present.

Yes, your Kaby Lake R i7-8650u isfitted with UHD620 graphics which carries id 8086:5917.

 

What happens when, HDMI output being connected to the laptop, you put it to sleep and wake it?

Also check your BIOS settings, you may compare them to the recommended/working ones I had posted for the 7490 in the Latitude 7xxx Series section.

Link to comment
Share on other sites

Posted (edited)

Sleep and wake with HDMI connected does nothing. Fresh boot with HDMI connected also does nothing.

I have rechecked BIOS settings and they are valid. BIOS version is 1.32.0.

Edited by badziew
Link to comment
Share on other sites

Here is my working EFI OC097 for Latitude 5490 (i5-8350U, Intel Wifi), for Sonoma. Due to file uploading size limitation, AirportItlwm.kext (V1.23 Alpha for Sonoma) is not included. Both HDMI port and Display Port via USB-C port are working.  You may give it a try. 

 

This EFI was based on this GitHub repository: juanpy0223/Dell-Latitude-5490-8th-gen.

 

My bios is still 1.26 and did not update to the latest (V1.32) since the latest BIOS may prevent the CFG LOCK changing. Also once updated, it can not go back to earlier BIOS. I experienced this with my Latitude 5400.

 

If you are able to disable CFG LOCK with 1.32 BIOS and set DVMT to 64MB (instruction is in the link above), then you can make the following changes to the Config.plist:

   - Root->Kernel->AppleCpuPmCfgLock  = FALSE (for native CPU power management)

   - Remove the following two properties from your iGPU's DeviceProperties (PciRoot(0x0)/Pci(0x2,0x0) for my case):

         framebuffer-fbmem

         framebuffer-stolenmem

 

Goodluck!

DELL-5490-OC097.zip

Link to comment
Share on other sites

10 hours ago, Hervé said:

Did you clear NVRAM at OC Picker when rebooting after changing your OC config?

Yep, that did nothing.

 

5 hours ago, BillDH2k said:

Here is my working EFI OC097 for Latitude 5490 (i5-8350U, Intel Wifi), for Sonoma. Due to file uploading size limitation, AirportItlwm.kext (V1.23 Alpha for Sonoma) is not included. Both HDMI port and Display

port via USB-C port are working.  You may give it a try. 

 

WIth this configuration, both video outputs work, but internal display backlight control is broken. I'll try porting your GPU config block onto my config first.

Thank you both for your help.

Link to comment
Share on other sites

@BillDH2k

After pasting your GPU config block on top of my config, I've got HDMI with audio (1080p tested) and USB-C DP output (3440x1440 60Hz) running, and backlight control is working normally. I'm very grateful for your help.

I'll try the other changes later.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...