CN103500138A - Power management method and system and mobile terminal - Google Patents
Power management method and system and mobile terminal Download PDFInfo
- Publication number
- CN103500138A CN103500138A CN201310461283.5A CN201310461283A CN103500138A CN 103500138 A CN103500138 A CN 103500138A CN 201310461283 A CN201310461283 A CN 201310461283A CN 103500138 A CN103500138 A CN 103500138A
- Authority
- CN
- China
- Prior art keywords
- terminal
- lock
- inner nuclear
- nuclear layer
- holding state
- 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
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
The invention belongs to the field of communications, and particularly relates to a power management method and system and a mobile terminal. The method includes the steps that whether a terminal screen is turned off or not is detected; if the terminal screen is detected to be turned off, whether the terminal is in a standby state or not is detected; if the terminal is not in the standby state, the lock releasing conditions of all processes in an inner kernel layer of a terminal system are detected; lock information which is not released in the inner kernel layer of the terminal system is written into an inner kernel layer log. According to the power management method and system and the mobile terminal, when the terminal is in an off-screen state and not in the standby state, under the condition that abnormal power consumption exists, professional maintenance personnel do not need to go to the scene and use corresponding instructions to examine relevant interface functions, and problems can be quickly located through the inner kernel layer log.
Description
Technical field
The invention belongs to the communications field, relate in particular to a kind of method for managing power supply, system and mobile terminal.
Background technology
At present the android mobile terminal is going out screen and generally all can enter holding state during in operation without application program, but, when certain process application has been arranged lock, can not enter holding state, does not enter holding state, and system power dissipation is generally relatively large.
Yet, when inner nuclear layer, owing to having applied for not release in time of lock, while causing not entering holding state under the screen state that goes out, can cause system power dissipation larger.And the user can't know the reason that causes system power dissipation large, only give the specialized maintenance personnel, check the relevant interface function by the corresponding order of specialized maintenance librarian use, just can orient and be which process application on earth lock discharges and causes not entering holding state.Therefore to there being orientation problem under abnormal power consumption situation to bring very large difficulty.
Summary of the invention
The object of the present invention is to provide a kind of method for managing power supply, system and mobile terminal, when being intended to solve prior art not entering holding state under the screen state that goes out, to the problem of location difficulty under abnormal power consumption situation is arranged.
First aspect, the invention provides a kind of method for managing power supply, and described method comprises:
Whether the sense terminals screen closes;
If terminal screen detected, close, whether sense terminals is in holding state;
If terminal is in holding state, the release conditions of the lock of all processes in sense terminals system kernel layer;
To in described terminal system inner nuclear layer, not have the lock information of the process of release to write in the inner nuclear layer daily record.
Second aspect, the invention provides a kind of power-supply management system, and described system comprises:
Whether first detection module, close for detection of terminal screen;
The second detection module, if close for terminal screen being detected, whether detection system is in holding state;
The 3rd detection module, if for terminal not in holding state, the release conditions of the lock of all processes in sense terminals system kernel layer;
The daily record writing module, write in the inner nuclear layer daily record for the lock information of the process that described terminal system inner nuclear layer do not had discharge.
The third aspect, the invention provides a kind of mobile terminal that comprises above-mentioned power-supply management system.
In the present invention, owing under the screen state that goes out, not entering holding state, detect the holding and release conditions of lock of all processes in inner nuclear layer, being locked in the inner nuclear layer daily record of not discharging in inner nuclear layer be printed.While therefore under the screen state that goes out, not entering holding state, have under abnormal power consumption situation, the specialized maintenance personnel do not need to use to scene corresponding order to check the relevant interface function, can pass through inner nuclear layer daily record quick positioning question place yet.
The accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for managing power supply that provides of the embodiment of the present invention one.
Fig. 2 is the functional block diagram of the power-supply management system that provides of the embodiment of the present invention two.
Embodiment
In order to make purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, below by specific embodiment, describe.
embodiment mono-:
Refer to Fig. 1, the method for managing power supply that the embodiment of the present invention one provides comprises the following steps:
Whether S101, sense terminals screen close;
If S102 detects terminal screen and closes, sense terminals, whether in holding state, if not in holding state, is carried out S103;
In the embodiment of the present invention one, after S102, can also comprise the following steps:
If not in holding state, whether the detection system power consumption is abnormal, if abnormal, carries out S103.
Whether described detection system power consumption extremely specifically can comprise the following steps:
Gather battery correlation parameter information every predetermined period, battery correlation parameter information comprises cell voltage, temperature, electric weight, electric current etc.;
The detection system power consumption number;
Reach default threshold values if power consumption in lasting default duration detected always, think that system power dissipation is abnormal.
In S103, detection inner nuclear layer, the lock of all processes holds and release conditions;
In the embodiment of the present invention one, S103 is specially:
Because holding of lock of all processes in inner nuclear layer is dynamically to be presented in internal memory with release conditions, therefore by code, lock is arranged to the correlating markings position in advance, by detecting in advance the holding and release conditions of lock of the zone bit of the lock setting of all processes in inner nuclear layer being determined to all processes in inner nuclear layer.The situation that detects lock can detect by the cat order, for example cat/kernel/power/wake_lock and cat/proc/wakelocks.
In the embodiment of the present invention one, S103 can also comprise the following steps:
Detect battery correlation parameter information.
In the embodiment of the present invention one, S103 is specifically as follows:
Every predetermined period, by the interdependent node of traversal setting in Virtual File System (/proc), check the holding and release conditions and battery correlation parameter information of lock of all processes.This predetermined period can not be too short, otherwise affect system performance.Interdependent node be specially/proc/wakelocks node or other similar node.
In the embodiment of the present invention one, S103 can also comprise the following steps:
Detect the state of the relevant interface of communication module, judge that whether the communication module state is normal.The relevant interface of communication module can be assert, reset, sleep, wdt pin etc.
The state of the relevant interface of described detection communication module judges whether the communication module state normally is specifically as follows:
Detect the state of the relevant interface of communication module every predetermined period, judge that whether the communication module state is normal.
S104, the lock information will not have in inner nuclear layer do not discharged write in the inner nuclear layer daily record.
In the embodiment of the present invention one, S104 can also comprise the following steps:
Battery correlation parameter information is write in the inner nuclear layer daily record.
In the embodiment of the present invention one, S104 can also comprise the following steps:
The communication module status information is write in the inner nuclear layer daily record.
In the embodiment of the present invention one, after S104, can also comprise the following steps:
As the user when running into the power consumption abnormal conditions, by the inner nuclear layer Log Sender to server, with by the rapid orientation problem of technician and dealing with problems.
In the embodiment of the present invention one, owing under the screen state that goes out, not entering holding state, detect the holding and release conditions of lock of all processes in inner nuclear layer, will in inner nuclear layer, not have the lock information of release to write in the inner nuclear layer daily record.While therefore under the screen state that goes out, not entering holding state, have under abnormal power consumption situation, the specialized maintenance personnel do not need to use to scene corresponding order to check the relevant interface function, can pass through inner nuclear layer daily record quick positioning question place yet.
embodiment bis-:
Refer to Fig. 2, the power-supply management system that the embodiment of the present invention two provides comprises: first detection module 11, the second detection module 12, the 3rd detection module 13 and daily record writing module 14, wherein,
Whether first detection module 11, close for detection of terminal screen;
The second detection module 12, if close for terminal screen being detected, whether sense terminals is in holding state;
The 3rd detection module 13, if for terminal not in holding state, the holding and release conditions of the lock of all processes in the detection system inner nuclear layer;
In the embodiment of the present invention two, described the 3rd detection module 13 specifically for: by detecting in advance the holding and release conditions of lock of the zone bit of the lock setting of all processes in inner nuclear layer being determined to all processes in inner nuclear layer.
In the embodiment of the present invention two, described the 3rd detection module 13 specifically for: every predetermined period, by the interdependent node of traversal setting in Virtual File System (/proc), check the holding and release conditions and battery correlation parameter information of lock of all processes.This predetermined period can not be too short, otherwise affect system performance.Interdependent node be specially/proc/wakelocks node or other similar node.
Daily record writing module 14, do not write in the inner nuclear layer daily record for inner nuclear layer be there is no to the lock information discharged.
In the embodiment of the present invention two, described system can also comprise:
The 4th detection module, for if not in holding state, whether the detection system power consumption is abnormal, if abnormal, by the 3rd detection module, detected the holding and release conditions of lock of all processes in inner nuclear layer.
Described the 4th detection module specifically can be for gathering battery correlation parameter information every predetermined period, battery correlation parameter information comprises cell voltage, temperature, electric weight, electric current etc.; The detection system power consumption number; Reach default threshold values if power consumption in lasting default duration detected always, think that system power dissipation is abnormal.
In the embodiment of the present invention two, described system can also comprise:
The 5th detection module, for if not in holding state, detect battery correlation parameter information;
Described daily record writing module 14 is also for by the daily record of battery correlation parameter information writing system inner nuclear layer;
In the embodiment of the present invention two, described system can also comprise:
The 6th detection module, for if not in holding state, detect the state of the relevant interface of communication module, judges that whether the communication module state is normal;
Described daily record writing module 14 is also for writing the inner nuclear layer daily record by the communication module status information.
In the embodiment of the present invention two, owing under the terminal screen closed condition, not entering holding state, detect the holding and release conditions of lock of all processes in inner nuclear layer, will in inner nuclear layer, not have in the lock information writing system inner nuclear layer daily record of release.While therefore under the screen closed condition, not entering holding state, have under abnormal power consumption situation, the specialized maintenance personnel do not need to use to scene corresponding order to check the relevant interface function, can pass through inner nuclear layer daily record quick positioning question place yet.
Provide a kind of mobile terminal that comprises the power-supply management system that the embodiment of the present invention two provides in the embodiment of the present invention three.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. a method for managing power supply, is characterized in that, described method comprises:
Whether the sense terminals screen closes;
If terminal screen detected, close, whether sense terminals is in holding state;
If terminal is in holding state, the release conditions of the lock of all processes in sense terminals system kernel layer;
By in the lock information writing system inner nuclear layer daily record of the process that do not have in described terminal system inner nuclear layer to discharge.
2. the method for claim 1, is characterized in that, described method also comprises:
If terminal is not in holding state, whether the detection system power consumption is abnormal, if extremely, carries out the step of the release conditions of the lock of all processes in described sense terminals system kernel layer.
3. method as claimed in claim 2, is characterized in that, whether described detection system power consumption extremely specifically comprises:
Every predetermined period acquisition terminal battery correlation parameter information;
The detection system power consumption number;
Reach default threshold values if power consumption in lasting default duration detected always, think that system power dissipation is abnormal.
4. the method for claim 1, is characterized in that, in described sense terminals system kernel layer, the release conditions of the lock of all processes is specially:
In advance the zone bit of the lock setting of all processes in described terminal system inner nuclear layer is determined the release conditions of the lock of all processes in the terminal system inner nuclear layer by detecting.
5. the method for claim 1, is characterized in that, described method also comprises:
If terminal is in holding state, sense terminals battery correlation parameter information;
End cell correlation parameter information is write in the daily record of terminal system inner nuclear layer;
And/or,
Described method also comprises:
If terminal, not in holding state, detects the state of the relevant interface of communication module, judge that whether the communication module state is normal;
The communication module status information is write in the daily record of terminal system inner nuclear layer.
6. a power-supply management system, is characterized in that, described system comprises:
Whether first detection module, close for detection of terminal screen;
The second detection module, if close for terminal screen being detected, whether sense terminals is in holding state;
The 3rd detection module, if for terminal not in holding state, the release conditions of the lock of all processes in sense terminals system kernel layer;
The daily record writing module, in the lock information writing system inner nuclear layer daily record for the process that described terminal system inner nuclear layer do not had discharge.
7. system as claimed in claim 6, is characterized in that, described system also comprises:
The 4th detection module, if for terminal not in holding state, whether the detection system power consumption abnormal, if abnormal, the release conditions of the lock of all processes in the 3rd detection module sense terminals system kernel layer.
8. system as claimed in claim 6, is characterized in that, described the 3rd detection module specifically for: by detecting in advance the release conditions of the zone bit of the lock setting of all processes in the terminal system inner nuclear layer being determined to the lock of all processes in the terminal system inner nuclear layer.
9. system as claimed in claim 6, is characterized in that, described system also comprises:
The 5th detection module, for if not in holding state, sense terminals battery correlation parameter information;
Described daily record writing module is also for by the daily record of battery correlation parameter information writing system system kernel layer;
And/or,
Described system also comprises:
The 6th detection module, if for terminal not in holding state, detect the state of the relevant interface of communication module, judge that whether the communication module state normal;
Described daily record writing module is also for writing the inner nuclear layer daily record by the communication module status information.
10. a mobile terminal that comprises the described power-supply management system of claim 6 to 9 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310461283.5A CN103500138B (en) | 2013-09-30 | 2013-09-30 | Power supply management method, system and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310461283.5A CN103500138B (en) | 2013-09-30 | 2013-09-30 | Power supply management method, system and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103500138A true CN103500138A (en) | 2014-01-08 |
CN103500138B CN103500138B (en) | 2016-06-08 |
Family
ID=49865352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310461283.5A Active CN103500138B (en) | 2013-09-30 | 2013-09-30 | Power supply management method, system and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103500138B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092835A (en) * | 2014-07-31 | 2014-10-08 | 广东欧珀移动通信有限公司 | Power consumption anomaly detection method and device for mobile terminal |
CN105183137A (en) * | 2015-09-09 | 2015-12-23 | 厦门美图移动科技有限公司 | Mobile terminal and wake lock control method and system thereof |
CN106102144A (en) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | A kind of sensor processing method based on mobile terminal and device |
CN109471517A (en) * | 2018-11-22 | 2019-03-15 | 努比亚技术有限公司 | A kind of display processing method, equipment and computer readable storage medium |
TWI656441B (en) * | 2014-11-26 | 2019-04-11 | 群邁通訊股份有限公司 | Standby abnormal power consumption detecting system and method |
CN117807358A (en) * | 2023-11-27 | 2024-04-02 | 青岛星鸿智源科技有限公司 | Parameter-adaptive power module state abnormality diagnosis method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100169634A1 (en) * | 2008-12-31 | 2010-07-01 | Jacob Pan | System and method for self-clocking os kernel boot |
CN101895975A (en) * | 2010-07-22 | 2010-11-24 | 中兴通讯股份有限公司 | Method for entering idle mode and mobile terminal employing same |
CN102944734A (en) * | 2012-11-21 | 2013-02-27 | 北京小米科技有限责任公司 | Method for monitoring terminal state, monitoring circuit and terminal |
-
2013
- 2013-09-30 CN CN201310461283.5A patent/CN103500138B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100169634A1 (en) * | 2008-12-31 | 2010-07-01 | Jacob Pan | System and method for self-clocking os kernel boot |
CN101895975A (en) * | 2010-07-22 | 2010-11-24 | 中兴通讯股份有限公司 | Method for entering idle mode and mobile terminal employing same |
CN102944734A (en) * | 2012-11-21 | 2013-02-27 | 北京小米科技有限责任公司 | Method for monitoring terminal state, monitoring circuit and terminal |
Non-Patent Citations (1)
Title |
---|
周湘贞等: "《操作系统原理与实践教程》", 31 October 2006 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092835A (en) * | 2014-07-31 | 2014-10-08 | 广东欧珀移动通信有限公司 | Power consumption anomaly detection method and device for mobile terminal |
CN104092835B (en) * | 2014-07-31 | 2016-08-24 | 广东欧珀移动通信有限公司 | A kind of mobile terminal power consumption method for detecting abnormality and device |
TWI656441B (en) * | 2014-11-26 | 2019-04-11 | 群邁通訊股份有限公司 | Standby abnormal power consumption detecting system and method |
CN105183137A (en) * | 2015-09-09 | 2015-12-23 | 厦门美图移动科技有限公司 | Mobile terminal and wake lock control method and system thereof |
CN105183137B (en) * | 2015-09-09 | 2018-06-01 | 厦门美图移动科技有限公司 | A kind of mobile terminal and its wake-up lock control method and control system |
CN106102144A (en) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | A kind of sensor processing method based on mobile terminal and device |
CN106102144B (en) * | 2016-05-31 | 2017-09-01 | 广东欧珀移动通信有限公司 | A kind of sensor processing method and device based on mobile terminal |
WO2017206891A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Sensor processing method and apparatus, storage medium, and electronic device |
CN109471517A (en) * | 2018-11-22 | 2019-03-15 | 努比亚技术有限公司 | A kind of display processing method, equipment and computer readable storage medium |
CN109471517B (en) * | 2018-11-22 | 2021-06-15 | 努比亚技术有限公司 | Display processing method and device and computer readable storage medium |
CN117807358A (en) * | 2023-11-27 | 2024-04-02 | 青岛星鸿智源科技有限公司 | Parameter-adaptive power module state abnormality diagnosis method and system |
CN117807358B (en) * | 2023-11-27 | 2024-07-16 | 青岛星鸿智源科技有限公司 | Parameter-adaptive power module state abnormality diagnosis method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103500138B (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103500138A (en) | Power management method and system and mobile terminal | |
CN104461947B (en) | A kind of power-off protection method and solid state hard disk | |
CN101286130B (en) | Embedded equipment reset fault positioning accomplishing method | |
CN109683696A (en) | Fault of server power supply detection system, method, apparatus, equipment and medium | |
CN101493776B (en) | Mobile terminal and power-on method and system thereof | |
CN103558574B (en) | Method for testing software fault-tolerant capability of intelligent ammeter based on EEPROM data reading and writing | |
CN107517127A (en) | Processing method, mobile unit and the storage medium of communication abnormality | |
EP3200085A1 (en) | Data saving method and device and terminal | |
CN107145410A (en) | After a kind of system exception power down it is automatic on establish the method, system and equipment of machine by cable | |
CN104254097A (en) | Flow control method and device | |
CN106326061A (en) | High-speed cache data processing method and equipment | |
CN104881375A (en) | Power-down data protection method and device of storage system | |
CN102662804A (en) | Power-down-prevention irreversible self-destroying method for solid state disk | |
CN106682162A (en) | Log management method and device | |
CN106708616A (en) | Process control method and process control device | |
CN101430658A (en) | Exceptional reset information saving method and device | |
CN104881249B (en) | A kind of reading/writing method and device of eMMC | |
CN113590405A (en) | Hard disk error detection method and device, storage medium and electronic device | |
CN105354491B (en) | Intelligent terminal standby state detection method and device | |
US20140115378A1 (en) | System and method for restoring network configuration parameters | |
CN104598844A (en) | Power failure protection method and device for preventing corruption of system files of solid-state disk | |
CN102866962A (en) | Method for preventing data loss and solid state disk | |
CN202583765U (en) | Equipment room power failure automatic response system | |
CN203133817U (en) | Multifunctional safe mobile hard disk | |
US20160147630A1 (en) | Method and system of detecting abnormal power consumption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |