Jump to content

[Release] macOS Sequoia 15.0


255 posts in this topic

Recommended Posts

I have a bluetooth hardware with BCM_4350C2 chip on my laptop as shown on the screen below. I couldn't start the bluetooth feature of the DW1820A combo card. Bluetooth kexts are installed as seen on the screen below. Although bluetooth appears in Hackintool and System information, the bluetooth feature is definitely not turned on. I'm using OCLP 2.0.1 and Opencore 1.0.2 versions.

 

I am waiting for your ideas on the solution of this problem. Thank you to those who were interested and answered!

 

image.thumb.png.cdbcc63f076ab20fa6372d715b1ab4f9.png

 

image.png.a8a608d5165e534590dad4e2a461cfcc.png

 

Edited by HyperX7
  • Like 2
Link to comment
Share on other sites

45 minutes ago, HyperX7 said:

I have a bluetooth hardware with BCM_4350C2 chip on my laptop as shown on the screen below. I couldn't start the bluetooth feature of the DW1820A combo card. Bluetooth kexts are installed as seen on the screen below. Although bluetooth appears in Hackintool and System information, the bluetooth feature is definitely not turned on. I'm using OCLP 2.0.1 and Opencore 1.0.2 versions.

 

I am waiting for your ideas on the solution of this problem. Thank you to those who were interested and answered!

 

image.thumb.png.cdbcc63f076ab20fa6372d715b1ab4f9.png

 

image.png.a8a608d5165e534590dad4e2a461cfcc.png

 

@HyperX7 i am using the same DW1820A Card & my Bluetooth works great, You have to add below 2 entries 

1. NVRAM (7C436110-AB2A-4BBB-A880-FE41995C9F82)

    boot-args -lilubetaall  

2. NVRAM (7C436110-AB2A-4BBB-A880-FE41995C9F82)  

      bluetoothExternalDongleFailed - Data - 00

      bluetoothInternalControllerInfo - Data - 00000000 00000000 00000000 0000

     After changing these value don't forget to Reset Nvram From Opencore Boot Picker
     

Spoiler

image.thumb.png.c9d5c70016c837c3c3403e62533342fb.pngimage.thumb.png.311cc5a26fb0b8556a85085c0a47ad4e.pngimage.thumb.png.c2b27a15d773a4bf74858202da9f3727.pngimage.png.d142bcfb8037694e960691e966a5ca07.pngimage.thumb.png.c7c7c870be17e902fd64aa4119af3379.pngimage.thumb.png.3daf9555bc818fd43f93ed1af639859b.pngimage.thumb.png.b6ea682a67b699a548d15a084fee85c8.png

 

  • Like 5
Link to comment
Share on other sites

14 minutes ago, Irish_Man said:

Guys, does anyone know what kind of error/issue is this? I can connect to my WiFi but when I hit that "I" on any other WiFi, this happens.

Same behaviour in Beta 15.1 on my system.

I think it is a bug. When you come out of WI-FI setting and go back in, all is well again.

Edited by eSaF
  • Thanks 1
Link to comment
Share on other sites

23 hours ago, datafeedexpert said:

@HyperX7 i am using the same DW1820A Card & my Bluetooth works great, You have to add below 2 entries 

1. NVRAM (7C436110-AB2A-4BBB-A880-FE41995C9F82)

    boot-args -lilubetaall  

2. NVRAM (7C436110-AB2A-4BBB-A880-FE41995C9F82)  

      bluetoothExternalDongleFailed - Data - 00

      bluetoothInternalControllerInfo - Data - 00000000 00000000 00000000 0000

     After changing these value don't forget to Reset Nvram From Opencore Boot Picker
     

  Reveal hidden contents

image.thumb.png.c9d5c70016c837c3c3403e62533342fb.pngimage.thumb.png.311cc5a26fb0b8556a85085c0a47ad4e.pngimage.thumb.png.c2b27a15d773a4bf74858202da9f3727.pngimage.png.d142bcfb8037694e960691e966a5ca07.pngimage.thumb.png.c7c7c870be17e902fd64aa4119af3379.pngimage.thumb.png.3daf9555bc818fd43f93ed1af639859b.pngimage.thumb.png.b6ea682a67b699a548d15a084fee85c8.png

 

@datafeedexpert thank you bro. These are work. Bluetooth came back!

Edited by HyperX7
syntax error
  • Like 4
Link to comment
Share on other sites

12 hours ago, robi62 said:

Hi does audio work with hdmi or dp?? Mine does not only with speakers

Hi,

 

Didn't check because I use only internal audio with Layout 11. DP monitor connection is in use only for screen. AppleALC works only in version 1.9.1, 1.9.2 has no audio at all, checked all layouts 11, 15 and 88.

 

Now I see that something however does not work... as iPhone Mirroring 😅  

 

 

 

Screenshot 2024-09-20 at 10.07.56.png

 

 

Screenshot 2024-09-20 at 10.16.08.png

Edited by notobo
  • Like 2
Link to comment
Share on other sites

@notobo Now I see that something however does not work... as iPhone Mirroring 😅  

It wont you need 

AFIK iPhone Mirroring is only supported on Macs with Apple Silicon or Macs with T2 chip.

  • Like 4
Link to comment
Share on other sites

On 9/19/2024 at 7:51 PM, Ludox said:

Acer E1-572G + Lenovo

Screenshot2024-09-08alle18_46_42.png.43bc3d2a2d86c35fc399841b86ef1478.png

Screenshot2024-09-08alle18_54_34.png.bc85e83a097f39120863eeef37f999a0.png

tommy.png

 

Screenshot2024-09-18alle21_05_28.png.5e137fb2869990f7ec0f78e8dfff5783.png

Can you get DP audio or HDMI audio from your iGPU ?

My similar hackintoshs (Z97 & B85M-G) only got Internal speaker working.

No such an issue from BigSur to Sonoma.

Edited by jsl2000
  • Like 1
Link to comment
Share on other sites

On 9/18/2024 at 1:31 AM, jsl2000 said:

I have the same issue as yours in my LGA775 hackintosh to boot Sequotia, but no such an issue from Big Sur to Sonoma.

Is it due to hardware dependence or something else (e.g. we need FADT.aml, DMAR.aml & SSDT-ALL.aml from Stefanalmare  plus extra kernel patches ?}

Hi,

here the same problem. GA-X48-DQ6 with a Q9550, GTX760 and Broadcom Wifi/BT. Sonoma 14.6.1 working without issues but afte the update to Sequoia I have a KP in rhe ACPI. Using bott arg CPUS=1 it boots well (after applying OCLP 2.0.1), with Wifi/BT enabled, but with only 1 core it's practically not usable.

I've seen that CpuTscSync.kext has been updated with commits adding sequoia, but the latest release is still 1.1.0. Could someone compile the latest code please? I'm not skilled on that.

Maybe that is the solution...

thx

  • Like 1
Link to comment
Share on other sites

14 hours ago, gn6 said:

Hi,

here the same problem. GA-X48-DQ6 with a Q9550, GTX760 and Broadcom Wifi/BT. Sonoma 14.6.1 working without issues but afte the update to Sequoia I have a KP in rhe ACPI. Using bott arg CPUS=1 it boots well (after applying OCLP 2.0.1), with Wifi/BT enabled, but with only 1 core it's practically not usable.

I've seen that CpuTscSync.kext has been updated with commits adding sequoia, but the latest release is still 1.1.0. Could someone compile the latest code please? I'm not skilled on that.

Maybe that is the solution...

thx

You may try 1.1.1 version which supposed working at Sequoia.

[Edit]

Adding this CpuTscSync.kext alone still got the same KP issue. Only add cpus=1 can fix it in my LGA775 hackintosh.

CpuTscSync-1.1.1-RELEASE.zip

Edited by jsl2000
  • Like 1
Link to comment
Share on other sites

On 9/22/2024 at 10:44 AM, jsl2000 said:

You may try 1.1.1 version which supposed working at Sequoia.

[Edit]

Adding this CpuTscSync.kext alone still got the same KP issue. Only add cpus=1 can fix it in my LGA775 hackintosh.

CpuTscSync-1.1.1-RELEASE.zip 69.48 kB · 7 downloads

 

On 9/22/2024 at 10:44 AM, jsl2000 said:

You may try 1.1.1 version which supposed working at Sequoia.

[Edit]

Adding this CpuTscSync.kext alone still got the same KP issue. Only add cpus=1 can fix it in my LGA775 hackintosh.

CpuTscSync-1.1.1-RELEASE.zip 69.48 kB · 7 downloads

Many thanks for the kext, but It doesn't work for me either. To use cpus=1 is a workaround to boot, but it has a big impact in the performance making the system unusable. I’ll continue searching, because I would like to know why it is working well in Sonoma and not in Sequoia.

Edited by gn6
  • Confused 1
Link to comment
Share on other sites

10 hours ago, gn6 said:

 

Many thanks for the next, but It doesn't work for me either. To use cpus=1 is a workaround to boot, but it has a big impact in the performance making the system unusable. I’ll continue searching, because I would like to know why it is working well in Sonoma and not in Sequoia.

Maybe we can try to fix this issue by either extra Kernel Patches &/or SSDT-xxx.aml  etc.

  • Like 1
Link to comment
Share on other sites

3 hours ago, jsl2000 said:

Maybe we can try to fix this issue by either extra Kernel Patches &/or SSDT-xxx.aml  etc.

Agree. That is what I’m exploring. To rebuild my ACPI aml to see if I can solve it

  • Like 1
Link to comment
Share on other sites

1 hour ago, Irish_Man said:

Does it means that USB ports are out of power while in sleep mode?

Hi Bro, you could be onto something there about the Power.

It could be that the OS reduced power to the drive to such an extent that it couldn't remain connected in Sleep/Wake mode.

 

This used to be quite a thing back in the day with previous OS but apparently still happens occasionally.

This bug was reported by quite a few Mac owners for Apple to address the issue.

 

This work around may help, in 'Energy Saver' insure 'Put Hard Disks to Sleep when possible' is unchecked.

Another is, don't put the Machine to Sleep but instead use the Screen Saver.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

5 minutes ago, miliuco said:

@Austere.J

Interesting! It sounds promising. If you need testers, contact me by pm while you don't want to make public the project. 

Count me in as well, most promising news.

  • Like 7
Link to comment
Share on other sites

10 hours ago, Irish_Man said:

Anyone knows how to fix this? It happens after awake. Does it means that USB ports are out of power while in sleep mode?

 

  Reveal hidden contents

Screenshot2024-09-23at3_24_28PM.thumb.png.a4669ccd13a8c1d36388835fabc65c1d.png

 

 

Hi @Irish_Man I almost sure that is your USB mapping, but can I suggest you run a little bit script ? Works to me in some cases, especially to make sleep perfect. 

 

Here executable script: 

 

Spoiler

#!/bin/sh

#  fixUSB.sh
#
#
#  Created by syscl/lighting/Yating Zhou on 16/3/18.
#

#
# This script aims to unmount all external devices automatically before sleep.
#
# Without this procedure, various computers with OS X/Mac OS X(even on a real Mac) suffer from "Disk not ejected properly"
# issue when there're external devices plugged-in. That's the reason why I created this script to fix this issue. (syscl/lighting/Yating Zhou)
#
# All credit to Bernhard Baehr (bernhard.baehr@gmx.de), without his great sleepwatcher dameon, this fix will not be created.
#

#================================= GLOBAL VARS ==================================

#
# The script expects '0.5' but non-US localizations use '0,5' so we export
# LC_NUMERIC here (for the duration of the fixUSB.sh) to prevent errors.
#
export LC_NUMERIC="en_US.UTF-8"

#
# Get user id.
#
let gID=$(id -u)

#
# Prevent non-printable/control characters.
#
unset GREP_OPTIONS
unset GREP_COLORS
unset GREP_COLOR

#
# Display style setting.
#
BOLD="\033[1m"
RED="\033[1;31m"
GREEN="\033[1;32m"
BLUE="\033[1;34m"
OFF="\033[m"

#
# Located repository.
#
REPO=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

#
# Define vars.
#
gArgv=""
gDebug=1

#
# Path and filename setup.
#
gInstall_Repo="/usr/local/sbin/"
gFrom="${REPO}/tools"
gConfig="/tmp/com.syscl.externalfix.sleepwatcher.plist"
gUSBSleepScript="/tmp/sysclusbfix.sleep"
gUSBWakeScript="/tmp/sysclusbfix.wake"
gRTWlan_kext=$(ls /Library/Extensions | grep -i "Rtw" | sed 's/.kext//')
gRTWlan_Repo="/Library/Extensions"
to_Plist="/Library/LaunchDaemons/com.syscl.externalfix.sleepwatcher.plist"
to_shell_sleep="/etc/sysclusbfix.sleep"
to_shell_wake="/etc/sysclusbfix.wake"
gRT_Config="/Applications/Wireless Network Utility.app"/${gMAC_adr}rfoff.rtl
gGitHubContentURL="https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master"

#
#--------------------------------------------------------------------------------
#

function _PRINT_MSG()
{
    local message=$1

    case "$message" in
      OK*    ) local message=$(echo $message | sed -e 's/.*OK://')
               echo "[  ${GREEN}OK${OFF}  ] ${message}."
               ;;

      FAILED*) local message=$(echo $message | sed -e 's/.*://')
               echo "[${RED}FAILED${OFF}] ${message}."
               ;;

      ---*   ) local message=$(echo $message | sed -e 's/.*--->://')
               echo "[ ${GREEN}--->${OFF} ] ${message}"
               ;;

      NOTE*  ) local message=$(echo $message | sed -e 's/.*NOTE://')
               echo "[ ${RED}Note${OFF} ] ${message}."
               ;;
    esac
}

#
#--------------------------------------------------------------------------------
#

function _tidy_exec()
{
    if [ $gDebug -eq 0 ];
      then
        #
        # Using debug mode to output all the details.
        #
        _PRINT_MSG "DEBUG: $2"
        $1
      else
        #
        # Make the output clear.
        #
        $1 >/tmp/report 2>&1 && RETURN_VAL=0 || RETURN_VAL=1

        if [ "${RETURN_VAL}" == 0 ];
          then
            _PRINT_MSG "OK: $2"
          else
            _PRINT_MSG "FAILED: $2"
            cat /tmp/report
        fi

        rm /tmp/report &> /dev/null
    fi
}

#
#--------------------------------------------------------------------------------
#

function _checkForExecutableFile()
{
    if [ ! -f ${gFrom}/sleepwatcher ];
      then
        _touch "${gFrom}/tools"
        _tidy_exec "sudo curl -o ${gFrom}/sleepwatcher --silent "${gGitHubContentURL}/tools/sleepwatcher"" "Download sleepwatcher"
    fi
}

#
#--------------------------------------------------------------------------------
#

function _printConfig()
{

    _del ${gConfig}

    echo '<?xml version="1.0" encoding="UTF-8"?>'                                                                                                           > "$gConfig"
    echo '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'                                          >> "$gConfig"
    echo '<plist version="1.0">'                                                                                                                           >> "$gConfig"
    echo '<dict>'                                                                                                                                          >> "$gConfig"
    echo '    <key>KeepAlive</key>'                                                                                                                          >> "$gConfig"
    echo '    <true/>'                                                                                                                                       >> "$gConfig"
    echo '    <key>Label</key>'                                                                                                                              >> "$gConfig"
    echo '    <string>com.syscl.externalfix.sleepwatcher</string>'                                                                                           >> "$gConfig"
    echo '    <key>ProgramArguments</key>'                                                                                                                   >> "$gConfig"
    echo '    <array>'                                                                                                                                       >> "$gConfig"
    echo '        <string>/usr/local/sbin/sleepwatcher</string>'                                                                                             >> "$gConfig"
    echo '        <string>-V</string>'                                                                                                                       >> "$gConfig"
    echo '        <string>-s /etc/sysclusbfix.sleep</string>'                                                                                                >> "$gConfig"
    echo '        <string>-w /etc/sysclusbfix.wake</string>'                                                                                                 >> "$gConfig"
    echo '    </array>'                                                                                                                                      >> "$gConfig"
    echo '    <key>RunAtLoad</key>'                                                                                                                          >> "$gConfig"
    echo '    <true/>'                                                                                                                                       >> "$gConfig"
    echo '</dict>'                                                                                                                                         >> "$gConfig"
    echo '</plist>'                                                                                                                                        >> "$gConfig"
}

#
#--------------------------------------------------------------------------------
#

function _createUSB_Sleep_Script()
{
    echo '#!/bin/sh'
    echo '#'
    echo '# This script aims to unmount all external devices automatically before sleep.'
    echo '#'
    echo '# Without this procedure, various computers with OS X/Mac OS X(even on a real Mac) suffer from "Disk not ejected properly"'
    echo '# issue when there're external devices plugged-in. That's the reason why I created this script to fix this issue. (syscl/lighting/Yating Zhou)'
    echo '#'
    echo '# All credit to Bernhard Baehr (bernhard.baehr@gmx.de), without his great sleepwatcher dameon, this fix will not be created.'
    echo '#'
    echo ''
    echo '#'
    echo '# Added unmount Disk for "OS X" (c) syscl/lighting/Yating Zhou.'
    echo '#'
    echo 'gMountPartition="/tmp/com.syscl.externalfix"'
    echo 'gDisk=($(diskutil list |grep -i -i "dev" |grep -i -o "disk[0-9]"))'
    echo 'gUSBDisk=""'
    echo ''
    echo 'for ((i=0; i<${#gDisk[@]}; ++i))'
    echo 'do'
    echo '  gProtocol=$(diskutil info ${gDisk[i]} |grep -i "Protocol" |sed -e "s|Protocol:||" -e "s| ||g")'
    echo '  is_SDCard=$(diskutil info ${gDisk[i]} |grep -i "Device / Media Name" |grep -i "SD Card")'
    echo '  if [[ ${gProtocol} == *"USB"* ]];'
    echo '    then'
    echo '      gCurrent_Partitions=($(diskutil list ${gDisk[i]} |grep -o "disk[0-9]s[0-9]"))'
    echo '      for ((k=0; k<${#gCurrent_Partitions[@]}; ++k))'
    echo '      do'
    echo '        gConfirm_Mounted=$(diskutil info ${gCurrent_Partitions[k]} |grep -i 'Mounted' |sed -e "s| Mounted:||" -e "s| ||g")'
    echo '        if [[ ${gConfirm_Mounted} == *"Yes"* ]];'
    echo '          then'
    echo '            echo ${gCurrent_Partitions[k]} >> ${gMountPartition}'
    echo '        fi'
    echo '      done'
    echo '      if [ -z ${is_SDCard} ]; then'
    echo '          diskutil eject ${gDisk[i]}'
    echo '      else'
    echo '          gUSBDisk="${gUSBDisk}\n${gDisk[i]}"'
    echo '      fi'
    echo '  fi'
    echo 'done'
    echo 'echo -e "${gUSBDisk}\n" | xargs -I {} diskutil eject {}'
    echo ''
    # no wlan kext found
    if [ -z $gRTWlan_kext ]; then
        return
    fi
    echo ''
    echo '#'
    echo '# Fix RTLWlanUSB sleep problem credit B1anker & syscl/lighting/Yating Zhou. @PCBeta.'
    echo '#'
    echo ''
    echo "gRTWlan_kext=$(echo $gRTWlan_kext)"
    echo 'gMAC_adr=$(ioreg -rc $gRTWlan_kext | sed -n "/IOMACAddress/ s/.*= <\(.*\)>.*/\1/ p")'
    echo ''
    echo 'if [[ "$gMAC_adr" != 0 ]];'
    echo '  then'
    echo '    gRT_Config="/Applications/Wireless Network Utility.app"/${gMAC_adr}rfoff.rtl'
    echo ''
    echo '    if [ ! -f $gRT_Config ];'
    echo '      then'
    echo '        gRT_Config=$(ls "/Applications/Wireless Network Utility.app"/*rfoff.rtl)'
    echo '    fi'
    echo ''
    echo "    osascript -e 'quit app \"Wireless Network Utility\"'"
    echo '    echo "1" > "$gRT_Config"'
    echo '    open "/Applications/Wireless Network Utility.app"'
    echo 'fi'
}

#
#--------------------------------------------------------------------------------
#

function _RTLWlanU()
{
    _del ${gUSBWakeScript}
    _del "/etc/syscl.usbfix.wake"

    echo '#!/bin/sh'                                                                                                                                         > "$gUSBWakeScript"
    echo '#'                                                                                                                                                >> "$gUSBWakeScript"
    echo '# Added mount Disk for "OS X" (c) syscl/lighting/Yating Zhou.'                                                                                    >> "$gUSBWakeScript"
    echo '#'                                                                                                                                                >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo 'gMountPartition="/tmp/com.syscl.externalfix"'                                                                                                     >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo 'cat ${gMountPartition} |xargs -I {} diskutil mount {}'                                                                                            >> "$gUSBWakeScript"
    echo 'rm ${gMountPartition}'                                                                                                                            >> "$gUSBWakeScript"
#   echo 'diskutil list | grep -i "External" | sed -e "s| (external, physical):||" | xargs -I {} diskutil mountDisk {}'                                     >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo '#'                                                                                                                                                >> "$gUSBWakeScript"
    echo '# Fix RTLWlanUSB sleep problem credit B1anker & syscl/lighting/Yating Zhou. @PCBeta.'                                                             >> "$gUSBWakeScript"
    echo '#'                                                                                                                                                >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo "gRTWlan_kext=$(echo $gRTWlan_kext)"                                                                                                               >> "$gUSBWakeScript"
    echo 'gMAC_adr=$(ioreg -rc $gRTWlan_kext | sed -n "/IOMACAddress/ s/.*= <\(.*\)>.*/\1/ p")'                                                             >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo 'if [[ "$gMAC_adr" != 0 ]];'                                                                                                                       >> "$gUSBWakeScript"
    echo '  then'                                                                                                                                           >> "$gUSBWakeScript"
    echo '    gRT_Config="/Applications/Wireless Network Utility.app"/${gMAC_adr}rfoff.rtl'                                                                 >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo '    if [ ! -f $gRT_Config ];'                                                                                                                     >> "$gUSBWakeScript"
    echo '      then'                                                                                                                                       >> "$gUSBWakeScript"
    echo '        gRT_Config=$(ls "/Applications/Wireless Network Utility.app"/*rfoff.rtl)'                                                                 >> "$gUSBWakeScript"
    echo '    fi'                                                                                                                                           >> "$gUSBWakeScript"
    echo ''                                                                                                                                                 >> "$gUSBWakeScript"
    echo "    osascript -e 'quit app \"Wireless Network Utility\"'"                                                                                         >> "$gUSBWakeScript"
    echo '    echo "0" > "$gRT_Config"'                                                                                                                     >> "$gUSBWakeScript"
    echo '    open "/Applications/Wireless Network Utility.app"'                                                                                            >> "$gUSBWakeScript"
    echo 'fi'                                                                                                                                               >> "$gUSBWakeScript"
}

#
#--------------------------------------------------------------------------------
#

function _fnd_RTW_Repo()
{
    if [ -z $gRTWlan_kext ];
      then
        #
        # RTWlan_kext is not in /Library/Extensions. Check /S*/L*/E*.
        #
        gRTWlan_kext=$(ls /System/Library/Extensions | grep -i "Rtw" | sed 's/.kext//')
        gRTWlan_Repo="/System/Library/Extensions"
    fi
}

#
#--------------------------------------------------------------------------------
#

function _uinstall()
{
    _tidy_exec "sudo launchctl unload ${to_Plist}" "Unload ${to_Plist}"
    _del /Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist
    _del ${gInstall_Repo}
    _del ${to_Plist}
    _del ${to_shell_sleep}
    _del ${to_shell_wake}
}

#
#--------------------------------------------------------------------------------
#

function _del()
{
    local target_file=$1

    if [ -d ${target_file} ];
      then
        _tidy_exec "sudo rm -R ${target_file}" "Remove ${target_file}"
      else
        if [ -f ${target_file} ];
          then
            _tidy_exec "sudo rm ${target_file}" "Remove ${target_file}"
        fi
    fi
}

#
#--------------------------------------------------------------------------------
#

function _touch()
{
    local target_file=$1

    if [ ! -d ${target_file} ];
      then
        _tidy_exec "sudo mkdir -p ${target_file}" "Create ${target_file}"
    fi
}

#
#--------------------------------------------------------------------------------
#

function _install()
{
    #
    # Check if sleepwatcher has been downloaded
    #
    _checkForExecutableFile
    #
    # Generate configuration file of sleepwatcher launch demon.
    #
    _tidy_exec "_printConfig" "Generate configuration file of sleepwatcher launch daemon"

    #
    # Find RTW place.
    #
    _fnd_RTW_Repo

    #
    # Generate script to unmount external devices before sleep (c) syscl/lighting/Yating Zhou.
    #
    _createUSB_Sleep_Script >${gUSBSleepScript}

    #
    # Generate script to load RTWlanUSB after wake from sleep.
    #
    if [ -z $gRTWlan_kext ]; then
        _tidy_exec "_RTLWlanU" "Generate script to load RTWlanUSB upon sleep"
    fi

    #
    # Install sleepwatcher daemon.
    #
    _PRINT_MSG "--->: Installing external devices sleep patch..."
    _touch "${gInstall_Repo}"
    _tidy_exec "sudo cp "${gFrom}/sleepwatcher" "${gInstall_Repo}"" "Install sleepwatcher daemon"
    _tidy_exec "sudo cp "${gConfig}" "${to_Plist}"" "Install configuration of sleepwatcher daemon"
    _tidy_exec "sudo cp "${gUSBSleepScript}" "${to_shell_sleep}"" "Install sleep script"
    _tidy_exec "sudo cp "${gUSBWakeScript}" "${to_shell_wake}"" "Install wake script"
    _tidy_exec "sudo chmod 744 ${to_shell_sleep}" "Fix the permissions of ${to_shell_sleep}"
    _tidy_exec "sudo chmod 744 ${to_shell_wake}" "Fix the permissions of ${to_shell_wake}"
    _tidy_exec "sudo launchctl load ${to_Plist}" "Trigger startup service of syscl.usb.fix"

    #
    # Clean up.
    #
    _tidy_exec "rm $gConfig $gUSBSleepScript" "Clean up"

    #
    # Finish. Request reboot.
    #
    _PRINT_MSG "NOTE: DONE! Sleep to see change"
    _PRINT_MSG "NOTE: Feel free to post issue on https://github.com/syscl/Fix-usb-sleep"
}

#
#--------------------------------------------------------------------------------
#

function main()
{
    #
    # Get argument.
    #
    gArgv=$(echo "$@" | tr '[:lower:]' '[:upper:]')
    if [[ "$gArgv" == *"-D"* || "$gArgv" == *"-DEBUG"* ]];
      then
        #
        # Yes, we do need debug mode.
        #
        _PRINT_MSG "NOTE: Use ${BLUE}DEBUG${OFF} mode"
        gDebug=0
      else
        #
        # No, we need a clean output style.
        #
        gDebug=1
    fi

    #
    # Detect which progress to execute.
    #
    if [[ "$gArgv" == *"-U"* ]];
      then
        #
        # Uninstall.
        #
        _uinstall
      else
        #
        # Install.
        #
        _install
    fi
}

#==================================== START =====================================

main "$@"

#================================================================================

exit ${RETURN_VAL}

 

 

 

USBFIX_SLEEP App for made more easily (double click and password)

 

USBFIX_SLEEP.zip

 

 

CapturadeTela2024-09-24s13_31_49.thumb.png.db0442e860c7a8317d67d67759977733.png

 

 

 

 

 

 

 

 

  • Like 4
  • Thanks 1
Link to comment
Share on other sites

After I did the update to 15.0  I found that I had video tearing in DaVinci Resolve, along with random frame flashes. Never experienced it before with my RX 6900XT + RX 6800. I had to roll back to 14.7 for the time being. I was able to get bluetooth working via the suggested steps above. Hopefully an OC + Kext update helps with this video issue.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...