Method of controlling power-on options
By using hotkey detection and boot option judgment programs, the computer boot options are automatically controlled, solving the problem of inconvenience in manual operation in existing technologies, and realizing flexible boot option adjustment and efficient system management.
Patent Information
- Application Number
- CN202411713095.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technology, users need to manually press a key to enter the BIOS settings page to modify boot options during the computer startup process, which is time-consuming and inconvenient.
By using hotkey detection and boot option judgment programs, the system automatically controls the power-on or power-off of the storage device, avoiding manual operation and restarts.
Users do not need to enter the BIOS page for complex settings, and can flexibly adjust boot options during the boot process, saving operation time and improving operation convenience and system management efficiency.
Smart Images

Figure CN122111519A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to device startup control technology, and in particular to a method for controlling startup options by detecting hotkeys to determine startup options. Background Technology
[0002] In existing technology, when a computer boots up to a certain stage, the user can enter the BIOS setup menu by pressing keys such as DEL, ESC, or F12. These keys allow the user to access the BIOS setup page, thereby enabling advanced system settings.
[0003] However, such operations usually require users to manually press keys during the boot process to modify the relevant options. For example, if a user wants to prevent the system from booting from a specific USB device, they typically need to enter the BIOS settings page, modify the relevant options, and restart the system for it to operate according to the modified settings after restarting. This process not only requires manual operation but also waiting for the system to complete restarting, resulting in time consumption and operational inconvenience. Summary of the Invention
[0004] In some embodiments, a method for controlling power-on options includes: executing a hotkey detection program and executing a power-on option determination program. The hotkey detection program includes: detecting whether a hotkey signal is triggered and, when the hotkey signal is detected to be triggered, setting a variable to a first value. The power-on option determination program includes: reading the variable and, when the variable is read to be the first value, disabling a device from powering on via a storage device connected to a first input / output interface of the device.
[0005] In some embodiments, the hotkey detection program further includes setting the variable to a second value when no hotkey signal is detected. The power-on option determination program further includes allowing the device to power on via the storage device connected to the first input / output interface of the device when the variable is read as the second value.
[0006] In some embodiments, the power-on option determination procedure further includes: when the variable cannot be read, allowing the device to power on via the storage device connected to the first input / output interface of the device.
[0007] In some embodiments, the hotkey detection program further includes: detecting whether a second hotkey signal is triggered and, when the second hotkey signal is detected to be triggered, setting a second variable to a third value. The power-on option determination program further includes: reading the second variable and, when the second variable is read to be the third value, disabling the device from powering on a storage device connected to a second input / output interface of the device.
[0008] In some embodiments, the hotkey detection program further includes setting the second variable to a fourth value when no second hotkey signal is detected. The power-on option determination program further includes allowing the device to power on via the storage device connected to the second input / output interface of the device when the second variable is read as the fourth value.
[0009] In some embodiments, a method for controlling power-on options includes: executing a hotkey detection program and executing a power-on option determination program. The hotkey detection program includes: detecting whether a hotkey signal is triggered and, when the hotkey signal is detected to be triggered, setting a variable to a first value. The power-on option determination program includes: reading the variable and, when the variable is read to be the first value, allowing a device to power on via a storage device connected to a first input / output interface of the device.
[0010] In some embodiments, the hotkey detection program further includes setting the variable to a second value when no hotkey signal is detected. The power-on option determination program further includes disabling the device from powering on via the storage device connected to the first input / output interface of the device when the variable is read as the second value.
[0011] In some embodiments, the power-on option determination procedure further includes: when the variable cannot be read, prohibiting the device from powering on the storage device connected to the first input / output interface of the device.
[0012] In some embodiments, the hotkey detection program further includes: detecting whether a second hotkey signal is triggered and, when the second hotkey signal is detected to be triggered, setting a second variable to a third value. The power-on option determination program further includes: reading the second variable and, when the second variable is read to be the third value, allowing the device to power on via a storage device connected to a second input / output interface of the device.
[0013] In some embodiments, the hotkey detection program further includes setting the second variable to a fourth value when no second hotkey signal is detected. The power-on option determination program further includes disabling the device from powering on via the storage device connected to the second input / output interface of the device when the second variable is read as the fourth value.
[0014] The following detailed description of the features and advantages of the present invention is sufficient to enable anyone skilled in the art to understand the technical content of the present invention and implement it accordingly. Based on the content disclosed in this specification, the claims and the accompanying drawings, anyone skilled in the art can easily understand the relevant objectives and advantages of the present invention. Attached Figure Description
[0015] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, wherein:
[0016] Figure 1 A flowchart illustrating one embodiment of a method for controlling power-on options;
[0017] Figure 2 A flowchart of one embodiment of a hotkey detection program;
[0018] Figure 3 A flowchart of one embodiment of the boot option determination procedure; and
[0019] Figure 4 This is a flowchart of another embodiment of the boot option determination procedure. Detailed Implementation
[0020] Before the invention is described in detail, it should be noted that similar elements are represented by the same numbers in the following description.
[0021] Please see Figure 1 . Figure 1 This is a flowchart of one embodiment of a method for controlling power-on options. First, a hotkey detection procedure is executed (step S01). Figure 2 This is a flowchart of one embodiment of a hotkey detection program. Please refer to [link / reference]. Figure 2 The hotkey detection procedure includes: detecting whether a hotkey signal is triggered (step S011) and setting a variable to a first value when a hotkey signal is detected to be triggered (step S012).
[0022] In some embodiments, the method of controlling boot options is applicable to a device, and the method of controlling boot options is performed by a firmware of the device. In some embodiments, the device to which the method of controlling boot options is applicable may be, but is not limited to, a tablet computer, a personal computer, a laptop computer, or a server. In some embodiments, the firmware of the device performing the method of controlling boot options may be, but is not limited to, a Basic Input / Output System (BIOS).
[0023] In some embodiments, in step S012, when the device firmware detects that a hotkey signal has been triggered and sets a variable to a first value, the variable is stored in the device firmware's storage unit. In some embodiments, the device firmware's storage unit may be a volatile storage medium, a non-volatile storage medium, or a combination thereof. Volatile storage media include, for example, random access memory (RAM), such as static random access memory (SRAM) or dynamic random access memory (DRAM). Non-volatile storage media include, for example, read-only memory (ROM), such as programmable read-only memory (PROM), erasable rewritable read-only memory (EPROM), electronically erasable rewritable read-only memory (EEPROM), programmable read-only memory (OTPROM), or flash memory. The type of storage unit for the device firmware is not limited herein.
[0024] In some embodiments, the hotkey signal can be received externally, such as by receiving a signal that the hotkey has been pressed through a device, or by receiving a signal that represents the hotkey being pressed through a network.
[0025] In some embodiments, a hotkey is a single key or a combination of multiple keys. In some embodiments, a hotkey may be, but is not limited to, the DEL key, the ESC key, or the F12 key.
[0026] Please see Figure 1 After the hotkey detection procedure is completed (i.e., step S01), the boot option judgment procedure is executed (step S02). Figure 3 This is a flowchart of one embodiment of the boot option determination procedure. Please refer to [link / reference]. Figure 3 The power-on option determination procedure includes: reading a variable (step S021) and, when the variable is read as the first value, disabling the device from powering on via the storage device connected to the first input / output interface of the device (step S022).
[0027] In some embodiments, the first input / output interface may be, but is not limited to, an Advanced Technology Adapter (ATA) interface, a Serial ATA (SATA) interface, a Serializable SCSI (SAS) interface, a SATA Express interface, an M.2 interface, a PCI Express (PCIE) interface, a Universal Serial Bus (USB) interface, or a Mini DisplayPort interface. Corresponding to the first input / output interface, in some embodiments, the storage device may be, but is not limited to, an ATA device, a SATA device, a SAS device, a SATA Express device, an M.2 device, a PCIE device, a USB device, or a Mini DisplayPort device. In some embodiments, the storage device may be, but is not limited to, a hard disk drive (HDD), a solid-state drive (SSD), a hybrid solid-state drive, or a USB flash drive.
[0028] It should be specifically noted that in step S022, the device is only prevented from being powered on by the storage device connected to the first input / output interface of the device, rather than the first input / output interface of the device being de-energized or rendered unusable.
[0029] Please see Figure 2 In some embodiments, the hotkey detection procedure further includes: setting a variable to a second value when no hotkey signal is detected (step S013).
[0030] Please see Figure 3 In some embodiments, the power-on option determination procedure further includes: when the variable is read to be a value other than the first value, allowing the device to power on via the storage device connected to the first input / output interface of the device (step S023). In some embodiments, the power-on option determination procedure further includes: when the variable is read to be a second value, allowing the device to power on via the storage device connected to the first input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when no variable is read, allowing the device to power on via the storage device connected to the first input / output interface of the device.
[0031] It should be specifically noted that when the hotkey detection procedure includes step S013, the value of the variable read in step S021 is the second value when no hotkey signal is detected. When the hotkey detection procedure does not include step S013, the value of the variable will not be read in step S021 when no hotkey signal is detected. However, regardless of whether the value of the variable read in step S021 is the second value, or whether the value of the variable cannot be read in step S021, the variable is not the first value, thus meeting the condition of step S023. In other words, regardless of whether the hotkey detection procedure includes step S013, the device will be allowed to power on via the storage device connected to the first input / output interface of the device (i.e., step S023) when no hotkey signal is triggered.
[0032] In some embodiments, the device firmware includes a menu. In some embodiments, the device firmware menu includes multiple power-on options. Each power-on option corresponds to a specific input / output interface (I / O interface) included in the device. In some embodiments, when a power-on option is set to On or Enable, the device firmware allows the device to power on via a storage device connected to the I / O interface corresponding to the power-on option. When a power-on option is set to Off or Disable, the device firmware prevents the device from powering on via a storage device connected to the I / O interface corresponding to the power-on option. In some embodiments, the device firmware menu includes power-on priority information. In some embodiments, the device firmware determines the power-on priority of the device based on the power-on priority information. In some embodiments, the device firmware includes a user interface (UI). In some embodiments, a user can configure the power-on options and modify the power-on priority information through the user interface.
[0033] In some embodiments, in step S022, when the variable is read as a first value, the device firmware directly prevents the device from booting via the storage device connected to the first input / output interface by setting the boot option corresponding to the first input / output interface to off or disabled. In step S023, when the variable is read as a value other than the first value, the device firmware directly enables the device to boot via the storage device connected to the first input / output interface by setting the boot option corresponding to the first input / output interface to on or available for use. In other words, the device firmware achieves the purpose of preventing or allowing the device to boot via the storage device connected to the first input / output interface through the boot option function inherent in the firmware itself. For example, assuming the firmware is a BIOS and the first input / output interface is a USB interface, when the BIOS reads the variable as the first value, the BIOS directly prevents the device from booting via the storage device connected to the USB interface by setting the boot option corresponding to the USB interface to off or disabled. If the boot priority information at this time determines the device boot priority in the order of USB interface, M.2 interface, PCIe interface, and SATA interface, since the USB interface is disabled, the device will skip the USB interface and first attempt to boot via the M.2 interface, regardless of whether a storage device is connected to the USB interface. When the BIOS reads a variable that is not the first value, the BIOS will directly enable or make available the boot option corresponding to the USB interface, allowing the device to boot via the storage device connected to the USB interface. If the boot priority information at this time determines the device boot priority in the order of USB interface, M.2 interface, PCIe interface, and SATA interface, since the USB interface is enabled, the device will first attempt to boot via the USB interface.
[0034] In some embodiments, the firmware of the apparatus for performing the method of controlling power-on options includes dual BIOS. In some embodiments, one of the dual BIOSes disables the device from powering on a storage device connected to a first input / output interface of the device. The other of the dual BIOSes allows the device to power on a storage device connected to the first input / output interface of the device.
[0035] In some embodiments, in step S022, when the variable is read as a first value, the firmware of a device containing dual BIOS will select to use a BIOS that prohibits the device from booting via a storage device connected to the first input / output interface of the device to boot the device, thereby preventing the device from booting via the storage device connected to the first input / output interface of the device. In step S023, when the variable is read as a value other than the first value, the firmware of a device containing dual BIOS will select to use a BIOS that allows the device to boot via a storage device connected to the first input / output interface of the device to boot the device, thereby allowing the device to boot via the storage device connected to the first input / output interface of the device. In other words, the device firmware achieves the purpose of prohibiting or allowing the device from booting via a storage device connected to the first input / output interface of the device through the selection of the BIOS. For example, assuming the firmware contains dual BIOS and the first input / output interface is a USB interface, when the firmware reads the variable as the first value, it will select to use a BIOS that prohibits the device from booting via a storage device connected to the USB interface of the device to boot the device, thereby preventing the device from booting via the storage device connected to the USB interface of the device. If the boot priority information at this time determines the device boot priority in the following order: USB interface, M.2 interface, PCIe interface, and SATA interface, then because the BIOS used by the device disables the USB interface, the device will skip the USB interface and first attempt to boot via the M.2 interface, regardless of whether a storage device is connected to the USB interface. When the firmware reads a variable that is not the first value, it will select the BIOS that allows the device to boot via the storage device connected to the device's USB interface. Assuming the boot priority information at this time determines the device boot priority in the following order: USB interface, M.2 interface, PCIe interface, and SATA interface, since the BIOS used by the device allows the use of the USB interface, the device will first attempt to boot through the USB interface. In other words, during the boot process, after the device determines the interface to be used for booting based on the current boot priority information, and before starting to use the determined interface for booting, it reads the variables stored in the device's firmware to selectively execute the determined interface for booting.
[0036] In some embodiments, the hotkey detection procedure further includes: detecting whether a second hotkey signal is triggered and setting a second variable to a third value when the second hotkey signal is detected to be triggered. In some embodiments, the power-on option determination procedure further includes: reading the second variable and, when the second variable is read to be a third value, prohibiting the device from powering on via the storage device connected to the second input / output interface of the device. That is, in some embodiments, the method for controlling the power-on option can detect multiple sets of hotkeys and, based on the results of detecting multiple sets of hotkeys, prohibit the device from powering on via the storage device connected to multiple input / output interfaces of the device.
[0037] In some embodiments, when the device firmware detects that a second hotkey signal has been triggered and sets a second variable to a third value, the second variable is stored in the device firmware's storage unit. In some embodiments, the second hotkey signal may be received externally, such as receiving a signal indicating that the second hotkey has been pressed through the device, or receiving a signal representing the pressing of the second hotkey through a network. In some embodiments, the second hotkey is a single key or a combination of multiple keys. In some embodiments, the second hotkey may be, but is not limited to, the DEL key, the ESC key, or the F12 key. In some embodiments, the second input / output interface may be, but is not limited to, an ATA interface, a SATA interface, a SAS interface, a SATA Express interface, an M.2 interface, a PCIe interface, a USB interface, or a Mini DisplayPort interface.
[0038] In some embodiments, the hotkey detection program further includes setting a second variable to a fourth value when no second hotkey signal is detected.
[0039] In some embodiments, the power-on option determination procedure further includes: when the second variable is read as a value other than a third value, allowing the device to power on via the storage device connected to the second input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when the second variable is read as a fourth value, allowing the device to power on via the storage device connected to the second input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when the second variable cannot be read, allowing the device to power on via the storage device connected to the second input / output interface of the device.
[0040] In some embodiments, when the second variable is read as a third value, the device firmware directly prevents the device from powering on via the storage device connected to the second input / output interface by setting the power-on option corresponding to the second input / output interface to off or disabled. When the second variable is read as a value other than the third value, the device firmware directly enables the device from powering on via the storage device connected to the second input / output interface by setting the power-on option corresponding to the second input / output interface to on. In other words, the device firmware achieves the purpose of preventing or allowing the device from powering on via the storage device connected to the second input / output interface through the power-on option function inherent in the firmware itself.
[0041] In some embodiments, when the second variable is read as a third value, the firmware of a device with dual BIOS will select to use a BIOS that prohibits the device from booting from a storage device connected to the second input / output interface of the device, thereby preventing the device from booting from the storage device connected to the second input / output interface of the device. When the second variable is read as a value other than the third value, the firmware of a device with dual BIOS will select to use a BIOS that allows the device to boot from a storage device connected to the second input / output interface of the device, thereby allowing the device to boot from the storage device connected to the second input / output interface of the device. In other words, the device firmware achieves the purpose of prohibiting or allowing the device from booting from a storage device connected to the second input / output interface of the device through the selection of the BIOS.
[0042] Figure 4 A flowchart illustrating another embodiment of the boot option determination procedure. Please refer to [link / reference]. Figure 4 In some embodiments, the power-on option determination procedure includes: when a variable is read as a first value, allowing the device to power on via a storage device connected to a first input / output interface of the device (step S024).
[0043] In some embodiments, the power-on option determination procedure further includes: when the variable is read to be a value other than the first value, preventing the device from powering on via the storage device connected to the first input / output interface of the device (step S025). In some embodiments, the power-on option determination procedure further includes: when the variable is read to be a second value, preventing the device from powering on via the storage device connected to the first input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when no variable is read, preventing the device from powering on via the storage device connected to the first input / output interface of the device.
[0044] In some embodiments, in step S024, when the variable is read as a first value, the device firmware directly enables the device to boot from the storage device connected to the first input / output interface by setting the boot option corresponding to the first input / output interface to "on". In step S025, when the variable is read as a value other than the first value, the device firmware directly disables the device from booting from the storage device connected to the first input / output interface by setting the boot option corresponding to the first input / output interface to "off" or "disable". In other words, the device firmware achieves the purpose of allowing or disabling the device from booting from the storage device connected to the first input / output interface through the boot option function inherent in the firmware itself. For example, assuming the firmware is a BIOS and the first input / output interface is a USB interface, when the BIOS reads the variable as the first value, the BIOS directly enables the device from booting from the storage device connected to the USB interface by setting the boot option corresponding to the USB interface to "on". If the boot priority information currently determines the device boot priority as USB, M.2, PCIe, and SATA interfaces in that order, the device will first attempt to boot via the USB interface since the USB interface is already enabled. If the BIOS reads a variable that is not the first priority, it will directly disable the boot option corresponding to the USB interface to prevent the device from booting via the storage device connected to the USB interface. Alternatively, if the boot priority information currently determines the device boot priority as USB, M.2, PCIe, and SATA interfaces in that order, the device will skip the USB interface and first attempt to boot via the M.2 interface since the USB interface is disabled, regardless of whether a storage device is connected to it.
[0045] In some embodiments, in step S024, when the variable is read as a first value, the firmware of a device containing dual BIOS will select to power on the device using a BIOS that allows the device to power on via a storage device connected to the first input / output interface of the device. In step S025, when the variable is read as a value other than the first value, the firmware of a device containing dual BIOS will select to power on the device using a BIOS that prohibits the device from powering on via a storage device connected to the first input / output interface of the device. In other words, the device firmware achieves the purpose of allowing or prohibiting the device from powering on via a storage device connected to the first input / output interface of the device through the selection of the BIOS. For example, assuming the firmware contains dual BIOS and the first input / output interface is a USB interface, when the firmware reads the variable as the first value, it will select to power on the device using a BIOS that allows the device to power on via a storage device connected to the USB interface of the device. If the boot priority information determines the device boot priority in the following order: USB interface, M.2 interface, PCIe interface, and SATA interface, then since the BIOS of the device allows the use of the USB interface, the device will first attempt to boot via the USB interface during the boot process. If the firmware reads a variable that is not the first value, it will choose to use a BIOS that prohibits the device from booting via a storage device connected to the device's USB interface. Alternatively, if the boot priority information determines the device boot priority in the following order: USB interface, M.2 interface, PCIe interface, and SATA interface, then since the BIOS of the device disables the USB interface, regardless of whether a storage device is connected to the USB interface, the device will skip the USB interface and first attempt to boot via the M.2 interface.
[0046] In some embodiments, the power-on option determination procedure further includes: when the second variable is read as a third value, allowing the device to power on via a storage device connected to a second input / output interface of the device. That is, in some embodiments, the method for controlling the power-on option may allow the device to power on via a storage device connected to multiple input / output interfaces of the device based on the results of detecting multiple sets of hotkeys.
[0047] In some embodiments, the power-on option determination procedure further includes: when the second variable is read as a value other than a third value, preventing the device from powering on via the storage device connected to the second input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when the second variable is read as a fourth value, preventing the device from powering on via the storage device connected to the second input / output interface of the device. In some embodiments, the power-on option determination procedure further includes: when the second variable cannot be read, preventing the device from powering on via the storage device connected to the second input / output interface of the device.
[0048] In some embodiments, when the second variable is read as a third value, the device firmware directly enables the device to power on via a storage device connected to the second input / output interface by setting the power-on option corresponding to the second input / output interface to "on". When the second variable is read as a value other than the third value, the device firmware directly disables the device from powering on via a storage device connected to the second input / output interface by setting the power-on option corresponding to the second input / output interface to "off" or "disable". In other words, the device firmware achieves the purpose of enabling or disabling the device from powering on via a storage device connected to the second input / output interface through the power-on option function inherent in the firmware itself.
[0049] In some embodiments, when the second variable is read as a third value, the firmware of a device with dual BIOS will select to boot the device using a BIOS that allows the device to boot from a storage device connected to the second input / output interface of the device. When the second variable is read as a value other than the third value, the firmware of a device with dual BIOS will select to boot the device using a BIOS that prohibits the device from booting from a storage device connected to the second input / output interface of the device. In other words, the device firmware achieves the purpose of allowing or prohibiting the device from booting from a storage device connected to the second input / output interface of the device through the selection of the BIOS.
[0050] In summary, by implementing the method for controlling boot options in any embodiment, users can flexibly select the device's boot option during startup by pressing a designated hotkey. Users do not need to enter the device's BIOS page for complex settings or restart the system. This feature greatly improves user convenience, especially in situations where time is limited or frequent changes to the boot device are required. It allows for real-time control of boot options, saving operation time. Compared to traditional methods, users do not need to make prior settings, and even if they forget the current state of the boot option during startup, they can quickly adjust it, avoiding the tedious operation of multiple restarts or entering the settings page.
[0051] Furthermore, the method for controlling the power-on option in any embodiment not only improves the flexibility of user operation but also reduces the error rate during use. Users can decide at any time whether to enable or disable the device's power-on function based on a specific input / output interface connected to the device, according to their needs. This design not only facilitates daily operation but also provides more flexibility in emergency situations, significantly improving the efficiency and reliability of system management.
[0052] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for controlling power-on options, characterized in that, Include: Execute a hotkey detection program, which includes: Detect whether a hotkey signal has been triggered; and When the hotkey signal is detected to be triggered, a variable is set to a first value; and Execute a boot option determination program, which includes: Read the variable; and When the variable is read as the first value, a device is prevented from powering on a storage device connected to a first input / output interface of the device.
2. The method for controlling the power-on option according to claim 1, characterized in that, This hotkey detection program also includes: When no hotkey signal is detected to be triggered, set the variable to a second value; The boot option determination program further includes: When the variable is read as the second value, the device is allowed to power on via the storage device connected to the first input / output interface of the device.
3. The method for controlling power-on options according to claim 2, characterized in that, The boot option determination program further includes: When the variable cannot be read, the device is allowed to power on via the storage device connected to the first input / output interface of the device.
4. The method for controlling the power-on option according to claim 3, characterized in that, This hotkey detection program also includes: Detect whether a second hotkey signal has been triggered; and When the second hotkey signal is detected to be triggered, a second variable is set to a third value; The boot option determination program further includes: Read the second variable; and When the second variable is read as the third value, the device is prevented from powering on a second storage device connected to a second input / output interface of the device.
5. The method for controlling the power-on option according to claim 4, characterized in that, This hotkey detection program also includes: When the second hotkey signal is not detected to be triggered, the second variable is set to a fourth value; The boot option determination program further includes: When the second variable is read as the fourth value, the device is allowed to power on via the second storage device connected to the second input / output interface of the device.
6. A method for controlling power-on options, characterized in that, Include: Execute a hotkey detection program, which includes: Detect whether a hotkey signal has been triggered; and When the hotkey signal is detected to be triggered, a variable is set to a first value; and Execute a boot option determination program, which includes: Read the variable; and When the variable is read as the first value, a device is allowed to power on via a storage device connected to a first input / output interface of the device.
7. The method for controlling power-on options according to claim 6, characterized in that, This hotkey detection program also includes: When no hotkey signal is detected to be triggered, set the variable to a second value; The boot option determination program further includes: When the variable is read as the second value, the device is prevented from powering on via the storage device connected to the first input / output interface of the device.
8. The method for controlling power-on options according to claim 7, characterized in that, The boot option determination program further includes: If the variable cannot be read, the device is prohibited from powering on via the storage device connected to the first input / output interface of the device.
9. The method for controlling power-on options according to claim 8, characterized in that, This hotkey detection program also includes: Detect whether a second hotkey signal has been triggered; and When the second hotkey signal is detected to be triggered, a second variable is set to a third value; The boot option determination program further includes: Read the second variable; and When the second variable is read as the third value, the device is allowed to power on via a second storage device connected to a second input / output interface of the device.
10. The method for controlling power-on options according to claim 9, characterized in that, This hotkey detection program also includes: When the second hotkey signal is not detected to be triggered, the second variable is set to a fourth value; The boot option determination program further includes: When the second variable is read as the fourth value, the device is prevented from powering on via the second storage device connected to the second input / output interface of the device.