Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,282 posts in this topic

Recommended Posts

Dear Tluck

 

How to convert EDID hex format

 

00FFFFFFFFFFFF000DAF1917000000000513010380261678EA08059D5853972915505400000001010101010101010101010101010101F82A409A61840C30402A33007ED710000018000000000000000000000000000000000000000000FE003137222031363030783930300A0000000000000000000000000000000000000041

 

To format like below :

 

AP///////wANrxkXAAAAAAUTAQOAJxZ4CggFnVhTlykVUFQAAAABAQEBAQEB

AQEBAQEBAQEBgCVAgGCEGjAwIDUAftcQAAAYAAAAAAAAAAAAAAAAAAAAAAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEw=

 

Thanks you Tluck

 

Link to comment
Share on other sites

Looks good @tluck.

I will try it later.

Unfortunately my sleep does not work well. I thought it's fixed but now it just freezes sometimes. Also after some sleeps my Touchpad/Trackpoint are getting in responsive. :/

Using an USB drive to boot does not look like a solution to me, I don't want to always carry it with me. :/

Link to comment
Share on other sites

 

@smith@@ - well here is a generated EDID 17" 1600x900 you could try. i took your EDID and then plugged in the timings from my EDID keeping your panel sizes for 17" .

 

00FFFFFFFFFFFF000DAF1917000000000513010380261678EA08059D5853972915505400000001010101010101010101010101010101F82A409A61840C30402A33007ED710000018000000000000000000000000000000000000000000FE003137222031363030783930300A0000000000000000000000000000000000000041

 

Thanks the same buddy, many appreciated ;)

Link to comment
Share on other sites

@vapayo

 

yeah the random sleep and wake issues seem to be attributed to pure UEFI boot. That's why i boot with MBR formatted USB when i need to rely on sleep. 

 

@smith@@ 

 

here is 2 more for a hp 17" 1600x900 - if you are interested

the first one has slight increase max panel size to 390 which is larger that what detailed size calls for - 382.

 

00FFFFFFFFFFFF000DAF1917000000000513010380271678EA08059D5853972915505400000001010101010101010101010101010101622A404061842A30302035007ED710000019000000000000000000000000000000000000000000FE003137222031363030783930300A0000000000000000000000000000000000000029

 

00FFFFFFFFFFFF000DAF1917000000000513010380261678EA08059D5853972915505400000001010101010101010101010101010101622A404061842A30302035007ED710000019000000000000000000000000000000000000000000FE003137222031363030783930300A000000000000000000000000000000000000002A

 

EDID Block 0, Bytes 0-127
128 BYTES OF EDID CODE:
         0   1   2   3   4   5   6   7   8   9
      ________________________________________
  0  |  00  FF  FF  FF  FF  FF  FF  00  0D  AF
 10  |  19  17  00  00  00  00  05  13  01  03
 20  |  80  26  16  78  EA  08  05  9D  58  53
 30  |  97  29  15  50  54  00  00  00  01  01
 40  |  01  01  01  01  01  01  01  01  01  01
 50  |  01  01  01  01  62  2A  40  40  61  84
 60  |  2A  30  30  20  35  00  7E  D7  10  00
 70  |  00  19  00  00  00  00  00  00  00  00
 80  |  00  00  00  00  00  00  00  00  00  00
 90  |  00  00  00  FE  00  31  37  22  20  31
100  |  36  30  30  78  39  30  30  0A  00  00
110  |  00  00  00  00  00  00  00  00  00  00
120  |  00  00  00  00  00  00  00  2A
______________________________________________________________________
(08-09)  ID Manufacturer Name ________________  = CMO
(11-10)  Product ID Code _____________________  = 1719
(12-15)  Last 5 Digits of Serial Number ______  = Not Used
(16)     Week of Manufacture _________________  = 05
(17)     Year of Manufacture _________________  = 2009
(10-17)  Complete Serial Number ______________  = See Descriptor Block
(18)     EDID Version Number _________________  = 1
(19)     EDID Revision Number ________________  = 3
(20)     VIDEO INPUT DEFINITION:
         Digital Signal
         Non - VESA DFP 1.x Compatible                        
                        
(21)     Maximum Horizontal Image Size ________________    =  380 mm
(22)     Maximum Vertical Image Size __________________    =  220 mm
(23)     Display Gamma ________________________________    =  2.20
(24)     Power Management and Supported Feature(s):
         Stand-By, Suspend, Active Off/Very Low Power, 
         Preferred Timing Mode
         Display Type = R/G/B Color
(25-34)  CHROMA INFO:
         Red X - 0.613 Green X - 0.326 Blue X - 0.160 White X - 0.313
         Red Y - 0.344 Green Y - 0.590 Blue Y - 0.082 White Y - 0.329
(35)     ESTABLISHED TIMING I:
(36)     ESTABLISHED TIMING II:
(37)     Manufacturer's Reserved Timing:
           None Specified
(38-53)  Standard Timing Identification:
         Not Used
         Not Used
         Not Used
         Not Used
         Not Used
         Not Used
         Not Used
         Not Used
______________________________________________________________________
(54-71) Detailed Timing / Descriptor Block 1:
                  1600x900  Pixel Clock: 108.50 MHz
______________________________________________________________________
         Horizontal Image Size: 382 mm     Vertical Image Size: 215 mm
         Refreshed Mode: Non-Interlaced    Stereo
 
Horizontal:
         Active Time: 1600 pixels          Blanking Time: 320 pixels
         Sync Offset: 48 pixels            Sync Pulse Width: 32 pixels
         Border: 0 pixels                  Frequency: 56.51 KHz
 
Vertical:
         Active Time: 900 lines            Blanking Time: 42 lines
         Sync Offset: 3 lines              Sync Pulse Width: 5 lines
         Border: 0 lines                   Frequency: 59.99 Hz
 
Digital Separate, Horizontal Polarity (-) Vertical Polarity (-)
 
 
______________________________________________________________________
(72-89) Detailed Timing / Descriptor Block 2:
 
         
 
 
______________________________________________________________________
(90-107) Detailed Timing / Descriptor Block 3:
 
         ASCII Data:
         17" 1600x900
  • Like 1
Link to comment
Share on other sites

Hey,

 

after some time off from clover (happily running 10.8.4 on my x220 with chameleon) I was reading whether the UEFI boot issues with mute button and sleep were fixed, but I can see it is not the case.

 

@tluck: if you don't want to use a usb stick you can change your gpt to a hybrid disk and then use MBR clover from disk. unfortunately gpt windows won't work (gpt windows does not like hybrid MBR) in this setup so you need to use MBR windows as well (don't have windows at all currently).

 

I just had a look at your DSDT and will compare it with mine. Do you remember which changes were needed to make it compatible to AppleACPIPlatform.kext? I didn't find it mentioned in the comments.

 

Thanks and keep up the good work ;-)

Link to comment
Share on other sites

@miaumiau2 -  glad to have you back. Clover UEFI does have some quirks. Clover MBR is a different story - sleep and mute are fine. The ACPIplatform changes were about the Battery (as far as i canso i think if you look at _BIF etc for where i used the B1B2 function. i struggled with some really long strings (128 vs 8) so I had to hard code a few text strings for the manufacture, model, and battery type. 

 

usb is not a huge problem for me as i found a pretty compact USB - cruiser fit.

 

can you elaborate on how to convert a GTP to hybrid? do you mean put MBR instead of PBR? yeah i vaguely remember problems with windows when i was messing with this a while back. thanks.

Link to comment
Share on other sites

@tluck - Ok, will check if I find the battery stuff. currently I also have problems using rehabmans latest AcpiBattery so need to look at it anyways.

 

I used gdisk, you can install it in OSX, but I used http://gparted.sourceforge.net/livecd.php most of the time. See http://www.rodsbooks.com/gdisk/hybrid.html for general info on hybrid MBRs. As far as I recall, this is how Bootcamp makes a mac ready for Windows installation as well.

 

Once you have a hybrid mbr, you can install a MBR / PBR to it while keeping the disk in GPT and thus editable in DiskUtil.

 

Here is my layout. I actually did not manage to boot from /dev/disk1 where my main OSX resides so I boot via /dev/disk0 MBR -> /dev/disk0s1 PBR -> boot(Chameleon v2.2svn r2255)

 

post-1042507-0-62163400-1384383263_thumb.png

 

 

EDIT: oh and about going from pure GPT to hybrid, it is a non-destructive operation. Basically GPT fills the old MBR with a reserved data pattern, so that MBR tools don't damage any GPT disk. When having an hybrid, a valid MBR is added that points to the same partitions (but max 4, but OSX will still see all partitions as it uses the GPT, only MBR booted systems will see max 4). So you can safely add / remove the hybrid mbr without repartitioning, just Windows might because unbootable.

Link to comment
Share on other sites

my SMC_util3 -l
 

 

Num: b0=0 b1=0 b2=0 b3=21 size=4

#KEY [ui32] 33 (bytes 00 00 00 21)
FNum [ui8 ] 1 (bytes 01)
$Adr [ui32] 0 (bytes 00 00 03 00)
MSSD [si8 ] (bytes 05)
OSK0 [ch8*] (bytes 6f 75 72 68 61 72 64 77 6f 72 6b 62 79 74 68 65 73 65 77 6f 72 64 73 67 75 61 72 64 65 64 70 6c)
$Num [ui8 ] 1 (bytes 01)
REV [{rev] (bytes 01 68 0f 00 00 99)
RVBF [{rev] (bytes 01 30 0f 00 00 03)
RVUF [{rev] (bytes 01 30 0f 00 00 03)
ACID [ch8*] (bytes ba be 3c 45 c0 03 10 43)
DPLM [{lim] (bytes 00 00 00)
MSSP [si8 ] (bytes 05)
OSK1 [ch8*] (bytes 65 61 73 65 64 6f 6e 74 73 74 65 61 6c 28 63 29 41 70 70 6c 65 43 6f 6d 70 75 74 65 72 49 6e 63)
EPCI [ui32] 0 (bytes 05 b0 07 00)
RPlt [ch8*] (bytes 6b 36 32 00 00 00 00 00)
RBr [ch8*] (bytes 6b 36 32 00 00 00 00 00)
BEMB [flag] (bytes 01)
TZ0C [sp78] (bytes 34 00)
TC0D [sp78] (bytes 27 00)
TC1D [sp78] (bytes 28 00)
TCAD [sp78] (bytes 2e 00)
MlCP [fp88] (bytes 08 00)
CCPC [ui32] 24 (bytes 00 00 03 18)
PCPT [sp78] (bytes 07 69)
PCPC [sp78] (bytes 03 a0)
PCPG [sp78] (bytes 00 58)
TC0H [sp78] (bytes 34 00)
F0Ac [fpe2] 3234 (bytes 32 88)
F0ID [{fds] (bytes 01 00 04 00 53 79 73 74 65 6d 20 46 61 6e 00 00)
NTOK [ui8 ] 1 (bytes 01)
CLKT [ui32] 32 (bytes 00 01 13 20)
CLKH [{clh] (bytes 00 00 70 80 00 01 19 40)
F0Mx [ui16] 224 (bytes 60 e0)

SMC_util3.zip

Link to comment
Share on other sites

@Tetonne - did i miss something! ... what is the SMC_util info all about?

i don't think so truck ;)

i only share something i didn't know before

http://www.insanelymac.com/forum/topic/282794-darwindumper/

http://www.projectosx.com/forum/index.php?showtopic=2447&mode=linear

i share my information (without really understand them) cos i know some people will here lol

not sure it's important in fact cos i'm running a real mac under my T420 lol thanks to you and other great share found here :)

Link to comment
Share on other sites

 

no change. tried both edit 1 or edit 2.

 

 

Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::init: Initializing
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::probe: Probing
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::start: called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager: Version 1.40 starting
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager: Battery Supported Count(s) 1.
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery: Using ACPI regular battery information method _BIF
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::clearBatteryState: do_update = false
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::pollBatteryState: path = 0x2
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::pollBatteryState: path = 0x1
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::getBatterySTA called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::setPowerState: which = 0x1
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatterySTA: battery_status = 0x1f
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::getBatteryBIF called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::getBatteryBIF: validateObject return 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::getBatteryBIF: evaluateObject error 0xe00002bc
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBatteryManager::getBatteryBST called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: acpibat_bst size = 4
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: fPowerUnit       = 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: currentStatus    = 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentRate     = 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentCapacity = 0xa06e
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: fCurrentVoltage  = 0x2f7a
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: adjusted fCurrentRate = 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::setBatteryBST: fAverageRate = 0x0
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery: Battery is charged.
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::constructAppleSerialNumber called
Sep 27 11:50:05 localhost kernel[0]: AppleSmartBattery::rebuildLegacyIOBatteryInfo called
S

 

Hi,

 

Did you get it resolved. I have the same issue.

Do you have solution to this issue? Please let me know I the same problem

Link to comment
Share on other sites

@mdudnik

 

I don't understand what problem you are referring to?  as TimeWalker75a points out - that output is from the debug version of RehabMans Battery Manager kext that was extracted during the development of the T420 DSDT so we can use the Lion/MoutainLion/Mavericks AppleACPIPlatform.kext instead of the snow leopard rollback kext.

 

the answer is: yes. ... if the question is the DSDT fixed to work with the current AppleACPIPlatform and ACPIBatteryManager?


@TimeWalker75a

 

FWIW, since I have been booting CloverEFI from a MBR USB vs UEFI, I have had no problems with shutdown, sleep or random PS2 disappearance.  frankly, i don't know if the "SLPR" function fix is the key or not ... in _PTS, i added a bit toggle 1 for for modes mode 3, 4 and beyond the 0 for mode 5. ... this extra code certainly does not hurt! 

 

// tjl this is for sleep mode

            If (LEqual (Arg0, 0x03))

            {

                \VVPD (0x03)

                \TRAP ()

                Store (\_SB.PCI0.LPC.EC.ADP1._PSR (), \OCST)

                Store (0x01, SLPE)

                Sleep (0x10)

            }

 

// tjl this is for lid mode

            If (LEqual (Arg0, 0x04))

            {

                \_SB.SLPB._PSW (0x00)

                \TRAP ()

// tjl                \_SB.PCI0.LPC.TPM.CMOR ()

                \AWON (0x04)

                Store (0x01, SLPE)

                Sleep (0x10)

            }

 

// tjl this is for shutdown mode

            If (LEqual (Arg0, 0x05))

            {

                \TRAP ()

// tjl                \_SB.PCI0.LPC.TPM.CMOR ()

                \AWON (0x05)

// tjl - add 2 lines

                Store (0x00, SLPE)

                Sleep (0x10)

            }

Link to comment
Share on other sites

Hi community!

 

Trying to install 10.9 on Lenovo T530 (2392-4SG). I've disabled the discrete graphics so now HD4000 1920x1030 only. Added EDID into config.plist

I'm able to boot Clover (USB) and even get OS X Installer. The problem is the mouse cursor absent. Looks like HD4000 work wrong.

 

Thanks in advance if somebody may help me by any way.

 

Dmitry

Link to comment
Share on other sites

@tluck - yes I have VoodooPS2controller and usb mouse (and touchpad) is really working, the problem with cursor only. Cursor is invisible  :blush:

(If it is important: I have not any DSDT.aml in the ACPI/Patched folder)

Try to boot with flag -x. You can also try to set the platform IG of framebuffer Capri to 3 or 4 (or try the other ones also). If this all does not work to get your system installed, remove the AppleInterFramebufferCapri.kext from your USB installer.(But keep ist, you will need it perhaps later on) For getting your system after install working with the HD4000 you need in any case the correct Capri platform IG.

 

Have fun.

Link to comment
Share on other sites

Try to boot with flag -x. You can also try to set the platform IG of framebuffer Capri to 3 or 4 (or try the other ones also). If this all does not work to get your system installed, remove the AppleInterFramebufferCapri.kext from your USB installer.(But keep ist, you will need it perhaps later on) For getting your system after install working with the HD4000 you need in any case the correct Capri platform IG.

 

Thanks, will try today (I hope)

 

@dmitry - hmm. well did you try to look at system preferences/Accessibility/Display which you can change cursor size? 

I don't think so, I still haven't OS X installed. Thanks anyway

Link to comment
Share on other sites

You can also try to set the platform IG of framebuffer Capri to 3 or 4 

 

 Yes!!!  Video at LCD now is working with platform 01660004  :thumbsup_anim:  Thanks a lot, styrian!

 

OS X 10.9 is installed, boot from USB stick still

 

System disk is SSD drive in Lenovo bay instead of DVD

 

Work:

  • HD4000 with all resolutions 
  • Built-in Ethernet
  • Built-in Webcam
  • Built-in Touchpad
  • USB mouse
  • iCloud
  • Messages

Doesn't work

  • Sound
  • Battery
  • Icon of SSD disk is yellow
  • Wi-Fi (it is ok, I understand why)

 

I guess first of all I have to install Clover to the system SSD. And next I should have a work with DSDT and/or kexts patching...

 

So can I ask you to help with my next steps?

 

 

Thanks again!

Link to comment
Share on other sites

@dmitry - sorry i don't have experience with the 530 - but i suspect you will need to create a custom dsdt for sound. clover may be able to patch the audio for depending on what type of audio you have. Otherwise voodooBattery and VoodooHDA may work though. often a custom dsdt is required to get some things working.

Link to comment
Share on other sites

 Share

×
×
  • Create New...