Comments (29)
I've seen this happen on C740 after the battery is unplugged. Seems to be normal if that's all it is for you (maybe after the battery runs all the way down?).
from firmware.
It never happen with stock firmware + Legacy RW. Note that with stock firmware + Legacy RW sometimes when you plug the power adapter when the Chromebook is completely off, the power led switch on (like the Chromebook is starting) but switch off after a second.
from firmware.
Could it be related to this that is maybe not working, or not as expected (see #15 (comment)), with the full rom ?
https://chromium.googlesource.com/chromiumos/platform/ec/+/0596b551dfd45dd4af2e8f7a0baad1141d25bfb8
from firmware.
Well, there does seem to be an EC issue on HSW. The EC firmware, the source to which you link, is unmodified, however. Custom firmwares are using the RO EC firmware that was already present. It is not altered when the main firmware is flashed. This is something we are looking into (also to fix the keyboard so that it doesn't require a special driver for Windows/OS X), but currently, it is the same as the stock RO EC firmware. I have confirmed that we can recompile and reload the EC firmware safely w/o bricking, but we haven't attempted fixes of it yet. :/
from firmware.
It will be very great if with can update the EC firmware but that's don't what I meant. For this problem, since with Legacy RW and Full Rom the EC firmware is the same and the Legacy RW work perfectly it can not be a EC firmware problem. I meant that, maybe, the Full Rom don't interpret correctly the EC firmware commands for this case for the Falco at least. Maybe there is something "swaped" that explain this behaviour ?
With Full ROM
- Plug AC Power in S4/S5 => Start (sometimes) #18
- Open Lid in S4/S5 => Momentary power on, then off #15
With Stock + Legacy RW
- Plug AC Power in S4/S5 => Momentary power on, then off (sometimes)
- Open Lid in S4/S5 => Start
I have not done extensive testing of this issue on Stock + Legacy RW. (#15 (comment))
By the way, as I say there, there is no problem with the Stock + Legacy RW behaviour ;)
from firmware.
Let's imagine that there is something different (bug ?) in the EC firmware of the Falco that make it send the wrong command when you plug the AC power or open the lid that is "fixed" by the stock firmware. That could explain this behaviour maybe ? Well if that the case flashing an updated EC firmware should fix the problem with the Full Rom too.
from firmware.
Probably, yeah. All the HSW books have some issue . . . :/
Like I said, something we are looking into . . .
from firmware.
Like I said, something we are looking into . . .
Ok I will wait, it's just some paper cut ;)
Are you sharing the infos to compile and flash the EC firmware somewhere ? I want to make some changes to the fan handling.
from firmware.
Are you sharing the infos to compile and flash the EC firmware somewhere ? I want to make some changes to the fan handling.
I don't know how to change it. Are you familiar with ectool? If not, it's something you should look into first . . .
from firmware.
I meant just sharing the infos to compile and flash the EC firmware. I already know (I think) what to change for the fan handling. For now I use a systemd timer that trigger every 5s a little script to control the fan with ectool according to the temps. That work pretty well, my Falco is always loud by default and very very quiet with my script, but a proper handling directly in the firmware will be better.
from firmware.
Okay. First, you'll need to set up the Chromium chroot to compile EC firmwares. You'll want to find the latest EC source that was used to make a firmware for your board. That's probably this one:
https://chromium.googlesource.com/chromiumos/platform/ec/+/firmware-falco_peppy-4389.81.B
Once you make a firmware, you'll need to use flashrom to flash the EC firmware and only the RW portion. This requires very specific options. Then you reboot the EC into the RW firmware to load it. You don't touch the RO EC firmware since Custom Firmwares don't reboot the EC from RO to RW like Stock firmware does. This way, you can still boot if your EC firmware is screwy without needing a debug servo board (like the kind Google Engineers have). I can get you all the commands for this process once you are able to make an EC firmware . . .
Just be aware that setting up the Chromium chroot is a very messy, intensive process and that it is very possible to flash the EC firmware improperly. The only way to recover should you mess up this process is with a Debug Servo. The chip that holds the EC firmware is not clippable to my knowledge. I'm just saying that I'm not sure it's worth it just for a fan issue if you aren't really familiar with coding firmware . . .
from firmware.
The stock behavior is due to how depthcharge is implemented. On boot, depthcharge checks the lid state and switches off the system if it detects the lid is shut.
The way our firmwares behave now are more similar to the way a normal UEFI is set up. If we have our firmwares switch off the system while the lid is shut, it will break headless operation for those who use it (have the chromebook running with the lid shut and initiate a remote reboot).
The way depthcharge is implemented is completely non-standard, so we should not implement it the way stock does it.
from firmware.
@ReddestDream Sorry for the late answer, I was away. Thank you but it seem very complicated and like you said don't worth it just for the fan. Anyway I have my scripts that work perfectly. I just thought that was easy and safe when you said this
I have confirmed that we can recompile and reload the EC firmware safely w/o bricking
@coolstar Thanks for the explanation. The real question is why plug in the ac power trigger a boot sometime ? Do you know if it's it a EC firmware feature or a bug or something else ?
from firmware.
@Paviluf can you provide exact steps for how to reproduce this? Trying to do so with a Peppy but not having any luck
from firmware.
I just use the chromebook normally, power it off, close the lid, plug ac power and sometimes a boot is triggered. The thing is that appear to happen randomly. I even thought it was gone when you make me test a firmware but that re-happen a few days later. Maybe it happen more frequently when the battery is low, I don't know. I can make more tests if you want.
from firmware.
@Paviluf if the battery has fully drained, that is the expected behavior, since the EC will have lost power and will power on when it is restored via AC power
from firmware.
I never let it fully drained. I meant 10/15% when I said low battery.
from firmware.
Yeah. IDK. It might be an older RO EC firmware. Perhaps updating or at least switching to RW will fix it once we have all that working. I have not ever had it happen unless the battery is dead. I can't reproduce the turning-on-when-AC-is-plugged-in thing. :/
Turning back on after power failure isn't that unusual. I have seen it on other laptops.
@Paviluf Glad to hear it is sporadic/random. Kinda explains why I can't reproduce it . . .
from firmware.
I will try to find a pattern to reproduce the problem. I hope that ec firmware flash will be available soon :)
from firmware.
@Paviluf I have managed to reproduce this issue. You aren't crazy! :)
It happens randomly when plugged in with the lid shut. The battery must be somewhat discharged, but it need not be totally discharged.
I now remember having noticed this in the past, but just sort of ignoring it because I figured I bumped it. No. It's turning itself on.
from firmware.
You aren't crazy! :)
Yeah I knew that :D
from firmware.
Have you some news about fixing this bug or providing ec firmware flash ? Is there something I can do to help fixing it ?
Thanks !
from firmware.
No news ATM. I plan to do more EC firmware tests when I have time.
I also want to try to fix the keyboard behavior (also controlled by the EC) too so that it can work in Windows without a driver.
from firmware.
Ok thank you. If you want me to test some things not to risky I will be happy to do so :)
from firmware.
I am still looking into this. I've determined from the EC console that when a HSW book fails to fully wake up on lid open, there is a switch from G3 to S5, but the process of wakeup seems to end prematurely and the system ends up back in G3. On BDW and BYT, the process completes correctly and the device turns on fully (ends in S0). I'm still not sure what accounts for this difference in behavior. Back porting of several power and button related fixes (since the lid uses a power button event) from BDW has still not brought any improvement. At least I've ruled more out. :/
I /have/ figured out how to fix the keyboard. An update using a Software Sync-like system to update the EC firmware on HSW/BDW/BYT books is coming soon to bring the keyboard fix. :)
from firmware.
Thank you very much for your amazing work. It's awesome that will be able to update the EC firmware !
from firmware.
Checking closer, you're probably waking from hibernate -- unless you modified EC FW, falco EC will go to hibernate after 1 hour of off time w/ AC unplugged. A wake event (typically AC attach, lid open, power button press -- but I'm not sure exactly what we implemented on falco, it's so old) is then handled very similar to EC cold boot. Again, if you want to override this behavior, you'll probably want to pretend that SYSTEM_RESET_LEAVE_AP_OFF is set.
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-dev/NiaVZloW9Jw
Seem to be a feature finally ! It happen only after an hour so it's seem to be the intended behaviour.
from firmware.
Glad you could confirm that. Are you ready to close this issue? ;P
from firmware.
yes ;)
from firmware.
Related Issues (20)
- USB flash is not detected in boot after rewriting the FULL ROM
- Aleena - lost secure boot HOT 4
- "verify it contains a 64-bit UEFI OS" shows up 80% of the time HOT 3
- bugzzy no longer suspends as of 20240615 HOT 8
- Stuck on this screen when booting from USB drive HOT 2
- hp c1030 i7-10610u/16G,the screen don‘t adjust brightness in win11 after updated the new version"MrChromebox-2405 Release" HOT 5
- USB 3.0 add-on cards have issues with UAS/UASP under Samsung Chromebox Stumpy HOT 8
- HP 14 G5 Chromebooks - TianoCore "beeps" but doesn't "engage" HOT 4
- The ubuntu bootup drops into a initramfs prompt HOT 12
- kefka 2in1 hinge not detected HOT 9
- SD was detected once, never again HOT 4
- Wireless card issue on Pixelbook 2017 HOT 1
- Fan runs at full speed after power loss Asus Chromebox 3 CN65 (teemo) HOT 9
- [feature-request] Any chance to add support for Acer Spin 513 (model: LAZOR-FHYR) ? HOT 1
- Cannot power Acer Chromebox CXI3 with MrChromebox firmware with Windows 11 with Power delivery (USB Type C) HOT 3
- HP Chromebook 11A G6 EE turns on upon lid open or power cable plugged in even after full shutdown. HOT 7
- USB bakcup device failed to mount; cannot proceed. HOT 5
- UEFI Menu & Coreboot logo during boot shows only when USB C (Display port) monitor is connected otherwise blank HOT 4
- M.2 Wifi card slot doesn't work on BUDDY HOT 6
- CVE-2023-31315 sinkclose HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firmware.