Repository navigation
powermenu: reboot into firmware setup from the power menu - #3877
Merged
Merged
Conversation
matthewyjiang
force-pushed
the
firmware-reboot-ux
branch
from
October 23, 2026 05:26
2ed1680 to
c890823
Compare
matthewyjiang
marked this pull request as ready for review
October 23, 2026 05:57
Member
|
/claude review |
Contributor
Claude reviewLooks good to merge. No issues found. |
dux-ci Bot
pushed a commit
that referenced
this pull request
Oct 23, 2026
port 2.0 (cherry picked from commit e50bb08)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Getting into UEFI setup today means rebooting and mashing F2/Del at the right moment, which many laptops make hard with fast boot. The power menu can now reboot straight into firmware setup.
F. It sits before the boot entries, matching the order in settings. Hold to confirm applies, and the action is not offered as the default selected action.systemctl reboot --firmware-setup, orloginctl reboot --firmware-setupon elogind (OpenRC, Artix, Gentoo, Void). It uses the same choicepowerManagerCommand()already makes. On an active local session logind allows this without a password.OsIndicationsSupportedEFI variable, the same bit logind checks. The script also needssystemctlorloginctl, and the action stays hidden on BSD. Legacy BIOS boots, firmware without the feature, and setups with no logind (seatd only) never see it. The check adds oneodcall to the existing startup script and nothing at idle.Known limits
systemctlnorloginctlcan set the firmware flag without also rebooting, soSessionService.reboot()cannot run afterwards the way it does for boot entries.systemctldies during a real shutdown it also exits non-zero, and clearing the flag then would undo the request.Local testing
systemctl reboot --firmware-setup --dry-runsets logind'sRebootToFirmwareSetupproperty to true. I cleared it afterwards.run-qml.py logicandrun-qml.py qtpass, the settings search index is regenerated, and the i18n term-variant check passes.Fin the power menu, and the machine rebooted straight into UEFI setup. The next boot was normal, andRebootToFirmwareSetupreadfalseafterwards.make lint-qmlpasses.Type of change
Related issues
Follows #3568.
Docs: duxlabs-dev/dux-docs#181
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsAI assistance was used to make this pr.