Skip to content

Commit

Permalink
Add more models to USBPorts
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhengshiqi committed Feb 16, 2019
1 parent ebd8b37 commit 5e6158e
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 41 deletions.
226 changes: 193 additions & 33 deletions EFI/CLOVER/kexts/Other/USBPorts.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,97 @@
<string>1.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>MacBookAir8,1-XHC</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
<key>IOClass</key>
<string>AppleUSBHostMergeProperties</string>
<key>IONameMatch</key>
<string>XHC</string>
<key>IOProviderClass</key>
<string>AppleUSBXHCIPCI</string>
<key>IOProviderMergeProperties</key>
<dict>
<key>port-count</key>
<data>EAAAAA==</data>
<key>ports</key>
<dict>
<key>HS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>AQAAAA==</data>
</dict>
<key>HS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>AwAAAA==</data>
</dict>
<key>HS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>BAAAAA==</data>
</dict>
<key>HS05</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>BQAAAA==</data>
</dict>
<key>HS06</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>BgAAAA==</data>
</dict>
<key>HS09</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>CQAAAA==</data>
</dict>
<key>SS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>DQAAAA==</data>
</dict>
<key>SS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>DgAAAA==</data>
</dict>
<key>SS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>DwAAAA==</data>
</dict>
<key>SS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>EAAAAA==</data>
</dict>
</dict>
</dict>
<key>model</key>
<string>MacBookAir8,1</string>
</dict>
<key>MacBookPro14,1-XHC</key>
<dict>
<key>CFBundleIdentifier</key>
Expand All @@ -35,106 +126,175 @@
<key>IOProviderMergeProperties</key>
<dict>
<key>port-count</key>
<data>
EAAAAA==
</data>
<data>EAAAAA==</data>
<key>ports</key>
<dict>
<key>HS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>
AQAAAA==
</data>
<data>AQAAAA==</data>
</dict>
<key>HS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
AwAAAA==
</data>
<data>AwAAAA==</data>
</dict>
<key>HS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>
BAAAAA==
</data>
<data>BAAAAA==</data>
</dict>
<key>HS05</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>
BQAAAA==
</data>
<data>BQAAAA==</data>
</dict>
<key>HS06</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>
BgAAAA==
</data>
<data>BgAAAA==</data>
</dict>
<key>HS09</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
CQAAAA==
</data>
<data>CQAAAA==</data>
</dict>
<key>SS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>
DQAAAA==
</data>
<data>DQAAAA==</data>
</dict>
<key>SS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
DgAAAA==
</data>
<data>DgAAAA==</data>
</dict>
<key>SS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>
DwAAAA==
</data>
<data>DwAAAA==</data>
</dict>
<key>SS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>
EAAAAA==
</data>
<data>EAAAAA==</data>
</dict>
</dict>
</dict>
<key>model</key>
<string>MacBookPro14,1</string>
</dict>
<key>MacBookPro15,2-XHC</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleUSBHostMergeProperties</string>
<key>IOClass</key>
<string>AppleUSBHostMergeProperties</string>
<key>IONameMatch</key>
<string>XHC</string>
<key>IOProviderClass</key>
<string>AppleUSBXHCIPCI</string>
<key>IOProviderMergeProperties</key>
<dict>
<key>port-count</key>
<data>EAAAAA==</data>
<key>ports</key>
<dict>
<key>HS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>AQAAAA==</data>
</dict>
<key>HS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>AwAAAA==</data>
</dict>
<key>HS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>BAAAAA==</data>
</dict>
<key>HS05</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>BQAAAA==</data>
</dict>
<key>HS06</key>
<dict>
<key>UsbConnector</key>
<integer>255</integer>
<key>port</key>
<data>BgAAAA==</data>
</dict>
<key>HS09</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>CQAAAA==</data>
</dict>
<key>SS01</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>DQAAAA==</data>
</dict>
<key>SS02</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>DgAAAA==</data>
</dict>
<key>SS03</key>
<dict>
<key>UsbConnector</key>
<integer>3</integer>
<key>port</key>
<data>DwAAAA==</data>
</dict>
<key>SS04</key>
<dict>
<key>UsbConnector</key>
<integer>10</integer>
<key>port</key>
<data>EAAAAA==</data>
</dict>
</dict>
</dict>
<key>model</key>
<string>MacBookPro15,2</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
Expand Down
8 changes: 4 additions & 4 deletions one-key-cpufriend/one-key-cpufriend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,23 @@ function changeepp(){
read -p "Which mode is your favourite? (1/2/3/4):" epp_selection
case $epp_selection in
1)
# Change 80/90/92 to C0, max power saving
# Change 80/90 to C0, max power saving
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:DAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:DAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;

2)
# Keep default 80/90/92, balance power
# Keep default 80/90, balance power
;;

3)
# Change 80/90/92 to 40, balance performance
# Change 80/90 to 40, balance performance
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:BAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:BAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;

4)
# Change 80/90/92 to 00, performance
# Change 80/90 to 00, performance
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:AAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:AAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;
Expand Down
8 changes: 4 additions & 4 deletions one-key-cpufriend/one-key-cpufriend_cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,23 @@ function changeepp(){
read -p "你想选择哪个模式? (1/2/3/4):" epp_selection
case $epp_selection in
1)
# 把 80/90/92 改成 C0, 最省电模式
# 把 80/90 改成 C0, 最省电模式
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:DAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:DAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;

2)
# 保持默认值 80/90/92, 平衡电量模式
# 保持默认值 80/90, 平衡电量模式
;;

3)
# 把 80/90/92 改成 40, 平衡性能模式
# 把 80/90 改成 40, 平衡性能模式
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:BAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:BAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;

4)
# 把 80/90/92 改成 00, 高性能模式
# 把 80/90 改成 00, 高性能模式
sudo /usr/bin/sed -i "" "s:CAAAAAAAAAAAAAAAAAAAAAc:AAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
sudo /usr/bin/sed -i "" "s:CQAAAAAAAAAAAAAAAAAAAAc:AAAAAAAAAAAAAAAAAAAAAAc:g" $boardid.plist
;;
Expand Down

0 comments on commit 5e6158e

Please sign in to comment.