Bug: Applications can crash after sleep/hibernation if uses dedicated graphics

Copper Contributor

Problem appears in Chrome/VSCode/Desktop

 

After returning from Sleep mode/Turned off screen application can crash. Disabling of GPU acceleration in App helps. Looks like problem in Power Managment - Dedicated GPU  is disabled for sleep and after waking up application can't find device and crashes. Problem appears on Laptops with dual Graphics - in my case on Asus TUF Gaming and current Lenovo Legion Pro gen. 8 - both are on AMD processors, but TUF was on AMD Graphics, Lenovo has 4060. On APU Laptops or PCs with single graphics no such problem was found.  

1 Reply

@ivan_burykin 

Issue: Applications Crashing After Sleep/Hibernation When Using Dedicated Graphics

Description:

Users have reported a bug where applications experience crashes after a system resumes from sleep or hibernation, specifically when the system is configured to use dedicated graphics (such as a discrete GPU).

Symptoms:

  • Application Crashes: Various applications crash or become unresponsive after the system wakes up from sleep or hibernation.

  • Dedicated Graphics Impact: The issue seems to be linked to configurations using dedicated graphics, causing instability post sleep or hibernation.

  • Error Messages: Users may encounter error messages related to application crashes, GPU drivers, or system instability.

Possible Causes:

  • GPU Driver Interaction: Incompatibility or issues between the dedicated GPU drivers and the system's sleep/hibernation functions.

  • Power Management: Problems related to how power management settings are handled for the dedicated graphics card during sleep/hibernation.

  • Driver Updates: Outdated or incompatible graphics drivers that are not optimized for the specific hardware and power states.

Workarounds:

  1. Switch to Integrated Graphics:

    • Temporarily switch to integrated graphics (if available) to check if the issue persists. This might help identify if the problem is related specifically to the dedicated GPU.
  2. Driver Updates:

    • Ensure that the graphics drivers are up-to-date. Visit the official website of the GPU manufacturer and download the latest drivers compatible with the system.
  3. Power Management Settings:

    • Adjust power management settings for the dedicated GPU. In the device manager, navigate to the GPU, right-click, and go to "Properties." Under the "Power Management" tab, uncheck "Allow the computer to turn off this device to save power."
  4. BIOS/UEFI Updates:

    • Check for updates to the system's BIOS/UEFI firmware. Sometimes, manufacturers release updates that address power management and compatibility issues.
  5. Sleep/Hibernation Settings:

    • Adjust system sleep and hibernation settings to see if changing these parameters affects the stability of the system after waking up.
  6. Monitoring Tools:

    • Use system monitoring tools to check GPU temperature and performance. Overheating may contribute to instability after sleep/hibernation.

Reporting the Issue:

  • Consider reporting the bug to the operating system or GPU manufacturer. Provide details about your system configuration, the steps to reproduce the issue, and any relevant error messages.

This bug may impact users relying on systems with dedicated graphics, and applying the suggested workarounds can help mitigate the problem until a comprehensive solution is provided by the software or hardware vendors.