Electronic device and method for controlling electronic device
By setting a controller in the electronic device to dynamically adjust the baseline value of the battery remaining reduction, the problem of the CPU being unable to detect the battery remaining is solved, and efficient power supply to external devices in the sleep state is achieved, extending the power supply time of the device.
Patent Information
- Application Number
- CN202510498167.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-04-23
- Filing Date
- 2025-04-21
- Publication Date
- 2025-10-24
AI Technical Summary
When the computer is in sleep mode, the CPU cannot detect the remaining battery level, resulting in an inability to continuously supply power to external devices, limiting the amount of power supplied.
By setting a controller in the electronic device, the reference value of the battery remaining reduction amount is dynamically adjusted, the power supply time in the sleep state is extended, and more power is ensured to be provided to external devices in the sleep state.
In sleep mode, the power supply capacity to external devices is increased, the power supply time of the device is extended, and the battery utilization efficiency is improved.
Smart Images

Figure CN120832002A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to an electronic device and a control method for an electronic device. BACKGROUND
[0002] As one of the standard specifications related to power management of a computer, there is ACPI (Advanced Configuration and Power Interface) (for example, refer to Patent Document 1). In ACPI, power states (S0 to S5) of a device are defined. The general power states defined in ACPI are as follows: in S0, the computer is in an operating state, in S1 and S2, the computer is in a standby state. In S3, the computer is in a sleep state, in S4, the computer is in a standby state. In S5, the computer is in a shutdown state. In addition, as a sleep state, there is a function called ModS (hereinafter, referred to as ModS) installed in the computer.
[0003] In a case where a function called AOU (Always on USB) is mounted on a computer, the computer is able to supply power to an external device such as a smartphone from a battery possessed by the computer via a USB (Universal Serial Bus).
[0004] Patent Document 1: Japanese Patent Application Publication No. 2023-047293.
[0005] In S4 or S5, when the remaining amount of the battery is less than a prescribed amount in a process in which the computer supplies power to the external device, in order to avoid the remaining amount of the battery from decreasing, the computer stops power supply based on AOU. In S4 and S5, power supply from the battery to the embedded controller of the computer is not stopped. Therefore, in the computer in which the embedded controller monitors the state of the battery, the embedded controller is able to detect the remaining amount of the battery in S4 and S5, and is able to continue AOU until the remaining amount of the battery is less than the prescribed amount.
[0006] However, in S4 and S5, power supply from the battery to the CPU (Central Processing Unit) of the computer is stopped. In the computer in which the CPU monitors the state of the battery, the CPU is unable to detect the remaining amount of the battery in S4 and S5. Therefore, in such a computer, power supply based on AOU is unable to be implemented in S4 and S5.
[0007] The amount of power that the battery can supply in the ModS is set by an OS (Operating System). For example, the amount of power is 5% of the capacity of the battery. When the amount of consumption of the battery in the ModS is 5%, the computer transitions from the ModS to the S4. Since the amount of power that the battery can supply in the ModS is small, the power that can be supplied by the AOU is limited in the computer that monitors the state of the battery. SUMMARY
[0008] An object of the present application is to provide an electronic device and a control method of an electronic device that can increase the amount of power supplied from a battery to an external device in a sleep state.
[0009] One aspect of the present application provides an electronic device including: a connector to which an external device is connected and that outputs power supplied from a battery to the external device; and a controller that changes a first reference value set in advance by an OS (Operating System) to a second reference value larger than the first reference value as an amount of reduction in a remaining amount of the battery from a first time to a second time, the first time being when the electronic device transitions from an active state to a sleep state in a state in which the external device is connected to the connector, the second time being when the electronic device transitions from the sleep state to a standby state in a state in which the external device is connected to the connector, the controller causing the electronic device to transition to the standby state when the amount of reduction in the remaining amount of the battery from the first time is the second reference value.
[0010] In one aspect of the present application, the electronic device can include a memory that stores a third reference value indicating a remaining amount of the battery when the output of the power to the external device is stopped in a mode of operation in which the power is output to the external device in a state in which the electronic device is in the active state or the sleep state, the controller detects a fourth reference value that is the remaining amount of the battery when the electronic device transitions from the active state to the sleep state, the fourth reference value being larger than the third reference value, the controller calculates the second reference value by calculating a difference between the fourth reference value and the third reference value, the remaining amount of the battery in the mode of operation is reduced after the first reference value is changed to the second reference value, and the controller stops the output of the power to the external device when the remaining amount of the battery becomes the third reference value.
[0011] In one aspect of the present application, in a case in which the external device is a media transfer protocol (MTP) device, the controller can change the first reference value to the second reference value.
[0012] One aspect of the present application provides a control method of an electronic device, the electronic device having a connector to which an external device is connected and which outputs power supplied from a battery to the external device, the control method of the electronic device comprising: changing a first reference value set in advance by an OS (Operating System) to a second reference value larger than the first reference value as an amount of decrease in a remaining amount of the battery from a first timing to a second timing, the electronic device being changed from an active state to a sleep state in a state where the external device is connected to the connector at the first timing, the electronic device being changed from the sleep state to a standby state at the second timing; and changing the electronic device to the standby state when the amount of decrease in the remaining amount of the battery from the first timing is the second reference value.
[0013] According to the above aspect of the present application, it is possible to increase the amount of power supplied from the battery to the external device in the sleep state. BRIEF DESCRIPTION OF DRAWINGS
[0014] Figure 1 is a diagram showing a hardware configuration example of the electronic device of the embodiment.
[0015] Figure 2 is a diagram showing a functional configuration example of the electronic device of the embodiment.
[0016] Figure 3 is a diagram showing power states of the electronic device of the embodiment.
[0017] Figure 4 is a flowchart showing an action example of the electronic device of the embodiment.
[0018] EXPLANATION OF REFERENCE NUMERALS
[0019] 10... electronic device; 11... CPU; 12... main memory; 13... video subsystem; 14... display section; 21... chipset; 22... BIOS memory; 23... storage medium; 24... audio system; 25... WLAN card; 25... WLAN card; 26... USB connector; 31... embedded controller; 32... input section; 33... power supply circuit; 34... battery; 35... switch; 100... control section; 110... storage section. DETAILED DESCRIPTION
[0020] Hereinafter, with reference to the drawings, an embodiment of the present application will be described.
[0021] REFERENCE Figure 1 A hardware configuration example of the electronic device 10 of the embodiment will be described. Figure 1It is a block diagram showing an example of the hardware configuration of the electronic device 10 .
[0022] The electronic device 10 includes a CPU 11 , a main memory 12 , a video subsystem 13 , a display unit 14 , a chipset 21 , a BIOS memory 22 , a storage medium 23 , an audio system 24 , a WLAN card 25 , a USB connector 26 , an embedded controller 31 , an input unit 32 , a power supply circuit 33 , and a battery 34 .
[0023] The CPU 11 executes various calculations under program control to control the entire electronic device 10. For example, the CPU 11 executes processing based on programs of an OS (Operating System) and a BIOS (Basic Input Output System). The CPU 11 is an example of a processor.
[0024] The main memory 12 is a writable memory used as a read area for programs executed by the CPU 11, or as a work area for writing data processed by the programs. The main memory 12 is composed, for example, of multiple DRAM (Dynamic Random Access Memory) chips. The executable programs include the operating system, various drivers for hardware operations on peripheral devices, various services / utilities, and application programs.
[0025] The video subsystem 13 is a subsystem for implementing functions related to image display and includes a video controller. The video controller processes rendering commands from the CPU 11, writes the processed rendering information into the video memory, and reads the rendering information from the video memory to output it as rendering data (display data) to the display unit 14.
[0026] The display unit 14 is, for example, a liquid crystal display or an organic EL display, and displays a display screen based on the rendering data (display data) output from the video subsystem 13 .
[0027] The chip set 21 has controllers such as a USB (Universal Serial Bus), a Serial ATA (AT Attachment), an SPI (Serial Peripheral Interface) bus, a PCI (Peripheral Component Interconnect) bus, a PCI-Express bus, and an LPC (Low Pin Count) bus, and connects a plurality of devices. For example, as the plurality of devices, there are included the BIOS memory 22, the storage medium 23, the audio system 24, the WLAN card 25, the USB connector 26, and the embedded controller 31 described later.
[0028] The BIOS memory 22 is constituted of, for example, an EEPROM (Electrically Erasable Programmable Read Only Memory) or a flash ROM, or the like, which is an electrically rewritable nonvolatile memory. The BIOS memory 22 stores a BIOS, a system firmware for controlling the embedded controller 31, and the like. The BIOS memory 22 is an example of a sub-memory.
[0029] The storage medium 23 includes an HDD (Hard Disk Drive), an SSD (Solid State Drive), and the like. For example, the storage medium 23 stores an OS, various drivers, various services / utilities, application programs, and various data.
[0030] The audio system 24 is connected with a microphone and a speaker, which are not shown, and performs recording, reproduction, and output of sound data. Further, as an example, the microphone and the speaker are built in the electronic device 10.
[0031] The WLAN (Wireless Local Area Network) card 25 is connected with a network through a wireless LAN and performs data communication. The WLAN card 25 generates an event trigger indicating that data has been received, for example, when data from the network is received. The USB connector 26 is a connector for connecting a peripheral device using USB.
[0032] The input section 32 shows input devices (input apparatuses) provided in the electronic device 10. The input section 32 includes a keyboard, a mouse, and the like. The input section 32 outputs input information input by a user's operation to the embedded controller 31.
[0033] The power supply circuit 33 includes, for example, a DC / DC converter, a charge / discharge unit, an AC / DC adapter, and the like. The power supply circuit 33 converts, for example, a direct-current voltage supplied from an external power supply such as an AC adapter (not shown) or the battery 34 into a plurality of voltages required for the electronic device 10 to operate. In addition, the power supply circuit 33 supplies power to each part of the electronic device 10 based on a control from the embedded controller 31.
[0034] The battery 34 is, for example, a secondary battery such as a lithium-ion battery. In a case where the electronic device 10 is supplied with power from an external power supply, the battery 34 is charged via the power supply circuit 33. In a case where the electronic device 10 is not supplied with power from an external power supply, the battery 34 outputs stored power as operating power of the electronic device 10 via the power supply circuit 33.
[0035] The embedded controller 31 is a one-chip microcomputer that monitors and controls various devices (peripheral devices and sensors, and the like) regardless of the state of the system of the electronic device 10. The embedded controller 31 is provided with a CPU, a ROM, a RAM, a plurality of channel A / D input terminals, a D / A output terminal, a timer, and a digital input / output terminal, which are not shown. The input section 32 and the power supply circuit 33, and the like are connected to the digital input / output terminal of the embedded controller 31, and the embedded controller 31 controls the operation of them. In addition, the embedded controller 31 performs control such as a change in the clock frequency of the CPU 11 via the chipset 21.
[0036] The electronic device 10 can be provided with a display device integrally with a housing like a clamshell personal computer, a tablet terminal, or a smartphone, or the like. Alternatively, the electronic device 10 can be provided with a device main body and a display device separately like a desktop personal computer. The electronic device of the present embodiment can be applied to all devices provided with a CPU.
[0037] Reference Signs Figure 2 The functional configuration example of the electronic device 10 will be described. Figure 2 is a block diagram showing an example of the functional configuration of the electronic device 10 related to power supply to an external device.
[0038] The electronic device 10 is provided with a control section 100, a storage section 110, the USB connector 26, the power supply circuit 33, the battery 34, and the switch 35. The functions of the control section 100 are realized by the CPU 11, the embedded controller 31, or a combination of the CPU 11 and the embedded controller 31.
[0039] The storage section 110 stores a program executed by the control section 100, data used by the control section 100, and data generated by the control section 100, and the like. The function of the storage section 110 is realized by the main memory 12, the storage medium 23, or a combination of the main memory 12 and the storage medium 23.
[0040] The external device 40 is connected to the USB connector 26. In a case where the electronic device 10 is not supplied with electric power from an external power source, and the external device 40 is connected to the USB connector 26, the control section 100 controls supply of electric power from the battery 34 to the external device 40. The power supply circuit 33 outputs electric power output from the battery 34 to the switch 35. The switch 35 outputs electric power output from the power supply circuit 33 to the external device 40 via the USB connector 26.
[0041] The control section 100 controls the power supply state of the electronic device 10 in accordance with the remaining amount of the battery 34. The electronic device 10 has a function of outputting electric power from the battery 34 to the external device 40 by AOU in S0 (active state) or ModS (sleep state). The control section 100 controls supply of electric power from the battery 34 to the external device 40 by controlling the state of the switch 35. In a case where the electronic device 10 is in S0 (active state) or ModS (sleep state), the control section 100 turns on the switch 35, and implements supply of electric power from the battery 34 to the external device 40 by AOU. In a case where the electronic device 10 is changed from ModS to S4 (standby state), the control section 100 turns off the switch 35, and stops supply of electric power based on AOU.
[0042] Reference Signs Figure 3 The change of the power supply state of the electronic device 10 is described. Figure 3 The power supply state of the electronic device 10 is schematically represented. In Figure 3 The power supply state corresponding to the remaining amount of the battery 34 is represented in the horizontal direction.
[0043] The state PS1 represents the power supply state of the electronic device 10 in a case where the control section 100 performs control in the related art. The state PS2 represents the power supply state of the electronic device 10 in a case where the control section 100 performs control in the embodiment.
[0044] Figure 3 The horizontal direction in the table corresponds to the remaining amount of the battery 34. For example, the remaining amount of the battery 34 is represented by RSOC (Relative State of Charge). The RSOC is a ratio (RM / FCC) of the remaining capacity RM of the battery 34 to the full charge capacity FCC of the battery 34.
[0045] First, the state PS1 will be described. When the RSOC is 100% in the state PS1, the electronic device 10 is in S0. At this time, the power supply based on the AOU can be performed. When a predetermined event occurs in the state PS1, the control section 100 causes the electronic device 10 to transition from S0 to ModS. For example, in the case where the electronic device 10 is a clamshell type personal computer, the event occurs when the user closes the lid. Or, the event occurs when the user presses the power button. The RSOC at the time when the event occurs is, for example, 80%. When the amount of reduction of the RSOC in ModS in the state PS1 is a reference value (for example, 5% of the FCC) that is set in advance by the OS, the control section 100 causes the electronic device 10 to transition from ModS to S4.
[0046] In the case where the control section 100 is constituted by the CPU 11, the control section 100 is in the standby state in S4. Therefore, the control section 100 cannot detect the amount of the remaining capacity of the battery 34. In the state PS1, when the electronic device 10 transitions from ModS to S4, the control section 100 stops the power supply based on the AOU. In the state PS1, when the electronic device 10 transitions from S0 to ModS, the control section 100 performs the power supply based on the AOU in the range R1 of the RSOC shown in FIG. 6. Figure 3
[0047] Next, the state PS2 will be described. The control section 100 sets a reference value (for example, 5% of the FCC) of the amount of reduction of the RSOC in ModS in advance. The reference value indicates the amount of reduction of the remaining capacity of the battery 34 from the timing at which the electronic device 10 transitions from S0 to ModS to the timing at which the electronic device 10 transitions from ModS to S4. The storage section 110 stores the reference value. The control section 100 changes the reference value to a value larger than the reference value, for example, by changing the standby budget allocated to ModS.
[0048] The storage section 110 stores a reference value (for example, 15%) of the RSOC at the time when the electronic device 10 stops the power supply based on the AOU. When the electronic device 10 transitions from S0 to ModS, the control section 100 detects the amount of the remaining capacity of the battery 34. The control section 100 changes the reference value of the amount of reduction of the RSOC in ModS based on the detected amount of the remaining capacity and the reference value stored in the storage section 110. For example, the control section 100 calculates the difference between the detected amount of the remaining capacity (for example, 80%) and the reference value (for example, 15%) stored in the storage section 110, and changes the reference value of the amount of reduction of the RSOC in ModS to the value of the difference (for example, 65%).
[0049] When the RSOC is 100% in the state PS2, the electronic device 10 is in S0. At this time, the power supply based on the AOU can be performed. When the preset event occurs in the state PS2, the control section 100 causes the electronic device 10 to transition from S0 to ModS. For example, the RSOC at this time is 80%.
[0050] When the amount of reduction of the RSOC in ModS in the state PS2 is the reference value (for example, 65%) changed by the control section 100, the control section 100 causes the electronic device 10 to transition from ModS to S4. At this time, the RSOC is the same as the reference value of the RSOC (for example, 15%) for stopping the power supply based on the AOU. Therefore, the control section 100 stops the power supply based on the AOU. In the state PS2, the power supply based on the AOU can be performed in the range R2 of the RSOC shown in FIG. 6. The range R2 is wider than the range Rl. That is, in the state PS2, more power can be supplied to the external device 40 by the AOU than in the state PSI. Figure 3
[0051] Referring to Figure 4 The operation of the electronic device 10 in the control of the power state will be described. Figure 4 An example of the processing performed by the electronic device 10 in order to control the power state is shown. The OS sets the reference values related to the power state of the electronic device 10 in advance. The storage section 110 stores the reference values set by the OS.
[0052] (Step S100)
[0053] The control section 100 monitors the state of the USB connector 26, and determines whether or not the external device 40 is connected to the USB connector 26. If the external device 40 is not connected to the USB connector 26, the control section 100 repeats the determination in step S100.
[0054] (Step S101)
[0055] If the external device 40 is connected to the USB connector 26, the control section 100 acquires information indicating the kind of the external device 40 from the external device 40. The control section 100 determines whether or not the external device 40 is a media transfer protocol (MTP) device based on the information. A smartphone or a tablet terminal or the like is an MTP device. A human interface device (HID) such as a mouse or a keyboard is not an MTP device. If the external device 40 is not an MTP device, the processing shown in FIG. 7 ends. In this case, the same control as in the related art is performed. Further, when the electronic device 10 is in ModS in the state where the external device 40 is connected to the USB connector 26, the control section 100 causes the electronic device 10 to transition from ModS to S0. Step S101 is performed in the state where the electronic device 10 is in S0. Figure 4 The processing shown in FIG. 7 ends. In this case, the same control as in the related art is performed. Further, when the electronic device 10 is in ModS in the state where the external device 40 is connected to the USB connector 26, the control section 100 causes the electronic device 10 to transition from ModS to S0. Step S101 is performed in the state where the electronic device 10 is in S0.
[0056] (step S102)
[0057] If the external device 40 is an MTP device, the control section 100 reads out from the storage section 110 a reference value of the remaining capacity of the battery 34 at the time when the electronic device 10 is transitioned from SO to ModS (for example, 80%). In addition, the control section 100 reads out from the storage section 110 a reference value of the remaining capacity of the battery 34 at the time when the power supply based on the AOU is stopped (for example, 15%). The control section 100 calculates the difference between the two reference values (for example, 65%). The control section 100 changes the initial value of the reference value (for example, 5%) set in advance by the OS to the difference calculated as described above, as the amount of reduction of the remaining capacity of the battery 34 in ModS.
[0058] (step S103)
[0059] The control section 100 detects the remaining capacity of the battery 34 in SO.
[0060] (step S104)
[0061] The control section 100 determines whether or not to transition the electronic device 10 from SO to ModS by determining whether or not a predetermined event has occurred.
[0062] (step S110)
[0063] In the case where the predetermined event has not occurred, the control section 100 determines not to transition the electronic device 10 from SO to ModS. The control section 100 monitors the state of the USB connector 26, and determines whether or not the external device 40 is detached from the USB connector 26. In the case where the external device 40 is not detached from the USB connector 26, step S103 is executed.
[0064] (step S105)
[0065] In the case where the predetermined event has occurred, the control section 100 transitions the electronic device 10 from SO to ModS. The control section 100 stores in the storage section 110 the remaining capacity of the battery 34 detected in step S103 as a reference value. This reference value indicates the remaining capacity of the battery 34 at the time when the electronic device 10 is transitioned from SO to ModS.
[0066] (step S106)
[0067] The control section 100 detects the remaining capacity of the battery 34 in ModS.
[0068] (step S107)
[0069] The control section 100 reads from the storage section 110 a reference value of the amount of reduction of the remaining capacity of the battery 34 in ModS (for example, 65%). The control section 100 compares the calculated amount of reduction with the reference value, and determines whether or not to cause the electronic device 10 to transition from ModS to S4.
[0070] (Step S111)
[0071] In a case where the amount of reduction of the remaining capacity of the battery 34 in ModS is smaller than the reference value, the control section 100 determines not to cause the electronic device 10 to transition from ModS to S4. The control section 100 monitors the state of the USB connector 26, and determines whether or not the external device 40 is detached from the USB connector 26. In a case where the external device 40 is not detached from the USB connector 26, the step S106 is executed.
[0072] (Step S108)
[0073] In a case where the amount of reduction of the remaining capacity of the battery 34 in ModS reaches the reference value, the control section 100 causes the electronic device 10 to transition from ModS to S4.
[0074] (Step S109)
[0075] At the time when the electronic device 10 transitions from ModS to S4, the remaining capacity of the battery 34 is smaller than the reference value of the remaining capacity of the battery 34 at the time when the supply of the electric power based on the AOU is stopped (for example, 15%). Therefore, the control section 100 stops the supply of the electric power based on the AOU.
[0076] The steps of the step S108 and the step S109 can be different from the above-described steps. That is, the step S108 can be executed after the step S109 is executed.
[0077] (Step S112)
[0078] In a case where the external device 40 is detached from the USB connector 26, the control section 100 changes the reference value of the reduction amount of the remaining capacity of the battery 34 in the ModS to an initial value (for example, 5%). Then, at the time of connection of the MTP device, that is, the external device 40, to the USB connector 26, the reference value of the reduction amount of the remaining capacity of the battery 34 in the ModS is changed according to the above-described processing. At the time of connection of the external device 40, which is not the MTP device, to the USB connector 26, the reference value of the reduction amount of the remaining capacity of the battery 34 in the ModS is not changed. In a case where the external device 40 is not the MTP device, the consumption amount of the battery 34 in the ModS is limited.
[0079] As described above, the external device 40 is connected to the USB connector 26, and the USB connector 26 outputs the power supplied from the battery 34 to the external device 40. The control section 100 (controller) changes the first reference value (for example, 5%) set in advance by the OS to a second reference value (for example, 65%) larger than the first reference value, as the reduction amount of the remaining capacity of the battery 34 from a first timing at which the electronic device 10 is transitioned from the S0 (active state) to the ModS (sleep state) in a state where the external device 40 is connected to the USB connector 26 to a second timing at which the electronic device 10 is transitioned from the ModS to the S4 (standby state) in the state where the external device 40 is connected to the USB connector 26. When the reduction amount of the remaining capacity of the battery 34 from the first timing becomes the second reference value, the control section 100 causes the electronic device 10 to be transitioned to the S4. Thus, the electronic device 10 can increase the amount of power supplied from the battery 34 to the external device 40 in the sleep state. The above-described operation can be performed in either of a case where the control section 100 is constituted by the CPU 11 and a case where the control section 100 is constituted by the embedded controller 31.
[0080] The storage section 110 (memory) stores a third reference value (for example, 15%) indicating the remaining capacity of the battery 34 at the time of stopping the output of power to the external device 40 in the operation mode (AOU) in which the power is output to the external device 40 in a state where the electronic device 10 is in the S0 or the ModS. The control section 100 detects a fourth reference value which is the remaining capacity of the battery 34 at the time of transition of the electronic device 10 from the S0 to the ModS. The fourth reference value is larger than the third reference value. The control section 100 calculates the second reference value by calculating the difference between the fourth reference value and the third reference value. After the first reference value is changed to the second reference value, the remaining capacity of the battery 34 in the AOU is reduced, and when it becomes the third reference value, the control section 100 stops the output of power to the external device 40. Thus, the electronic device 10 can increase the amount of power supplied from the battery 34 to the external device 40 by the AOU.
[0081] In a case where the external device 40 is an MTP device, the control section 100 changes the first reference value to the second reference value. Thereby, the electronic device 10 can increase the amount of power supplied from the battery 34 to the MTP device in the sleep state.
[0082] The above-described embodiments of the present application are merely illustrative and all modifications and changes conforming to the principle of the present application can be made on the detailed construction.
Claims
1. An electronic device, comprising: Possessing: a connector to which an external device is connected, and which outputs power supplied from a battery to the external device; and a controller, the controller changes a first reference value set in advance by an OS (Operating System) to a second reference value larger than the first reference value as a decrease amount of a remaining amount of the battery from a first timing to a second timing, at the first timing, the electronic device transitions from an active state to a sleep state in a state where the external device is connected to the connector, at the second timing, the electronic device transitions from the sleep state to a standby state in a state where the external device is connected to the connector, when the decrease amount of the remaining amount of the battery from the first timing becomes the second reference value, the controller causes the electronic device to transition to the standby state.
2. The electronic device according to claim 1, wherein a memory that stores a third reference value indicating a remaining amount of the battery when output of the power to the external device is stopped in a mode of operation in which the power is output to the external device in a state where the electronic device is in the active state or the sleep state, the controller detects a fourth reference value that is the remaining amount of the battery when the electronic device transitions from the active state to the sleep state, the fourth reference value is larger than the third reference value, the controller calculates the second reference value by calculating a difference between the fourth reference value and the third reference value, after the first reference value is changed to the second reference value, the remaining amount of the battery in the mode of operation decreases, and when it becomes the third reference value, the controller stops output of the power to the external device.
3. The electronic device according to claim 1, wherein in a case where the external device is a media transfer protocol (MTP) device, the controller changes the first reference value to the second reference value.
4. A control method of an electronic device that has a connector to which an external device is connected and that outputs electric power supplied from a battery to the external device, wherein Possessing: a step of changing a first reference value set in advance by an OS (Operating System) to a second reference value larger than the first reference value as a decrease amount of a remaining amount of a battery from a first timing to a second timing, at the first timing, an electronic device transitions from an active state to a sleep state in a state where an external device is connected to a connector, at the second timing, the electronic device transitions from the sleep state to a standby state in a state where the external device is connected to the connector; and a step of causing the electronic device to transition to the standby state when the decrease amount of the remaining amount of the battery from the first timing becomes the second reference value.
Citation Information
Patent Citations
Apparatus and method for achieving deterministic power-saving state
JP2023047293A