How do I restore the "Power on after fail" option in the EFI settings when building MrChromeboxs' firmware?

I have an Acer Spin 512 (R851TN)

I have been using Mr. Chromeboxes’ firmware and loving it.

I appreciated the ability to disable the computer from powering on when plugged into power or opening the lid by using the “Power on after fail” setting in the EFI.

However, that option is gone now after a recent update, but I would like to add it back.

I am trying to build the firmware myself and have found the config files for the board, but I am not sure the next steps.

I’ve explored “make menuconfig” and I don’t see an option that appears to relate to “Power on after fail”.

I even tried asking CoPilot, but that didn’t get me very far.

If someone could point me in the right direction, I would appreciate it.

it’s not a configurable option OOTB.

you would need to add the option to your board/baseboard’s cfr.c, like Chromeboxes do. Look at Fizz for an example

not sure why people think asking a LLM for anything firmware related is a good idea. They’re confidently wrong about 85% of the time.

Thanks,

I think I am on the right track now.

Before I compile and then brick my device with bad firmware, could you just let me know if I added this correctly?

I believe I only needed to add the override, correct?

That override I put in must not be correct, as I was able to build and flash the firmware, but there is no option showing in the EFI to enable or disable it.

the override just sets the default state, it doesn’t create/show the option in the UI – you need to add the option to one of the forms below like the other options