Asus Maximus VII Impact - slow boot HID: Legacy shim 2

Discussion in 'High Sierra Desktop Support' started by gulios, Sep 3, 2017.

  1. gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    Oct 1, 2017 at 7:01 PM #11
    gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    ok, i found that it can be TRIM(APFS) issue and it was that.
    I've disabled TRIM
    Code (Text):

    sudo trimforce disable
     
    and `HID: Legacy shim 2` disappeared. Boot time takes ~10s ;)

    so now it's fine but i'm thinking is it good to have TRIM disabled...?
     
    Last edited: Oct 1, 2017
  2. VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Oct 1, 2017 at 7:17 PM #12
    VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Having both APFS & TRIM is not a good idea. If you want to carry on using TRIM then use HFS+. Better to use Clover's TRIM KextToPatch than Apples TrimForce.
     
  3. gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    Oct 1, 2017 at 7:32 PM #13
    gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    ok, i set patch to Clover
    Code (Text):

    <dict>
                    <key>Name</key>
                    <string>IOAHCIBlockStorage</string>
                    <key>Find</key>
                    <data>
                    AEFQUExFIFNTRAA=
                    </data>
                    <key>Replace</key>
                    <data>
                    AAAAAAAAAAAAAAA=
                    </data>
                    <key>Comment</key>
                    <string>TRIM Enabler</string>
                </dict>
     
    and of course again slow boot because of "HID: Legacy shim 2"

    Do you have some URL with details describes why is not good idea to have TRIM on APFS?

    Thx
     
  4. VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Oct 1, 2017 at 7:39 PM #14
    VioletDragon

    VioletDragon

    Joined:
    Jun 9, 2013
    Messages:
    10,994
    Mobo:
    GA-H77N-WIFI
    CPU:
    Core i7-3770
    Graphics:
    Intel HD 4000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Should be disabled with APFS. You can disable it instead of deleting it from the config.

    Code (Text):
    Comment Enable TRIM for SSD
    Disabled Yes
    Find <00415050 4c452053 534400>
    Name IOAHCIBlockStorage
    Replace <00000000 00000000 000000>
     
    Midoo likes this.
  5. Midoo

    Midoo

    Joined:
    Jul 22, 2011
    Messages:
    38
    Mobo:
    Supermicro X10DAI
    CPU:
    Dual 14 core Xeon E5-2690v4 CPUs
    Graphics:
    Radeon Vega Frontier Edition
    Mobile Phone:
    Android
    Oct 8, 2017 at 2:46 AM #15
    Midoo

    Midoo

    Joined:
    Jul 22, 2011
    Messages:
    38
    Mobo:
    Supermicro X10DAI
    CPU:
    Dual 14 core Xeon E5-2690v4 CPUs
    Graphics:
    Radeon Vega Frontier Edition
    Mobile Phone:
    Android
    By doing a clean install in HFS+ and disabling the automatic conversion to APFS in installing process by using @RehabMan guide found here.
    The boot time now are much better 8 second with my 960 pro NVME drive.
    HID: Legacy shim 2 latency completely gone from the booting log.
     
  6. gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    Oct 8, 2017 at 2:27 PM #16
    gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    for now TRIM is disabled with APFS and everything works fine without boot errors.
     
  7. gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    Oct 25, 2017 at 8:52 AM #17
    gulios

    gulios

    Joined:
    Apr 21, 2012
    Messages:
    179
    Mobo:
    Asus UX430UA (Clover)
    CPU:
    Intel Core i7-7500U
    Graphics:
    Intel HD Graphics 620, 1920*1080
    Mac:
    iMac, MacBook Air, MacBook Pro
    Mobile Phone:
    iOS
    so after few weeks in 10.13 with APFS and TRIM disabled everything works fine. Boot time <10s, great.

    we can mark it as [SOLVED]
     
    samiewami04 likes this.

Share This Page