Contribute
Register

[Guide] Xiaomi Mi Notebook Pro High Sierra 10.13.6

Status
Not open for further replies.
Anyone can confirm the USB-C ports will work with USB-C monitor (with USB-C cable) ?
 
@Razorkey
Hi, your guide is really specific and helpful, and thank you for mentioning me in your post. Because my recent release supports Mojave, what about writing a guide in Mojave section? If you need my help, I recently have some time to do this.
 
Last edited:
@Razorkey
Hi, your guide is really specific and helpful, and thank you for mentioning me in your post. Because my recent release supports Mojave, what about writing a guide in Mojave section? If you need my help, I recently have some time to do this.

Hi @Steeeeeeve . Thank you for the nice words, but you are the one doing the real work here. I am just trying to keep track of what people say.

Indeed, I can post on the Mojave forum a similar guide. I was waiting the final release to put it on my machine as I am using it as my daily driver basically. I'll get to it over the next few days as I am currently on holiday :).
 
Last edited:
Anyone can confirm the USB-C ports will work with USB-C monitor (with USB-C cable) ?
Yes, I can. And it can charge from the monitor through the same type-c cable.
 
  1. Read "README".
  2. Make sure you download the all folder "HIDPI for Mi Pro".
  3. Install according the instruction found in README file.
View attachment 336628


Please help. I followed the instruction to step by step to t HiDPI and the menu doesn't stay on the screen within terminal for me to select the option. Perhaps I am doing something incorrectly. Please help.
 
Last edited:
Guys, its possible to remap function key (F8) to Mission Control?
Audio control (F1-F3), Brightness (F4-F5), Trackpad (F9) and keys backlit (F9) is work perfectly, but there may be a way to use F7, F8, PrtScn?
 
Guys, its possible to remap function key (F8) to Mission Control?
Audio control (F1-F3), Brightness (F4-F5), Trackpad (F9) and keys backlit (F9) is work perfectly, but there may be a way to use F7, F8, PrtScn?

I’m using karabiner to map my keys. You should be able to set also mission control and other stuff.
 
Hello
I have the notebook Pro for the last 5 months now with 2 SSd with both windows 10 and Mac oax installed and everything was great.
Today something strange happened, when surfing the web I started to hear strange sounds from the speakers (I didn’t watched any videos or music) , the sound was load from both speakers...like shshshshshshsh , it stoped only when I restart the notebook and after 5 min it was again , and than the sound card died ...I see the speaker icon with red X and when I checked the driver there’s no update , I tried to uninstall and reinstalling the driver and still the icon with red X .
What is that ??? The sound card died on me? What can I do?
It happened in both Windows 10 and Mac OS X.
Today when I went to the pc I see that the audio was working and there’s no problem bag the cracking sounds was back .
I opened the notebook and disconnected the speakers so I can work with this machine.
What do you say guys the notebook is going to die on me?
Thanks
 
One more link with antennas for wifi. Install it today, working fine)
 
  1. Read "README".
  2. Make sure you download the all folder "HIDPI for Mi Pro".
  3. Install according the instruction found in README file.
View attachment 336628


I followed the readme instruction but it doesn't work. when I execute the Ssh command from the readme it displays various output but it doesn't allow me to select anything. I've attached the below output to show what is happening.

Unknown cipher type '#!/bin/sh

#

# init

function init()

{

#

cat << EEF


_ _ _____ _____ _____ _____

| | | | |_ _| | __ \ | __ \ |_ _|

| |__| | | | | | | | | |__) | | |

| __ | | | | | | | | ___/ | |

| | | | _| |_ | |__| | | | _| |_

|_| |_| |_____| |_____/ |_| |_____|



============================================

EEF

#

VendorID=$(ioreg -l | grep "DisplayVendorID" | awk '{print $8}')

ProductID=$(ioreg -l | grep "DisplayProductID" | awk '{print $8}')

EDID=$(ioreg -l | grep "IODisplayEDID" | awk '{print $8}' | sed -e 's/.$//' -e 's/^.//')


Vid=$(echo "obase=16;$VendorID" | bc | tr 'A-Z' 'a-z')

Pid=$(echo "obase=16;$ProductID" | bc | tr 'A-Z' 'a-z')


edID=$(echo $EDID | sed 's/../b5/21')

EDid=$(echo $edID | xxd -r -p | base64)


thisDir=$(dirname $0)

thatDir="/System/Library/Displays/Contents/Resources/Overrides"

Overrides="\/System\/Library\/Displays\/Contents\/Resources\/Overrides\/"


DICON="com\.apple\.cinema-display"

imacicon=${Overrides}"DisplayVendorID-610\/DisplayProductID-a032.tiff"

mbpicon=${Overrides}"DisplayVendorID-610\/DisplayProductID-a030-e1e1df.tiff"

mbicon=${Overrides}"DisplayVendorID-610\/DisplayProductID-a028-9d9da0.tiff"

lgicon=${Overrides}"DisplayVendorID-1e6d\/DisplayProductID-5b11.tiff"


if [[ ! -d $thatDir/backup ]]; then

echo "Backing up..."

sudo mkdir -p $thatDir/backup

sudo cp $thatDir/Icons.plist $thatDir/backup/

if [[ -d $thatDir/DisplayVendorID-$Vid ]]; then

sudo cp -r $thatDir/DisplayVendorID-$Vid $thatDir/backup/

fi

fi

}


# choose_icon

function choose_icon()

{

#

rm -rf $thisDir/tmp/

mkdir -p $thisDir/tmp/

curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/Icons.plist -o $thisDir/tmp/Icons.plist

# curl -fsSL http://127.0.0.1:8080/Icons.plist -o $thisDir/tmp/Icons.plist


#

cat << EOF

------------------------------------

|********** Choose Icon ***********|

------------------------------------

(1) iMac

(2) MacBook

(3) MacBook Pro

(4) LG Display

(5) Remain as it is


EOF


read -p "Enter your choice [1~5]: " logo

case $logo in

1) Picon=$imacicon

RP=("33" "68" "160" "90")

;;

2) Picon=$mbicon

RP=("52" "66" "122" "76")

;;

3) Picon=$mbpicon

RP=("40" "62" "147" "92")

;;

4) Picon=$lgicon

RP=("11" "47" "202" "114")

DICON=${Overrides}"DisplayVendorID-1e6d\/DisplayProductID-5b11.icns"

;;

5) rm -rf $thisDir/tmp/Icons.plist

;;

*) echo "Enter error, bye";

exit 0

;;

esac


if [[ $Picon ]]; then

sed -i '' "s/VID/$Vid/g" $thisDir/tmp/Icons.plist

sed -i '' "s/PID/$Pid/g" $thisDir/tmp/Icons.plist

sed -i '' "s/RPX/${RP[0]}/g" $thisDir/tmp/Icons.plist

sed -i '' "s/RPY/${RP[1]}/g" $thisDir/tmp/Icons.plist

sed -i '' "s/RPW/${RP[2]}/g" $thisDir/tmp/Icons.plist

sed -i '' "s/RPH/${RP[3]}/g" $thisDir/tmp/Icons.plist

sed -i '' "s/PICON/$Picon/g" $thisDir/tmp/Icons.plist

sed -i '' "s/DICON/$DICON/g" $thisDir/tmp/Icons.plist

fi


}


# mian

function main()

{

sudo mkdir -p $thisDir/tmp/DisplayVendorID-$Vid

dpiFile=$thisDir/tmp/DisplayVendorID-$Vid/DisplayProductID-$Pid

sudo chmod -R 777 $thisDir/tmp/


#

cat > "$dpiFile" <<-\CCC

<?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>DisplayProductID</key>

<integer>PID</integer>

<key>DisplayVendorID</key>

<integer>VID</integer>

<key>IODisplayEDID</key>

<data>EDid</data>

<key>scale-resolutions</key>

<array>

CCC


cat << EOF

------------------------------------------

|********** resolution config ***********|

------------------------------------------

(1) 1080P Display

(2) 2K Display

(3) Manual input resolution


EOF


read -p "Enter your choice: " res

case $res in

1 ) create_res_1 1920x1080 1680x945 1440x810 1280x720 1024x576

;;

2 ) create_res_1 2048x1152 1920x1080 1680x945 1440x810 1280x720

create_res_2 1024x576

create_res_3 960x540

create_res_4 2048x1152

;;

3 ) custom_res;;

esac


create_res_2 1280x720 960x540 640x360

create_res_3 840x472 720x405 640x360 576x324 512x288 420x234 400x225 320x180

create_res_4 1920x1080 1680x945 1440x810 1280x720 1024x576 960x540 640x360


cat >> "$dpiFile" <<-\FFF

</array>

<key>target-default-ppmm</key>

<real>10.0699301</real>

</dict>

</plist>

FFF


sed -i '' "s/VID/$VendorID/g" $dpiFile

sed -i '' "s/PID/$ProductID/g" $dpiFile

}


# end

function end()

{

sudo cp -r $thisDir/tmp/* $thatDir/

sudo rm -rf $thisDir/tmp

echo "Enabled, please reboot."

echo "Rebooting the logo for the first time will become huge, then it will not be."

say "Good"

}


# custom resolution

function custom_res()

{

echo "Enter the HIDPI resolution, separated by a space,like this: 1680x945 1600x900 1440x810"

read -p ":" res

create_res $res

}


# create resolution

function create_res()

{

for res in $@; do

width=$(echo $res | cut -d x -f 1)

height=$(echo $res | cut -d x -f 2)

hidpi=$(printf '%08x %08x' $(($width*2)) $(($height*2)) | xxd -r -p | base64)

#

cat << OOO >> $dpiFile

<data>${hidpi:0:11}AAAAB</data>

<data>${hidpi:0:11}AAAABACAAAA==</data>

OOO

done

}


function create_res_1()

{

for res in $@; do

width=$(echo $res | cut -d x -f 1)

height=$(echo $res | cut -d x -f 2)

hidpi=$(printf '%08x %08x' $(($width*2)) $(($height*2)) | xxd -r -p | base64)

#

cat << OOO >> $dpiFile

<data>${hidpi:0:11}A</data>

OOO

done

}


function create_res_2()

{

for res in $@; do

width=$(echo $res | cut -d x -f 1)

height=$(echo $res | cut -d x -f 2)

hidpi=$(printf '%08x %08x' $(($width*2)) $(($height*2)) | xxd -r -p | base64)

#

cat << OOO >> $dpiFile

<data>${hidpi:0:11}AAAABACAAAA==</data>

OOO

done

}


function create_res_3()

{

for res in $@; do

width=$(echo $res | cut -d x -f 1)

height=$(echo $res | cut -d x -f 2)

hidpi=$(printf '%08x %08x' $(($width*2)) $(($height*2)) | xxd -r -p | base64)

#

cat << OOO >> $dpiFile

<data>${hidpi:0:11}AAAAB</data>

OOO

done

}


function create_res_4()

{

for res in $@; do

width=$(echo $res | cut -d x -f 1)

height=$(echo $res | cut -d x -f 2)

hidpi=$(printf '%08x %08x' $(($width*2)) $(($height*2)) | xxd -r -p | base64)

#

cat << OOO >> $dpiFile

<data>${hidpi:0:11}AAAAJAKAAAA==</data>

OOO

done

}


# enable

function enable_hidpi()

{

choose_icon

main

sed -i "" "/.*IODisplayEDID/d" $dpiFile

sed -i "" "/.*EDid/d" $dpiFile

end

}


# patch

function enable_hidpi_with_patch()

{

choose_icon

main

sed -i '' "s:EDid:${EDid}:g" $dpiFile

end

}


# disable

function disable()

{

sudo rm -rf $thatDir/DisplayVendorID-$Vid

sudo rm -rf $thatDir/Icons.plist

sudo cp -r $thatDir/backup/* $thatDir/

sudo rm -rf $thatDir/backup

echo "Disabled, restart takes effect"

}


function start()

{

init

#

cat << EOF


(1) Enable HIDPI

(2) Enable HIDPI (with patch)

(3) Disable HIDPI


EOF


read -p "Enter your choice [1~3]: " input

case $input in

1) enable_hidpi

;;

2) enable_hidpi_with_patch

;;

3) disable

;;

*)

echo "Enter error, bye";

exit 0

;;

esac

}


start'
 
Status
Not open for further replies.
Back
Top