Sleep issue on Sequoia 15.3.1

robertruen

New member
AMD OS X Member
Mar 4, 2025
10
0
1
CPU:
R7 5800H
Hi,everyone!My laptop can't sleep after updated or reinstalled Sequoia 15.3.1
When I press the power button, nothing happens. When I select sleep through the menu, the screen turns off, but the machine, including the keyboard LED and the fan are still working. By querying sleep-related logs, I found the following informations:
20250304_130141.jpg
How can I fix it?

My laptop:Lenovo Legion 5
R7 5800H
16G DDR4
AMD RADEON 6600M 8G
 
Which WiFi/BT card is installed in your laptop? As that is the device causing the sleep issue.

Have you created a custom USB kext for your laptop? The Bluetooth device uses an Internal USB port, which if not correctly configured can cause Sleep/Wake issues.
 
Which WiFi/BT card is installed in your laptop? As that is the device causing the sleep issue.

Have you created a custom USB kext for your laptop? The Bluetooth device uses an Internal USB port, which if not correctly configured can cause Sleep/Wake issues.
Intel AX210.
And I Mapped USB ports with USBToolBox from Windows.
 
Post a copy of the USB kext so we can see what you have created.
 
I very much doubt your USBMap.kext/Contents/Info.plist is set correctly for your laptop.

There are 12 x USB ports activated by the kext, under two USB controllers - XHC0 and XHC1, with the system using iMacPro1,1 SMBIOS/Model.

Below is a view of the info.plist contents, as viewed in ProperTree Plist Editor.

Screenshot 2025-03-05 at 17.49.10.png USBMap.kext/Contents/Info.plist

This image shows you have activated the following types of USB port.
Internal (255) = 5 x ports - HS02, HS03, HS04 & SS02 under XHC0 and HS03 & HS04 under XHC1 controller.
Type-c+sw (9) = 4 x ports - HS01 & SS01 under both USB controllers.
USB3 (3) = 2 x ports - HS02 & SS02 under XHC1 controller.

IF this is the Legion Slim 5 laptop, then there are the following USB ports on this laptop.

2 x Type-C (left hand side)
3 x Type-A (rear edge below lid/display)
2 x Internal (Bluetooth & Webcam)

So given the above your USBMap.kext is not close to being correct, other than with the Type-C ports.

You have too many ports set as Internal (255)
You likely have too few ports set as USB3 (3)
I can't tell if any of the Type-A ports are USB2, so you may be missing one additional Port Type.

This is how you recognise / set the connector type for different ports.

USB Port Configuration:
  1. USB2 (0) - Physical USB2 ports these have a Black coloured tang.
  2. USB3 (3) - Physical USB3 ports can have a Blue, Cyan coloured tang.
    1. Virtual USB2 ports - served from physical USB3 ports should be set the same as the physical port, i.e as USB3 (3)
  3. Internal (255) - Motherboard USB2 header, this will be any device served from a header port, such as Bluetooth module or Webcam
  4. Type-c+sw (9) - will only show two ports being available, 1 x Physical Type-C and 1 x virtual USB2 port.
  5. Type-c (10) - will show four ports being available when the Type-C device is flipped 180° and reinserted, 2 x Type-C and 2 x USB2.
I recommend you undertake the port discovery phase again, as you have clearly got some wrong.
 
I very much doubt your USBMap.kext/Contents/Info.plist is set correctly for your laptop.

There are 12 x USB ports activated by the kext, under two USB controllers - XHC0 and XHC1, with the system using iMacPro1,1 SMBIOS/Model.

Below is a view of the info.plist contents, as viewed in ProperTree Plist Editor.

View attachment 16513 USBMap.kext/Contents/Info.plist

This image shows you have activated the following types of USB port.
Internal (255) = 5 x ports - HS02, HS03, HS04 & SS02 under XHC0 and HS03 & HS04 under XHC1 controller.
Type-c+sw (9) = 4 x ports - HS01 & SS01 under both USB controllers.
USB3 (3) = 2 x ports - HS02 & SS02 under XHC1 controller.

IF this is the Legion Slim 5 laptop, then there are the following USB ports on this laptop.

2 x Type-C (left hand side)
3 x Type-A (rear edge below lid/display)
2 x Internal (Bluetooth & Webcam)

So given the above your USBMap.kext is not close to being correct, other than with the Type-C ports.

You have too many ports set as Internal (255)
You likely have too few ports set as USB3 (3)
I can't tell if any of the Type-A ports are USB2, so you may be missing one additional Port Type.

This is how you recognise / set the connector type for different ports.

USB Port Configuration:
  1. USB2 (0) - Physical USB2 ports these have a Black coloured tang.
  2. USB3 (3) - Physical USB3 ports can have a Blue, Cyan coloured tang.
    1. Virtual USB2 ports - served from physical USB3 ports should be set the same as the physical port, i.e as USB3 (3)
  3. Internal (255) - Motherboard USB2 header, this will be any device served from a header port, such as Bluetooth module or Webcam
  4. Type-c+sw (9) - will only show two ports being available, 1 x Physical Type-C and 1 x virtual USB2 port.
  5. Type-c (10) - will show four ports being available when the Type-C device is flipped 180° and reinserted, 2 x Type-C and 2 x USB2.
I recommend you undertake the port discovery phase again, as you have clearly got some wrong.
I'm sorry, the model information I provided is incomplete, Legion 5-15ACH6A, this is my laptop model
 
Your USB kext is still wrong for your Legion 5-15ACH6A laptop. The points I made above are all still valid. You will never get the sleep/wake/shut down functions working correctly if your USB configuration is incorrect.
 
This screenshot is from the overview page for your laptop, it lists the external USB ports available.

httpspsref.lenovo.comsyspoolSysPDFLegionLenovo_Legion_5_15ACH6ALenovo_Legion_5_15ACH6A_Spec.pdf.png

What it doesn’t list is the webcam and Bluetooth internal USB ports. These are the only ports that should be set as internal with connector type 255.
 
This screenshot is from the overview page for your laptop, it lists the external USB ports available.

View attachment 16514

What it doesn’t list is the webcam and Bluetooth internal USB ports. These are the only ports that should be set as internal with connector type 255.
I see.Do ITE Device (8910) and ITE Device (8295) also need to be changed to built-in?
 

Attachments

  • 20250309_091911.jpg
    20250309_091911.jpg
    2.2 MB · Views: 14
Yes, they would both need to be set as internal (255).
 
Yes, they would both need to be set as internal (255).
I think there is an unknown problem with ITE devices (8295), which causes the inability to sleep.It keeps reporting errors and adding new records, looping non-stop
 

Attachments

  • 3a393752-1935-4170-a721-8c245ee6a3ce.png
    3a393752-1935-4170-a721-8c245ee6a3ce.png
    304.8 KB · Views: 11
  • QQ20250310-174555.png
    QQ20250310-174555.png
    283.7 KB · Views: 13
It's not an unknown problem, it is known that the ITE device(s) aren't compatible with macOS. The top four lines in the 2nd screenshot above tells you this, as the ITE devices are 'Terminated'. Hence the red coloured struck through text in the IOReg screenshot.

These devices are not present on any real Mac system, just PC's & laptops by specific manufacturers.

However, for some reason they can still make power calls when the system sleeps/reboots and cause issues. That is the reason why they need to be correctly identified, even if macOS doesn't use them.

Just remember that as you have an AMD system that does not restrict you to a maximum of 15 x USB ports. You have 2 x USB controllers in your setup, that means you could theoretically have 30 x USB ports active in your system. As each USB controller has a maximum of 15 x USB ports it can activate. So you don't need to exclude any USB ports from your setup.

As an example my Asus ROG Strix X570 system has 3 x USB controllers. So I have been able to activated/enabled 28 x USB ports (split over the 3 x controllers) as shown below.

Screenshot 2025-03-10 at 16.35.14.png Hackintool > USB tab showing the 28 x USB ports and 3 x USB controllers.

Ignore the connector types in the screenshot, they aren't shown correctly in Hackintool (it doesn't seem to like AMD USB configurations). The USBMap.kext containing the USB configuration has the correct Connector types, as well as meaningful comments for each port.

Screenshot 2025-03-10 at 16.40.58.png Screenshot 2025-03-10 at 16.41.27.png Screenshot 2025-03-10 at 16.54.05.png
 
Hi,Edhawk!!
Thanks for your suggestion!I remapped the USB and disabled the port of ITE Device(8295) that seems to control rgb for keyboard,and now sleep is coming back!!So I need to slove the wake reason from (GP17 XHC0 XHC1).What is GP17 and how can I find it?
By the way, I can pop up the menu and choose sleep by pressing Ctrl+power button. Is there any way to make it sleep by pressing the power button?
 

Attachments

  • 20250313_184216.jpg
    20250313_184216.jpg
    2.4 MB · Views: 11
Last edited:
GP17 is part of the IORegistryExplorer path for one of the USB Controllers in your system.

If you navigate to the PCIe tab in Hackintool, expand the window to its full width you should see a column named “IOReg Name”. One of the USB controllers will be using the GP1U/XHC0/XHC1 name. It probably needs to be renamed, using an ACPI Rename patch, as XHC1 matches with the name used by Apple for their USB controller. This can cause a clash in the system, as your XHC1 controller won’t use the same settings expected for the Apple controller.

Renaming the XHC1 controller to XHC_ or SHC1 is the normal option.
 
GP17 is part of the IORegistryExplorer path for one of the USB Controllers in your system.

If you navigate to the PCIe tab in Hackintool, expand the window to its full width you should see a column named “IOReg Name”. One of the USB controllers will be using the GP1U/XHC0/XHC1 name. It probably needs to be renamed, using an ACPI Rename patch, as XHC1 matches with the name used by Apple for their USB controller. This can cause a clash in the system, as your XHC1 controller won’t use the same settings expected for the Apple controller.

Renaming the XHC1 controller to XHC_ or SHC1 is the normal option.
I has renamed XHC1 to XHC
But now it have new issue
When I waked,The 2500Mhz in the speed step has become 1300Mhz, what should I do?
I found that there are many devices associated with GP17. What adjustments should be made to prevent them from waking up the laptop?
I noticed that some computers have the parameter Sleep On Power Button 1 when running pmset -g, but my laptop does not have this parameter. Is this why I cannot press the power button to enter sleep mode directly?
 

Attachments

  • 3fa11d2c-e3ca-4618-a17e-55412a4540a3.png
    3fa11d2c-e3ca-4618-a17e-55412a4540a3.png
    988.3 KB · Views: 13
  • 73116a92-ca24-4b99-82dc-7ef774e0c7a6.png
    73116a92-ca24-4b99-82dc-7ef774e0c7a6.png
    222.7 KB · Views: 11
Last edited:
There are normally a number of devices on the same tree/branch in the IOReg. So having multiple devices connected via the GP17 branch isn't anything unusual. Using an ACPI rename patch in your config.plist shouldn't affect the CPU Speed Step. Did you change anything else?

Your assumption seems logical, so yes not having the Sleep on Power Button option present and enabled would prevent the system from sleeping when the power button is pressed. It is more likely to restart or shutdown the laptop.

Is this sleep when power button option present for your laptop in any other OS, i.e Windows or Linux?

The normal Sleep option for a laptop is to close the lid. I take it that doesn't work either.
 
There are normally a number of devices on the same tree/branch in the IOReg. So having multiple devices connected via the GP17 branch isn't anything unusual. Using an ACPI rename patch in your config.plist shouldn't affect the CPU Speed Step. Did you change anything else?

Your assumption seems logical, so yes not having the Sleep on Power Button option present and enabled would prevent the system from sleeping when the power button is pressed. It is more likely to restart or shutdown the laptop.

Is this sleep when power button option present for your laptop in any other OS, i.e Windows or Linux?

The normal Sleep option for a laptop is to close the lid. I take it that doesn't work either.
Yes,in windows and linux it can be sleep by press power button or close the lid,but in macOS is invalid
 
Hi,everyone!My laptop can't sleep after updated or reinstalled Sequoia 15.3.1
When I press the power button, nothing happens. When I select sleep through the menu, the screen turns off, but the machine, including the keyboard LED and the fan are still working. By querying sleep-related logs, I found the following informations:
View attachment 16503
How can I fix it?

My laptop:Lenovo Legion 5
R7 5800H
16G DDR4
AMD RADEON 6600M 8G
can you share you efi please ?
 
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.