mhaeuser Posted November 10, 2019 Share Posted November 10, 2019 @jl4c Yes, check the PDF for "BootEntries" 1 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696804 Share on other sites More sharing options...
jl4c Posted November 10, 2019 Share Posted November 10, 2019 @Download-Fritz, thank you. My issue is to find correct way to call vmlinuz-linux... Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696840 Share on other sites More sharing options...
Ellybz Posted November 10, 2019 Share Posted November 10, 2019 5 minutes ago, jl4c said: @Download-Fritz, thank you. My issue is to find correct way to call vmlinuz-linux... Also for those interested. Quadruple boot with OpenCore: ( Catalina, Mojave, Windows, Ubuntu ) Smooth experience My path entry for Ubuntu is: PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0xFFFF,0x0)/HD(1,GPT,6764064E-FA1D-4FC7-AEF5-C94FAE30F973,0x28,0x64000)/\EFI\ubuntu\grubx64.efi SCANPOLICY: 2689795 2 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696841 Share on other sites More sharing options...
jl4c Posted November 10, 2019 Share Posted November 10, 2019 @Ellybz, thank you. The thing is I am not using any bootloader like Grub. Am trying to use OC to boot Linux directly. You can find more information about to boot Linux through Clover in: https://wiki.archlinux.org/index.php/Clover Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696843 Share on other sites More sharing options...
Ellybz Posted November 10, 2019 Share Posted November 10, 2019 (edited) 1 hour ago, jl4c said: @Ellybz, thank you. The thing is I am not using any bootloader like Grub. Am trying to use OC to boot Linux directly. You can find more information about to boot Linux through Clover in: https://wiki.archlinux.org/index.php/Clover Not Sure I understood. Similarly to Clover, You can use OC to boot any OS you'd like. Have you tried the following boot entry ? PciRoot(0x0)/Pci( 0xXX, 0x0 )/XXXX.(0x0xXXXX.0x0)/HD ((1,XXX,,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,0xXX,0xXXXXX) /\EFI\Archlinux\vmlinuz-itz You can find the hidden path thru the Clover Bootlog. ( Shell method for linux is incomplete ). Edited November 10, 2019 by Ellybz Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696851 Share on other sites More sharing options...
UefiBooter Posted November 11, 2019 Share Posted November 11, 2019 you can boot most vmlinuz files directly as they usually contain an efi-stub, without the need for grub, if you load ExtFs driver and then reference the file directly and pass appropriate arguments. Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696855 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 @Ellybz, @UefiBooter Thank you, is working now. Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696856 Share on other sites More sharing options...
jsl2000 Posted November 11, 2019 Share Posted November 11, 2019 18 hours ago, Addrii30 said: Hi. How do i setup the CPU frequency and BUS speed in opencore. Because in opencore have ARTfrequency and FSB frequency. My clock is very slow. PlatformInfo->DataHub->ARTFrequency, FSBFrequency 1 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696857 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 Guys, in config.plist I've renamed the method _Q13 to XQ13 and used this code to map brightness keys: External (\HKNO, FieldUnitObj) External (\_SB.PCI0.LPCB.PS2K, DeviceObj) Method (_Q13, 0, Serialized) { Local0 = HKNO If ((Local0 == 0x07)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0405) } If ((Local0 == 0x08)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0406) } If ((Local0 == 0x04)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x046E) } } I wonder how can I make this code only work for Darwin (aka If (_OSI ("Darwin"))) and return to original code (XQ13) for Windows and Linux. Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696861 Share on other sites More sharing options...
hardcorehenry Posted November 11, 2019 Share Posted November 11, 2019 8 hours ago, jl4c said: Guys, in config.plist I've renamed the method _Q13 to XQ13 and used this code to map brightness keys: External (\HKNO, FieldUnitObj) External (\_SB.PCI0.LPCB.PS2K, DeviceObj) Method (_Q13, 0, Serialized) { Local0 = HKNO If ((Local0 == 0x07)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0405) } If ((Local0 == 0x08)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0406) } If ((Local0 == 0x04)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x046E) } } I wonder how can I make this code only work for Darwin (aka If (_OSI ("Darwin"))) and return to original code (XQ13) for Windows and Linux. Not sure, you have to test it. DefinitionBlock ("", "SSDT", 2, "HACK", "_Q13", 0x00000000) { External (_SB_.PCI0.LPCB.PS2K, DeviceObj) External (HKNO, FieldUnitObj) Method (_Q13, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF { If (_OSI ("Darwin")) { Local0 = HKNO /* External reference */ If ((Local0 == 0x07)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0405) } If ((Local0 == 0x08)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0406) } If ((Local0 == 0x04)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x046E) } } } } Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696900 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 (edited) @hardcorehenry, thank you Yes, the code provided was the first one I tried, the problem is that it works for macOS (Darwin) but doesn't return to original code (XQ13) in DSDT for Windows or Linux. So the brightness keys do not work in those operating systems. Edited November 11, 2019 by jl4c Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696917 Share on other sites More sharing options...
Regi Yassin Posted November 11, 2019 Share Posted November 11, 2019 @jl4c why not just use Else { Return (XQ13) } if the original method is not in any scope/devices, if it is, example inside SB (\_SB.XQ13) Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696928 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 (edited) @Regi Yassin, this I tried without success This is the output from Linux: [ 26.811221] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0). [ 26.811229] atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known. [ 26.817616] ACPI: BIOS _OSI(Darwin) query ignored [ 26.824203] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0). [ 26.824206] atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known. Edited November 11, 2019 by jl4c Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696931 Share on other sites More sharing options...
Andrey1970 Posted November 11, 2019 Share Posted November 11, 2019 57 minutes ago, jl4c said: @Regi Yassin, this I tried without success This is the output from Linux: [ 26.811221] atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0). [ 26.811229] atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known. [ 26.817616] ACPI: BIOS _OSI(Darwin) query ignored [ 26.824203] atkbd serio0: Unknown key released (translated set 2, code 0xab on isa0060/serio0). [ 26.824206] atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known. Copy to Else original code _Q13 from DSDT. Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696941 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 (edited) @Andrey1970 thank you Yes, that is logic. What am trying to do is precisely avoid to copy the entire code from XQ13 in DSDT to this little SSDT and call the method (XQ13) from it. Edited November 11, 2019 by jl4c Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696943 Share on other sites More sharing options...
Andrey1970 Posted November 11, 2019 Share Posted November 11, 2019 (edited) 42 minutes ago, jl4c said: @Andrey1970 thank you Yes, that is logic. What am trying to do is precisely avoid to copy the entire code from XQ13 in DSDT to this little SSDT and call the method (XQ13) from it. You won't be able to use XQ13 in DSDT, because this method was deactivated by renamings _Q13 to XQ13. Edited November 11, 2019 by Andrey1970 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696947 Share on other sites More sharing options...
Andrey1970 Posted November 11, 2019 Share Posted November 11, 2019 (edited) @jl4c Your example shows that is really necessary the DarwinOnly=Yes for ACPI Patch. Try to persuade @vit9696. Otherwise only this way: Edited November 11, 2019 by Andrey1970 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696949 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 (edited) 46 minutes ago, Andrey1970 said: You won't be able to use XQ13 in DSDT, because this method was deactivated by renamings _Q13 to XQ13. I am not sure of this, as an example, you can take the method with which Rehabman fix instant wake on usb ports, where the SSDT returns to the original code (XPRW) in DSDT. DefinitionBlock ("", "SSDT", 2, "HACK", "GPRW", 0x00000000) { External (XPRW, MethodObj) // 2 Arguments Method (GPRW, 2, NotSerialized) { If ((0x0D == Arg0)) { Return (Package (0x02) { 0x0D, Zero }) } Return (XPRW (Arg0, Arg1)) } } Edited November 11, 2019 by jl4c Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696952 Share on other sites More sharing options...
n.d.k Posted November 11, 2019 Share Posted November 11, 2019 14 hours ago, jl4c said: Guys, in config.plist I've renamed the method _Q13 to XQ13 and used this code to map brightness keys: External (\HKNO, FieldUnitObj) External (\_SB.PCI0.LPCB.PS2K, DeviceObj) Method (_Q13, 0, Serialized) { Local0 = HKNO If ((Local0 == 0x07)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0405) } If ((Local0 == 0x08)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0406) } If ((Local0 == 0x04)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x046E) } } I wonder how can I make this code only work for Darwin (aka If (_OSI ("Darwin"))) and return to original code (XQ13) for Windows and Linux. Can you just add the a Method for _Q13 instead of renaming XQ13? Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696953 Share on other sites More sharing options...
jl4c Posted November 11, 2019 Share Posted November 11, 2019 3 minutes ago, n.d.k said: Can you just add the a Method for _Q13 instead of renaming XQ13? Not sure what you suggest. The purpose of this is to use ACPI hotpatch. Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696955 Share on other sites More sharing options...
Andrey1970 Posted November 11, 2019 Share Posted November 11, 2019 (edited) 55 minutes ago, jl4c said: Not sure what you suggest. The purpose of this is to use ACPI hotpatch. You can add custom method _Q13 in DSDT with IF Darwin condition. And an original method _Q13 to leave with Else condition. And to remove a renaming patch. Edited November 11, 2019 by Andrey1970 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696957 Share on other sites More sharing options...
n.d.k Posted November 11, 2019 Share Posted November 11, 2019 10 minutes ago, jl4c said: Not sure what you suggest. The purpose of this is to use ACPI hotpatch. You can have multi method like this: Method (_Q13, 0, Serialized){ } Method (XQ13, 0, Serialized){ } and Osx will call _Q13 Others will call XQ13... Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2696958 Share on other sites More sharing options...
Slice Posted November 12, 2019 Share Posted November 12, 2019 9 hours ago, n.d.k said: You can have multi method like this: Method (_Q13, 0, Serialized){ } Method (XQ13, 0, Serialized){ } and Osx will call _Q13 Others will call XQ13... And other method will call what? Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2697013 Share on other sites More sharing options...
Andres ZeroCross Posted November 12, 2019 Share Posted November 12, 2019 (edited) 13 hours ago, jl4c said: Not sure what you suggest. The purpose of this is to use ACPI hotpatch. This should be fixed the problem DefinitionBlock ("", "SSDT", 2, "HACK", "_Q13", 0x00000000) { External (_SB_.PCI0.LPCB.PS2K, DeviceObj) External (HKNO, FieldUnitObj) Method (_Q13, 0, Serialized) // _Qxx: EC Query, xx=0x00-0xFF { If (_OSI ("Darwin")) { Local0 = HKNO /* External reference */ If ((Local0 == 0x07)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0405) } If ((Local0 == 0x08)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x0406) } If ((Local0 == 0x04)) { Notify (\_SB.PCI0.LPCB.PS2K, 0x046E) } } Else { Paste the original code of _Q13 from Original DSDT } } } Edited November 12, 2019 by Andres ZeroCross 1 Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2697022 Share on other sites More sharing options...
NorthAmTrans Posted November 12, 2019 Share Posted November 12, 2019 Im curious here. I use the generic section under Platform Info and everything is fine. Is there an advantage to using the full SMBIOS section instead? Link to comment https://www.insanelymac.com/forum/topic/350754-opencore-general-discussion/page/97/#findComment-2697066 Share on other sites More sharing options...
Recommended Posts