CN114020341A - Dark screen standby method based on android operating system - Google Patents

Dark screen standby method based on android operating system Download PDF

Info

Publication number
CN114020341A
CN114020341A CN202111300176.5A CN202111300176A CN114020341A CN 114020341 A CN114020341 A CN 114020341A CN 202111300176 A CN202111300176 A CN 202111300176A CN 114020341 A CN114020341 A CN 114020341A
Authority
CN
China
Prior art keywords
equipment
screen
state
dark screen
dark
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.)
Pending
Application number
CN202111300176.5A
Other languages
Chinese (zh)
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.)
Vanstone Electronic Beijing Co Ltd
Original Assignee
Vanstone Electronic Beijing Co 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 Vanstone Electronic Beijing Co Ltd filed Critical Vanstone Electronic Beijing Co Ltd
Priority to CN202111300176.5A priority Critical patent/CN114020341A/en
Publication of CN114020341A publication Critical patent/CN114020341A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/01Details for indicating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a dark screen standby method based on an android operating system, which enters a system screen-off process when the non-operation duration of equipment reaches a preset time length, and comprises the following steps: enabling the equipment to enter a dark screen state; when the dark screen standby option is started and the equipment is in a charging state, keeping the equipment in a dark screen standby state; in the dark screen standby state, if the screen is detected to be touched, the equipment is awakened, the dark screen standby state is relieved, the brightness of the screen is restored, and user operation can be carried out. Compared with the traditional mode of repeatedly locking and unlocking the equipment, the invention has the advantages that the operation time can be saved, and the power consumption is reduced to a certain extent. Compared with the mode that the equipment is in a normally bright screen state, the power consumption of the equipment can be reduced by the aid of the function of the power supply device, and the power supply device is more secret. Therefore, the invention is a method compatible with saving operation time and reducing equipment power consumption, and meets the use requirements of intelligent POS machine users.

Description

Dark screen standby method based on android operating system
Technical Field
The invention belongs to the technical field of operating systems of intelligent equipment, and particularly relates to a dark screen standby method based on an android operating system.
Background
Along with the popularization of intelligent payment, the intelligent POS machine is more and more widely applied to commodity transaction. Merchants typically have two options when faced with a POS standby situation: one is timing locking, and the equipment enters a locking state after the equipment does not operate for a certain time; another is to keep the device screen constantly bright. The first method has the following problems: when the commodity transaction has an operation requirement, the equipment is required to be unlocked repeatedly, and the operation is inconvenient. The second method increases the power consumption, and the high brightness of the screen for a long time reduces the service life of the screen, and the secrecy is low.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a dark screen standby method based on an android operating system, which can effectively solve the problems.
The technical scheme adopted by the invention is as follows:
the invention provides a dark screen standby method based on an android operating system, which comprises the following steps:
step S1, adding a dark screen standby option in a setting menu of the operating system, wherein the dark screen standby option can be switched on or off;
storing the configuration information of the on or off of the dark screen standby option in a system database;
step S2, monitoring the state of the equipment in real time, triggering a screen-off timer to start timing immediately after monitoring that the equipment is not operated, and entering a screen-off process of the system when the duration time of the equipment which is obtained by timing and is not operated reaches a preset time length T, namely: step S3 is executed;
step S3, the system screen-off process:
step S3.1, performing dark screen processing on the equipment to enable the equipment to enter a dark screen state, namely: adjusting the screen brightness of the equipment to the minimum;
s3.2, reading a system database to obtain configuration information for opening or closing the dark screen standby option; if the hidden screen standby option is on, executing step S3.3; if the dark screen standby option is closed, executing step S3.5;
step S3.3, calling a system power management interface, reading the charging state of the equipment, and executing step S3.4 if the equipment is in the charging state; if the device is in an uncharged state, performing step S3.5;
s3.4, keeping the equipment in a dark screen standby state; in the dark screen standby state, if the screen is detected to be touched, the equipment is awakened, the dark screen standby state is released, the brightness of the screen is recovered, the user operation can be carried out, and then the step S2 is returned; in the dark screen standby state, if it is detected that the device is manually locked, step S3.5 is performed;
s3.5, locking the system to extinguish the screen, so that the system enters a screen extinguishing state; until it is detected that the device is manually unlocked, the screen is brightened, user operation is possible, and then the process returns to step S2.
Preferably, in step S3.3, the device charging status is obtained by detecting whether the device is connected to the charging adapter.
The dark screen standby method based on the android operating system provided by the invention has the following advantages:
compared with the traditional mode of repeatedly locking and unlocking the equipment, the hidden screen standby method based on the android operating system can save the operating time and reduce the power consumption to a certain extent. Compared with the mode that the equipment is in a normally bright screen state, the power consumption of the equipment can be reduced by the aid of the function of the power supply device, and the power supply device is more secret. Therefore, the invention is a method compatible with saving operation time and reducing equipment power consumption, and meets the use requirements of intelligent POS machine users.
Drawings
Fig. 1 is a schematic flow diagram of a dark screen standby method based on an android operating system provided by the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a dark screen standby method based on an android operating system, which comprises the following steps with reference to fig. 1:
step S1, adding a dark screen standby option in a setting menu of the operating system, wherein the dark screen standby option can be switched on or off;
storing the configuration information of the on or off of the dark screen standby option in a system database;
step S2, monitoring the state of the equipment in real time, triggering a screen-off timer to start timing immediately after monitoring that the equipment is not operated, and entering a screen-off process of the system when the duration time of the equipment which is obtained by timing and is not operated reaches a preset time length T, namely: step S3 is executed;
step S3, the system screen-off process:
step S3.1, performing dark screen processing on the equipment to enable the equipment to enter a dark screen state, namely: adjusting the screen brightness of the equipment to the minimum;
s3.2, reading a system database to obtain configuration information for opening or closing the dark screen standby option; if the hidden screen standby option is on, executing step S3.3; if the dark screen standby option is closed, executing step S3.5;
step S3.3, calling a system power management interface, reading the charging state of the equipment, and executing step S3.4 if the equipment is in the charging state; if the device is in an uncharged state, performing step S3.5;
in this step, the charging state of the device is obtained by detecting whether the device is connected to the charging adapter.
S3.4, keeping the equipment in a dark screen standby state; in the dark screen standby state, if the screen is detected to be touched, the equipment is awakened, the dark screen standby state is released, the brightness of the screen is recovered, the user operation can be carried out, and then the step S2 is returned; in the dark screen standby state, if it is detected that the device is manually locked, step S3.5 is performed;
s3.5, locking the system to extinguish the screen, so that the system enters a screen extinguishing state; until it is detected that the device is manually unlocked, the screen is brightened, user operation is possible, and then the process returns to step S2.
The invention provides a hidden screen standby method based on an android operating system, which mainly comprises the following steps:
when the duration of the non-operation of the equipment reaches the preset time length, firstly, the brightness of the screen of the equipment is adjusted to the minimum, then, when the dark screen standby option is started and the equipment is in a charging state, the equipment is kept in a dark screen standby state, and the screen is not locked at the moment, so that the equipment can be conveniently awakened when the screen is touched in the dark screen standby state, the brightness of the screen is recovered, and the operation of a user can be carried out. And when the hidden screen standby option is not started or the hidden screen standby option is started but the equipment is in a non-charging state, the screen is turned off, and the system is locked. At this time, the screen can be restored to brightness only by manually unlocking the screen, and user operation can be performed.
The principle of the method is as follows: for the intelligent POS used by the merchant, in practical applications, the intelligent POS is usually in a charging state, that is: intelligence POS machine and power connection state, this kind of state need not have strict requirement to the electric quantity, so, for convenience of customers uses, practices thrift operating time, and when equipment does not have the operation duration longer, for practicing thrift the electric energy, makes equipment screen brightness transfer to minimumly, promptly: and entering a dark screen standby state, but not locking the screen so as to avoid the user from repeating the locking and unlocking steps. When the dark screen standby option is turned on but the device is in an uncharged state, the device needs to be in an uncharged state, so that the service time of the device needs to be prolonged as much as possible, the power consumption of the device needs to be reduced, and therefore, the screen needs to be completely turned off, and the system needs to be locked.
Compared with the traditional mode of repeatedly locking and unlocking the equipment, the hidden screen standby method based on the android operating system can save the operating time and reduce the power consumption to a certain extent. Compared with the mode that the equipment is in a normally bright screen state, the power consumption of the equipment can be reduced by the aid of the function of the power supply device, and the power supply device is more secret. Therefore, the invention is a method compatible with saving operation time and reducing equipment power consumption, and meets the use requirements of intelligent POS machine users.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements should also be considered within the scope of the present invention.

Claims (2)

1. A dark screen standby method based on an android operating system is characterized by comprising the following steps:
step S1, adding a dark screen standby option in a setting menu of the operating system, wherein the dark screen standby option can be switched on or off;
storing the configuration information of the on or off of the dark screen standby option in a system database;
step S2, monitoring the state of the equipment in real time, triggering a screen-off timer to start timing immediately after monitoring that the equipment is not operated, and entering a screen-off process of the system when the duration time of the equipment which is obtained by timing and is not operated reaches a preset time length T, namely: step S3 is executed;
step S3, the system screen-off process:
step S3.1, performing dark screen processing on the equipment to enable the equipment to enter a dark screen state, namely: adjusting the screen brightness of the equipment to the minimum;
s3.2, reading a system database to obtain configuration information for opening or closing the dark screen standby option; if the hidden screen standby option is on, executing step S3.3; if the dark screen standby option is closed, executing step S3.5;
step S3.3, calling a system power management interface, reading the charging state of the equipment, and executing step S3.4 if the equipment is in the charging state; if the device is in an uncharged state, performing step S3.5;
s3.4, keeping the equipment in a dark screen standby state; in the dark screen standby state, if the screen is detected to be touched, the equipment is awakened, the dark screen standby state is released, the brightness of the screen is recovered, the user operation can be carried out, and then the step S2 is returned; in the dark screen standby state, if it is detected that the device is manually locked, step S3.5 is performed;
s3.5, locking the system to extinguish the screen, so that the system enters a screen extinguishing state; until it is detected that the device is manually unlocked, the screen is brightened, user operation is possible, and then the process returns to step S2.
2. The android operating system based dark screen standby method of claim 1, wherein in step S3.3, the device charging status is obtained by detecting whether a device is connected to a charging adapter.
CN202111300176.5A 2021-11-04 2021-11-04 Dark screen standby method based on android operating system Pending CN114020341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111300176.5A CN114020341A (en) 2021-11-04 2021-11-04 Dark screen standby method based on android operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111300176.5A CN114020341A (en) 2021-11-04 2021-11-04 Dark screen standby method based on android operating system

Publications (1)

Publication Number Publication Date
CN114020341A true CN114020341A (en) 2022-02-08

Family

ID=80061105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111300176.5A Pending CN114020341A (en) 2021-11-04 2021-11-04 Dark screen standby method based on android operating system

Country Status (1)

Country Link
CN (1) CN114020341A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343411A (en) * 2023-05-25 2023-06-27 前海联大(深圳)技术有限公司 Power management method for POS machine and POS machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166613A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for controlling terminal usage duration, and electronic device
CN107885534A (en) * 2017-10-23 2018-04-06 深圳市金立通信设备有限公司 A kind of screen locking method, terminal and computer-readable medium
CN108536380A (en) * 2018-03-12 2018-09-14 广东欧珀移动通信有限公司 Screen control method, device and mobile terminal
CN109194834A (en) * 2018-09-27 2019-01-11 上海与德科技有限公司 mobile phone power-saving method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166613A1 (en) * 2016-03-29 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for controlling terminal usage duration, and electronic device
CN107885534A (en) * 2017-10-23 2018-04-06 深圳市金立通信设备有限公司 A kind of screen locking method, terminal and computer-readable medium
CN112799728A (en) * 2017-10-23 2021-05-14 深圳传音控股股份有限公司 Terminal control method, terminal and computer readable medium
CN108536380A (en) * 2018-03-12 2018-09-14 广东欧珀移动通信有限公司 Screen control method, device and mobile terminal
CN109194834A (en) * 2018-09-27 2019-01-11 上海与德科技有限公司 mobile phone power-saving method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343411A (en) * 2023-05-25 2023-06-27 前海联大(深圳)技术有限公司 Power management method for POS machine and POS machine

Similar Documents

Publication Publication Date Title
CN100470450C (en) Information processing apparatus and power supply control method
CN103324549B (en) The implementation method of sleep standby and communication terminal
CN101430597A (en) Touch screen energy-saving method and system, and touch screen terminal
CN106356097B (en) Protection method and device for preventing data loss
CN103105915A (en) Intelligent terminal reset method and intelligent terminal reset system
CN106055077A (en) Wake-up lock-based processing method and device
CN105159675A (en) Electronic equipment, wakeup method and device of electronic equipment
CN104460451A (en) System starting control method of vehicle-mounted information service terminal product
CN101593383B (en) Electronic purse control method, system and SIM card
CN106055074A (en) Method and device for processing application program
CN114020341A (en) Dark screen standby method based on android operating system
CN107295166A (en) The startup method and mobile terminal of a kind of dual system mobile terminal
CN104836869A (en) Mobile communication terminal and mobile communication terminal power-on method
CN103167128A (en) System and method for achieving automatic sleep of mobile phone based on proximity sensor
CN103227858A (en) Method for locking and screen closing of communication device during communication
CN113010257A (en) Electronic device, display control method, display control apparatus, and readable storage medium
CN107493595A (en) A kind of low-power consumption safety certification device and control method
CN101303831A (en) Method for controlling backlight of electric display apparatus
CN106991770B (en) The synchronous low power consumption method of intelligent POS Android based on dual-CPU architecture
CN104423530B (en) Mobile device electricity-saving control method, device and mobile device, host terminal
CN101398697B (en) Method for implementing auto covering setup of notebook computer
CN103167110A (en) Transparent flip smartphone standby power-saving system and method
CN103685764B (en) Power-saving method in a kind of mobile terminal and device
CN106774794A (en) The processing method and processing device of terminal traffic
CN103166305B (en) A kind of power control system and its implementation and smart card

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