Display mode switching method and device, electronic equipment and storage medium

By monitoring the voltage and current signals of the speakers or using near-field communication, physical buttons and sensors, the display mode switching of electronic devices such as mobile phones is achieved, solving complex operation problems in the existing technology, and improving user experience and device flexibility.

CN120580938APending Publication Date: 2025-09-02HUIZHOU TCL MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510678646.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

In the prior art, electronic devices such as mobile phones lack intuitive and convenient interaction methods in display mode switching, resulting in poor user experience, especially complicated operation when switching eye protection mode.

Method used

By monitoring the voltage and current signals of the speaker's power amplifier, we judge whether the speaker area is effectively tapped, and switch the display mode according to the judgment results, or switch the display mode using near-field communication, physical buttons, sensors, etc.

Benefits of technology

It provides an intuitive and convenient display mode switching method, enhances the interaction between users and devices, improves the fluency of user experience and the practicality of devices, and meets users' usage needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120580938A_ABST
    Figure CN120580938A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a display mode switching method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of equipment display.The method comprises the steps that the state of a loudspeaker is monitored based on a power amplifier of the loudspeaker, and the power amplifier is provided with a voltage and current detection module; according to the loudspeaker state, judging whether a loudspeaker area of the equipment is effectively knocked or not; and if the loudspeaker area of the equipment is effectively knocked, switching a current display mode to a target display mode. Therefore, the state of the loudspeaker can be monitored in real time by using a current or voltage detection function in the power amplifier, and then the state of the ink screen of the equipment is switched according to the state of the loudspeaker, so that the effect of protecting eyes of a user is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of device display technology, and more particularly to a display mode switching method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the rapid development of the electronics industry, such as mobile phones and tablets, mobile phones have become almost standard equipment for everyone. Furthermore, with the development of Internet information, people's daily mobile phone usage time has gradually increased, and users' eye safety has received more and more attention. Therefore, it has become necessary for mobile phones to have an eye protection mode. Some mobile phones support normal screen display (full color screen) as well as ink screen mode. This is a black and white display mode that is closer to the display of book paper and fonts, which can provide users with a better eye experience and protect their eyes.

[0003] Therefore, how to switch the display mode of the device is a problem that needs to be solved at present. Summary of the Invention

[0004] The embodiments of the present disclosure provide a display mode switching method, device, electronic device, and computer-readable storage medium, aiming to solve at least one of the technical problems in the related art to a certain extent.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for switching a display mode, the method comprising:

[0006] Based on the power amplifier of the speaker, the state of the speaker is monitored, wherein the power amplifier has a voltage and current detection module;

[0007] Determining, based on the speaker status, whether a speaker area of ​​the device is effectively tapped;

[0008] If the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode.

[0009] In a second aspect, an embodiment of the present disclosure further provides a display mode switching device, the device comprising:

[0010] A monitoring module, configured to monitor the status of the speaker based on a power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module;

[0011] a judgment module, configured to judge whether a speaker area of ​​the device is effectively tapped according to the speaker status;

[0012] The first switching module is configured to switch the current display mode to a target display mode if the speaker area of ​​the device is effectively tapped.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned display mode switching method are implemented.

[0014] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned display mode switching method are implemented.

[0015] In a fifth aspect, embodiments of the present disclosure further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the embodiments of the present disclosure.

[0016] In an embodiment of the present disclosure, the speaker status is first monitored based on the power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module. Then, based on the speaker status, it is determined whether the speaker area of ​​the device is effectively tapped. Then, if the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode. In this way, the current or voltage detection function in the power amplifier can be used to monitor the speaker status in real time, and then the ink screen status of the device can be switched according to the speaker status, thereby achieving the user's eye protection effect. When the user triggers the display mode switch by tapping the speaker area, this interaction method is intuitive and novel, which enhances the interactivity between the user and the device. By instantly responding to the user's tapping action, the device can provide a smoother and more natural user experience. By monitoring the status of the power amplifier, the device can more accurately identify the user's tapping action and thus perform corresponding operations, such as switching the display mode, which increases the practicality and flexibility of the device. The device can automatically recognize and respond to the user's tapping action. By integrating the voltage and current detection module, the device can more accurately monitor the status of the power amplifier and provide accurate data support for subsequent intelligent processing.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a flowchart of a method for switching display modes provided by the first embodiment of the present disclosure;

[0020] Figure 2 This is an architecture diagram of an audio processing system;

[0021] Figure 3 A flowchart showing how to switch to the ink screen by tapping the speaker area of ​​the phone.

[0022] Figure 4 is a flowchart of a method for switching display modes provided in a second embodiment of the present disclosure;

[0023] Figure 5 is a flowchart of a method for switching display modes provided in a third embodiment of the present disclosure;

[0024] Figure 6 is a flowchart of a method for switching display modes provided in a fourth embodiment of the present disclosure;

[0025] Figure 7 is a structural diagram of a display mode switching device provided by an embodiment of the present disclosure;

[0026] Figure 8 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Some embodiments of the present disclosure will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but may be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for the sake of clarity and brevity, descriptions of features known in the art may be omitted.

[0028] The embodiments described in the following examples of the present disclosure do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0029] It should be noted that the executor of the display mode switching method of this embodiment can be a display mode switching device, which can be configured in any type of electronic device, such as a tablet computer, television, mobile phone, watch, computer, etc., which is not limited here.

[0030] In the embodiment of the present disclosure, the “display mode switching device” will be used as the execution subject to execute the “display mode switching method” for explanation, and no limitation is made here.

[0031] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.

[0032] Figure 1 3 is a flow chart of a method for switching display modes according to the first embodiment of the present disclosure.

[0033] like Figure 1 As shown, the method includes:

[0034] Step 101 : monitoring the state of a speaker based on a power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module.

[0035] As a possible implementation method, the power amplifier in the embodiment of the present disclosure can be a smart power amplifier (Smart PA). Among them, the main difference between Smart PA and ordinary power amplifier is that its output end adds I / V detection (current / voltage detection), which can monitor the speaker status in real time and establish temperature protection and amplitude protection models. In this way, the speaker can always work in the best state and maximize its performance. According to the speaker amplitude model and the amplitude signal detected by I / V, it is transmitted to the PA through ADC (analog-to-digital converter).

[0036] As a possible implementation method, in an embodiment of the present disclosure, the device can monitor the current signal or voltage signal of the speaker based on the power amplifier, and then determine whether the speaker diaphragm vibrates based on the current signal or voltage signal of the speaker.

[0037] It's important to note that speakers operate based on electromagnetic induction. When current passes through a speaker's voice coil, it generates a magnetic field. This magnetic field interacts with the speaker's permanent magnet, causing the voice coil and connected diaphragm to vibrate. Therefore, the speaker's current or voltage signal is directly related to the diaphragm's vibration state. Devices can use built-in sensors or monitoring circuits to obtain real-time current or voltage signals from the power amplifier output to the speaker. These signals contain detailed audio information, including frequency, amplitude, and phase.

[0038] Optionally, the device can analyze the acquired current or voltage signal to extract characteristics related to diaphragm vibration. These characteristics may include the signal's frequency content, amplitude variation, waveform shape, and so on. By comparing the analysis results with preset vibration characteristics or patterns, the device can determine whether the speaker diaphragm is vibrating. If the signal characteristics match the preset vibration characteristics, the device determines that the diaphragm is vibrating.

[0039] Step 102: Determine whether the speaker area of ​​the device is effectively tapped based on the speaker status.

[0040] Optionally, if the number of vibrations of the speaker diaphragm reaches a target number within a specified time, it is determined that the speaker area of ​​the device is effectively tapped.

[0041] The target number can be 2 or 3 times, which is not limited here. The target number refers to the expected number of times the speaker diaphragm should vibrate within a specified time. This number can be set according to the application scenario of the device, the characteristics of the audio signal, or user needs. The target number serves as a benchmark for determining whether the speaker area has been effectively tapped. If the actual number of vibrations matches the target number, it means that the speaker area has been tapped or stimulated as expected.

[0042] The specified time can be 2 seconds or 3 seconds, which is not limited here.

[0043] Specifically, the device can indirectly determine the vibration of the speaker diaphragm by monitoring changes in the current or voltage signal output by the power amplifier to the speaker. Each time the diaphragm vibrates, the corresponding current or voltage signal exhibits a specific pattern of change, such as changes in waveform, amplitude, or frequency. The device can include an integrated counter to count the number of diaphragm vibrations within a specified timeframe. This counter identifies specific patterns in the signal to ensure accurate counting.

[0044] It is understood that if the actual number of vibrations of the speaker diaphragm matches the target number within a specified time, the speaker area of ​​the device is determined to have been effectively tapped. This judgment condition can be applied to various scenarios, such as testing audio equipment and detecting user interactions.

[0045] As a possible implementation, when a user taps the speaker area of ​​a phone, the back cover vibrates, causing the speaker diaphragm inside the phone to resonate. The vibration of the speaker diaphragm drives the voice coil to vibrate, cutting the magnetic field, generating a weak electromotive force. This weak electromotive force is detected by the PA's I / V monitoring. The I / V detection module feeds the signal back to the AP (application processor). After receiving the signal, the AP determines it as a valid tap (which must meet the preset tap vibration model).

[0046] As a possible implementation, to distinguish valid tapping actions from user-inadvertent interference, the present invention establishes a tapping vibration model in Smart PA. For example, tapping two or three times in a row will cause the speaker to generate two or three consecutive, detectable weak electromotive force signals. Only such signals are considered valid signals, while other signals that do not meet the model are considered inadvertent touches.

[0047] Step 103: If the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode.

[0048] Optionally, the target display mode can be a specified display mode, such as an ink screen mode or a full-color screen mode, which is not limited here. For example, if the current display mode is full-color screen mode, it can be switched to the ink screen mode. For example, if the current display mode is ink screen mode, it can be switched to full-color screen mode.

[0049] Optionally, it is possible to determine whether the temperature of the speaker area is too high based on the speaker status. If the determination result is that the temperature of the speaker area is too high, the output power of the speaker is reduced.

[0050] It is understood that the device can determine the operating status of the speaker by monitoring its current or voltage signals. These signals not only reflect changes in the audio signal, but also indirectly reflect the temperature of the speaker. Based on the speaker's thermal model or empirical data, the device can then estimate the speaker's temperature by analyzing changes in the current or voltage signals. For example, an abnormal increase in the current signal may mean that the speaker's voice coil resistance has increased due to rising temperature, resulting in an increase in current. A temperature threshold can be set within the device; when the estimated temperature exceeds this threshold, the speaker area is judged to be overheated.

[0051] Optionally, if the temperature in the speaker area is determined to be too high, the device should immediately activate a protection mechanism to reduce the speaker's output power to prevent damage from overheating. The device can adopt different adjustment strategies based on actual conditions. For example, it can gradually reduce the output power until the temperature drops to a safe range; or it can immediately reduce the output power to a safe level and maintain it for a period of time to observe temperature changes.

[0052] Figure 2This is an audio processing system architecture diagram, illustrating the audio signal transmission and processing from the application processor to the speaker. The AP (application processor) is responsible for processing various application programs. It outputs audio signals through the IIS (Inter-IC Sound) interface, sending digital audio data to subsequent modules. The SmartPA (smart power amplifier) ​​receives audio signals from the AP and amplifies them to drive the speaker. VOP is the voltage associated with the power amplifier output, responsible for providing the appropriate voltage drive to drive the speaker. VON is the enable voltage associated with the power amplifier's on or operating state. It also has a built-in ADC (analog-to-digital converter) for analog-to-digital conversion of voltage and current signals fed back from the speaker for monitoring and control. The SPK (speaker) is the audio output terminal device, converting the amplified electrical signal into an audio signal for playback. It also feeds its own voltage and current status back to the ADC in the SmartPA for detection, helping to monitor and protect the speaker's operating status.

[0053] Figure 3 This is a flow chart for switching to the ink screen by tapping the speaker area of ​​the mobile phone. The steps include: when the speaker area of ​​the mobile phone is tapped, the back cover of the mobile phone will vibrate. The vibration of the back cover of the mobile phone causes the speaker diaphragm to resonate. The resonance causes the diaphragm to drive the voice coil to cut the magnetic field, thereby generating a weak electromotive force. The SmartPA (smart power amplifier) ​​detects the current / voltage (I / V) signal generated by the electromotive force. The SmartPA feeds back the detected signal to the AP (application processor). The AP judges the feedback signal to see if it meets the pre-set tapping vibration model. If it meets the requirements, the AP issues an instruction to switch to the ink screen; if it does not meet the requirements, the AP does not send an instruction.

[0054] In an embodiment of the present disclosure, the speaker status is first monitored based on the power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module. Then, based on the speaker status, it is determined whether the speaker area of ​​the device is effectively tapped. Then, if the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode. In this way, the current or voltage detection function in the power amplifier can be used to monitor the speaker status in real time, and then the ink screen status of the device can be switched according to the speaker status, thereby achieving the user's eye protection effect. When the user triggers the display mode switch by tapping the speaker area, this interaction method is intuitive and novel, which enhances the interactivity between the user and the device. By instantly responding to the user's tapping action, the device can provide a smoother and more natural user experience. By monitoring the status of the power amplifier, the device can more accurately identify the user's tapping action and thus perform corresponding operations, such as switching the display mode, which increases the practicality and flexibility of the device. The device can automatically recognize and respond to the user's tapping action. By integrating the voltage and current detection module, the device can more accurately monitor the status of the power amplifier and provide accurate data support for subsequent intelligent processing.

[0055] Figure 4 3 is a flow chart of a method for switching display modes provided according to the second embodiment of the present disclosure.

[0056] like Figure 4 As shown, the method includes:

[0057] Step 201: In response to a device receiving a display mode switching instruction through near field communication, the current display mode is switched to a target display mode.

[0058] As a possible scenario, the device can be in the screen-on and unlocked state (no switching is triggered when the screen is locked or off), and the NFC switch on the mobile phone software is on.

[0059] It should be noted that users can use NFC tags, which are special cards with an integrated antenna coil and chip. The chip stores a code containing specific information. For example, NFC tags are thin sheets that can be round (about 40mm in diameter) or square (about 40*40mm), with a thickness of about 1mm. They can be placed or attached to desktops, countertops, stands, and other places that users frequently use.

[0060] For example, when the NFC switch is turned on in the software of a device (such as a mobile phone), NFC scans continuously every 500ms to determine whether a card tag has been recognized. When the phone is close to the card tag, the phone's NFC antenna transmits a signal every 500ms. The antenna coil inside the card tag receives the signal and activates the chip. The chip uses the received signal energy to transmit the stored information as a signal through the card tag's antenna coil, which is then received by the phone's NFC antenna. The entire process from the card tag receiving the signal to the signal return completes within 100ms. To prevent continuous triggering, multiple card tag information returns within 3 seconds are counted as only one. If the phone transmits a signal twice in a row without receiving a return, the third return is counted as a second card swipe. After receiving the return signal from the card tag, the phone's NFC chip transmits a preset trigger signal to the baseband chip (BB chip), which instructs the BB chip to switch between the e-ink display and full-color display. After receiving the signal, the BB chip sends a command to the LCD screen control chip to control the LCD display mode. If the current screen is full-color, it will switch to ink screen; if the current screen is ink, it will switch to full-color screen.

[0061] To sum up, in the embodiment of the present disclosure, users can switch between the full-color screen and the ink screen through a convenient touch method (touching the mobile phone and the label card), reducing the click operations on the mobile phone. After the device receives the display mode switching instruction through near-field communication, it can quickly switch the current display mode to the target display mode.

[0062] Figure 5 3 is a flow chart of a method for switching display modes provided according to the third embodiment of the present disclosure.

[0063] like Figure 5 As shown, the method includes:

[0064] Step 301: In response to a physical button of a device being toggled according to a first preset manner, the current display mode is switched to a target display mode.

[0065] As a possible implementation, a physical button can be connected to a specific circuit on the device's motherboard. This physical button can be an existing button on the side of the phone (such as a reused volume button), or a new button specifically for switching display modes.

[0066] When a physical button is not pressed, the corresponding circuit maintains a stable voltage state. For example, through a pull-up resistor or a pull-down resistor, the line connected to the physical button is normally at a high level or a low level.

[0067] When a physical button is pressed, the mechanical action of the button changes the circuit connection, causing the voltage of the circuit to change. For example, pressing the physical button causes a circuit that was originally connected to a high level to be grounded, thus changing it to a low level.

[0068] At the operating system level of the device, the system continuously monitors the voltage changes of the GPIO (general input and output) pins corresponding to the physical key presses. The voltage change caused by pressing the key will generate an electrical signal jump. When a voltage jump is detected, the system will judge the key operation according to a pre-set first preset method. For example, the first preset method can be a short press once to switch the display mode, a long press for 3 seconds to enter the display mode setting menu, etc. If it is determined to be an operation that meets the requirements for switching the display mode, the operating system will send an instruction to the relevant module responsible for controlling the display mode, instructing it to switch the current display mode to the target display mode.

[0069] Optionally, in response to a designated physical interface of the device being effectively plugged into by any apparatus, the current display mode is switched to the target display mode.

[0070] It should be noted that for headphone interfaces, USB interfaces, or specially designed physical interfaces with buttons, a detection pin can be reserved in the interface circuit design to detect the insertion status of the interface. For example, in a headphone interface, there is usually a pin for detecting whether the headphones are plugged in. When the headphones are not plugged in, the pin is in a specific voltage state (such as being maintained at a high level by a pull-up resistor). When a device (such as a headphone plug or a USB device plug) is effectively inserted into the interface, changes in the mechanical structure inside the interface will change the circuit connection, causing the voltage of the detection pin to change. For example, plugging in headphones will ground the detection pin and the voltage will become a low level.

[0071] As an example, on a mobile phone's motherboard, the detection pins of these interfaces can be connected to the NXTpaper (e-ink display paper) control pins on the AP (application processor) side through appropriate circuitry. In this way, when the voltage on the interface detection pin changes, it is transmitted to the NXTpaper control pin on the AP side, causing its voltage state to change. The mobile phone system continuously monitors the voltage changes on the NXTpaper control pin on the AP side. When a voltage change caused by physical interface insertion is detected, the system makes an assessment. If it is determined to be a valid insertion operation (for example, for a USB interface, in addition to detecting the voltage change, it may also be necessary to verify the correct device connection protocol to ensure it is not a false trigger), the system sends a switch command to the display mode control module. Upon receiving the command, the display mode control module switches the current display mode to the target display mode according to pre-set rules. For example, if the current display mode is normal full-color, it switches to NXTpaper eye protection mode to adjust the screen color display.

[0072] In summary, in the embodiments of the present disclosure, users do not need to perform complicated operations on the device screen, such as clicking the menu multiple times, looking for specific setting options, etc., but can quickly switch the display mode by simply pressing the physical button or inserting an external device, which saves operation time and improves usage efficiency. The user's eye protection effect can be achieved by switching to the ink screen mode. By utilizing the mechanism of identifying devices or instructions through voltage change detection of buttons and external interfaces in the current configuration of the mobile phone, there is no need to add additional complex hardware or software systems, which reduces the implementation cost and ensures compatibility and stability with the existing functions of the mobile phone. A variety of triggering methods are provided, which can be achieved by physical buttons or by inserting external interfaces such as headphones and USB to switch the display mode. Users can choose the appropriate method according to their usage habits and scenarios, which increases the flexibility and convenience of operation.

[0073] Figure 6 4 is a flowchart of a method for switching display modes provided according to the fourth embodiment of the present disclosure.

[0074] like Figure 6 As shown, the method includes:

[0075] Step 401: Collect user motion data or environment change data based on designated sensors.

[0076] Step 402: When the user action data or the environment change data meets the triggering condition, the current display mode is switched to the target display mode.

[0077] As a possible implementation, for display mode switching based on a shake action, the device can have a built-in accelerometer that detects changes in acceleration along the device's three axes (X, Y, and Z). The accelerometer continuously collects acceleration data from the device in all directions and transmits this data to the device's processor. The system sets trigger conditions for a shake action. For example, if the device's acceleration changes along all three axes exceed a certain threshold (e.g., X-axis acceleration changes exceeding 2g, Y-axis acceleration changes exceeding 1.5g, and Z-axis acceleration changes exceeding 1.5g, where g represents the acceleration due to gravity) within a short period of time (e.g., 0.5 seconds), and the number of changes reaches a certain number (e.g., three), then it is considered a valid shake action. The device operating system monitors the accelerometer data in real time. When the detected data meets the trigger conditions, the system sends a command to the module responsible for display mode switching. Upon receiving the command, the display mode switching module switches the current display mode to the target display mode (e.g., from a standard full-color screen to an ink screen with eye protection) and adjusts the screen's display parameters, such as reducing blue light output and adjusting contrast.

[0078] As a possible implementation method, the device is equipped with a gyroscope sensor to measure the device's rotation angle and angular velocity based on the display mode switching of the rotation angle. The sensor continuously collects the device's rotation information and feeds the data back to the device's processor. The trigger conditions for the rotation angle can be set. For example, when the device's rotation angle on a certain axis (such as the Z axis) changes rapidly by more than a certain degree (such as 180 degrees) in a short period of time (such as within 1 second), or when the combined rotation angle change on multiple axes reaches a certain range (such as the combined rotation angle change of the X, Y, and Z axes exceeds 360 degrees), it is determined that the trigger conditions are met. The system continuously monitors the data from the gyroscope sensor and triggers the display mode switching operation when the detected rotation angle data meets the set trigger conditions. The system sends a command to the display mode control module, instructing it to switch the current display mode to the target display mode to achieve the change in the screen display characteristics.

[0079] As a possible implementation method, for display mode switching based on fingerprint touch, the fingerprint sensor on the device is used to identify the user's fingerprint features. When the user touches the fingerprint sensor, the sensor collects relevant information of the fingerprint and transmits it to the device's processor for processing. The trigger rules for fingerprint touch are pre-set, such as touching the fingerprint sensor continuously for a specific number of times (such as 3 times) and the time interval between each touch is within a certain range (such as within 0.5 seconds), or in a specific touch method (such as long pressing the fingerprint sensor for 2 seconds and then releasing it, and then short pressing it once), it is determined to be a valid trigger operation. The system monitors the touch events of the fingerprint sensor in real time, and when an operation that meets the trigger rules is detected, it sends an instruction to the display mode switching module. The display mode switching module switches the current display mode to the target display mode according to the instruction to meet the user's demand for eye protection display mode.

[0080] As a possible implementation method, for display mode switching based on magnetic field induction (magnetometer sensor), the device has a built-in magnetometer sensor to detect changes in the surrounding magnetic field. When the magnetic field around the device changes, the magnetometer sensor converts information such as the magnetic field strength and direction into electrical signals and transmits it to the device's processor. Set the trigger conditions for magnetic field induction. For example, when the detected magnetic field strength changes by more than a certain value (such as 50μT, μT is microtesla) in a short period of time (such as within 1 second), or the direction of the magnetic field changes significantly (such as the change angle exceeds 90 degrees), it is determined to meet the trigger conditions. The system monitors the data of the magnetometer sensor in real time, and when the data meets the trigger conditions, it triggers the display mode switching process. The system sends instructions to the display mode control module, and the control module switches the current display mode to the target display mode according to the instructions, and adjusts the screen display to achieve eye protection effect.

[0081] As a possible implementation method, for display mode switching based on ambient light changes, the device is equipped with an ambient light sensor to detect the light intensity of the surrounding environment. The ambient light sensor converts the detected light intensity information into an electrical signal and transmits it to the device's processor. Set the trigger conditions for ambient light changes. For example, when the ambient light intensity drops sharply in a short period of time (such as within 2 seconds) (such as from 500 lux to 50 lux, lux is lux, the unit of light intensity) or rises by more than a certain proportion (such as from 50 lux to 500 lux, the change ratio reaches 10 times), it is determined to meet the trigger conditions. The system continuously monitors the data of the ambient light sensor. When the detected light intensity change meets the trigger condition, the system automatically switches the current display mode to the target display mode. For example, in a dimly lit environment, switch to the low-brightness, low-blue light ink screen eye protection mode to reduce the screen's stimulation to the eyes and protect the user's eyesight.

[0082] In the disclosed embodiments, user motion data or environmental change data is first collected based on a designated sensor. Then, if the user motion data or environmental change data meets the trigger conditions, the current display mode is switched to the target display mode. This provides multiple triggering methods, including shaking, rotation angle, fingerprint touch, magnetic field sensing, and ambient light changes, to meet the usage habits of different users in various scenarios. For example, when manual operation of the phone is inconvenient, users can switch display modes by shaking the phone or using ambient light changes, increasing operational convenience and flexibility. Automatically switching display modes based on user motion or environmental changes allows the phone display to better adapt to different scenarios. For example, automatically switching to the appropriate display mode when light changes not only protects the eyes but also eliminates the need for manual adjustments, providing users with a more comfortable and smooth user experience. Sensor monitoring enables timely switching to eye protection mode, intelligently adjusting screen display parameters based on factors such as ambient light intensity and user motion, such as reducing blue light, adjusting brightness and contrast, to reduce eye fatigue and damage, and effectively protecting users' eyesight during prolonged phone use.

[0083] To facilitate better implementation of the display mode switching method disclosed herein, the present disclosure further provides a display mode switching device based on the display mode switching method described above. The meanings of the terms herein are the same as those in the display mode switching method described above, and specific implementation details can be found in the description of the method embodiment.

[0084] See also Figure 7 , Figure 7 : is a schematic structural diagram of a display mode switching device provided in an embodiment of the present disclosure. The display mode switching device 700 includes:

[0085] A monitoring module 710 is configured to monitor the status of the speaker based on the speaker's power amplifier, wherein the power amplifier has a voltage and current detection module;

[0086] A judgment module 720 is used to judge whether the speaker area of ​​the device is effectively tapped according to the speaker status;

[0087] The first switching module 730 is configured to switch the current display mode to a target display mode if the speaker area of ​​the device is effectively tapped.

[0088] Optionally, the monitoring module is specifically used to:

[0089] monitoring a current signal or a voltage signal of the speaker based on the power amplifier;

[0090] Whether the speaker diaphragm is vibrating is determined according to the current signal or the voltage signal of the speaker.

[0091] Optionally, the judgment module is specifically configured to:

[0092] If the number of vibrations of the speaker diaphragm reaches the target number within the specified time, it is determined that the speaker area of ​​the device is effectively tapped.

[0093] Optionally, the monitoring module is also used to:

[0094] Determining whether the temperature of the speaker area is too high according to the speaker status;

[0095] If the judgment result is that the temperature of the speaker area is too high, the output power of the speaker is reduced.

[0096] Optionally, the device further includes:

[0097] The second switching module is configured to switch the current display mode to a target display mode in response to the device receiving a display mode switching instruction through near field communication.

[0098] Optionally, the device further includes:

[0099] a third switching module, configured to switch the current display mode to a target display mode in response to a physical button of the device being toggled according to a first preset manner;

[0100] The third switching module is configured to switch the current display mode to a target display mode in response to any device effectively plugging into the designated physical interface of the device.

[0101] Optionally, the device further includes:

[0102] The acquisition module is used to collect user action data or environmental change data based on designated sensors;

[0103] The fourth switching module is configured to switch the current display mode to a target display mode when the user action data or the environment change data meets a trigger condition.

[0104] In an embodiment of the present disclosure, the speaker status is first monitored based on the power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module. Then, based on the speaker status, it is determined whether the speaker area of ​​the device is effectively tapped. Then, if the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode. In this way, the current or voltage detection function in the power amplifier can be used to monitor the speaker status in real time, and then the ink screen status of the device can be switched according to the speaker status, thereby achieving the user's eye protection effect. When the user triggers the display mode switch by tapping the speaker area, this interaction method is intuitive and novel, which enhances the interactivity between the user and the device. By instantly responding to the user's tapping action, the device can provide a smoother and more natural user experience. By monitoring the status of the power amplifier, the device can more accurately identify the user's tapping action and thus perform corresponding operations, such as switching the display mode, which increases the practicality and flexibility of the device. The device can automatically recognize and respond to the user's tapping action. By integrating the voltage and current detection module, the device can more accurately monitor the status of the power amplifier and provide accurate data support for subsequent intelligent processing.

[0105] In addition, the present disclosure also provides an electronic device, such as Figure 8 , which shows a schematic structural diagram of the electronic device involved in the present disclosure, specifically:

[0106] The electronic device may include one or more processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804, and other components. It will be understood by those skilled in the art that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0107] The processor 801 is the control center of the electronic device. It connects the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802 and accessing data stored in the memory 802, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, and the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 801.

[0108] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.

[0109] The electronic device also includes a power supply 803 for supplying power to various components. Preferably, the power supply 803 can be logically connected to the processor 801 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 803 can also include one or more DC or AC power supplies, a recharging system, a power supply device debugging circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0110] The electronic device may further include an input unit 804, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0111] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 801 in the electronic device loads the executable files corresponding to one or more application processes into the memory 802 according to the following instructions, and the processor 801 runs the application stored in the memory 802, thereby implementing the steps in any of the display mode switching methods provided in the embodiments of the present disclosure.

[0112] In an embodiment of the present disclosure, the speaker status is first monitored based on the power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module. Then, based on the speaker status, it is determined whether the speaker area of ​​the device is effectively tapped. Then, if the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode. In this way, the current or voltage detection function in the power amplifier can be used to monitor the speaker status in real time, and then the ink screen status of the device can be switched according to the speaker status, thereby achieving the user's eye protection effect. When the user triggers the display mode switch by tapping the speaker area, this interaction method is intuitive and novel, which enhances the interactivity between the user and the device. By instantly responding to the user's tapping action, the device can provide a smoother and more natural user experience. By monitoring the status of the power amplifier, the device can more accurately identify the user's tapping action and thus perform corresponding operations, such as switching the display mode, which increases the practicality and flexibility of the device. The device can automatically recognize and respond to the user's tapping action. By integrating the voltage and current detection module, the device can more accurately monitor the status of the power amplifier and provide accurate data support for subsequent intelligent processing.

[0113] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0114] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0115] To this end, the present disclosure provides a computer-readable storage medium having a computer program stored thereon. The computer program can be loaded by a processor to execute the steps in any display mode switching method provided in the present disclosure.

[0116] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0117] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0118] Since the instructions stored in the computer-readable storage medium can execute the steps in any display mode switching method provided in the present disclosure, the beneficial effects that can be achieved by any display mode switching method provided in the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0119] The above is a detailed introduction to a display mode switching method, device, electronic device and computer-readable storage medium provided by the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for switching a display mode, characterized in that: include: Based on the power amplifier of the speaker, the state of the speaker is monitored, wherein the power amplifier has a voltage and current detection module; Determining, based on the speaker status, whether a speaker area of ​​the device is effectively tapped; If the speaker area of ​​the device is effectively tapped, the current display mode is switched to the target display mode.

2. The method according to claim 1, characterized in that The speaker-based power amplifier monitors the speaker status, including: monitoring a current signal or a voltage signal of the speaker based on the power amplifier; Whether the speaker diaphragm is vibrating is determined according to the current signal or the voltage signal of the speaker.

3. The method according to claim 2, characterized in that The determining, based on the speaker status, whether the speaker area of ​​the device is effectively tapped includes: If the number of vibrations of the speaker diaphragm reaches the target number within the specified time, it is determined that the speaker area of ​​the device is effectively tapped.

4. The method according to claim 1, wherein After the speaker-based power amplifier monitors the speaker status, the method further includes: Determining whether the temperature of the speaker area is too high according to the speaker status; If the judgment result is that the temperature of the speaker area is too high, the output power of the speaker is reduced.

5. The method according to claim 1, characterized in that Also includes: In response to the device receiving a display mode switching instruction through near field communication, the current display mode is switched to a target display mode.

6. The method according to claim 1, characterized in that Also includes: In response to a physical button of the device being toggled according to a first preset manner, switching the current display mode to a target display mode; or, In response to a designated physical interface of the device being effectively plugged into by any apparatus, the current display mode is switched to a target display mode.

7. The method according to claim 1, characterized in that Also includes: Collect user motion data or environmental change data based on specified sensors; When the user action data or the environment change data meets the trigger condition, the current display mode is switched to the target display mode.

8. A display mode switching device, characterized in that: include: A monitoring module, configured to monitor the status of the speaker based on a power amplifier of the speaker, wherein the power amplifier has a voltage and current detection module; A judgment module, configured to judge whether a speaker area of ​​the device is effectively tapped according to the speaker status; The first switching module is configured to switch the current display mode to a target display mode if the speaker area of ​​the device is effectively tapped.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.