Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
curiousercreative opened this issue Oct 24, 2022 · 12 comments

Comments

@curiousercreative
Copy link

  • 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

@crawfxrd
Copy link
Member

crawfxrd commented Oct 25, 2022

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
Copy link
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
Copy link
Author

What SSD are you using?

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

@curiousercreative
Copy link
Author

Can you try with RTD3 config removed

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

@curiousercreative
Copy link
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
Copy link
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
Copy link
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
Copy link
Author

Nice, I'll test on mine

@curiousercreative
Copy link
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
Copy link
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
Copy link
Member

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

@curiousercreative
Copy link
Author

curiousercreative commented Nov 22, 2022

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants