Jump to content

tluck

tluck

Member Since 27 Jan 2012
Offline Last Active Yesterday, 04:32 PM
*****

Posts I've Made

In Topic: AppleALC — dynamic AppleHDA patching

Yesterday, 03:40 PM

Thanks for trying my friend.  same thing as my attempt - nothing in the devices inputs/outputs. it is not obvious at all where or why it fails? the kext(s) is running but no analog input/outputs. your pinconfig kext is identical. 

 

the log above shows it finds 2 controllers - but no mods are needed. makes sense.

then finds the matching codec and says it applies the 6 patches to presumably to 3 AppleHDA kext binaries. ok sounds right. thats what clover does normally.

 

2016-11-27 12:48:38.618712-0500  localhost kernel[0]: AppleALC: (DEBUG) alc @ found supported Realtek 0x10ec0293 Rev:0x100003 codec revision 0x100003
2016-11-27 12:48:38.618713-0500  localhost kernel[0]: AppleALC: (DEBUG) alc @ applying patches for 3u kext

 

$ kextstat|grep ALC
   18    0 0xffffff7f812f6000 0xca000    0xca000    as.vit9696.AppleALC (1.0.18) DC6CA90F-6521-39CC-8D40-5BDAB77DE746 <7 5 4 3 2 1>

$ kextstat|grep HDA
   97    2 0xffffff7f82d3e000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (278.56) 454DDCE4-B8FE-3583-82CD-13D3DE12D1B8 <5 4 3 1>
   98    1 0xffffff7f82d51000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (278.56) 68179CBD-6435-3C0D-A3AF-47FB2AF17347 <97 96 77 12 7 6 5 4 3 1>
  125    0 0xffffff7f82ed3000 0xb4000    0xb4000    com.apple.driver.AppleHDA (278.56) C9A0286C-F001-3225-9BD3-32D1F27595E5 <124 107 98 97 96 77 6 5 4 3 1>

In Topic: Lenovo ThinkPad T420 with UEFI Only

Yesterday, 03:38 AM

@goodguess -

 

i was able to download and extract the guts of the 83uj30us.iso with this eltorito tool.

 

$ eltorito-iso-extract.py 83uj30us.iso 83uj30us-extract.iso

 

Attached File  Screen Shot 2016-12-03 at 10.39.13 PM.png   85.83KB   0 downloads

 

get the extract iso here

 

 

 

In Topic: Lenovo ThinkPad T420 with UEFI Only

Yesterday, 12:25 AM

@NotJayKay - whoops - reposted with the scripts.

In Topic: Lenovo ThinkPad T420 with UEFI Only

03 December 2016 - 02:09 PM

@galaretka - i posted a new zip with El Cap version of the VoodooPS2Controller so CapsLock works (again)

@x4080 - there are only so many gestures implemented - 4 fingers is not one of them.

@goodguess -

 

i found this script a while back when i was looking at thinkpad ISOs for some reason or another at this link.

the phython code is below and it will extract the "invisible" files. it may be helpful as it can run on your hack to extract/create a bootable flash drive.

 

eltorito-iso-extract.py

#!/usr/bin/env python
import struct
import sys
SECTOR_SIZE = 2048
def find_image(fp):
    # el-torito boot record descriptor
    fp.seek(0x11 * SECTOR_SIZE)
    data = fp.read(SECTOR_SIZE)
    assert data[:0x47] == b'\x00CD001\x01EL TORITO SPECIFICATION' + b'\x00' * 41
    boot_catalog_sector = struct.unpack('<L', data[0x47:0x4B])[0]
    # check the validation entry in the catalog
    fp.seek(boot_catalog_sector * SECTOR_SIZE)
    data = fp.read(0x20)
    assert data[0:1] == b'\x01'
    assert data[0x1e:0x20] == b'\x55\xAA'
    assert sum(struct.unpack('<16H', data)) % 0x10000 == 0
    # Read the initial/default entry
    data = fp.read(0x20)
    (bootable, image_type, load_segment, system_type, sector_count,
     image_sector) = struct.unpack('<BBHBxHL', data[:12])
    image_offset = image_sector * SECTOR_SIZE
    if image_type == 1:
        # 1.2MB floppy
        image_size = 1200 * 1024
    elif image_type == 2:
        # 1.44MB floppy
        image_size = 1440 * 1024
    elif image_type == 3:
        # 2.88MB floppy
        image_size = 2880 * 1024
    elif image_type == 4:
        # Hard disk image.  Read the MBR partition table to locate file system
        fp.seek(image_offset)
        data = fp.read(512)
        # Read the first partition entry
        (bootable, part_type, part_start, part_size) = struct.unpack_from(
            '<BxxxBxxxLL', data, 0x1BE)
        assert bootable == 0x80 # is partition bootable?
        image_offset += part_start * 512
        image_size = part_size * 512
    else:
        raise AssertionError('unhandled image format: %d' % image_type)
    fp.seek(image_offset)
    return fp.read(image_size)
if __name__ == '__main__':
    with open(sys.argv[1], 'rb') as iso, open(sys.argv[2], 'wb') as img:
        img.write(find_image(iso))

In Topic: Lenovo ThinkPad T420 with UEFI Only

01 December 2016 - 08:18 PM

i am not 100% sure there is anything in that DSDT that would address your issue - brightness for NON-intel - i.e. the Nvidia card.

the current zip file contains IntelBacklight.kext that is for integrated IGPU (intel GFX).  there is an alternative approach that used ACPI to control brightness - that may be of interest. 

 

you still need to have the PNLF device in DSDT (and some other coding )

and then use ACPIBacklight.kext instead of intelBacklight.kext.

the t420 had this method along time ago.

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy