2020年7月21日火曜日

Spectre x360 ae OpenCore 0.6.0

Model: HP Spectre x360 13-ae000 performance (4K UHD)
CPU: Intel Core i7-8550U (1.80-4.00/8 Kaby Lake Refresh)
GPU: Intel UHD 620
16GB RAM (soldered)
1TB SSD (PCIe NVMe M.2)  1GB SAMSUNG MZVLW1T0HMLH-000H1
Wifi Card: Intel Wireless Dual Band 8265
LCD Display: 
Touch Panel: 
Audio: Realtek ALC295 onboard layout 1, 3, 13, 14, 15, 21, 28, 77
Thunderbolt 3 Chipset: JHL6540 Thunderbolt 3 Bridge
PC Card Reader: RTS525A PCI Express Card Reader

Device Properties:
ALC295: Audio layout-id=3
Kaby Lake-R(8550U)内蔵のIntel UHD 620はネイティブにはサポートされないので偽装
・AAPL,ig-platform-id 0000C087 参考 OpenCore Install Guide
・Fake device-id=1B590000 (UHD 630: 591B0000を上位2バイトを交換)
・framebuffer-patch-enable=1
・framebuffer-stolenmem=39MB=39*1024*1024=0x02700000


完成
・USBメモリからは起動に成功
・最新版のWEGで最大輝度で表示可能となった
・GPU boostが効く cloverで見られたプチフリーズも生じない
・VoodooPS2でキーボード・タッチパッドが使える
・AppleALC最新版で音も問題なし
・Cloverでは再起動でmacOS Installが出てこず10.15.6へのアップデートができなかったが、OpenCoreでは問題なくできた
・Intel Bluetooth : CLOVER下で作動  https://github.com/OpenIntelWireless/IntelBluetoothFirmware
まだダメ
・NVME SSDからは起動できない  Cloverと同じようにPreloader.efiを使ってもだめ
・Intel Wifiが不安定 使えるとen0にアサインできてiMessageも使えるが、スピードが遅くときどき通信すらできなくなる
・IGPUのみなのでDRM(AppleTV+, amazon prime)はダメ
・Big Surはまだ試していない


2020年7月18日土曜日

OpenCore & Big Sur, Big Surでのキー変更

OpenCoreへの移行が必要
Spectre x360はどうあがいても途中で止まる Stuck on [EB|#LOG:EXITBS:START]
  他のSpectre x360 (aeじゃない)のconfig.plist を使ってもダメ
 メモリ関係だろうか?→Preloader関連の模様

Haswell R+GA-Z97X-Gaming+RX570+4K displayはあっさり動いた
config.plistはこちら (MLB, Serial, ROM, UUIDは自分のに直してね)

Big Sur用に変更した (Catalinaも起動可能)



USBでいつものように別ディスクにインストールしました

sudo diskutil list 
で"Disk-Device”を得る (/dev/disk10だった)
sudo diskutil partitionDisk /dev/disk10 GPT JHFS+ USB R


https://www.softantenna.com/wp/tips/mac-os-big-sur-usb-install-media-for-beta/

isoをマウント

sudo /Applications/Install\ macOS\ Big\ Sur\ Beta.app/\
Contents/Resources/createinstallmedia \
--volume /Volumes/USB --nointeraction --downloadassets

で作成

Big SurdではKarabinar Elementが使えないので、かな・無変換をF5に変換するのに使ったのは下記
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000088,"HIDKeyboardModifierMappingDst":0x70000003E},{"HIDKeyboardModifierMappingSrc":0x70000008B,"HIDKeyboardModifierMappingDst":0x70000003E}]}'
あるいは~/Library/LaunchAgents/com.local.KeyMapping.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.local.KeyRemapping</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/hidutil</string>
        <string>property</string>
        <string>--set</string>
        <string>{"UserKeyMapping":[
            {
              "HIDKeyboardModifierMappingSrc": 0x700000088,
              "HIDKeyboardModifierMappingDst": 0x70000003E
            },
            {
              "HIDKeyboardModifierMappingSrc": 0x70000008B,
              "HIDKeyboardModifierMappingDst": 0x70000003E
            }
        ]}</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>