CN109933419A - A kind of control method and device - Google Patents
A kind of control method and device Download PDFInfo
- Publication number
- CN109933419A CN109933419A CN201910249374.XA CN201910249374A CN109933419A CN 109933419 A CN109933419 A CN 109933419A CN 201910249374 A CN201910249374 A CN 201910249374A CN 109933419 A CN109933419 A CN 109933419A
- Authority
- CN
- China
- Prior art keywords
- mode
- electronic equipment
- hard disk
- attribute information
- function
- 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.)
- Granted
Links
Abstract
This application discloses a kind of control method and device, in the case where electronic equipment is in first mode, obtain the first attribute information of the hard disk of electronic equipment, if the type of the hard disk belongs to target type, determine whether the index parameter of hard disk meets first condition according to the first attribute information, it in the case where index parameter meets first condition, controls the electronic equipment and enters second mode, wherein the electronic equipment in the flrst mode than can be realized more functions under the second mode.The control method and device, when electronic equipment hard disk type belongs to target type, it is automatic to detect the setting index parameter for determining hard disk, when index parameter meets condition, control is switched to second mode from first mode, it realizes the pattern switching based on hard disk attribute information controlling electronic devices, is conducive to promote user experience.
Description
Technical field
This application involves electron controls technologies, and more specifically, it relates to a kind of control method and device.
Background technique
In recent years, there is a kind of modern standby (intelligent standby) scheme in PC machine field.Under this scheme, computer
Can be standby as smart phone, into intelligent sleep state, and under intelligent sleep state, computer is still being networked, and is had
Some functional modules such as modules such as music, prompting and notice can continue working, and other functional modules enter suspend mode
State.
It is configured for HDD (Hard Disk Drive, hard disk drive), there are two types of modern standby scheme is current
Operating mode, i.e. DS (disconnected standby, suspension are standby) mode and CS (connected standby, networking to
Machine) mode.
When hard disk drive is mechanical hard disk, the more current normal Standby of modern standby scheme is had more times
Several power on/off, and the frequent power on/off of mechanical hard disk may will affect its service life.
Summary of the invention
In view of this, the application provides the following technical solutions:
A kind of control method, comprising:
In the case where electronic equipment is in first mode, the first attribute information of the hard disk of the electronic equipment is obtained;
If the type of the hard disk belongs to target type, the index of the hard disk is determined according to first attribute information
Whether parameter meets first condition;
In the case where the index parameter meets first condition, controls the electronic equipment and enter second mode;
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
Optionally, the hard disk of the electronic equipment is obtained in the case where electronic equipment is in first mode described
Before first attribute information, further includes:
If the system of the electronic equipment reaches switching condition, control described in the electronic equipment enters as the third mode
First mode;
Wherein, power consumption of the electronic equipment under the third mode be greater than its first mode and its in institute
State the power consumption under second mode.
Optionally, further includes:
Switching command is obtained, controls the electronic equipment into the third mode.
Optionally, the power consumption of the electronic equipment in the first mode is greater than its function in the second mode
Consumption.
Optionally, compared to the electronic equipment achieved the second function in the second mode, the electronics
Achieved the first function at least further includes network function to equipment in the first mode, described in the network function expression
Electronic equipment can be attached with the server at least one network to obtain information.
Optionally, the number that the electronic equipment wakes up the hard disk in the first mode is more than in second mould
The number of the hard disk is waken up under formula.
Optionally, first attribute information includes motor start-stop time, accumulation conduction time, power cycles and dangerous
Close at least one of number;
It is then described to determine whether the index parameter of the hard disk meets first condition according to first attribute information, packet
It includes:
According at least one of the motor start-stop time, accumulation conduction time, power cycles, uneasy contract fully number
Whether the hard disk remaining life that information determines is less than or equal to lifetime threshold.
Optionally, it if the type in the hard disk belongs to target type, is determined according to first attribute information
Whether the index parameter of the hard disk meets before first condition, further includes:
The second attribute information is obtained, determines whether the hard disk is target type according to second attribute information;
Wherein, second attribute information includes hard disk configuration information, and the target type includes mechanical hard disk.
Optionally, after the control electronic equipment enters second mode, further includes:
Generate and issue pattern switching prompt information.
A kind of control device, comprising:
Data obtaining module, for obtaining the hard of the electronic equipment in the case where electronic equipment is in first mode
First attribute information of disk;
Condition judgment module, for when the type of the hard disk belongs to target type, according to first attribute information
Determine whether the index parameter of the hard disk meets first condition;
Mode switch module, for controlling the electronic equipment in the case where the index parameter meets first condition
Into second mode;
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
It can be seen via above technical scheme that the embodiment of the present application discloses a kind of control method and device, set in electronics
In the case where being in first mode, the first attribute information of the hard disk of the electronic equipment is obtained, if the class of the hard disk
Type belongs to target type, determines whether the index parameter of the hard disk meets first condition according to first attribute information,
It in the case that the index parameter meets first condition, controls the electronic equipment and enters second mode, wherein the electronics is set
For in the flrst mode than can be realized more functions under the second mode.The control method and device, in electronic equipment
When hard disk type belongs to target type, automatic detection determination and hard disk attribute relevant information, in setting for these information instruction hard disk
When determining index parameter and meeting condition, controlling electronic devices is switched to second mode from first mode, realizes and is believed based on hard disk attribute
The pattern switching for ceasing controlling electronic devices is conducive to promote user experience.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to required use in embodiment description
Attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only embodiments herein, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to the attached drawing of offer other attached
Figure.
Fig. 1 is a kind of flow chart of control method disclosed in the embodiment of the present application;
Fig. 2 is the flow chart of another kind control method disclosed in the embodiment of the present application;
Fig. 3 is the flow chart of another control method disclosed in the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of control device disclosed in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of another kind control device disclosed in the embodiment of the present application;
Fig. 6 is the structural schematic diagram of another control device disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Fig. 1 is a kind of flow chart of control method disclosed in the embodiment of the present application, shown in Figure 1, the control method
May include:
Step 101: in the case where electronic equipment is in first mode, obtain the hard disk of the electronic equipment first belongs to
Property information.
In the present embodiment, the first mode can be a kind of implementation of intelligent standby mode;Wherein, in the intelligence
Can be under standby mode, the CPU of electronic equipment can be there are two types of state, the first is that the CPU of the electronic equipment is completely in and stops
The state only to work, but other some functional modules in the electronic equipment, such as voice acquisition module, sensor module, net
A small-sized processing chip is respectively arranged in the modules such as card module, which can assist its corresponding functional module
Realize corresponding function;It is for second functional circuit work in part in the CPU of the electronic equipment, and other functional circuits stop
The circuit of work, part work can also execute the corresponding function of respective modules.
It, can be automatic periodically or when equipment reaches preset condition when electronic equipment is under the first mode
Obtain the first attribute information of the hard disk of the electronic equipment.Wherein, the preset condition may include that CPU triggering wakes up firmly
Disk.In addition, actively obtaining first attribute information according to the scheme for first attribute information for periodically acquiring hard disk
Period should not be arranged it is excessive, such as 10 minutes, 20 minutes, to guarantee the real-time of first attribute information.
It specifically, can be obtaining the electronics by way of reading hard disk operating parameter in hard drive firmware
First attribute information of equipment.Wherein, first property parameters can with but be not limited to include that motor start-stop time, accumulation are logical
At least one of electric time, power cycles and uneasy contract fully number.It in practical applications, can according to demand and equipment is matched
It sets to determine content that first attribute information is included.
Step 102: if the type of the hard disk belongs to target type, being determined according to first attribute information described hard
Whether the index parameter of disk meets first condition.
In the present embodiment, the target type can with but be not limited to mechanical hard disk.Belong in the type of the hard disk pre-
When the target type first configured, can just execute it is described according to first attribute information determine the hard disk index parameter whether
Meet the content of first condition.
Wherein, the index parameter that the first condition can be the hard disk reaches preset threshold.The index parameter can
Directly to be determined by first attribute information, it is also possible to calculate determining data according to first attribute information.Due to
First attribute information may include the data of multiple and different types, and therefore, the index parameter is also possible to according to certain
Rule, the data that comprehensive each categorical data obtains.
Step 103: in the case where the index parameter meets first condition, controlling the electronic equipment into the second mould
Formula.
Wherein, the second mode can be another implementation of intelligent standby mode;The first mode and institute
It is not identical to state second mode, the electronic equipment is able to respond the first wake events in the first mode and then realizes first
Function, the electronic equipment are able to respond the second wake events in the second mode and then realize the second function;Described
The range of one function is greater than the range of second function.
In a specific example, the hard disk is mechanical hard disk, and the index parameter is hard disk life-span value, described the
One condition is that hard disk life-span value is less than or equal to 30%, then when the life value of the mechanical hard disk is less than or equal to 30%, control
It makes the electronic equipment and second mode is entered by first mode.The purpose for being switched to the second mode from the first mode can
Hard disk wear is reduced to be.
Wherein, the first mode and the second mode can be different standby modes, such as the first mode
For CS standby mode, the second mode is DS standby mode, and compared to DS standby mode, the electronic equipment is in the standby mould of CS
It can be realized under formula under more functions, such as CS standby mode, electronic equipment may be implemented to be connected to the network, and obtain network letter
Breath.
In the present embodiment, the control method electronic equipment be in can be realized more multi-functional first mode under, and
When electronic equipment hard disk type belongs to target type, automatic detection determination and hard disk attribute relevant information are indicated in these information
When the setting index parameter of hard disk meets condition, automatically controls from first mode and be switched to second mode, because of second mode phase
It is less compared with the function that first mode is realized, so the number for needing to wake up hard disk can also be reduced, thereby reduce hard disk consume.
Using scheme disclosed in the present embodiment, can make normally to realize more under intelligent standby mode using the electronic equipment of mechanical hard disk
More functions, such as network savvy, and when hard disk wear reaches a certain level, it is switched to the mode for realizing less function, is protected
Hard disk, the program flexibly switch the mode of electronic equipment according to hard disk attribute information, have better met user demand, be conducive to
Promote user experience.
Fig. 2 is the flow chart of another kind control method disclosed in the embodiment of the present application, as shown in Fig. 2, control method can be with
Include:
Step 201: if the system of the electronic equipment reaches switching condition, controlling the electronic equipment by the third mode
Into the first mode.
Wherein, power consumption of the electronic equipment under the third mode be greater than its first mode and its in institute
State the power consumption under second mode.
In a specific example, the first mode and the second mode can be different intelligent standby moulds
Formula, the third mode can be normal booting operating mode (S0 mode).Due to the part of electronic equipment under standby mode
Even repertoire module all stops working, therefore, normal to be switched under operating mode, and the power consumption of electronic equipment is greater than standby mould
Power consumption under formula.
Wherein, affiliated switching condition may include but be not limited to electronic equipment and do not receive time of any input to reach
Preset value, or, receiving the standby command of user's input.
Step 202: in the case where electronic equipment is in first mode, obtain the hard disk of the electronic equipment first belongs to
Property information.
Step 203: if the type of the hard disk belongs to target type, being determined according to first attribute information described hard
Whether the index parameter of disk meets first condition.
Step 204: in the case where the index parameter meets first condition, controlling the electronic equipment into the second mould
Formula.
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
Disclosed control method according to the present embodiment can be with after electronic equipment enters standby mode by open state
Using the index parameter of hard disk as foundation, when the index parameter of hard disk meets preset first condition, controlling electronic devices is by one
Kind standby mode is switched to another standby mode, since the standby mode after switching is realized compared to the standby mode before switching
Function it is less, so the number for needing to wake up hard disk can also be reduced, hard disk consume is thereby reduced, to make using mechanical hard
The electronic equipment of disk normally realizes more functions under intelligent standby mode, and when hard disk wear reaches a certain level, cuts
It is changed to the mode for realizing less function, protects hard disk, the program flexibly switches the mode of electronic equipment according to hard disk attribute information,
To meet user demand.
Certainly, in other examples, control method can also include: acquisition switching command, control the electronics and set
Standby the step of entering the third mode.According to described previously, the third mode can be power on mode, electronics described herein
Equipment is obtaining switching command into the third mode, can be the electronic equipment by standby mode and enters power on mode.
Wherein, the switching command can with but be not limited to user trigger starting key generate switching command.Specifically, electronic equipment
Into the third mode, it can be and power on mode is entered by CS standby mode (first mode), be also possible to by the standby mould of DS
Formula (second mode enters power on mode).
In above-mentioned each embodiment, the power consumption of the electronic equipment in the first mode can be greater than it described the
Power consumption under two modes.Since compared to DS standby mode, the electronic equipment can be realized more under CS standby mode
Function, electronic equipment is also corresponding under CS standby mode to have more functional modules to work, therefore, in practical applications, institute
Power consumption of the electronic equipment under the CS standby mode is stated greater than its power consumption under DS standby mode.
Further, compared to the electronic equipment achieved the second function in the second mode, the electricity
Achieved the first function at least can also include network function, the network function table to sub- equipment in the first mode
Show that the electronic equipment can be attached with the server at least one network to obtain information.
Since the function that electronic equipment can be realized in the first mode can be realized under the second mode more than it
Function, therefore, electronic equipment wakes up the number of the hard disk more than calling out in the second mode in the first mode
It wakes up the number of the hard disk.For example, electronic equipment can receive the network information under CS standby mode, and in DS standby mode
Under can not receive the network information, under CS standby mode, after receiving the network information, it is corresponding to store to need to wake up hard disk
The network information and processing data;And under DS standby mode, the network information will not be received, thus will not be because of the network information
And wake up hard disk.
Made referrals in the above embodiments, first attribute information can with but be not limited to include motor start and stop
At least one of number, accumulation conduction time, power cycles and uneasy contract fully number, then it is described according to first attribute
Information determines whether the index parameter of the hard disk meets first condition, comprising: is powered according to the motor start-stop time, accumulation
Whether the hard disk remaining life that at least one of time, power cycles, uneasy contract fully number information determine is less than or equal to
Lifetime threshold.
Fig. 3 is the flow chart of another control method disclosed in the embodiment of the present application, and shown in Figure 3, control method can
To include:
Step 301: in the case where electronic equipment is in first mode, obtain the hard disk of the electronic equipment first belongs to
Property information.
Step 302: obtaining the second attribute information, determine whether the hard disk is target class according to second attribute information
Type.
Wherein, second attribute information may include hard disk configuration information, and the target type includes mechanical hard disk.Root
The hard disk type of the electronic equipment can be directly determined according to hard disk configuration information, so that it is determined that whether it is target type.
It should be noted that the tandem of step 301 and step 302 is without limitation here.
Step 303: if the type of the hard disk belongs to target type, being determined according to first attribute information described hard
Whether the index parameter of disk meets first condition.
Step 304: in the case where the index parameter meets first condition, controlling the electronic equipment into the second mould
Formula.
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
On the basis of above-mentioned disclosed embodiments, enter second mode in the control electronic equipment
It afterwards, can also include: to generate and issue pattern switching prompt information.To prompt user's standby mode to change, user is made to define electricity
Some functions of sub- equipment cannot be executed normally after switch mode, and hard disk life-span value is few, be carried out convenient for user subsequent
Dependent event processing.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the application is not limited by the described action sequence because according to the application, certain
A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification
The embodiment stated belongs to preferred embodiment, necessary to related actions and modules not necessarily the application.
Method is described in detail in above-mentioned disclosed embodiments, diversified forms can be used for the present processes
Device realize that therefore disclosed herein as well is a kind of devices, and specific embodiment is given below and is described in detail.
Fig. 4 is a kind of structural schematic diagram of control device disclosed in the embodiment of the present application, as shown in figure 4, control device 40
May include:
Data obtaining module 401, for obtaining the electronic equipment in the case where electronic equipment is in first mode
First attribute information of hard disk.
In the present embodiment, the first mode can be a kind of implementation of intelligent standby mode.Electronic equipment is in
When under the first mode, the hard of the electronic equipment can be automatically obtained periodically or when equipment reaches preset condition
First attribute information of disk.Wherein, the preset condition may include that CPU triggering wakes up hard disk.In addition, according to periodically obtaining
The scheme for taking first attribute information of hard disk, actively obtain first attribute information period should not be arranged it is excessive,
Such as 10 minutes, 20 minutes, to guarantee the real-time of first attribute information.
It specifically, can be obtaining the electronics by way of reading hard disk operating parameter in hard drive firmware
First attribute information of equipment.Wherein, first property parameters can with but be not limited to include that motor start-stop time, accumulation are logical
At least one of electric time, power cycles and uneasy contract fully number.It in practical applications, can according to demand and equipment is matched
It sets to determine content that first attribute information is included.
Condition judgment module 402, for being believed according to first attribute when the type of the hard disk belongs to target type
Breath determines whether the index parameter of the hard disk meets first condition.
In the present embodiment, the target type can with but be not limited to mechanical hard disk.Belong in the type of the hard disk pre-
When the target type first configured, can just execute it is described according to first attribute information determine the hard disk index parameter whether
Meet the content of first condition.
Wherein, the index parameter that the first condition can be the hard disk reaches preset threshold.The index parameter can
Directly to be determined by first attribute information, it is also possible to calculate determining data according to first attribute information.Due to
First attribute information may include the data of multiple and different types, and therefore, the index parameter is also possible to according to certain
Rule, the data that comprehensive each categorical data obtains.
Mode switch module 403, for controlling the electronics and setting in the case where the index parameter meets first condition
It is standby to enter second mode.
Wherein, the second mode can be another implementation of intelligent standby mode;The first mode and institute
It is not identical to state second mode, the electronic equipment is able to respond the first wake events in the first mode and then realizes first
Function, the electronic equipment are able to respond the second wake events in the second mode and then realize the second function;Described
The range of one function is greater than the range of second function.
Wherein, the first mode and the second mode can be different standby modes, such as the first mode
For CS standby mode, the second mode is DS standby mode, and compared to DS standby mode, the electronic equipment is in the standby mould of CS
It can be realized more functions under formula.
In the present embodiment, the control device electronic equipment be in can be realized more multi-functional first mode under, and
When electronic equipment hard disk type belongs to target type, automatic detection determination and hard disk attribute relevant information are indicated in these information
When the setting index parameter of hard disk meets condition, automatically controls from first mode and be switched to second mode, because of second mode phase
It is less compared with the function that first mode is realized, so the number for needing to wake up hard disk can also be reduced, thereby reduce hard disk consume.
Using scheme disclosed in the present embodiment, can make normally to realize more under intelligent standby mode using the electronic equipment of mechanical hard disk
More functions, such as network savvy, and when hard disk wear reaches a certain level, it is switched to the mode for realizing less function, is protected
Hard disk, the program flexibly switch the mode of electronic equipment according to hard disk attribute information, have better met user demand, be conducive to
Promote user experience.
Fig. 5 is the structural schematic diagram of another kind control device disclosed in the embodiment of the present application, shown in Figure 5, control dress
Setting 50 may include:
Switching control module 501, for controlling the electronics and setting when the system of the electronic equipment reaches switching condition
It is standby that the first mode is entered by the third mode.
Wherein, power consumption of the electronic equipment under the third mode be greater than its first mode and its in institute
State the power consumption under second mode.
In a specific example, the first mode and the second mode can be different intelligent standby moulds
Formula, the third mode can be normal booting operating mode.Since electronic equipment is partially or completely under standby mode
Functional module all stops working, therefore, normal to be switched under operating mode, and the power consumption of electronic equipment is greater than the function under standby mode
Consumption.
Wherein, affiliated switching condition may include but be not limited to electronic equipment and do not receive time of any input to reach
Preset value, or, receiving the standby command of user's input.
Data obtaining module 401, for obtaining the electronic equipment in the case where electronic equipment is in first mode
First attribute information of hard disk.
Condition judgment module 402, for being believed according to first attribute when the type of the hard disk belongs to target type
Breath determines whether the index parameter of the hard disk meets first condition.
Mode switch module 403, for controlling the electronics and setting in the case where the index parameter meets first condition
It is standby to enter second mode.
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
Disclosed control device according to the present embodiment can be with after electronic equipment enters standby mode by open state
Using the index parameter of hard disk as foundation, when the index parameter of hard disk meets preset first condition, controlling electronic devices is by one
Kind standby mode is switched to another standby mode, since the standby mode after switching is realized compared to the standby mode before switching
Function it is less, so the number for needing to wake up hard disk can also be reduced, hard disk consume is thereby reduced, to make using mechanical hard
The electronic equipment of disk normally realizes more functions under intelligent standby mode, and when hard disk wear reaches a certain level, cuts
It is changed to the mode for realizing less function, protects hard disk, the program flexibly switches the mode of electronic equipment according to hard disk attribute information,
To meet user demand.
Certainly, in other examples, the switching control module 501 can be also used for: obtain switching command, control
The electronic equipment enters the third mode.According to described previously, the third mode can be power on mode, described herein
Electronic equipment is obtaining switching command into the third mode, can be the electronic equipment by standby mode and enters booting mould
Formula.Wherein, the switching command can with but be not limited to user trigger starting key generate switching command.Specifically, electronics
Equipment enters the third mode, can be and enters power on mode by CS standby mode (first mode), is also possible to be waited for by DS
(second mode enters power on mode to machine mode.)
In above-mentioned each embodiment, the power consumption of the electronic equipment in the first mode can be greater than it described the
Power consumption under two modes.Since compared to DS standby mode, the electronic equipment can be realized more under CS standby mode
Function, electronic equipment is also corresponding under CS standby mode to have more functional modules to work, therefore, in practical applications, institute
Power consumption of the electronic equipment under the CS standby mode is stated greater than its power consumption under DS standby mode.
Further, compared to the electronic equipment achieved the second function in the second mode, the electricity
Achieved the first function at least can also include network function, the network function table to sub- equipment in the first mode
Show that the electronic equipment can be attached with the server at least one network to obtain information.
Since the function that electronic equipment can be realized in the first mode can be realized under the second mode more than it
Function, therefore, electronic equipment wakes up the number of the hard disk more than calling out in the second mode in the first mode
It wakes up the number of the hard disk.
Made referrals in the above embodiments, first attribute information can with but be not limited to include motor start and stop
At least one of number, accumulation conduction time, power cycles and uneasy contract fully number, then the condition judgment module is specific
It can be used for: according at least one of the motor start-stop time, accumulation conduction time, power cycles, uneasy contract fully number
Whether the hard disk remaining life that information determines is less than or equal to lifetime threshold.
Fig. 6 is the structural schematic diagram of another control device disclosed in the embodiment of the present application, as shown in fig. 6, control device
60 may include:
Data obtaining module 401, for obtaining the electronic equipment in the case where electronic equipment is in first mode
First attribute information of hard disk.
Hard disk attribute obtains module 601, for obtaining the second attribute information, according to second attribute information determination
Whether hard disk is target type.
Wherein, second attribute information may include hard disk configuration information, and the target type includes mechanical hard disk.Root
The hard disk type of the electronic equipment can be directly determined according to hard disk configuration information, so that it is determined that whether it is target type.
Condition judgment module 402, for being believed according to first attribute when the type of the hard disk belongs to target type
Breath determines whether the index parameter of the hard disk meets first condition.
Mode switch module 403, for controlling the electronics and setting in the case where the index parameter meets first condition
It is standby to enter second mode.
Wherein, the first mode and the second mode be not identical, and the electronic equipment in the first mode can
It enough responds the first wake events and then realizes the first function, the electronic equipment is able to respond second in the second mode and calls out
The event of waking up and then the second function of realization;The range of first function is greater than the range of second function.
In other examples, control device can also include switch prompting module, in the pattern switching mould
After the block control electronic equipment enters second mode, pattern switching prompt information is generated and issued.To prompt the standby mould of user
Formula variation, execute some functions of the clear electronic equipment of user cannot normally after switch mode, and hard disk life-span value is not
It is more, subsequent dependent event processing is carried out convenient for user.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of control method, comprising:
In the case where electronic equipment is in first mode, the first attribute information of the hard disk of the electronic equipment is obtained;
If the type of the hard disk belongs to target type, the index parameter of the hard disk is determined according to first attribute information
Whether first condition is met;
In the case where the index parameter meets first condition, controls the electronic equipment and enter second mode;
Wherein, the first mode and the second mode be not identical, and the electronic equipment can be rung in the first mode
It answers the first wake events and then realizes the first function, the electronic equipment is able to respond the second wake-up thing in the second mode
Part and then the second function of realization;The range of first function is greater than the range of second function.
2. control method according to claim 1 obtains institute described in the case where electronic equipment is in first mode
Before the first attribute information for stating the hard disk of electronic equipment, further includes:
If the system of the electronic equipment reaches switching condition, the electronic equipment is controlled by the third mode and enters described first
Mode;
Wherein, power consumption of the electronic equipment under the third mode be greater than its first mode and its described the
Power consumption under two modes.
3. control method according to claim 2, further includes:
Switching command is obtained, controls the electronic equipment into the third mode.
4. control method according to claim 1, wherein the power consumption of the electronic equipment in the first mode is greater than
Its power consumption in the second mode.
5. control method according to claim 1 or 4, wherein in the second mode compared to the electronic equipment
The second achieved function, achieved the first function at least further includes net to the electronic equipment in the first mode
Network function, the network function indicate that the electronic equipment can be attached to obtain with the server at least one network
Information.
6. control method according to claim 1 or 4, wherein the electronic equipment wakes up institute in the first mode
The number for stating hard disk is more than the number for waking up the hard disk in the second mode.
7. control method according to claim 1, when first attribute information includes motor start-stop time, accumulation energization
Between, at least one of power cycles and uneasy contract fully number;
It is then described to determine whether the index parameter of the hard disk meets first condition according to first attribute information, comprising:
According at least one of the motor start-stop time, accumulation conduction time, power cycles, uneasy contract fully number information
Whether determining hard disk remaining life is less than or equal to lifetime threshold.
8. control method according to claim 1, if the type in the hard disk belongs to target type, according to institute
It states before the first attribute information determines whether the index parameter of the hard disk meets first condition, further includes:
The second attribute information is obtained, determines whether the hard disk is target type according to second attribute information;
Wherein, second attribute information includes hard disk configuration information, and the target type includes mechanical hard disk.
9. control method according to claim 1 is also wrapped after the control electronic equipment enters second mode
It includes:
Generate and issue pattern switching prompt information.
10. a kind of control device, comprising:
Data obtaining module, for obtaining the hard disk of the electronic equipment in the case where electronic equipment is in first mode
First attribute information;
Condition judgment module, for being determined according to first attribute information when the type of the hard disk belongs to target type
Whether the index parameter of the hard disk meets first condition;
Mode switch module enters in the case where the index parameter meets first condition, controlling the electronic equipment
Second mode;
Wherein, the first mode and the second mode be not identical, and the electronic equipment can be rung in the first mode
It answers the first wake events and then realizes the first function, the electronic equipment is able to respond the second wake-up thing in the second mode
Part and then the second function of realization;The range of first function is greater than the range of second function.
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 true CN109933419A (en) | 2019-06-25 |
CN109933419B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158775A (en) * | 2019-12-30 | 2020-05-15 | 联想(北京)有限公司 | Processing method and electronic device |
CN113032171A (en) * | 2021-03-30 | 2021-06-25 | 联想(北京)有限公司 | Control method and device |
Citations (6)
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 |
US20100332885A1 (en) * | 2009-06-30 | 2010-12-30 | Canon Kabushiki Kaisha | Information processing apparatus, control method for information processing apparatus, and computer-readable storage medium |
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 |
US20190073023A1 (en) * | 2017-09-06 | 2019-03-07 | Lenovo (Singapore) Pte. Ltd. | Information processing device, control method, and program |
-
2019
- 2019-03-29 CN CN201910249374.XA patent/CN109933419B/en active Active
Patent Citations (6)
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 |
US20100332885A1 (en) * | 2009-06-30 | 2010-12-30 | Canon Kabushiki Kaisha | Information processing apparatus, control method for information processing apparatus, and computer-readable storage medium |
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 |
US20190073023A1 (en) * | 2017-09-06 | 2019-03-07 | Lenovo (Singapore) Pte. Ltd. | Information processing device, control method, and program |
CN107766006A (en) * | 2017-11-07 | 2018-03-06 | 合肥兆芯电子有限公司 | Storage management method, memory storage apparatus and memorizer control circuit unit |
Non-Patent Citations (1)
Title |
---|
ROCK: ""Windows中亦可切换硬盘工作模式 技嘉Disk Mode Switch"", 《电脑迷》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158775A (en) * | 2019-12-30 | 2020-05-15 | 联想(北京)有限公司 | Processing method and electronic device |
CN111158775B (en) * | 2019-12-30 | 2021-09-14 | 联想(北京)有限公司 | Processing method and electronic device |
CN113032171A (en) * | 2021-03-30 | 2021-06-25 | 联想(北京)有限公司 | Control method and device |
CN113032171B (en) * | 2021-03-30 | 2023-12-22 | 联想(北京)有限公司 | Control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109933419B (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2342612B1 (en) | Conserving power using predictive modelling and signaling | |
CN110058889B (en) | Application awakening method and device | |
CN103823543B (en) | Portable electronic device and the method operated wherein | |
CN105929923B (en) | A kind of management method and device of power | |
US20060005058A1 (en) | Portable communication device with multi-tiered power save operation | |
CN104461327A (en) | Information processing method and electronic device | |
EP2316058B1 (en) | System and method for conserving power applied to an electrical apparatus | |
CN106168902A (en) | Awakening control method, device and equipment | |
CN109933419A (en) | A kind of control method and device | |
CN109140706B (en) | Intelligent control method for air conditioner | |
CN105704785A (en) | Network searching method, device and mobile terminal | |
CN106250747B (en) | Information processing method and electronic equipment | |
CN105549718A (en) | Method and device for optimizing power consumption of application program and electronic equipment | |
CN104375929A (en) | Method for processing information and electronic equipment | |
CN105528171A (en) | Method and system for quickly starting application of intelligent terminal, and intelligent terminal | |
JP3600556B2 (en) | Information processing equipment | |
CN101661410A (en) | False touch protection method realized by utilizing power switch delay and computer device | |
CN110320813B (en) | Power management method and device for Internet of things equipment | |
CN110737322A (en) | Information processing method and electronic equipment | |
CN106020426B (en) | A kind of method for releasing and device waking up lock | |
CN103853981A (en) | Method and device for finding out background networking and power consumption rogue software | |
CN109117193A (en) | A kind of double screen switching method and double screen equipment | |
CN112416530B (en) | Method and device for elastically managing cluster physical machine nodes and electronic equipment | |
CN113947827A (en) | Method and device for adjusting running power consumption of door lock, electronic equipment and storage medium | |
CN106095645A (en) | A kind of application program search method and device |
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 |