Skip to content

Commit ecc60e3

Browse files
committed
DasharoSystemFeaturesVfr.vfr: change DGPU disable UX
Signed-off-by: Filip Lewiński <[email protected]>
1 parent bcc778a commit ecc60e3

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesStrings.uni

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@
168168
#string STR_USB_PORTS_POWER_ON_WHEN_POWERED #language en-US "While System is On"
169169
#string STR_USB_PORTS_POWER_ALWAYS_ON #language en-US "Always On"
170170

171-
#string STR_DGPU_ENABLE_POWER_PROMPT #language en-US "Enable DGPU (Discrete GPU)"
172-
#string STR_DGPU_ENABLE_POWER_HELP #language en-US "If this option is disabled, the power to the Discrete GPU is disconnected completely"
171+
#string STR_DGPU_ENABLE_POWER_PROMPT #language en-US "Hybrid Graphics Mode"
172+
#string STR_DGPU_ENABLE_POWER_HELP #language en-US "Select NVIDIA Optimus to enable both GPUs and leave power management to the OS driver. Select iGPU only for maximum power saving. Note that HDMI and DP ports on the second USB-C port will not work with the DGPU off on Meteor Lake models."
173+
174+
#string STR_DGPU_ENABLE_POWER_NVIDIA_OPTIMUS #language en-US "NVIDIA Optimus"
175+
#string STR_DGPU_ENABLE_POWER_IGPU_ONLY #language en-US "iGPU Only"
173176

174177
#string STR_MEMORY_PROFILE_PROMPT #language en-US "Memory SPD Profile"
175178
#string STR_MEMORY_PROFILE_HELP #language en-US "This option selects memory profile applied to RAM modules.\n\n"

DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesVfr.vfr

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,15 @@ formset
398398
endif;
399399

400400
disableif ideqval FeaturesData.PowerMenuShowDGPUPower == 0;
401-
checkbox varid = FeaturesData.DGPUEnabled,
402-
prompt = STRING_TOKEN(STR_DGPU_ENABLE_POWER_PROMPT),
403-
help = STRING_TOKEN(STR_DGPU_ENABLE_POWER_HELP),
404-
flags = CHECKBOX_DEFAULT | RESET_REQUIRED,
405-
endcheckbox;
401+
oneof varid = FeaturesData.DGPUEnabled,
402+
questionid = DGPU_ENABLE_POWER_QUESTION_ID,
403+
prompt = STRING_TOKEN(STR_DGPU_ENABLE_POWER_PROMPT),
404+
help = STRING_TOKEN(STR_DGPU_ENABLE_POWER_HELP),
405+
flags = RESET_REQUIRED,
406+
407+
option text = STRING_TOKEN(STR_DGPU_ENABLE_POWER_NVIDIA_OPTIMUS), value = DGPU_ENABLED, flags = DEFAULT;
408+
option text = STRING_TOKEN(STR_DGPU_ENABLE_POWER_IGPU_ONLY), value = DGPU_DISABLED, flags = 0;
409+
endoneof;
406410
endif;
407411

408412
subtitle text = STRING_TOKEN(STR_EMPTY_STRING);

0 commit comments

Comments
 (0)