├── EC805.zip ├── README.md └── README-RU.md /EC805.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cybsuai/Mi-Notebook-Pro-tweaks/HEAD/EC805.zip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Xiaomi NoteBook Pro tweaks 2 | 3 | Many BIOS-level tweaks to improve this great laptop 4 | 5 | [English](README.md) | [Rus](README-RU.md) 6 | 7 | ## Features 8 | 9 | * Custom fan curve to fix constant fan noise 10 | * Charge fix for 603 BIOS + external hub 11 | * Undervolting feature enable for latest 502 and 603 BIOS 12 | * Custom TDP configuration set 13 | * SpeedShift technology enable 14 | * for MacOS users: DVMT custom size set 15 | * for MacOS users: 0xE2 Lock disable 16 | 17 | ## Plans 18 | 19 | * Configurable keyboard backlit 20 | 21 | ## Credits 22 | 23 | - [PavelLJ](https://github.com/PavelLJ) for his help 24 | - [saltukkos](https://github.com/saltukkos) for GUI tool to make your own fan curve 25 | 26 | ## Installation 27 | Your BIOS version should be XMAKB5R0P0603! Update if necessary. The default version is +12°, if you need the version +20°, replace ec604.bin with the corresponding one from the /EC folder. If you need to be able to charge the laptop through the hub, use the /EC502 folder. If you want to create your own profile, take the original EC file from the EC/Orig or EC502/Orig folder and edit using https://github.com/saltukkos/xiaomi-notebook-pro-bios-patcher/releases 28 | 29 | 0. Make a full dump of your BIOS firmware: backup.cmd, save file mybackup.bin outside of laptop 30 | 1. Remove write protection BIOS: bios_unlock.cmd, be sure to reboot 31 | 2. Save your EC: readEC.cmd, the ec.bin file will appear, this is your EC backup 32 | 3. Flash new EC: flashEC.cmd, will be flashed ec604.bin 33 | 4. First pull out the power cable, then completely turn off the laptop (Start->Shutdown, not just close the lid), wait a minute, insert the cable, wait 5 seconds, turn on the laptop 34 | 5. Put back write protection for BIOS: bios_lock.cmd 35 | 36 | ## Possible errors and how to fix them 37 | 1. The firmware dump utility reports: 38 | Error 318: The host CPU does not have read access to the target flash area. To enable read access for this operation you must modify the descriptor settings to give host access to this region. FPT Operation Failed. 39 | - it is necessary at least once to start BIOS update procedure, until the "unlockme" step inclusive, after that the procedure can be interrupted 40 | 41 | 2. Problems with security policies and the inability to run PowerShell scripts, for example: 42 | "The .\Patchscript_bue.ps1 file does not have a digital signature. The script can not be run bla bla bla" 43 | - enter the following from the command line: powershell set-executionpolicy remotesigned 44 | - in group security policies, you must enable scripting for powershell 45 | 46 | 3. Coolers after the patch are still kicked at 42° 47 | - check that the firmware update was successful: run again readEC.cmd, compare new ec.bin and ec604.bin, now they should be binary same 48 | - Repeat step number 4, sometimes you need to juggle the cable several times (almost always more than one) 49 | - disconnect the power cable, hold the power button for a long time until the laptop switches off, wait a minute, connect the cable, wait 10 seconds, switch on 50 | - if the firmware update was successful, but all manipulations with the power cable was unsuccessful, then it remains only to throw off the battery cable for a couple of minutes, or just wait, sooner or later the EC will read new firmware, after one of the reboots or after a night's sleep 51 | 52 | ## How to roll back 53 | 1. Flash the original BIOS 54 | 2. Flash only the EC from backup ec.bin, by the instructions above, also the original file can be found here: EC\Orig\ec603.bin 55 | 56 | ## Install other tweaks 57 | - Enable CPU undervolting feature: run the script voltage_unlock.cmd 58 | - Create a custom TDP profile: edit and run the TDP_set.cmd script 59 | - Enabling Intel SpeedShift Technology (SST): run the script speedshift_unlock.cmd 60 | - for MacOS users: change the parameter DVMT: edit and run the script DVMT_set.cmd 61 | - for MacOS users: 0xE2 Lock: run the script CFG_unlock.cmd 62 | -------------------------------------------------------------------------------- /README-RU.md: -------------------------------------------------------------------------------- 1 | # Xiaomi NoteBook Pro твики 2 | 3 | Множество улучшений на уровне BIOS для этого замечательного ноутбука 4 | 5 | [English](README.md) | [Rus](README-RU.md) 6 | 7 | ## Возможности 8 | 9 | * Создание пользовательского профайла для работы системы охлаждения 10 | * Решение проблемы скачущей зарядки при использовании UBS-C хаба и 603 BIOS 11 | * Влючение управления питанием процессора для 502 и 603 BIOS 12 | * Создание пользовательского профайла TDP 13 | * Включение Intel SpeedShift Technology (SST) 14 | * для хакинтошников: изменение параметра DVMT 15 | * для хакинтошников: 0xE2 Lock 16 | 17 | ## В планах 18 | 19 | * Настраиваемый порог выключения подсветки клавиатуры 20 | 21 | ## Credits 22 | 23 | - [PavelLJ](https://github.com/PavelLJ) за помощь в разработке 24 | - [saltukkos](https://github.com/saltukkos) за GUI программу для построения собственного профиля работы системы охлаждения 25 | 26 | ## Установка своего профайла кулеров 27 | Ваша версия BIOS должна быть XMAKB5R0P0603! Обновите если необходимо. 28 | По умолчанию прошивается версия на +12°, если вам нужна версия +20°, замените ec604.bin на соответствующий из папки EC. 29 | Если вам нужна возможность заряжать ноутбук через хаб, используйте папку EC502. 30 | Если вы хотите создать свой собственный профайл, возьмите оригинальный файл EC из папки EC/Orig или EC502/Orig и отредактируйте при помощи https://github.com/saltukkos/xiaomi-notebook-pro-bios-patcher/releases 31 | 32 | 0. Сделать дамп своей прошивки BIOS: backup.cmd, сохранить вне ноутбука файл mybackup.bin 33 | 1. Снять защиту с записи в BIOS: bios_unlock.cmd, обязательно перезагрузиться 34 | 2. Сохранить свой EC: readEC.cmd, появится файл ec.bin, это ваш бекап EC 35 | 3. Прошить новый EC: flashEC.cmd, будет прошит ec604.bin 36 | 4. Сначала вытащить кабель питания, затем полностью выключить ноутбук (Пуск->Завершение работы, а не просто закрыть крышку), подождать минуту, вставить кабель, подождать 5 секунд, включить ноутбук 37 | 5. Поставить обратно защиту на BIOS: bios_lock.cmd, перезагрузиться 38 | 39 | ## Возможные ошибки и их устранения 40 | 1) Утилита создания дампа прошивки сообщает: 41 | Error 318: The host CPU does not have read access to the target flash area. To enable read access for this operation you must modify the descriptor settings to give host access to this region. 42 | FPT Operation Failed. 43 | Решение: 44 | - необходимо хотя бы раз проделать процедуру обновления BIOS, до шага "unlockme" включительно, после этого процедуру можно прервать 45 | 46 | 2) Проблемы политик безопасности и невозможность запуска скриптов PowerShell, например: 47 | "Файл .\patchscript_bue.ps1 не имеет цифровой подписи. Невозможно выполнить сценарий в указанной системе" 48 | Решения: 49 | - ввести в командной строке от администратора: powershell set-executionpolicy remotesigned 50 | - в более запущенных случаях, в групповых политиках безопасности необходимо разрешить выполнение сценариев для powershell 51 | 52 | 3) Кулеры после патча все равно включаются при температуре 42° 53 | - проверьте что прошивка удалась: запустите еще раз readEC.cmd, сравните ec.bin и ec604.bin, теперь они должны быть полностью идентичны 54 | - попробуйте повторить шаг №4, иногда требуется передергивать кабель несколько раз (почти всегда больше одного) 55 | - отсоединить кабель, долго держать кнопку питания пока ноут не выключится, подождать минуту, подключить кабель, подождать 10 сек, включить 56 | - если все равно не получилось, остается только скинуть шлейф батареи на пару минут, или просто ждать, рано или поздно ЕС считает свою программу сам, после одной из перезагрузок или после ночного сна 57 | 58 | ## Способы откатиться обратно на сток 59 | 1. Прошить стоковый BIOS 60 | 2. Прошить обратно только ЕС из своего сохраненного файла ec.bin, по инструкции выше, также оригинальный файл (он у всех одинаковый) есть в архиве (EC\Orig\ec603.bin) 61 | 62 | ## Установка остальных твиков 63 | * Влючение управления питанием процессора для 502 и 603 BIOS: запустите скрипт voltage_unlock.cmd 64 | * Создание пользовательского профайла TDP: отредактируйте и запустите скрипт TDP_set.cmd 65 | * Включение Intel SpeedShift Technology (SST): запустите скрипт speedshift_unlock.cmd 66 | * для хакинтошников: изменение параметра DVMT: отредактируйте и запустите скрипт DVMT_set.cmd 67 | * для хакинтошников: 0xE2 Lock: запустите скрипт CFG_unlock.cmd 68 | --------------------------------------------------------------------------------