CN113835503B - Method and device for controlling display mode switching, electronic equipment and storage medium - Google Patents

Method and device for controlling display mode switching, electronic equipment and storage medium Download PDF

Info

Publication number
CN113835503B
CN113835503B CN202010589073.4A CN202010589073A CN113835503B CN 113835503 B CN113835503 B CN 113835503B CN 202010589073 A CN202010589073 A CN 202010589073A CN 113835503 B CN113835503 B CN 113835503B
Authority
CN
China
Prior art keywords
processor
voltage pin
data
display mode
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010589073.4A
Other languages
Chinese (zh)
Other versions
CN113835503A (en
Inventor
刘皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010589073.4A priority Critical patent/CN113835503B/en
Publication of CN113835503A publication Critical patent/CN113835503A/en
Application granted granted Critical
Publication of CN113835503B publication Critical patent/CN113835503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure relates to a method and a device for controlling display mode switching, electronic equipment and a storage medium. The electronic device includes a processor and a display screen; the processor comprises a preset first voltage pin and a preset second voltage pin, and the first voltage pin of the processor is connected with the display screen through a first power line; the second voltage pin of the processor is connected with the display screen through a second power line; the processor is used for adjusting the potentials of the first voltage pin and the second voltage pin so that the display screen can be switched from a current display mode to a target display mode according to the potentials of the first power line and the second power line. In this embodiment, the processor may directly output the voltage required by the display screen, so that the mode switching command and the voltage switch remain synchronous, and the current display mode and the target display mode are ensured to be reliably switched.

Description

Method and device for controlling display mode switching, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of control, and in particular relates to a method and device for controlling display mode switching, electronic equipment and a storage medium.
Background
At present, part of smartphones are provided with an under-screen fingerprint unlocking function. When the fingerprint unlocking function is started, a highlight area is formed in the finger pressing area on the display screen of the smart phone, and the display screen works in FOD (fingerprint on display) mode. Then, detecting the highlighted area may obtain a fingerprint of the finger and unlock the display.
Referring to fig. 1, a smart phone in the related art adopts the following power supply scheme:
when switching from the normal display mode (AOD, always on display) to the FOD mode, the processor AP issues a mode switching instruction to the driving chip DDIC, which issues a wire control signal to the power management chip PMIC, to control the voltage of the light emitting diode.
However, the inventors found that: referring to fig. 2, the processor AP issues a mode switching instruction to the driving chip DDIC, and at least needs to wait for one frame, i.e. there is a time delay t3; the driving chip DDIC sends a switch control signal to the completion of the voltage switching, at least needing to wait for the time of another frame, namely, having a time delay t4; the driving chip DDIC sends a wire control signal to the power management chip PMIC to control the voltage switching. In this way, in the scene of fast switching between the AOD mode and the FOD mode, if the mode switching command is too fast, the mode switching command may occur in a delayed period, so that the switching voltage of the PMIC is not timely, and an error occurs in which the AOD mode is high brightness or the FOD mode is low brightness.
Disclosure of Invention
The disclosure provides a method and a device for controlling display mode switching, electronic equipment and a storage medium, so as to solve the defects of the related technology.
According to a first aspect of embodiments of the present disclosure, there is provided an electronic device comprising a processor and a display screen; the processor comprises a preset first voltage pin and a preset second voltage pin, and the first voltage pin of the processor is connected with the display screen through a first power line; the second voltage pin of the processor is connected with the display screen through a second power line;
the processor is used for adjusting the potentials of the first voltage pin and the second voltage pin so that the display screen can be switched from a current display mode to a target display mode according to the potentials of the first power line and the second power line.
Optionally, the processor is further configured to obtain detection data, and adjust the potentials of the first voltage pin and the second voltage pin when the detection data satisfies a trigger condition,
wherein the detection data satisfying the trigger condition includes any one of: a first trigger operation for indicating switching to the target display mode is detected, and a second trigger operation for indicating exiting the current display mode is detected.
Optionally, the current display mode includes one of an AOD mode and an FOD mode, and the target display mode includes the other of the AOD mode and the FOD mode;
the first triggering operation includes one of an operation of touching the screen by a finger and an operation of leaving the screen by the finger; the second triggering operation includes the other of an operation of touching the screen with a finger and an operation of leaving the screen with a finger.
Optionally, the electronic device further comprises an optical sensor arranged below the display screen; the optical sensor is connected with the processor;
the optical sensor is used for acquiring light sense data of external environment light of a corresponding area of the display screen and sending the light sense data to the processor;
the processor is further configured to compare the light sensation data with a preset light sensation threshold, and determine that the first trigger operation is detected when the light sensation data is less than or equal to the light sensation threshold; and/or determining that the second trigger operation is detected when the light sensation data is greater than the light sensation threshold and the previous light sensation data of the light sensation data is less than or equal to the light sensation threshold.
Optionally, the electronic device further comprises a pressure sensor arranged below the display screen; the pressure sensor is connected with the processor;
the pressure sensor is used for acquiring pressure data when the corresponding area of the display screen is pressed and sending the pressure data to the processor;
the processor is further configured to compare the pressure data with a preset pressure data threshold, determine that the first trigger operation is detected when the pressure data is less than or equal to the pressure data threshold, and/or determine that the second trigger operation is detected when the pressure data is greater than the pressure data threshold and the pressure data that is prior to the pressure data is less than the pressure data threshold.
Optionally, the processor includes a power management unit and a controller, the controller is connected with the power management unit, and the power management unit is respectively connected with the first voltage pin and the second voltage pin;
the controller is used for generating a mode switching instruction when the detection data meets the triggering condition and sending the mode switching instruction to the power management unit;
the power management unit is used for calculating the voltage required by the target display mode according to the mode switching instruction and adjusting the potentials of the first voltage pin and the second voltage pin according to the required voltage.
Optionally, the electronic device further comprises a driving chip; the driving chip is connected with a preset third voltage pin of the processor through a third power line, and the processor supplies power for the driving chip.
According to a second aspect of embodiments of the present disclosure, there is provided a method of controlling display mode switching, applied to the electronic device described in the first aspect, the method including:
acquiring detection data;
when the detection data is determined to meet the triggering condition, the potentials of a first voltage pin and a second voltage pin of a processor in the electronic equipment are respectively adjusted, so that the display screen is switched from a current display mode to a target display mode.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus for controlling display mode switching, applied to the electronic device described in the first aspect, the apparatus including:
the detection data acquisition module is used for acquiring detection data;
and the display mode switching module is used for respectively adjusting the electric potentials of the first voltage pin and the second voltage pin of the processor in the electronic equipment when the detection data are determined to meet the triggering condition so as to enable the display screen to be switched from the current display mode to the target display mode.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute a computer program in the memory to implement the steps of the method of the second aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon an executable computer program which when executed implements the steps of the method of the second aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
as can be seen from the foregoing embodiments, in the embodiments of the present disclosure, the first voltage pin and the second voltage pin may be preset on the processor, where the first voltage pin is connected to the display screen through the first power line, and the second voltage pin is connected to the display screen through the second power line, so that the processor may adjust the power supply voltage of the display screen by adjusting the potentials of the first voltage pin and the second voltage pin, thereby switching the display screen from the current display mode to the target display mode. In this embodiment, the processor may directly output the voltage required by the display screen, so that the mode switching command and the voltage switch remain synchronous, and the current display mode and the target display mode are ensured to be reliably switched.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a block diagram of an electronic device in the related art.
Fig. 2 is a waveform diagram of a power supply timing in the related art.
Fig. 3 is a block diagram of an electronic device, according to an example embodiment.
Fig. 4 is a flowchart illustrating a method of controlling display mode switching according to an exemplary embodiment.
Fig. 5 is a waveform diagram illustrating a processor power supply sequence according to an example embodiment.
Fig. 6 is a flowchart illustrating a method of controlling display mode switching according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an apparatus for controlling display mode switching according to an exemplary embodiment.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described by way of example below are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus consistent with some aspects of the disclosure as detailed in the accompanying claims.
In the related art, there is a delay between the processor in the electronic device issuing the mode switching command and the power management chip completing the switching of the voltage. For example, when a switching instruction occurs in a delayed period of time, an untimely switching voltage of the power management chip PMIC may cause an error to occur in which the AOD mode is high or the FOD mode is low.
To solve the above technical problems, the embodiments of the present disclosure provide a method and apparatus for controlling display mode switching, an electronic device, and a storage medium, fig. 3 is a block diagram of an electronic device according to an exemplary embodiment, and referring to fig. 3, an electronic device is disclosed, which includes a processor 10 and a display screen 20. The processor 10 includes a preset first voltage pin P1 and a preset second voltage pin P2, and the first voltage pin P1 of the processor 10 is connected to the display screen 20 through a first power line (e.g., ELVDD may be used); the second voltage pin P2 of the processor 10 is connected to the display 20 via a second power line (e.g., ELVSS may be used).
The processor 10 is configured to adjust the electric potentials of the first voltage pin P1 and the second voltage pin P2, so that the display screen 20 switches from the current display mode to the target display mode according to the electric potentials on the first power line and the second power line.
In an example, the current display mode and the target display mode may be any two different display modes of the electronic device, and the two display modes support unidirectional switching or bidirectional switching. For example, the switching of the current display mode to the target display mode may be one and the other of the AOD mode and the FOD mode.
In an example, the processor 10 includes a controller 11 and a power management unit 12. The controller 11 may be implemented by a chip or a circuit having a processing function, such as a microprocessor, a digital processing chip, or a single chip microcomputer, and is configured to send a mode switching instruction to the power management unit 12 when a trigger condition is satisfied. The power management unit 12 may be implemented using a power management chip or a power management circuit. The power management unit 12 is connected to the controller 11, and is configured to calculate a voltage required for a target display mode according to a mode switching command, and adjust potentials of the first voltage pin P1 and the second voltage pin P2 according to the required voltage. In particular, the power management unit may further preset a required potential in the target display mode, and when a mode switching instruction is received, the required potential may be obtained by directly looking up a table. In addition, the power management unit 12 supplies power to the controller 11 in addition to the display 20.
In one embodiment, the controller 11 and the power management unit 12 may be integrated together, and the first voltage pin P1, the second voltage pin P2, and the third voltage pin P3 are reserved during packaging, so as to facilitate subsequent electrical connection.
In an example, the processor 10 may also obtain detection data before determining to adjust the potentials of the first voltage pin P1 and the second voltage pin P2, and determine whether to adjust the potentials of the first voltage pin P1 and the second voltage pin P2 based on whether the detection data satisfies the trigger condition. Wherein the detection data satisfying the trigger condition may include any one of the following: a first trigger operation for instructing to switch to the target display mode is detected, and a second trigger operation for instructing to exit the current display mode is detected.
In one example, the current display mode of the display screen 20 includes one of an AOD mode and a FOD mode, and the target display mode includes the other of the AOD mode and the FOD mode; i.e. switching from the current display mode to the target mode comprises: switching from the AOD mode to the FOD mode or from the FOD mode to the AOD mode. In this example, the first triggering operation may include one of an operation of touching the screen with a finger and an operation of leaving the screen with a finger, and the second triggering operation includes the other of the operation of touching the screen with a finger and the operation of leaving the screen with a finger.
In an example, the electronic device may further be provided with a component for acquiring detection data, such as an optical sensor, a pressure sensor, or an operation key, and the technician may set according to a specific scenario, which is not limited herein.
Taking the detection data as light sensation data obtained by the optical sensor as an example, the electronic device may further include an optical sensor (not shown in the figure) disposed below the display screen 20. The optical sensor may be used to detect the external ambient light of the corresponding area of the display screen to obtain light sensation data, and then send the light sensation data to the processor 10 connected thereto.
Taking the example that the current display mode of the display screen 20 is the AOD mode, the processor 10 may compare the above light sensation data with a preset light sensation threshold, and when the light sensation data is less than or equal to the light sensation threshold, the processor 10 may indicate that the finger is detected to touch the display screen 20, that is, the processor 10 may determine that the first trigger operation is detected, that is, determine that the detected data meets the trigger condition, and at this time, the processor 10 may generate a mode switching instruction and adjust the electric potentials of the first voltage pin P1 and the second voltage pin P2.
The above light sensing threshold may be set according to a specific scene, for example, the light sensing threshold may be set to 0-0.5 in the case of a black box, and the light sensing threshold may be set to 3-10 in consideration of that light emitted by the display screen is reflected by a finger to be a part of external ambient light in the AOD display mode. For example, in a specific implementation, when the finger presses the display screen, the external ambient light is considered to be inevitably reduced, and then the light sensation data when the external ambient light is reduced to a certain degree is taken as a light sensation threshold value, or an average value of a plurality of historical light sensation data before the current light sensation data is compensated and then taken as the light sensation threshold value.
When the light sensation data is greater than the light sensation threshold, the processor 10 may further obtain a comparison result of the previous light sensation data of the current light sensation data and the light sensation threshold, and when the comparison result indicates that the previous light sensation data is less than or equal to the light sensation threshold, the operation that the finger leaves the display screen is detected, that is, the second triggering operation is detected. The processor 10 may determine that the detection data satisfies the trigger condition, generate a mode switching instruction, and adjust the potentials of the first voltage pin P1 and the second voltage pin P2. The processor may periodically poll and acquire light sensation data, for example, acquire light sensation data once every interval of time T, and each detection time is used as a detection node, where the previous light sensation data is the light sensation data detected by the detection node that is one time before the detection node that detects the current light sensation data.
It can be understood that, when the current display mode of the display screen 20 is the FOD mode, the first triggering operation is changed to the second triggering operation, and the principle of the triggering operation is opposite, which is not described herein.
Taking the pressure data obtained by taking the detection data as the pressure sensor as an example, the electronic device further includes a pressure sensor (not shown) disposed below the display screen 20, or the display screen is a touch-sensitive display screen. The pressure sensor may be used to detect pressure data of an external press of a corresponding area of the display screen and then send the pressure data to the processor 10 connected thereto.
Taking the example that the current display mode of the display screen 20 is the AOD mode, the processor 10 may compare the pressure data with the preset pressure threshold, and when the pressure data is greater than the pressure threshold, the processor 10 may determine that the finger touches the display screen 20, that is, the processor 10 may determine that the first trigger operation is detected, that is, determine that the detected data meets the trigger condition, and at this time, the processor 10 may generate a mode switching instruction and adjust the electric potentials of the first voltage pin P1 and the second voltage pin P2. The processor 10 may further obtain a comparison result of the previous pressure data of the current pressure data with the pressure threshold value when the pressure data is smaller than the pressure threshold value, and indicate that the operation of the finger leaving the display screen is detected, i.e. the second trigger operation is detected, when the comparison result indicates that the previous pressure data is larger than the pressure threshold value. The processor 10 may determine that the detection data satisfies the trigger condition, generate a mode switching instruction, and adjust the potentials of the first voltage pin P1 and the second voltage pin P2. And when the comparison result shows that the previous pressure data is smaller than the pressure threshold value, the detection that the finger does not touch the display screen, namely the first triggering operation is not detected. The processor may periodically poll to obtain pressure data, for example, obtain pressure data once every time interval t, and each time the pressure data is detected as a detection node, where the previous pressure data is pressure data detected by a detection node before the detection node that detects the current pressure data.
It can be understood that, when the current display mode of the display screen 20 is the FOD mode, the first triggering operation is changed to the second triggering operation, and the principle of the triggering operation is opposite, which is not described herein.
It should be noted that the electronic device may also be provided with an optical sensor and a pressure sensor at the same time, so that the detection data may include light sensing data and pressure data, and the processor may determine whether the detection data meets the triggering condition according to the light sensing data and the pressure data, respectively. In particular, a main component and another auxiliary component may be provided, so that when the judgment results conflict, the result determined by the detection data of the main component is used for processing.
In an example, the electronic device further includes a driving chip DDIC, which provides the pixel voltage and the gate switching signal required by each light emitting diode, and the specific working principle may refer to the related art, which is not described herein again. In this example, the processor 10 may supply power to the driving chip via the third power line AVDD through the third voltage pin P3.
The operation of the electronic device shown in fig. 3 will be described below, fig. 4 is a flowchart illustrating a process of controlling switching of display modes according to an exemplary embodiment, and fig. 5 is a waveform diagram illustrating a power supply timing of a processor according to an exemplary embodiment, see fig. 4 and 5:
in the case where the current display mode is the AOD mode, an optical sensor in the electronic device senses external ambient light in real time or periodically, obtains light sensation data, and transmits the light sensation data to the processor. After the processor obtains the light sensation data, the light sensation data can be compared with a preset light sensation threshold value; when the light sensation data is smaller than or equal to the light sensation threshold value, the processor can determine that the first trigger operation of the finger touching the display screen is detected, and determine that the light sensation data meets the trigger condition, otherwise determine that the light sensation data does not meet the trigger condition.
When it is determined that the light sensation data satisfies the trigger condition, the processor adjusts the potentials of the first voltage pin P1 and the second voltage pin P2, and a scenario in which the potential of P1 is kept unchanged is shown in fig. 5.
In one embodiment, a controller in the processor determines whether the light sense data satisfies a trigger condition, and when the trigger condition is satisfied, the controller sends a mode switching instruction to the power management unit. The power management unit acquires the voltage required by each light emitting diode in the display screen, and adjusts the potentials of the first voltage pin and the second voltage pin. The processor and the driving chip cooperate to provide the required positive and negative voltages for each light emitting diode, so that the effect of switching to a target switching mode, namely the FOD mode for display is achieved, namely a light spot area with higher brightness is displayed at a preset position in the display screen. Finally, the electronic device may detect the fingerprint of the finger by using the spot area, and operate by using the fingerprint to unlock, etc., and the scheme of unlocking by using the fingerprint may refer to the related technology, which is not described herein again.
In an embodiment, when the current display mode is the FOD mode, an optical sensor in the electronic device senses external ambient light in real time or periodically, obtains light sensation data, and sends the light sensation data to the processor. After the processor obtains the light sensation data, the light sensation data can be compared with a preset light sensation threshold value; when the light sensation data is larger than the light sensation threshold value and the previous light sensation data is smaller than or equal to the light sensation threshold value, the processor can determine that the second trigger operation of the finger leaving the display screen is detected, the light sensation data is determined to meet the trigger condition, and otherwise, the light sensation data is determined to not meet the trigger condition.
When the light sensation data is determined to meet the triggering condition, the processor adjusts the electric potential of the first voltage pin P1 and the electric potential of the second voltage pin P2, and the processor and the driving chip cooperate together to provide the required positive electrode voltage and the required negative electrode voltage for each light emitting diode, so that the effect of switching to the target switching mode, namely the AOD mode for displaying is achieved.
Therefore, in the embodiment of the disclosure, the first voltage pin and the second voltage pin can be preset on the processor, the first voltage pin is connected to the display screen through the first power line, the second voltage pin is connected to the display screen through the second power line, and thus the processor can adjust the power supply voltage of the display screen by adjusting the potentials of the first voltage pin and the second voltage pin, so that the display screen is switched from the current display mode to the target display mode. In this embodiment, the processor may directly output the voltage required by the display screen, so that the mode switching command and the voltage switch remain synchronous, and the current display mode and the target display mode are ensured to be reliably switched.
On the basis of the electronic device, the embodiment of the disclosure further provides a method for controlling display mode switching, referring to fig. 6, the method includes:
in step 61, detection data is acquired;
in step 62, when it is determined that the detection data meets the trigger condition, the electric potentials of the first voltage pin and the second voltage pin of the processor in the electronic device are respectively adjusted, so that the display screen is switched from the current display mode to the target display mode.
Alternatively, it may be determined whether the detected data satisfies the trigger condition by one of the following means: if a first trigger operation for indicating to switch to the target display mode is detected, determining that the detected data meets a trigger condition; and if the second trigger operation for indicating to exit the current display mode is detected, determining that the detection data meets the trigger condition.
Alternatively, it may be determined whether the detected data satisfies the trigger condition by one of the following means: determining whether a first trigger operation for instructing switching to the target display mode is detected; it is determined whether a second trigger operation for indicating to exit the current display mode is detected.
Optionally, the current display mode includes one of an AOD mode and an FOD mode, and the target display mode includes the other of the AOD mode and the FOD mode. Whether the first trigger operation or the second trigger operation is detected may be determined by one of: it is determined whether an operation of touching the screen by a finger or an operation of leaving the screen by a finger is detected.
Alternatively, whether the first trigger operation or the second trigger operation is detected may be determined by: acquiring light sensation data of external ambient light of a corresponding area of the display screen; comparing the light sensation data with a preset light sensation threshold value, and determining that the first trigger operation is detected when the light sensation data is smaller than or equal to the light sensation threshold value; and determining that the second trigger operation is detected when the light sensation data is greater than the light sensation threshold and the previous light sensation data of the light sensation data is less than or equal to the light sensation threshold.
Alternatively, whether the first trigger operation or the second trigger operation is detected may be determined by: acquiring pressure data when a corresponding area of the display screen is pressed; comparing the pressure data with a preset pressure data threshold, and determining that the first triggering operation is detected when the pressure data is smaller than or equal to the pressure data threshold; the second trigger operation is determined to be detected when the pressure data is greater than the pressure data threshold and a previous pressure data of the pressure data is less than the pressure data threshold.
According to the embodiment of the disclosure, the first voltage pin and the second voltage pin can be preset on the processor, the first voltage pin is connected to the display screen through the first power line, the second voltage pin is connected to the display screen through the second power line, and therefore the power supply voltage of the display screen can be adjusted by the processor through adjusting the potentials of the first voltage pin and the second voltage pin, and the display screen is switched from a current display mode to a target display mode. In this embodiment, the processor may directly output the voltage required by the display screen, so that the mode switching command and the voltage switch remain synchronous, and the current display mode and the target display mode are ensured to be reliably switched.
On the basis of the above method for controlling display mode switching, the embodiment of the present disclosure further provides an apparatus for controlling display mode switching, referring to fig. 7, where the apparatus includes:
a detection data acquisition module 71 for acquiring detection data;
and a display mode switching module 72, configured to, when it is determined that the detection data meets a trigger condition, respectively adjust the potentials of the first voltage pin and the second voltage pin of the processor in the electronic device, so that the display screen is switched from the current display mode to the target display mode.
It can be understood that the apparatus provided in the embodiments of the present disclosure corresponds to the above method embodiments, and specific content may refer to content of each embodiment of the method, which is not described herein again.
According to the embodiment of the disclosure, the first voltage pin and the second voltage pin can be preset on the processor, the first voltage pin is connected to the display screen through the first power line, the second voltage pin is connected to the display screen through the second power line, and therefore the power supply voltage of the display screen can be adjusted by the processor through adjusting the potentials of the first voltage pin and the second voltage pin, and the display screen is switched from a current display mode to a target display mode. In this embodiment, the processor may directly output the voltage required by the display screen, so that the mode switching command and the voltage switch remain synchronous, and the current display mode and the target display mode are ensured to be reliably switched.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 800 may be a smart phone, computer, digital broadcast terminal, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 8, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, a communication component 816, and an image acquisition component 818.
The processing component 802 generally operates the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute computer programs. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include computer programs, contact data, phonebook data, messages, pictures, videos, and the like for any application or method operating on electronic device 800. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800. The power supply assembly 806 may include a power chip and the controller may communicate with the power chip to control the power chip to turn on or off the switching device to power the motherboard circuit with or without the battery.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or one of the components, the presence or absence of a target object in contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements.
In an exemplary embodiment, a non-transitory readable storage medium is also provided that includes an executable computer program, such as memory 804 including instructions, that is executable by a processor. The readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An electronic device comprising a processor and a display screen; the processor comprises a preset first voltage pin and a preset second voltage pin, and the first voltage pin of the processor is connected with the display screen through a first power line; the second voltage pin of the processor is connected with the display screen through a second power line;
the processor is used for adjusting the potentials of the first voltage pin and the second voltage pin so that the display screen is switched from a current display mode to a target display mode according to the potentials of the first power line and the second power line;
the processor comprises a power management unit and a controller, wherein the controller is connected with the power management unit, and the power management unit is respectively connected with the first voltage pin and the second voltage pin;
the controller is used for generating a mode switching instruction when the detection data meet the triggering condition and sending the mode switching instruction to the power management unit;
the power management unit is used for calculating the voltage required by the target display mode according to the mode switching instruction and adjusting the potentials of the first voltage pin and the second voltage pin according to the required voltage.
2. The electronic device of claim 1, wherein the processor is further configured to obtain the detection data and adjust the potentials of the first voltage pin and the second voltage pin when the detection data satisfies the trigger condition,
wherein the detection data satisfying the trigger condition includes any one of: a first trigger operation for indicating switching to the target display mode is detected, and a second trigger operation for indicating exiting the current display mode is detected.
3. The electronic device of claim 2, wherein the current display mode comprises one of an AOD mode and a FOD mode, and the target display mode comprises the other of the AOD mode and the FOD mode;
the first triggering operation includes one of an operation of touching the screen by a finger and an operation of leaving the screen by the finger; the second triggering operation includes the other of an operation of touching the screen with a finger and an operation of leaving the screen with a finger.
4. The electronic device of claim 3, further comprising an optical sensor disposed below the display screen; the optical sensor is connected with the processor;
the optical sensor is used for acquiring light sense data of external environment light of a corresponding area of the display screen and sending the light sense data to the processor;
the processor is further configured to compare the light sensation data with a preset light sensation threshold, and determine that the first trigger operation is detected when the light sensation data is less than or equal to the light sensation threshold; and/or determining that the second trigger operation is detected when the light sensation data is greater than the light sensation threshold and the previous light sensation data of the light sensation data is less than or equal to the light sensation threshold.
5. The electronic device of claim 3, further comprising a pressure sensor disposed below the display screen; the pressure sensor is connected with the processor;
the pressure sensor is used for acquiring pressure data when the corresponding area of the display screen is pressed and sending the pressure data to the processor;
the processor is further configured to compare the pressure data with a preset pressure data threshold, determine that the first trigger operation is detected when the pressure data is less than or equal to the pressure data threshold, and/or determine that the second trigger operation is detected when the pressure data is greater than the pressure data threshold and the previous pressure data of the pressure data is less than the pressure data threshold.
6. The electronic device of claim 1, further comprising a driver chip; the driving chip is connected with a preset third voltage pin of the processor through a third power line, and the processor supplies power for the driving chip.
7. A method of controlling switching of display modes, characterized in that it is applied to the electronic device according to any one of claims 1 to 6, the method comprising:
acquiring detection data;
when the detection data is determined to meet the triggering condition, the potentials of a first voltage pin and a second voltage pin of a processor in the electronic equipment are respectively adjusted, so that the display screen is switched from a current display mode to a target display mode.
8. An apparatus for controlling switching of display modes, applied to the electronic device of any one of claims 1 to 6, comprising:
the detection data acquisition module is used for acquiring detection data;
and the display mode switching module is used for respectively adjusting the electric potentials of the first voltage pin and the second voltage pin of the processor in the electronic equipment when the detection data are determined to meet the triggering condition so as to enable the display screen to be switched from the current display mode to the target display mode.
9. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute a computer program in the memory to implement the steps of the method of claim 7.
10. A computer readable storage medium having stored thereon an executable computer program, characterized in that the computer program when executed realizes the steps of the method of claim 7.
CN202010589073.4A 2020-06-24 2020-06-24 Method and device for controlling display mode switching, electronic equipment and storage medium Active CN113835503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010589073.4A CN113835503B (en) 2020-06-24 2020-06-24 Method and device for controlling display mode switching, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010589073.4A CN113835503B (en) 2020-06-24 2020-06-24 Method and device for controlling display mode switching, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113835503A CN113835503A (en) 2021-12-24
CN113835503B true CN113835503B (en) 2024-04-12

Family

ID=78964603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010589073.4A Active CN113835503B (en) 2020-06-24 2020-06-24 Method and device for controlling display mode switching, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113835503B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938609A (en) * 2012-10-19 2013-02-20 北京小米科技有限责任公司 Power supply management module and terminal processor
CN103578397A (en) * 2012-08-08 2014-02-12 三星显示有限公司 Driving apparatus of display panel and display device including the same
CN105976756A (en) * 2016-07-22 2016-09-28 京东方科技集团股份有限公司 Power supply chip and display device
CN106537583A (en) * 2014-07-03 2017-03-22 高通股份有限公司 Power management integrated circuit (PMIC) integration into a processor package
CN206163103U (en) * 2016-11-04 2017-05-10 深圳市明泰电讯有限公司 Compatible controlling means of mobile terminal major -minor screen
CN106847804A (en) * 2017-01-03 2017-06-13 昆山国显光电有限公司 A kind of integrated circuit and method for burn-recording, system
CN107003707A (en) * 2014-11-06 2017-08-01 高通股份有限公司 With the independent power domain for logic and memory and the integrated system of split-type power rail
CN107103871A (en) * 2017-06-30 2017-08-29 京东方科技集团股份有限公司 The power supply circuit and method of supplying power to of display device and display screen
CN108280336A (en) * 2018-01-19 2018-07-13 京东方科技集团股份有限公司 Unlocked by fingerprint method and unlocked by fingerprint device
CN108282558A (en) * 2017-01-06 2018-07-13 三星电子株式会社 Electronic equipment and method for control electronics
CN109256090A (en) * 2018-11-16 2019-01-22 京东方科技集团股份有限公司 A kind of adjusting method, display panel and display device showing picture
CN109740519A (en) * 2018-12-29 2019-05-10 联想(北京)有限公司 Control method and electronic equipment
CN209029081U (en) * 2018-12-10 2019-06-25 深圳市帝麦德斯科技有限公司 A kind of LED display light adjusting control circuit
CN110444162A (en) * 2019-07-18 2019-11-12 武汉华星光电半导体显示技术有限公司 Display device and power management chip for display device
CN110459173A (en) * 2018-05-07 2019-11-15 联咏科技股份有限公司 Display driver, display equipment and its operating method
CN111194462A (en) * 2017-08-21 2020-05-22 三星电子株式会社 Method and electronic device for switching operation mode of display
CN111192556A (en) * 2019-12-10 2020-05-22 华为技术有限公司 Method and device for controlling power supply chip to supply voltage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI641987B (en) * 2017-07-10 2018-11-21 宏碁股份有限公司 Electronic devices and methods for generating display image
CN110555333B (en) * 2018-05-30 2023-06-23 北京小米移动软件有限公司 Fingerprint identification method, electronic device and storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578397A (en) * 2012-08-08 2014-02-12 三星显示有限公司 Driving apparatus of display panel and display device including the same
CN102938609A (en) * 2012-10-19 2013-02-20 北京小米科技有限责任公司 Power supply management module and terminal processor
CN106537583A (en) * 2014-07-03 2017-03-22 高通股份有限公司 Power management integrated circuit (PMIC) integration into a processor package
CN107003707A (en) * 2014-11-06 2017-08-01 高通股份有限公司 With the independent power domain for logic and memory and the integrated system of split-type power rail
CN105976756A (en) * 2016-07-22 2016-09-28 京东方科技集团股份有限公司 Power supply chip and display device
CN206163103U (en) * 2016-11-04 2017-05-10 深圳市明泰电讯有限公司 Compatible controlling means of mobile terminal major -minor screen
CN106847804A (en) * 2017-01-03 2017-06-13 昆山国显光电有限公司 A kind of integrated circuit and method for burn-recording, system
CN108282558A (en) * 2017-01-06 2018-07-13 三星电子株式会社 Electronic equipment and method for control electronics
CN107103871A (en) * 2017-06-30 2017-08-29 京东方科技集团股份有限公司 The power supply circuit and method of supplying power to of display device and display screen
CN111194462A (en) * 2017-08-21 2020-05-22 三星电子株式会社 Method and electronic device for switching operation mode of display
CN108280336A (en) * 2018-01-19 2018-07-13 京东方科技集团股份有限公司 Unlocked by fingerprint method and unlocked by fingerprint device
CN110459173A (en) * 2018-05-07 2019-11-15 联咏科技股份有限公司 Display driver, display equipment and its operating method
CN109256090A (en) * 2018-11-16 2019-01-22 京东方科技集团股份有限公司 A kind of adjusting method, display panel and display device showing picture
CN209029081U (en) * 2018-12-10 2019-06-25 深圳市帝麦德斯科技有限公司 A kind of LED display light adjusting control circuit
CN109740519A (en) * 2018-12-29 2019-05-10 联想(北京)有限公司 Control method and electronic equipment
CN110444162A (en) * 2019-07-18 2019-11-12 武汉华星光电半导体显示技术有限公司 Display device and power management chip for display device
CN111192556A (en) * 2019-12-10 2020-05-22 华为技术有限公司 Method and device for controlling power supply chip to supply voltage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ARM的OLED显示系统设计;宁辉;吴刚;魏志强;黄东;;软件导刊(第03期);60-62 *

Also Published As

Publication number Publication date
CN113835503A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
CN108804010B (en) Terminal control method, device and computer readable storage medium
US10847122B2 (en) Method and apparatus for updating information
CN110796988B (en) Backlight adjusting method and device
EP3130985B1 (en) Method and device for detecting pressure in mobile terminal
US10234924B2 (en) Method and apparatus for displaying time on mobile device
CN104881104A (en) Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device
CN111258659B (en) Screen-off control method, device and storage medium
CN111261081B (en) Screen display method and device
CN109862169B (en) Electronic equipment control method, device and storage medium
CN106325454B (en) Power supply control device and method and electronic equipment
CN108874450B (en) Method and device for waking up voice assistant
US11831190B2 (en) Electronic apparatus and charging method thereof, and storage medium
RU2665268C2 (en) Keyboard style switching method and device
CN113835503B (en) Method and device for controlling display mode switching, electronic equipment and storage medium
CN106775541B (en) Electronic device and screen display method
CN113708704B (en) Motor shock sensation control method and device, electronic equipment and storage medium
CN104917238A (en) Intelligent equipment, and method and device for controlling power supply of equipment
CN112462963A (en) Non-contact gesture control method and device and storage medium
CN106773753B (en) Equipment control method and device
CN111382609B (en) Fingerprint identification method and terminal
CN117251404B (en) Control method and device, electronic equipment and storage medium
CN112987958B (en) Touch signal processing method and device
CN108427943B (en) Fingerprint identification method and device
CN118283154A (en) Terminal, control method of terminal and storage medium
CN107732992B (en) Terminal equipment power supply management 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