Skip to content

galp5: fails to remain suspended for more than four minutes on battery power #368

@curiousercreative

Description

@curiousercreative
  • Model: galp5 (1650 Ti dGPU)
  • BIOS version: 2022-10-23_2021-07-20_93c2809-99-gc82d2cd (master branch)
  • EC version: master (reproducible on 2021-07-20)
  • OS: Pop!_OS 22.04

Laptop successfully enters suspend (LED blinking green) but exits after about four minutes. Logs show that OS is not active during any of this time, something similar to this suspend bug.

Steps to reproduce

  1. Disconnect AC power
  2. sudo systemctl suspend
  3. Wait five minutes

Expected behavior

System should remain suspended (LED blinking green)

Actual behavior

System exits suspend after four minutes (LED solid green)

Additional info

Activity

crawfxrd

crawfxrd commented on Oct 25, 2022

@crawfxrd
Member

On b9b0e89 with EC master, I see SLP_S0# asserted most of the time (blinking power LED), but it sometimes (at least twice) deasserts (solid power LED) briefly and then asserts it again.

Appears to happen since upstreaming...af95561 has the behavior.

crawfxrd

crawfxrd commented on Oct 25, 2022

@crawfxrd
Member

What SSD are you using?

May somehow be caused by the SSD1 RTD3 config. Can you try with RTD3 config removed:

diff --git a/src/mainboard/system76/tgl-u/variants/galp5/overridetree.cb b/src/mainboard/system76/tgl-u/variants/galp5/overridetree.cb
index ce3ecc3a664e..445c41dbe172 100644
--- a/src/mainboard/system76/tgl-u/variants/galp5/overridetree.cb
+++ b/src/mainboard/system76/tgl-u/variants/galp5/overridetree.cb
@@ -21,12 +21,6 @@ chip soc/intel/tigerlake
                        # PCIe PEG0 x4, Clock 0 (SSD1)
                        register "PcieClkSrcUsage[0]" = "0x40"
                        register "PcieClkSrcClkReq[0]" = "0"
-                       chip soc/intel/common/block/pcie/rtd3
-                               register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D14)" # SSD1_PWR_DN#
-                               register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)" # GPP_H0_RTD3
-                               register "srcclk_pin" = "0" # SSD1_CLKREQ#
-                               device generic 0 on end
-                       end
                end
                device ref north_xhci on # J_TYPEC2
                        register "UsbTcPortEn" = "1"
curiousercreative

curiousercreative commented on Oct 25, 2022

@curiousercreative
Author

What SSD are you using?

@crawfxrd Samsung 980 1TB (144d:a809)

curiousercreative

curiousercreative commented on Oct 25, 2022

@curiousercreative
Author

Can you try with RTD3 config removed

@crawfxrd no difference with that patch applied, firmware flashed and system power cycled.

curiousercreative

curiousercreative commented on Nov 11, 2022

@curiousercreative
Author

@crawfxrd stumbled upon an interesting tidbit: when I have my USB-C headset (Pixel wired earbuds) connected to the TB4 port (left side, USB-PD on my galp5), the machine remains suspended. If I disconnect the headset, it'll take about four minutes to go from blinking green to solid green. If I reconnect the headset, it'll immediately go back to blinking green.

curiousercreative

curiousercreative commented on Nov 12, 2022

@curiousercreative
Author

Similar findings, passive USB-C to USB-A adapters do the trick as well. I tested both a 2.0 and 3.0 adapter with nothing on the other end. So I'd guess that anything connected to that port will keep suspend working.

crawfxrd

crawfxrd commented on Nov 18, 2022

@crawfxrd
Member

Testing on the latest commit (5f1ef17), I do not see the issue on either my dev unit or the newer batch unit that customers should have.

curiousercreative

curiousercreative commented on Nov 20, 2022

@curiousercreative
Author

Nice, I'll test on mine

curiousercreative

curiousercreative commented on Nov 21, 2022

@curiousercreative
Author

@crawfxrd after rebasing #365, my galp5 remains in suspend on battery power, so let's close this for now. Thanks very much for your help.

curiousercreative

curiousercreative commented on Nov 21, 2022

@curiousercreative
Author

I spoke too soon. While suspend with lid open works fine, lid closed continues to exit suspend after the same four minutes as previously. Can you test your unit for lid close please @crawfxrd ?

crawfxrd

crawfxrd commented on Nov 22, 2022

@crawfxrd
Member

I retested both on b337ac6 and don't see the issue. They remained in S0ix for 10 minutes before I woke them.

curiousercreative

curiousercreative commented on Nov 22, 2022

@curiousercreative
Author

@crawfxrd aha, I had rebased coreboot on master rather than system76. Rebased, re-flashed and remaining S0ix more than four minutes when lid closed or open. Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @curiousercreative@crawfxrd

        Issue actions

          galp5: fails to remain suspended for more than four minutes on battery power · Issue #368 · system76/firmware-open