sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.62k stars 389 forks source link

need to long press power button to wake up device (HP Elite x2 G3) #1559

Open yeahman45 opened 2 years ago

yeahman45 commented 2 years ago

I have installed brunch on HP Elite x2 G3 (specs here https://www.notebookcheck.net/HP-Elite-x2-1013-G3-i5-8350U-SSD-3k-2-in-1-Review.336734.0.html).

It works great except for waking up the device.

Once it sleeps, I need to long press the power button for 5-6 seconds for it to wake up and it takes 1 second for the screen to turn on.

The issue is sometimes if I press the power button for too long, the device restarts. (force reboot)

Is there a way to wake up the device by just single press the power button or any other keys like volume button?

Right now, if I single press the power button, the keyboard lights up (and turns off after a few seconds) but the device does not wake up.

On windows 10, it works fine; a single press turns the device on instantly. (from a deep sleep; battery drain is pretty much inexistent)

yeahman45 commented 2 years ago

anything I could try? what do I need to test and post to help make things advance?

tejasraman commented 2 years ago

Did you enable s3 suspend in brunch options? That may be why.

Are there any sleep modes in the BIOS (like S3, S0/Modern Standby, S1)? Try other modes if it is set to S0 or Modern Standby

Try S3 and kernel 5.15 on brunch. This is the best I can do until I get more info so.....

yeahman45 commented 2 years ago

Did you enable s3 suspend in brunch options? That may be why.

Are there any sleep modes in the BIOS (like S3, S0/Modern Standby, S1)? Try other modes if it is set to S0 or Modern Standby

Try S3 and kernel 5.15 on brunch. This is the best I can do until I get more info so.....

I have enabled suspend S3 and it seems to work but I need to test it longer. Thx man! Out of curiosity, why is it not enabled by default? Does it consume more battery?

Now I need to try solve bluetooth which does not seem to work.

tejasraman commented 2 years ago

S3 is a different power state where almost all system components except the RAM are powered off. Maybe Brunch was using hibernate as an alternative to S0 (what Win10 uses)?

FYI, S3 uses less power than S0

yeahman45 commented 2 years ago

thx for the explanation. seems to work well so far. my laptop does wake up when power button pressed or kyeboard button pressed or lid is open although there's some delay but I can live with that.

for bluetooth, no devices can be found via the UI but in crosh, this works : https://github.com/sebanc/brunch/issues/585

tejasraman commented 2 years ago

This is because windows was using S0 (which has less delay because it is a higher power state than S3) and Brunch was using hibernate (which is the lowest power state your pc can use) - it shouldn't hibernate by default ;) it doesn't on my older, secondary laptop (a repurposed Samsung Chromebook 3 running Brunch)p because it's past the AUE)