CN109933419B - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN109933419B
CN109933419B CN201910249374.XA CN201910249374A CN109933419B CN 109933419 B CN109933419 B CN 109933419B CN 201910249374 A CN201910249374 A CN 201910249374A CN 109933419 B CN109933419 B CN 109933419B
Authority
CN
China
Prior art keywords
mode
hard disk
electronic device
standby mode
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910249374.XA
Other languages
Chinese (zh)
Other versions
CN109933419A (en
Inventor
邬江洪
曹晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910249374.XA priority Critical patent/CN109933419B/en
Publication of CN109933419A publication Critical patent/CN109933419A/en
Application granted granted Critical
Publication of CN109933419B publication Critical patent/CN109933419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a control method and a control device, wherein under the condition that an electronic device is in a first mode, first attribute information of a hard disk of the electronic device is obtained, if the type of the hard disk belongs to a target type, whether index parameters of the hard disk meet a first condition or not is determined according to the first attribute information, and under the condition that the index parameters meet the first condition, the electronic device is controlled to enter a second mode, wherein the electronic device can realize more functions under the first mode than under the second mode. According to the control method and the control device, when the type of the electronic equipment hard disk belongs to the target type, the set index parameter of the hard disk is automatically detected and determined, and when the index parameter meets the condition, the mode is controlled to be switched from the first mode to the second mode, so that the mode switching of the electronic equipment is controlled based on the attribute information of the hard disk, and the use experience of a user is improved.

Description

Control method and device
Technical Field
The present application relates to electronic control technologies, and in particular, to a control method and apparatus.
Background
In recent years, a modem standby scheme has emerged in the PC field. Under the scheme, the computer can be in standby mode like a smart phone and enters an intelligent sleep state, and in the intelligent sleep state, the computer is still connected with the network, some functional modules such as music playing, reminding and informing modules can continuously work, and other functional modules enter a dormant state.
For HDD (Hard Disk Drive) configuration, there are two current operating modes of the modern standby scheme, namely, a DS (disconnected standby) mode and a CS (connected standby) mode.
When the hard disk drive is a mechanical hard disk, the modern standby scheme has more times of power on and power off compared with the current normal standby mode, and the service life of the mechanical hard disk can be influenced by frequent power on and power off of the mechanical hard disk.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a control method, comprising:
under the condition that the electronic equipment is in a first mode, obtaining first attribute information of a hard disk of the electronic equipment;
if the type of the hard disk belongs to the target type, determining whether the index parameter of the hard disk meets a first condition according to the first attribute information;
controlling the electronic equipment to enter a second mode under the condition that the index parameter meets a first condition;
the first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
Optionally, before obtaining the first attribute information of the hard disk of the electronic device when the electronic device is in the first mode, the method further includes:
if the system of the electronic equipment reaches a switching condition, controlling the electronic equipment to enter the first mode from a third mode;
wherein the power consumption of the electronic device in the third mode is greater than its power consumption in the first mode and its power consumption in the second mode.
Optionally, the method further includes:
and obtaining a switching instruction, and controlling the electronic equipment to enter the third mode.
Optionally, the power consumption of the electronic device in the first mode is greater than the power consumption of the electronic device in the second mode.
Optionally, compared with a second function that can be implemented by the electronic device in the second mode, the first function that can be implemented by the electronic device in the first mode at least further includes a network function, and the network function indicates that the electronic device can connect with a server in at least one network to obtain information.
Optionally, the number of times that the electronic device wakes up the hard disk in the first mode is greater than the number of times that the electronic device wakes up the hard disk in the second mode.
Optionally, the first attribute information includes at least one of a number of times of starting and stopping the motor, an accumulated power-on time, a power-on period, and a number of times of unsafe shutdown;
determining whether the index parameter of the hard disk meets a first condition according to the first attribute information includes:
and determining whether the remaining life of the hard disk is less than or equal to a life threshold value according to at least one of the information of the motor start-stop times, the accumulated power-on time, the power-on period and the unsafe shutdown times.
Optionally, before determining whether the index parameter of the hard disk meets the first condition according to the first attribute information if the type of the hard disk belongs to the target type, the method further includes:
acquiring second attribute information, and determining whether the hard disk is of a target type according to the second attribute information;
the second attribute information comprises hard disk configuration information, and the target type comprises a mechanical hard disk.
Optionally, after the controlling the electronic device to enter the second mode, the method further includes:
and generating and sending mode switching prompt information.
A control device, comprising:
the information acquisition module is used for acquiring first attribute information of a hard disk of the electronic equipment under the condition that the electronic equipment is in a first mode;
the condition judgment module is used for determining whether the index parameter of the hard disk meets a first condition according to the first attribute information when the type of the hard disk belongs to a target type;
the mode switching module is used for controlling the electronic equipment to enter a second mode under the condition that the index parameter meets a first condition;
the first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
The technical solution is that, in a case where an electronic device is in a first mode, first attribute information of a hard disk of the electronic device is obtained, if the type of the hard disk belongs to a target type, whether an index parameter of the hard disk meets a first condition is determined according to the first attribute information, and in a case where the index parameter meets the first condition, the electronic device is controlled to enter a second mode, where the electronic device can implement more functions in the first mode than in the second mode. According to the control method and the control device, when the type of the electronic equipment hard disk belongs to the target type, the information related to the hard disk attribute is automatically detected and determined, and when the information indicates that the set index parameter of the hard disk meets the condition, the electronic equipment is controlled to be switched from the first mode to the second mode, so that the mode switching of the electronic equipment is controlled based on the hard disk attribute information, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a flowchart of a control method disclosed in an embodiment of the present application;
FIG. 2 is a flow chart of another control method disclosed in the embodiments of the present application;
FIG. 3 is a flow chart of another control method disclosed in the embodiments of the present application;
fig. 4 is a schematic structural diagram of a control device disclosed in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another control device disclosed in the embodiments of the present application;
fig. 6 is a schematic structural diagram of another control device disclosed in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of a control method disclosed in an embodiment of the present application, and referring to fig. 1, the control method may include:
step 101: the method includes the steps that under the condition that the electronic equipment is in a first mode, first attribute information of a hard disk of the electronic equipment is obtained.
In this embodiment, the first mode may be an implementation manner of the intelligent standby mode; in the intelligent standby mode, a CPU of the electronic device may have two states, the first state is that the CPU of the electronic device is completely in a state of stopping working, but some other functional modules in the electronic device, such as a voice acquisition module, a sensor module, a network card module, etc., are respectively provided with a small processing chip, and the processing chip may assist the corresponding functional module to realize a corresponding function; the second is that some functional circuits in the CPU of the electronic device operate, and other functional circuits are shut down, where some of the operating circuits can also execute the corresponding functions of the corresponding modules.
When the electronic device is in the first mode, the first attribute information of the hard disk of the electronic device can be obtained periodically or automatically when the device reaches a preset condition. The preset condition may include that the CPU triggers to wake up the hard disk. In addition, if the scheme of periodically obtaining the first attribute information of the hard disk is adopted, the period of actively obtaining the first attribute information is not suitable to be set too large, such as 10 minutes and 20 minutes, so as to ensure the real-time performance of the first attribute information.
Specifically, the first attribute information of the electronic device may be obtained by reading a hard disk operating parameter from a hard disk drive firmware. Wherein the first attribute parameter may include, but is not limited to, at least one of a number of motor on/off times, an accumulated power-on time, a power-on period, and a number of unsafe shut-downs. In practical applications, the content included in the first attribute information may be determined according to requirements and device configurations.
Step 102: and if the type of the hard disk belongs to the target type, determining whether the index parameter of the hard disk meets a first condition according to the first attribute information.
In this embodiment, the target type may be, but is not limited to, a mechanical hard disk. And when the type of the hard disk belongs to a preset target type, executing the content for determining whether the index parameter of the hard disk meets a first condition according to the first attribute information.
The first condition may be that an index parameter of the hard disk reaches a preset threshold. The index parameter may be determined directly from the first attribute information, or may be data calculated and determined based on the first attribute information. Since the first attribute information may include a plurality of different types of data, the index parameter may also be data obtained by integrating each type of data according to a certain rule.
Step 103: and controlling the electronic equipment to enter a second mode under the condition that the index parameter meets a first condition.
Wherein the second mode may be another implementation of the smart standby mode; the first mode and the second mode are different, the electronic equipment can respond to a first wake-up event in the first mode to further realize a first function, and the electronic equipment can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
In a specific example, the hard disk is a mechanical hard disk, the index parameter is a hard disk life value, the first condition is that the hard disk life value is less than or equal to 30%, and when the mechanical hard disk life value is less than or equal to 30%, the electronic device is controlled to enter the second mode from the first mode. The purpose of switching from the first mode to the second mode may be to reduce hard disk wear.
The first mode and the second mode may be different standby modes, for example, the first mode is a CS standby mode, and the second mode is a DS standby mode, and compared to the DS standby mode, the electronic device can implement more functions in the CS standby mode, for example, in the CS standby mode, the electronic device can implement network connection and acquire network information.
In this embodiment, when the electronic device is in the first mode capable of implementing more functions and the type of the hard disk of the electronic device belongs to the target type, the control method automatically detects and determines information related to the attribute of the hard disk, and when the information indicates that the set index parameter of the hard disk meets the condition, the control method automatically switches from the first mode to the second mode. By adopting the scheme disclosed by the embodiment, the electronic equipment adopting the mechanical hard disk can normally realize more functions such as networking function in an intelligent standby mode, and when the hard disk loss reaches a certain degree, the mode is switched to realize fewer functions, the hard disk is protected, the scheme flexibly switches the mode of the electronic equipment according to the hard disk attribute information, the user requirement is better met, and the user use experience is favorably promoted.
Fig. 2 is a flowchart of another control method disclosed in the embodiment of the present application, and as shown in fig. 2, the control method may include:
step 201: and if the system of the electronic equipment reaches a switching condition, controlling the electronic equipment to enter the first mode from a third mode.
Wherein the power consumption of the electronic device in the third mode is greater than its power consumption in the first mode and its power consumption in the second mode.
In a specific example, the first mode and the second mode may be different intelligent standby modes, and the third mode may be a normal power-on operation mode (S0 mode). Because some or even all functional modules of the electronic device stop working in the standby mode, the power consumption of the electronic device is greater than that in the standby mode in the normal startup working mode.
The switching condition may include, but is not limited to, that the time when the electronic device does not receive any input reaches a preset value, or a standby instruction input by a user is received.
Step 202: the method includes the steps that under the condition that the electronic equipment is in a first mode, first attribute information of a hard disk of the electronic equipment is obtained.
Step 203: and if the type of the hard disk belongs to the target type, determining whether the index parameter of the hard disk meets a first condition according to the first attribute information.
Step 204: and controlling the electronic equipment to enter a second mode under the condition that the index parameter meets a first condition.
The first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
According to the control method disclosed in this embodiment, after the electronic device enters the standby mode from the power-on state, the index parameter of the hard disk can be used as a basis, when the index parameter of the hard disk meets a preset first condition, the electronic device is controlled to be switched from one standby mode to another standby mode, and because the switched standby mode has fewer functions than the standby mode before switching, the number of times of waking up the hard disk is reduced, so that the hard disk loss is reduced, so that the electronic device adopting the mechanical hard disk normally realizes more functions in the intelligent standby mode, and when the hard disk loss reaches a certain degree, the electronic device is switched to the mode realizing fewer functions to protect the hard disk.
Of course, in other embodiments, the control method may further include: and obtaining a switching instruction, and controlling the electronic equipment to enter the third mode. As described above, the third mode may be a power-on mode, where the electronic device enters the third mode when obtaining the switching instruction, and the electronic device may enter the power-on mode from a standby mode. The switching instruction may be, but is not limited to, a switching instruction generated by a user triggering a power-on key. Specifically, the electronic device enters the third mode, which may be a CS standby mode (first mode) entering the power-on mode, or a DS standby mode (second mode entering the power-on mode).
In the foregoing embodiments, the power consumption of the electronic device in the first mode may be greater than the power consumption of the electronic device in the second mode. Compared with the DS standby mode, the electronic device can implement more functions in the CS standby mode, and the electronic device also has more functional modules to work in the CS standby mode, so in practical applications, the power consumption of the electronic device in the CS standby mode is greater than the power consumption of the electronic device in the DS standby mode.
Further, compared with a second function that can be implemented by the electronic device in the second mode, the first function that can be implemented by the electronic device in the first mode may further include at least a network function, where the network function indicates that the electronic device can connect with a server in at least one network to obtain information.
Because the functions that the electronic device can realize in the first mode are more than the functions that the electronic device can realize in the second mode, the times that the electronic device wakes up the hard disk in the first mode are more than the times that the electronic device wakes up the hard disk in the second mode. For example, the electronic device can receive network information in the CS standby mode, but cannot receive network information in the DS standby mode, and in the CS standby mode, after receiving the network information, the electronic device needs to wake up the hard disk to store corresponding network information and process data; in the DS standby mode, network information is not received, and thus the hard disk is not woken up by the network information.
As described in the above embodiment, if the first attribute information may be, but is not limited to, at least one of the number of motor start-stop times, the accumulated power-on time, the power-on period, and the number of unsafe shutdown times, the determining whether the index parameter of the hard disk satisfies the first condition according to the first attribute information includes: and determining whether the remaining life of the hard disk is less than or equal to a life threshold value according to at least one of the information of the motor start-stop times, the accumulated power-on time, the power-on period and the unsafe shutdown times.
Fig. 3 is a flowchart of another control method disclosed in an embodiment of the present application, and referring to fig. 3, the control method may include:
step 301: the method includes the steps that under the condition that the electronic equipment is in a first mode, first attribute information of a hard disk of the electronic equipment is obtained.
Step 302: and acquiring second attribute information, and determining whether the hard disk is of the target type according to the second attribute information.
The second attribute information may include hard disk configuration information, and the target type includes a mechanical hard disk. The hard disk type of the electronic equipment can be directly determined according to the hard disk configuration information, so that whether the electronic equipment is the target type or not is determined.
Here, the order of the steps 301 and 302 is not limited.
Step 303: and if the type of the hard disk belongs to the target type, determining whether the index parameter of the hard disk meets a first condition according to the first attribute information.
Step 304: and controlling the electronic equipment to enter a second mode under the condition that the index parameter meets a first condition.
The first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
On the basis of the embodiment disclosed in the present application, after the controlling the electronic device to enter the second mode, the method may further include: and generating and sending mode switching prompt information. The method prompts the user of the change of the standby mode, so that the user can clearly determine that some functions of the electronic equipment cannot be normally executed after the mode is switched, the service life of the hard disk is low, and the user can conveniently process subsequent related events.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The method is described in detail in the embodiments disclosed in the present application, and the method of the present application can be implemented by various types of apparatuses, so that an apparatus is also disclosed in the present application, and the following detailed description is given of specific embodiments.
Fig. 4 is a schematic structural diagram of a control device disclosed in an embodiment of the present application, and as shown in fig. 4, the control device 40 may include:
the information obtaining module 401 is configured to obtain first attribute information of a hard disk of an electronic device when the electronic device is in a first mode.
In this embodiment, the first mode may be an implementation manner of the intelligent standby mode. When the electronic device is in the first mode, the first attribute information of the hard disk of the electronic device can be obtained periodically or automatically when the device reaches a preset condition. The preset condition may include that the CPU triggers to wake up the hard disk. In addition, if the scheme of periodically obtaining the first attribute information of the hard disk is adopted, the period of actively obtaining the first attribute information is not suitable to be set too large, such as 10 minutes and 20 minutes, so as to ensure the real-time performance of the first attribute information.
Specifically, the first attribute information of the electronic device may be obtained by reading a hard disk operating parameter from a hard disk drive firmware. Wherein the first attribute parameter may include, but is not limited to, at least one of a number of motor on/off times, an accumulated power-on time, a power-on period, and a number of unsafe shut-downs. In practical applications, the content included in the first attribute information may be determined according to requirements and device configurations.
A condition determining module 402, configured to determine whether an index parameter of the hard disk meets a first condition according to the first attribute information when the type of the hard disk belongs to a target type.
In this embodiment, the target type may be, but is not limited to, a mechanical hard disk. And when the type of the hard disk belongs to a preset target type, executing the content for determining whether the index parameter of the hard disk meets a first condition according to the first attribute information.
The first condition may be that an index parameter of the hard disk reaches a preset threshold. The index parameter may be determined directly from the first attribute information, or may be data calculated and determined based on the first attribute information. Since the first attribute information may include a plurality of different types of data, the index parameter may also be data obtained by integrating each type of data according to a certain rule.
A mode switching module 403, configured to control the electronic device to enter a second mode when the index parameter satisfies a first condition.
Wherein the second mode may be another implementation of the smart standby mode; the first mode and the second mode are different, the electronic equipment can respond to a first wake-up event in the first mode to further realize a first function, and the electronic equipment can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
The first mode and the second mode may be different standby modes, for example, the first mode is a CS standby mode, and the second mode is a DS standby mode, and the electronic device can implement more functions in the CS standby mode than in the DS standby mode.
In this embodiment, when the electronic device is in the first mode capable of implementing more functions and the type of the hard disk of the electronic device belongs to the target type, the control device automatically detects and determines information related to the attribute of the hard disk, and when the information indicates that the set index parameter of the hard disk meets the condition, the control device automatically switches from the first mode to the second mode. By adopting the scheme disclosed by the embodiment, the electronic equipment adopting the mechanical hard disk can normally realize more functions such as networking function in an intelligent standby mode, and when the hard disk loss reaches a certain degree, the mode is switched to realize fewer functions, the hard disk is protected, the scheme flexibly switches the mode of the electronic equipment according to the hard disk attribute information, the user requirement is better met, and the user use experience is favorably promoted.
Fig. 5 is a schematic structural diagram of another control device disclosed in the embodiment of the present application, and referring to fig. 5, the control device 50 may include:
a switching control module 501, configured to control the electronic device to enter the first mode from a third mode when a system of the electronic device reaches a switching condition.
Wherein the power consumption of the electronic device in the third mode is greater than its power consumption in the first mode and its power consumption in the second mode.
In a specific example, the first mode and the second mode may be different intelligent standby modes, and the third mode may be a normal power-on operation mode. Because some or even all functional modules of the electronic device stop working in the standby mode, the power consumption of the electronic device is greater than that in the standby mode in the normal startup working mode.
The switching condition may include, but is not limited to, that the time when the electronic device does not receive any input reaches a preset value, or a standby instruction input by a user is received.
The information obtaining module 401 is configured to obtain first attribute information of a hard disk of an electronic device when the electronic device is in a first mode.
A condition determining module 402, configured to determine whether an index parameter of the hard disk meets a first condition according to the first attribute information when the type of the hard disk belongs to a target type.
A mode switching module 403, configured to control the electronic device to enter a second mode when the index parameter satisfies a first condition.
The first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
According to the control device disclosed in this embodiment, after the electronic device enters the standby mode from the power-on state, the index parameter of the hard disk can be used as a basis, when the index parameter of the hard disk meets a preset first condition, the electronic device is controlled to be switched from one standby mode to another standby mode, because the switched standby mode has fewer functions than the standby mode before switching, the number of times of waking up the hard disk is reduced, and further the hard disk loss is reduced, so that the electronic device adopting the mechanical hard disk normally realizes more functions in the intelligent standby mode, and when the hard disk loss reaches a certain degree, the electronic device is switched to the mode realizing fewer functions to protect the hard disk.
Of course, in other embodiments, the switching control module 501 may also be configured to: and obtaining a switching instruction, and controlling the electronic equipment to enter the third mode. As described above, the third mode may be a power-on mode, where the electronic device enters the third mode when obtaining the switching instruction, and the electronic device may enter the power-on mode from a standby mode. The switching instruction may be, but is not limited to, a switching instruction generated by a user triggering a power-on key. Specifically, the electronic device enters the third mode, which may be a CS standby mode (first mode) to enter the power-on mode, or a DS standby mode (second mode to enter the power-on mode)
In the foregoing embodiments, the power consumption of the electronic device in the first mode may be greater than the power consumption of the electronic device in the second mode. Compared with the DS standby mode, the electronic device can implement more functions in the CS standby mode, and the electronic device also has more functional modules to work in the CS standby mode, so in practical applications, the power consumption of the electronic device in the CS standby mode is greater than the power consumption of the electronic device in the DS standby mode.
Further, compared with a second function that can be implemented by the electronic device in the second mode, the first function that can be implemented by the electronic device in the first mode may further include at least a network function, where the network function indicates that the electronic device can connect with a server in at least one network to obtain information.
Because the functions that the electronic device can realize in the first mode are more than the functions that the electronic device can realize in the second mode, the times that the electronic device wakes up the hard disk in the first mode are more than the times that the electronic device wakes up the hard disk in the second mode.
As described in the above embodiment, if the first attribute information may include, but is not limited to, at least one of a number of motor start-stop times, an accumulated power-on time, a power-on period, and a number of unsafe shutdown times, the condition determining module is specifically configured to: and determining whether the remaining life of the hard disk is less than or equal to a life threshold value according to at least one of the information of the motor start-stop times, the accumulated power-on time, the power-on period and the unsafe shutdown times.
Fig. 6 is a schematic structural diagram of another control device disclosed in the embodiment of the present application, and as shown in fig. 6, the control device 60 may include:
the information obtaining module 401 is configured to obtain first attribute information of a hard disk of an electronic device when the electronic device is in a first mode.
The hard disk attribute obtaining module 601 is configured to obtain second attribute information, and determine whether the hard disk is of the target type according to the second attribute information.
The second attribute information may include hard disk configuration information, and the target type includes a mechanical hard disk. The hard disk type of the electronic equipment can be directly determined according to the hard disk configuration information, so that whether the electronic equipment is the target type or not is determined.
A condition determining module 402, configured to determine whether an index parameter of the hard disk meets a first condition according to the first attribute information when the type of the hard disk belongs to a target type.
A mode switching module 403, configured to control the electronic device to enter a second mode when the index parameter satisfies a first condition.
The first mode and the second mode are different, the electronic device can respond to a first wake-up event in the first mode to further realize a first function, and the electronic device can respond to a second wake-up event in the second mode to further realize a second function; the range of the first function is greater than the range of the second function.
In other embodiments, the control device may further include a switching prompt module, configured to generate and send a mode switching prompt message after the mode switching module controls the electronic device to enter the second mode. The method prompts the user of the change of the standby mode, so that the user can clearly determine that some functions of the electronic equipment cannot be normally executed after the mode is switched, the service life of the hard disk is low, and the user can conveniently process subsequent related events.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A control method, comprising:
under the condition that the electronic equipment is in a first standby mode, obtaining first attribute information of a hard disk of the electronic equipment;
if the type of the hard disk belongs to a mechanical hard disk, determining whether index parameters of the hard disk meet a first condition according to the first attribute information;
controlling the electronic equipment to enter a second standby mode under the condition that the index parameter meets a first condition;
the first standby mode and the second standby mode are different, the electronic equipment can respond to a first wake-up event in the first standby mode to further realize a first function, and the electronic equipment can respond to a second wake-up event in the second standby mode to further realize a second function; the range of the first function is greater than the range of the second function.
2. The control method according to claim 1, further comprising, before the obtaining first attribute information of a hard disk of the electronic device in a case where the electronic device is in the first standby mode:
if the system of the electronic equipment reaches a switching condition, controlling the electronic equipment to enter the first standby mode from a third mode;
wherein the power consumption of the electronic device in the third mode is greater than the power consumption of the electronic device in the first standby mode and the power consumption of the electronic device in the second standby mode.
3. The control method according to claim 2, further comprising:
and obtaining a switching instruction, and controlling the electronic equipment to enter the third mode.
4. The control method of claim 1, wherein the electronic device has a power consumption in the first standby mode that is greater than its power consumption in the second standby mode.
5. The control method according to claim 1 or 4, wherein the first function that the electronic device can implement in the first standby mode further comprises at least a network function indicating that the electronic device can connect with a server in at least one network to obtain information, compared to a second function that the electronic device can implement in the second standby mode.
6. The control method according to claim 1 or 4, wherein the electronic device wakes up the hard disk more times in the first standby mode than in the second standby mode.
7. The control method according to claim 1, the first attribute information including at least one of a number of motor start-stops, an accumulated power-on time, a power-on period, and a number of unsafe shut-downs;
determining whether the index parameter of the hard disk meets a first condition according to the first attribute information includes:
and determining whether the remaining life of the hard disk is less than or equal to a life threshold value according to at least one of the information of the motor start-stop times, the accumulated power-on time, the power-on period and the unsafe shutdown times.
8. The control method according to claim 1, before the determining whether the index parameter of the hard disk satisfies the first condition according to the first attribute information if the type of the hard disk belongs to a mechanical hard disk, further comprising:
acquiring second attribute information, and determining whether the hard disk is a mechanical hard disk according to the second attribute information;
wherein the second attribute information includes hard disk configuration information.
9. The control method of claim 1, further comprising, after the controlling the electronic device to enter a second standby mode:
and generating and sending mode switching prompt information.
10. A control device, comprising:
the information acquisition module is used for acquiring first attribute information of a hard disk of the electronic equipment under the condition that the electronic equipment is in a first standby mode;
the condition judgment module is used for determining whether the index parameter of the hard disk meets a first condition according to the first attribute information when the type of the hard disk belongs to a mechanical hard disk;
the mode switching module is used for controlling the electronic equipment to enter a second standby mode under the condition that the index parameter meets a first condition;
the first standby mode and the second standby mode are different, the electronic equipment can respond to a first wake-up event in the first standby mode to further realize a first function, and the electronic equipment can respond to a second wake-up event in the second standby mode to further realize a second function; the range of the first function is greater than the range of the second function.
CN201910249374.XA 2019-03-29 2019-03-29 Control method and device Active CN109933419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910249374.XA CN109933419B (en) 2019-03-29 2019-03-29 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910249374.XA CN109933419B (en) 2019-03-29 2019-03-29 Control method and device

Publications (2)

Publication Number Publication Date
CN109933419A CN109933419A (en) 2019-06-25
CN109933419B true CN109933419B (en) 2021-05-18

Family

ID=66988719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910249374.XA Active CN109933419B (en) 2019-03-29 2019-03-29 Control method and device

Country Status (1)

Country Link
CN (1) CN109933419B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158775B (en) * 2019-12-30 2021-09-14 联想(北京)有限公司 Processing method and electronic device
CN113032171B (en) * 2021-03-30 2023-12-22 联想(北京)有限公司 Control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520689A (en) * 2009-04-17 2009-09-02 成都市华为赛门铁克科技有限公司 Computer memory device control method, computer memory device controller and memory device
CN103268147A (en) * 2013-06-04 2013-08-28 北京百度网讯科技有限公司 Method and device for hard disk power consumption management
CN106527650A (en) * 2015-09-09 2017-03-22 纬创资通股份有限公司 Server and control method thereof
CN107766006A (en) * 2017-11-07 2018-03-06 合肥兆芯电子有限公司 Storage management method, memory storage apparatus and memorizer control circuit unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5279634B2 (en) * 2009-06-30 2013-09-04 キヤノン株式会社 Information processing apparatus, control method for information processing apparatus, and control program
JP6409240B1 (en) * 2017-09-06 2018-10-24 レノボ・シンガポール・プライベート・リミテッド Information processing apparatus, control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520689A (en) * 2009-04-17 2009-09-02 成都市华为赛门铁克科技有限公司 Computer memory device control method, computer memory device controller and memory device
CN103268147A (en) * 2013-06-04 2013-08-28 北京百度网讯科技有限公司 Method and device for hard disk power consumption management
CN106527650A (en) * 2015-09-09 2017-03-22 纬创资通股份有限公司 Server and control method thereof
CN107766006A (en) * 2017-11-07 2018-03-06 合肥兆芯电子有限公司 Storage management method, memory storage apparatus and memorizer control circuit unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Windows中亦可切换硬盘工作模式 技嘉Disk Mode Switch";Rock;《电脑迷》;20110930(第18期);第50页 *

Also Published As

Publication number Publication date
CN109933419A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN109803359B (en) Method for awakening terminal system and terminal
CN102667668B (en) For the dynamic low power mode embodiment of calculation element
CN109272728B (en) Electric quantity management method and device
CN107278283B (en) Techniques for managing power of an embedded controller during a low power state
CN101969502A (en) Mobile terminal service recovering method and mobile terminal
CN109933419B (en) Control method and device
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
JP3600556B2 (en) Information processing equipment
CN111124041A (en) Wearable device control device and method and wearable device
CN112732067B (en) Crystal oscillator switching method and device, terminal and storage medium
CN111124088B (en) Control method and electronic equipment
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
CN111198607B (en) Method and device for managing power consumption of electronic equipment
JP5733145B2 (en) Policy setting system and policy setting method
CN114385252A (en) Device control method, device, storage medium and electronic device
CN113866651B (en) Low-power detection method and device for remote controller and remote controller
KR100677121B1 (en) Apparatus and method for controlling status battery in low voltage
CN115923690A (en) Analysis method, device, equipment and medium for abnormal sleeping and awakening of vehicle
CN112462922B (en) Fan energy-saving control method, system, terminal and storage medium
CN106095645A (en) A kind of application program search method and device
CN117612527A (en) Equipment awakening method and device, storage medium and electronic equipment
US11294446B2 (en) Non-wakeable system states
CN116659088A (en) Water heater control method and system, water heater and medium
CN106325461B (en) Information processing method and electronic equipment
CN116456436A (en) Networking method and device of Internet of things equipment, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant