Display method and device, electronic equipment and storage medium
By acquiring and sending brightness parameters during system switching of smart devices, the problem of display characteristic changes caused by system switching is solved, thus improving the user's visual experience.
Patent Information
- Application Number
- CN202110302885.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2041-07-01
AI Technical Summary
When dual systems are configured in smart devices, system switching causes changes in display characteristics, affecting the user's visual experience.
When switching systems, the brightness parameters of the first system are obtained and sent to the second system to ensure consistent screen brightness.
It achieves consistent screen brightness before and after system switching, improving the user's visual experience.
Smart Images

Figure CN115116410B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically, to a display method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid development of smart device technology and the increasing richness of smart device functions, more and more electronic devices are equipped with dual systems. When switching between these dual systems, the display characteristics of the smart device also switch accordingly, affecting the user's visual experience. Summary of the Invention
[0003] This application proposes a display method, apparatus, electronic device, and storage medium to improve the above-mentioned problems.
[0004] In a first aspect, embodiments of this application provide a display method applied to an electronic device, the electronic device including at least a first system and a second system, the method including: if the system in operation is switched from the first system to the second system, obtaining the brightness parameter corresponding to the first system; sending the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter.
[0005] Secondly, embodiments of this application provide a display method applied to an electronic device, the electronic device including at least a first processor and a second processor, the first processor being used to run a first system, and the second processor being used to run a second system, the method including: if the system in the running state is switched from the first system to the second system, the first processor obtaining the brightness parameters corresponding to the first system; the first processor sending the brightness parameters to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameters.
[0006] Thirdly, embodiments of this application provide a display method applied to an electronic device, the electronic device including at least a first processor and a second processor, the first processor being used to run a first system, and the second processor being used to run a second system, the method including: the second processor receiving a brightness parameter corresponding to the first system, the brightness parameter being obtained by the first processor when the system in operation is switched from the first system to the second system; the second processor controlling the screen of the electronic device to display according to the brightness parameter.
[0007] Fourthly, embodiments of this application provide a display device that operates in an electronic device, the electronic device including at least a first system and a second system, the device including: a data acquisition module, configured to acquire brightness parameters corresponding to the first system if the operating system is switched from the first system to the second system; and a display module, configured to send the brightness parameters to the second system so that the second system controls the screen of the electronic device to display according to the brightness parameters.
[0008] Fifthly, embodiments of this application provide an electronic device, which includes at least a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The first processor is used to: if the system in operation is switched from the first system to the second system, obtain the brightness parameters corresponding to the first system; and send the brightness parameters to the second processor so that the second processor controls the screen of the electronic device to display according to the brightness parameters.
[0009] Sixthly, embodiments of this application provide an electronic device, which includes at least a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The second processor is used to: receive a brightness parameter corresponding to the first system, wherein the brightness parameter is obtained by the first processor when the system in operation is switched from the first system to the second system; and control the screen of the electronic device to display according to the brightness parameter.
[0010] In a seventh aspect, embodiments of this application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the display method provided in the first aspect above.
[0011] Eighthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the display method provided in the first aspect above.
[0012] This application provides a display method, apparatus, electronic device, and storage medium. When a system in operation switches from a first system to a second system, it acquires the brightness parameters corresponding to the first system and sends these parameters to the second system. The second system then controls the screen of the electronic device to display according to these brightness parameters. Compared to related technologies where system switching causes a change in device display characteristics that affects the user's visual experience, this solution ensures consistent screen brightness before and after system switching, thus improving the user's visual experience. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A flowchart of a display method provided in an embodiment of this application is shown.
[0015] Figure 2 An example diagram showing the screen brightness before and after system switching according to an embodiment of this application is shown.
[0016] Figure 3 A flowchart of a display method provided in another embodiment of this application is shown.
[0017] Figure 4 An example diagram is shown showing the screen data displayed before and after system switching according to an embodiment of this application.
[0018] Figure 5 A flowchart of a display method provided in another embodiment of this application is shown.
[0019] Figure 6 A schematic diagram of a hardware framework for an electronic device provided in an embodiment of this application is shown.
[0020] Figure 7 This illustration shows another hardware framework diagram of the electronic device provided in an embodiment of this application.
[0021] Figure 8 A flowchart of a display method provided in another embodiment of this application is shown.
[0022] Figure 9 A flowchart of a display method provided in another embodiment of this application is shown.
[0023] Figure 10 A flowchart of a display method provided in another embodiment of this application is shown.
[0024] Figure 11 A structural block diagram of a display device provided in an embodiment of this application is shown.
[0025] Figure 12 A structural block diagram of an electronic device provided in an embodiment of this application is shown.
[0026] Figure 13 A structural block diagram of another electronic device provided in an embodiment of this application is shown.
[0027] Figure 14 A structural block diagram of another electronic device provided in an embodiment of this application is shown.
[0028] Figure 15 A structural block diagram of another electronic device provided in an embodiment of this application is shown.
[0029] Figure 16 A storage unit for storing or carrying program code implementing the display method according to an embodiment of the present application is shown. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0031] As users demand higher levels of user experience, the requirements for the performance indicators of the operating systems in smart devices are also increasing, making it possible to set up dual systems on smart devices. However, when switching between systems, the display characteristics of smart devices (such as screen brightness) often switch accordingly, which can affect the user's visual experience to some extent.
[0032] Through long-term research, the inventors discovered that by switching from a first system to a second system while the system is in operation, the brightness parameters corresponding to the first system can be obtained and then sent to the second system. This allows the second system to control the screen of the electronic device to display according to the brightness parameters. Compared to related technologies where the device's display characteristics change after a system switch, affecting the user's visual experience, the above method ensures consistent screen brightness before and after a system switch, thus improving the user's visual experience.
[0033] Therefore, to improve the above-mentioned problems, the inventors have proposed a display method, device, electronic device, and storage medium that enables the screen brightness of the device to remain consistent before and after system switching, thereby improving the user's visual experience. The electronic device in the embodiments of this application can be a mobile phone, smartwatch, tablet computer, laptop computer, PDA, wearable device (e.g., smartwatch), virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in autonomous driving, and wireless terminal in smart homes, etc., and the specific device type is not limited.
[0034] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0035] Please see Figure 1 This illustration shows a flowchart of a display method provided in an embodiment of this application. This embodiment provides a display method that can be applied to, for example... Figure 11 The illustrated display device 700 and electronic device configured with the display device 700, the electronic device comprising at least a first system and a second system, wherein the power consumption of the first system is higher than that of the second system. It should be noted that in this embodiment, the first system and the second system are run by the same processor, and the first system and the second system are each configured with applications with different functions. The first system and the second system interact with each other to complete the functions of the electronic device. The first system and the second system share a display device (i.e., they share a single display device). It should be noted that in this embodiment, the first system and the second system can be run by the same processor, the method including:
[0036] Step S110: If the system in operation is switched from the first system to the second system, obtain the brightness parameters corresponding to the first system.
[0037] In this context, a system in operation can be understood as a system responsible for data processing, which may include processing at least one of application data and sensor data.
[0038] As one implementation method, when the screen of an electronic device remains off for a preset duration, a system switch can be triggered. For example, the system in operation can be switched from a first system to a second system. The preset duration is not limited in value; for example, it can be 10 seconds, 15 seconds, 20 seconds, or 30 seconds.
[0039] In some embodiments, the duration for which the screen of an electronic device is in a screen-off state can be detected in real time. When the duration for which the screen of an electronic device is in a screen-off state reaches a preset duration, the system in operation can be triggered to switch from the first system to the second system.
[0040] In other embodiments, when the screen of the electronic device has been in a screen-off state for a preset duration and the screen state of the electronic device has switched from a screen-off state to a screen-on state, the system in operation can be triggered to switch from the first system to the second system.
[0041] For example, in some specific implementations, when the screen of an electronic device has been in a off state for a preset duration, and when the user switches the screen state from off to on by touching a specific function key on the electronic device, the running system is triggered to switch from the first system to the second system. The specific function key may include the power button or the Home button of the electronic device.
[0042] In other specific implementations, if it is pre-set that receiving a message notification from a specific application triggers a switch from a screen-off state to a screen-on state, then the system in operation can be switched from a first system to a second system when the screen of the electronic device has been in a screen-off state for a preset duration and a message notification from the specific application is detected. The specific application may include an instant messaging application, and the message notification from the specific application may be an instant messaging application message notification or an incoming phone call, etc.
[0043] In this embodiment, the brightness parameter represents the current brightness value of the screen of the electronic device. As a method, to prevent abrupt changes in screen brightness before and after system switching, the electronic device can obtain the brightness parameter corresponding to the first system when switching from the first system to the second system, and synchronize this brightness parameter to the second system.
[0044] Step S120: Send the brightness parameters to the second system so that the second system controls the screen of the electronic device to display according to the brightness parameters.
[0045] One approach is to store the acquired brightness parameters of the first system in the memory of the electronic device, send a data acquisition command to the second system, instructing the second system to retrieve the brightness parameters of the first system from the memory, and control the screen of the electronic device to display according to the brightness parameters, thereby ensuring that the display brightness of the screen of the electronic device remains unchanged before and after the system switch.
[0046] For example, in a specific application scenario, such as Figure 2 The diagram shows an example of screen brightness display before and after system switching provided in this embodiment. Figure 2 The image on the left corresponds to the first system, and its brightness value is r. Figure 2 The right side shows the screen corresponding to the second system. When the system is in operation... Figure 2 The first system on the left is switched to Figure 2 When using the second system on the right, the brightness value of the image corresponding to the second system can be the same as the brightness value of the image corresponding to the first system. That is, the brightness value of the image corresponding to the second system is also r. At this time, the content of the image corresponding to the second system can be the same as or different from the content of the image corresponding to the first system.
[0047] Optionally, the acquired brightness parameters of the first system can be stored locally, and a data acquisition command can be sent to the second system to instruct the second system to read the brightness parameters of the first system from the local storage and control the screen of the electronic device to display according to the brightness parameters.
[0048] The display method provided in this embodiment involves switching from a first system to a second system while the system is in operation. The brightness parameters corresponding to the first system are obtained and then sent to the second system, enabling the second system to control the screen of the electronic device to display according to these parameters. Compared to related technologies where system switching also alters the device's display characteristics, affecting the user's visual experience, this solution ensures that the screen brightness of the electronic device when the second system is running is consistent with that when the first system is running. This allows for system switching without the user's visual perception, thus improving the user's visual experience.
[0049] Please see Figure 3 The diagram illustrates a flowchart of a display method according to another embodiment of this application. This embodiment provides a display method applicable to an electronic device, which includes at least a first system and a second system. In this embodiment, the first system and the second system are run by the same processor. The method includes:
[0050] Step S210: If the system in operation is switched from the first system to the second system, obtain the brightness parameters corresponding to the first system.
[0051] Step S220: Send the brightness parameters to the second system so that the second system controls the screen of the electronic device to display according to the brightness parameters.
[0052] Step S230: Obtain the screen data corresponding to the first system.
[0053] In this embodiment of the application, to avoid affecting the user's visual experience by switching the display screen of the electronic device before and after system switching, the electronic device can obtain the screen data corresponding to the first system. Specifically, the standby screen of the electronic device when the system is running as the first system (which can be a fixed standby screen or a periodically switching standby screen) can be determined as the screen data corresponding to the first system, or the last frame displayed before the screen state of the electronic device switches from on state to off state when the system is running as the first system can be determined as the screen data corresponding to the first system. The specific type of screen data corresponding to the first system is not limited.
[0054] In this scenario, when the system in operation is the first system, if no user interaction with the electronic device's screen is detected within a certain timeframe (e.g., 30 seconds, the exact duration is not limited), the screen state can switch from on to off. During this time, the processor can still interact with the first system, while the electronic device's display controller pauses rendering the corresponding screen data. In this case, the screen data corresponding to the first system can be acquired and stored in the electronic device's memory. Therefore, as a method, the screen data corresponding to the first system can be retrieved (read) from this memory.
[0055] As one approach, if the system in operation is detected to switch from the first system to the second system, the screen data corresponding to the first system can be obtained.
[0056] Step S240: Compare the image data with the specified image data that was previously synchronized to the second system to obtain differential image data.
[0057] In this embodiment, the electronic device can synchronize the screen data corresponding to the first system to the second system multiple times. For example, the screen data synchronized to the second system by the electronic device before and after a power outage may be different, and the electronic device can store the screen data that was synchronized to the second system in the past.
[0058] Here, differential image data represents the difference between the currently acquired image data corresponding to the first system and the image data previously synchronized to the second system. This difference can specifically include a set of coordinates representing the differences in color values (e.g., RGB values) between the currently acquired image data corresponding to the first system and the image data previously synchronized to the second system. Specified image data represents the image data previously synchronized from the first system to the second system.
[0059] In this system, both the currently acquired image data corresponding to the first system and the image data previously synchronized to the second system consist of several pixels. For the same pixel coordinate, the RGB value of the image data corresponding to the first system and the RGB value of the image data previously synchronized to the second system may be different. Therefore, as a method, the RGB value of the currently acquired image data corresponding to the first system can be compared coordinate by coordinate with the RGB value of the corresponding coordinate position in the specified image data previously synchronized to the second system to obtain the coordinates of the positions where the RGB values differ between the two image data. The number of these coordinates can be one or more. The set of coordinates formed by these coordinates of the positions where the RGB values differ between the two image data is used as the differential image data.
[0060] Step S250: Send the differential image data to the second system so that the second system updates the specified screen data according to the differential image data and displays the updated screen data.
[0061] In one approach, to reduce the amount of data transmitted, differential image data can be sent directly to the second system without sending the overall image data corresponding to the first system to the second system. This allows the second system to update the content of the specified image data based on the differential image data and display the updated image data, while also reducing the amount of data transmitted and saving network bandwidth.
[0062] In a specific application scenario, such as Figure 4 The diagram shows an example of the screen data displayed before and after the system switching provided in this embodiment. Figure 4 The leftmost character represents the standby screen displayed on the electronic device when the system in operation is designated as the first system. When the first system goes into sleep mode or the screen is turned off, the standby screen switches to [other display]. Figure 4 During the black screen transition, when the user clicks the physical button to turn on the screen or taps the screen directly, the running system switches from the first system to the second system. The screen of the electronic device remains the same, ensuring that the screen displays the same image before and after the system switch, thus avoiding a poor visual experience for the user due to frequent screen switching.
[0063] The display method provided in this embodiment ensures consistent screen brightness before and after system switching, improving the user's visual experience. Differential image data, obtained by comparing the screen data corresponding to the first system with the specified screen data previously synchronized to the second system, is sent to the second system. The second system then updates the specified screen data based on the differential image data and displays the updated screen data. This ensures consistent screen display before and after system switching, avoiding poor visual experience caused by frequent screen switching; it also reduces data transmission volume and saves network bandwidth.
[0064] Please see Figure 5 The diagram illustrates a flowchart of a display method according to another embodiment of this application. This embodiment provides a display method applicable to an electronic device, which includes at least a first processor and a second processor. The first processor runs a first system, and the second processor runs a second system; that is, in this embodiment, the first system and the second system are run by different processors. The method includes:
[0065] Step S310: If the system in operation is switched from the first system to the second system, the first processor obtains the brightness parameters corresponding to the first system.
[0066] In this embodiment, if the system in operation switches from the first system to the second system, the first processor can obtain the brightness parameters corresponding to the first system. The principle and specific implementation process of obtaining the brightness parameters corresponding to the first system can be referred to the description in the foregoing embodiments, and will not be repeated here.
[0067] Step S320: The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
[0068] In one approach, the first processor can send the brightness parameter to the second processor via a hardware communication link (such as the SPI (Serial Peripheral Interface) bus).
[0069] Optionally, to reduce the performance loss of data acquisition during system switching, a portion of the electronic device's memory can be allocated as sub-memory to store data received by the second processor. This allows the second processor to directly retrieve the required data from the sub-memory without the first processor sending a data retrieval command, and then the second processor retrieving the data from the electronic device's memory. Upon receiving the brightness parameter, the second processor can store it in the sub-memory. When the system switching is complete, the second processor can read the brightness parameter value from the sub-memory and control the electronic device's screen to display according to this value, ensuring consistent screen brightness before and after the system switch.
[0070] In this embodiment, the electronic device may include a display controller. See also... Figure 6 This diagram illustrates a hardware framework schematic of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device in this embodiment may include a first processor, a second processor, a display controller, and a display device. In this manner, while the first processor is sending brightness parameters to the second processor, the first processor may stop controlling the display controller (i.e., the first processor and the display controller are still connected, but the first processor no longer controls the display controller) and send a display controller takeover command to the second processor. This display controller takeover command instructs the second processor to start controlling the display controller, so that the display controller controls the display device (i.e., the screen of the electronic device) of the electronic device to display according to the brightness parameters received by the second processor.
[0071] In this embodiment, the electronic device may also include at least two display controllers; for example, the electronic device may include at least a first display controller and a second display controller. See also... Figure 7 This illustrates another hardware framework diagram of the electronic device provided in an embodiment of this application. For example... Figure 7 As shown, the electronic device in this embodiment may include a first processor, a second processor, a first display controller, a second display controller, and a display device. In this manner, during the process of sending brightness parameters to the second processor, the first processor may control the first display controller to turn off (i.e., the first processor disconnects from the first display controller) and notify the second processor to turn on the second display controller, so that the second display controller controls the display device (i.e., the screen of the electronic device) of the electronic device to display according to the brightness parameters received by the second processor.
[0072] The display method provided in this embodiment involves switching from a first system to a second system while the system is in operation. The first processor obtains the brightness parameters corresponding to the first system and then sends these parameters to the second processor, enabling the second processor to control the screen of the electronic device to display according to the brightness parameters. Compared to related technologies where the device's display characteristics change after a system switch, affecting the user's visual experience, this solution ensures consistent screen brightness before and after the system switch, thus improving the user's visual experience.
[0073] Please see Figure 8 The diagram illustrates a flowchart of a display method according to another embodiment of this application. This embodiment provides a display method applicable to an electronic device, which includes at least a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The method includes:
[0074] Step S410: If the system in operation is switched from the first system to the second system, the first processor obtains the brightness parameters corresponding to the first system.
[0075] Step S420: The first processor sends the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter.
[0076] Step S430: The first processor acquires the screen data corresponding to the first system.
[0077] Optionally, two areas can be allocated from the electronic device's memory to store data received by the first processor and data received by the second processor, respectively. The sub-memory used to store data received by the first processor can be called the first memory, corresponding to the first system. The sub-memory used to store data received by the second processor can be called the second memory, corresponding to the second system. In this approach, after the first processor obtains the screen data corresponding to the first system, it can store this screen data in the first memory corresponding to the first system. This allows it to directly retrieve the historically synchronized screen data from the first memory if the screen data synchronized to the second system differs in the next synchronization.
[0078] Step S440: The first processor compares the image data with the specified image data that was previously synchronized to the second system to obtain differential image data.
[0079] Step S450: The first processor sends the differential image data to the second processor, so that the second processor updates the specified screen data according to the differential image data and displays the updated screen data.
[0080] In one approach, the first processor can send differential image data to the second processor via a hardware communication link. Upon receiving the differential image data, the second processor can directly update the content of the specified screen data previously synchronized from the first system using the differential image data. Specifically, it uses the difference between the currently acquired screen data from the first system and the previously synchronized screen data from the second system to fill in the difference, obtaining complete screen data. The updated screen data is then displayed, and the updated screen data can be stored in the second memory corresponding to the second system.
[0081] It should be noted that the embodiments of this application are illustrated using an electronic device with dual systems as an example. In actual implementation, the electronic device may also be configured with more systems. For example, the electronic device may also include three or more systems. The screen display method provided in the embodiments of this application is applicable to the case where the electronic device includes three or more systems. The specific implementation principle and process of making the screen of the electronic device consistent before and after system switching will not be described here.
[0082] In this embodiment, the electronic device may include at least a first processor and a second processor, or it may include three or more processors. In this way, different processors are used to run different systems, and different processors have different power consumption. When the currently running system switches from a system with relatively high power consumption to a system with relatively low power consumption, the screen of the electronic device can be kept consistent before and after the system switch, thereby providing convenience for users to view data. Examples are not listed here.
[0083] The display method provided in this embodiment ensures consistent screen brightness before and after system switching, improving the user's visual experience. By having the first processor compare the screen data corresponding to the first system with the specified screen data previously synchronized to the second system, differential image data is sent to the second processor. The second processor then updates the specified screen data based on the differential image data and displays the updated screen data. This ensures consistent screen brightness and a consistent display on the electronic device's screen before and after system switching, avoiding poor visual experience caused by frequent screen switching. Simultaneously, it reduces data transmission volume and saves network bandwidth.
[0084] Please see Figure 9The diagram illustrates a flowchart of a display method according to another embodiment of this application. This embodiment provides a display method applicable to an electronic device, which includes at least a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The method includes:
[0085] Step S510: The second processor receives the brightness parameter corresponding to the first system. The brightness parameter is obtained by the first processor when the system in operation is switched from the first system to the second system.
[0086] Step S520: The second processor controls the screen of the electronic device to display according to the brightness parameter.
[0087] In this embodiment, the electronic device may include a display controller. In this mode, the second processor may respond to the display controller takeover instruction sent by the first processor and start controlling the display controller so that the display controller controls the display device (i.e. the screen of the electronic device) of the electronic device to display according to the brightness parameters.
[0088] In this embodiment, the electronic device may also include at least two display controllers, for example, at least a first display controller and a second display controller. In this manner, the second processor may respond to a display controller takeover command sent by the first processor and activate the second display controller, so that the second display controller controls the display device (i.e., the screen of the electronic device) of the electronic device to display according to the brightness parameters, wherein the display controller takeover command is used to instruct the second processor to activate the second display controller.
[0089] The display method provided in this embodiment ensures that the screen brightness of the device remains consistent before and after system switching, thereby improving the user's visual experience.
[0090] Please see Figure 10 The diagram illustrates a flowchart of a display method according to another embodiment of this application. This embodiment provides a display method applicable to an electronic device, which includes at least a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The method includes:
[0091] Step S610: The second processor receives the brightness parameter corresponding to the first system. The brightness parameter is obtained by the first processor when the system in operation is switched from the first system to the second system.
[0092] Step S620: The second processor controls the screen of the electronic device to display according to the brightness parameter.
[0093] Step S630: The second processor receives differential image data, which is obtained by the first processor by comparing the screen data corresponding to the first system with the specified screen data previously synchronized to the second system.
[0094] Step S640: The second processor updates the specified screen data according to the differential image data and displays the updated screen data.
[0095] The display method provided in this embodiment ensures that the screen brightness of the device remains consistent before and after system switching, and that the screen display of the electronic device remains consistent before and after system switching. This avoids brightness jumps before and after system switching and prevents users from experiencing poor visual experience due to frequent screen switching. At the same time, it reduces the amount of data transmission and saves network bandwidth.
[0096] Please see Figure 11 This is a structural block diagram of a display device provided in an embodiment of this application. This embodiment provides a display device 700 that can operate in an electronic device, the electronic device including at least a first system and a second system, and the device 700 including: a data acquisition module 710 and a display module 720.
[0097] The data acquisition module 710 is used to acquire the brightness parameters corresponding to the first system if the system in operation is switched from the first system to the second system.
[0098] In one approach, the system in operation can be switched from the first system to the second system when the screen of the electronic device has been in a screen-off state for a preset duration. For example, the system can be switched from the first system to the second system as soon as the screen of the electronic device has been in a screen-off state for the preset duration; alternatively, the system can be switched from the first system to the second system only when the screen of the electronic device has been in a screen-off state for the preset duration and the screen of the electronic device is turned on again.
[0099] In this embodiment, the data acquisition module 710 can also be used to acquire the screen data corresponding to the first system when the system in operation is switched from the first system to the second system. In this way, the device 700 may also include a data comparison module for comparing the screen data with the specified screen data previously synchronized to the second system to obtain differential image data.
[0100] Display module 720 is used to send the brightness parameters to the second system so that the second system controls the screen of the electronic device to display according to the brightness parameters.
[0101] In this embodiment, the display module 720 can be specifically used to store the brightness parameters in memory; send a data acquisition instruction to the second system to instruct the second system to acquire the brightness parameters from the memory, and control the screen of the electronic device to display according to the brightness parameters.
[0102] In this embodiment, the display module 720 can be used to send the differential image data to the second system, so that the second system updates the specified screen data according to the differential image data and displays the updated screen data.
[0103] It should be noted that the electronic device in this embodiment may further include at least a first processor and a second processor, wherein the first processor is used to run the first system and the second processor is used to run the second system.
[0104] In one implementation, the data acquisition module 710 can be used to acquire the brightness parameters corresponding to the first system when the system in operation switches from the first system to the second system. In this mode, the display module 720 can be used to send the brightness parameters to the second processor by the first processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameters. Specifically, the display module 720 can be used to send the brightness parameters to the second processor by the first processor through a hardware communication link.
[0105] The data acquisition module 710 can also be used to acquire the screen data corresponding to the first system when the system in operation is switched from the first system to the second system. The data comparison module can be used to compare the screen data with the specified screen data previously synchronized to the second system to obtain differential image data. The display module 720 can also be used to send the differential image data to the second processor so that the second processor updates the specified screen data according to the differential image data and displays the updated screen data.
[0106] Optionally, the device 700 in this embodiment may further include a display control module. In one embodiment, the electronic device may further include a display controller, in which the display control module can be used to stop the first processor from controlling the display controller and send a display controller takeover instruction to the second processor. The display controller takeover instruction is used to instruct the second processor to start controlling the display controller so that the display controller controls the screen of the electronic device to display according to the brightness parameter.
[0107] In another embodiment, the electronic device may further include at least a first display controller and a second display controller. In this embodiment, the display control module may be used by the first processor to control the first display controller to turn off and to notify the second processor to turn on the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
[0108] In another implementation, the data acquisition module 710 can be used for the second processor to receive the brightness parameter corresponding to the first system. The brightness parameter is obtained by the first processor when the system in operation is switched from the first system to the second system. In this mode, the display module 720 can be used for the second processor to control the screen of the electronic device to display according to the brightness parameter.
[0109] In this embodiment, the electronic device may further include a display controller. In this configuration, the display module 720 may specifically be used to respond to a display controller takeover command sent by the first processor, and the second processor begins to control the display controller so that the display controller controls the screen of the electronic device to display according to the brightness parameters. Alternatively, the electronic device may further include at least a first display controller and a second display controller. In this configuration, the display module 720 may specifically be used to respond to a display controller takeover command sent by the first processor, and the second processor activates the second display controller so that the second display controller controls the screen of the electronic device to display according to the brightness parameters. The display controller takeover command is used to instruct the second processor to activate the second display controller.
[0110] Optionally, the data acquisition module 710 can also be used for the second processor to receive differential image data, which is obtained by the first processor by comparing the screen data corresponding to the first system with the specified screen data previously synchronized to the second system. The display module 720 can be used for the second processor to update the specified screen data according to the differential image data and to display the updated screen data.
[0111] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0112] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0113] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0114] Based on the above-described display method and apparatus, this application also provides an electronic device 100 capable of performing the aforementioned display method.
[0115] In some implementations, please refer to Figure 12 The electronic device 100 may include a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, with communication lines connecting the memory 102 and the processors 104. The memory 102 stores programs that can execute the contents of the foregoing embodiments, and the processors 104 can execute the programs stored in the memory 102.
[0116] The processor 104 may include one or more processing cores. The processor 104 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 102, and by calling data stored in the memory 102. Optionally, the processor 104 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 104 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 104 and may be implemented separately using a communication chip.
[0117] The memory 102 may include random access memory (RAM) or read-only memory (ROM). The memory 102 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 102 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the aforementioned embodiments. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0118] In some implementations, please refer to Figure 13The electronic device 100 may include at least a memory 102, a first processor 1041, and a second processor 1042. The first processor 1041 is used to run a first system, and the second processor 1042 is used to run a second system. The first processor 1041 is configured to: if the system in operation switches from the first system to the second system, obtain the brightness parameters corresponding to the first system; and send the brightness parameters to the second processor 1042 so that the second processor 1042 controls the screen of the electronic device to display according to the brightness parameters. The second processor 1042 is configured to: receive the brightness parameters corresponding to the first system, wherein the brightness parameters are obtained by the first processor 1041 when the system in operation switches from the first system to the second system; and control the screen of the electronic device 100 to display according to the brightness parameters.
[0119] In some implementations, please refer to Figure 14 The electronic device 100 may include at least a memory 102, a first processor 1041, a second processor 1042, a display controller 106, and a display device 108. Figure 13 The difference is that, during the process of switching from the first system to the second system while the system is in operation, the first processor 1041 stops controlling the display controller 106 and sends a display controller takeover instruction to the second processor 1042. The display controller takeover instruction is used to instruct the second processor 1042 to start controlling the display controller 106 so that the display controller 106 controls the display device 108 (i.e. the screen of the electronic device) of the electronic device 100 to display according to the brightness parameters.
[0120] In some implementations, please refer to Figure 15 The electronic device 100 may include at least a memory 102, a first processor 1041, a second processor 1042, a first display controller 1061, a first display controller 1062, and a display device 108. Figure 14 The difference is that, during the process of switching from the first system to the second system while the system is in operation, the first processor 1041 controls the first display controller 1061 to be turned off and notifies the second processor 1042 to turn on the second display controller 1062, so that the second display controller 1062 controls the display device 108 (i.e. the screen of the electronic device) of the electronic device 100 to display according to the brightness parameters.
[0121] Please refer to Figure 16 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 800 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0122] The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
[0123] In summary, the display method, apparatus, electronic device, and storage medium provided in this application, when switching from a first system to a second system while in operation, obtains the brightness parameters corresponding to the first system and then sends these parameters to the second system, enabling the second system to control the screen of the electronic device to display according to the brightness parameters. Compared to related technologies where the device's display characteristics change after a system switch, affecting the user's visual experience, this solution ensures consistent screen brightness before and after a system switch, thus improving the user's visual experience.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A display method characterized by comprising: The method is applied to an electronic device, and the electronic device comprises at least a first system and a second system, and the method comprises the following steps: if a system in a running state is switched from the first system to the second system, acquiring a brightness parameter corresponding to the first system; sending the brightness parameter to the second system, so that the second system controls a screen of the electronic device to display according to the brightness parameter; the method further comprises: when detecting that a time length of the screen of the electronic device in an off-screen state reaches a preset time length, triggering the system in the running state to be switched from the first system to the second system, or when detecting that the time length of the screen of the electronic device in the off-screen state reaches the preset time length and the screen state of the electronic device is switched from the off-screen state to the on-screen state, triggering the system in the running state to be switched from the first system to the second system.
2. The method of claim 1, wherein, the step of sending the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter, comprises the following steps: storing the brightness parameter in a memory; sending a data acquisition instruction to the second system, so as to instruct the second system to acquire the brightness parameter from the memory and control the screen of the electronic device to display according to the brightness parameter.
3. The method of claim 1, wherein, the method further comprises: acquiring picture data corresponding to the first system; comparing the picture data with specified picture data last synchronized to the second system to obtain differential image data; sending the differential image data to the second system, so that the second system updates the specified picture data according to the differential image data and displays the updated picture data.
4. The method according to any of claims 1 to 3, characterized in that, The electronic device comprises at least a first processor and a second processor, the first processor is used to run the first system, the second processor is used to run the second system, the first processor and the second processor have different power consumptions; the power consumption of the first system is higher than that of the second system.
5. A display method characterized by comprising: The method is applied to an electronic device, and the electronic device comprises at least a first processor and a second processor, the first processor is used to run the first system, the second processor is used to run the second system, and the method comprises the following steps: if a system in a running state is switched from the first system to the second system, the first processor acquires a brightness parameter corresponding to the first system; the first processor sends the brightness parameter to the second processor, so that the second processor controls a screen of the electronic device to display according to the brightness parameter; the method further comprises: when detecting that a time length of the screen of the electronic device in an off-screen state reaches a preset time length, triggering the system in the running state to be switched from the first system to the second system, or when detecting that the time length of the screen of the electronic device in the off-screen state reaches the preset time length and the screen state of the electronic device is switched from the off-screen state to the on-screen state, triggering the system in the running state to be switched from the first system to the second system.
6. The method of claim 5, wherein, the electronic device further comprises a display controller, and the method further comprises: The first processor stops controlling the display controller and sends a display controller takeover instruction to the second processor, the display controller takeover instruction being used to instruct the second processor to start controlling the display controller so that the display controller controls the screen of the electronic device to display according to the brightness parameter.
7. The method of claim 5, wherein, The electronic device further comprises at least a first display controller and a second display controller, and the method further comprises: The first processor controls the first display controller to be turned off and informs the second processor to turn on the second display controller so that the second display controller controls the screen of the electronic device to display according to the brightness parameter.
8. The method of claim 5, wherein, The method further comprises: The first processor obtains picture data corresponding to the first system; The first processor compares the picture data with specified picture data last synchronized to the second system to obtain differential image data; The first processor sends the differential image data to the second processor so that the second processor updates the specified picture data according to the differential image data and displays the updated picture data.
9. The method according to any one of claims 5-8, characterized in that, The first processor sends the brightness parameter to the second processor, comprising: The first processor sends the brightness parameter to the second processor through a hardware communication link.
10. A display method characterized by comprising: The method applied to an electronic device, the electronic device comprising at least a first processor and a second processor, the first processor being used to run a first system, and the second processor being used to run a second system, and the method comprising: The second processor receives a brightness parameter corresponding to the first system, the brightness parameter being obtained by the first processor when a system in a running state is switched from the first system to the second system; The second processor controls the screen of the electronic device to display according to the brightness parameter; The method further comprises: when detecting that a duration of the screen of the electronic device in an off-screen state reaches a preset duration, triggering the system in the running state to be switched from the first system to the second system, or when detecting that a duration of the screen of the electronic device in an off-screen state reaches a preset duration and the screen state of the electronic device is switched from an off-screen state to an on-screen state, triggering the system in the running state to be switched from the first system to the second system.
11. The method of claim 10, wherein, The method further comprises: The second processor receives differential image data, the differential image data being obtained by the first processor by comparing picture data corresponding to the first system with specified picture data last synchronized to the second system; The second processor updates the specified picture data according to the differential image data and displays the updated picture data.
12. The method of claim 10, wherein, The electronic device further comprises a display controller, and the second processor controls the screen of the electronic device to display according to the brightness parameter, comprising: In response to the display controller takeover instruction sent by the first processor, the second processor starts controlling the display controller so that the display controller controls the screen of the electronic device to display according to the brightness parameter.
13. The method of claim 10, wherein, The electronic device further comprises at least a first display controller and a second display controller, and the second processor controls the screen of the electronic device to display according to the brightness parameter, including: In response to the display controller takeover instruction sent by the first processor, the second processor starts the second display controller, so that the second display controller controls the screen of the electronic device to display according to the brightness parameter, and the display controller takeover instruction is used to instruct the second processor to start the second display controller.
14. A display device comprising: The electronic device comprises at least a first system and a second system, and the device comprises: A data acquisition module is configured to acquire a brightness parameter corresponding to the first system if the system in a running state is switched from the first system to the second system. A display module is configured to send the brightness parameter to the second system, so that the second system controls the screen of the electronic device to display according to the brightness parameter. The system in the running state is switched from the first system to the second system in response to that the time length of the screen of the electronic device in an off-screen state reaches a preset time length, or the system in the running state is switched from the first system to the second system in response to that the time length of the screen of the electronic device in the off-screen state reaches the preset time length and the screen state of the electronic device is switched from the off-screen state to the on-screen state.
15. An electronic device, comprising: The electronic device comprises at least a first processor and a second processor, the first processor is configured to run a first system, and the second processor is configured to run a second system, and the first processor is configured to: If the system in the running state is switched from the first system to the second system, acquire a brightness parameter corresponding to the first system; Send the brightness parameter to the second processor, so that the second processor controls the screen of the electronic device to display according to the brightness parameter; The system in the running state is switched from the first system to the second system in response to that the time length of the screen of the electronic device in an off-screen state reaches a preset time length, or the system in the running state is switched from the first system to the second system in response to that the time length of the screen of the electronic device in the off-screen state reaches the preset time length and the screen state of the electronic device is switched from the off-screen state to the on-screen state.
16. An electronic device, comprising: The electronic device comprises at least a first processor and a second processor, the first processor is configured to run a first system, and the second processor is configured to run a second system, and the second processor is configured to: Receive a brightness parameter corresponding to the first system, the brightness parameter being acquired by the first processor if the system in the running state is switched from the first system to the second system; Control the screen of the electronic device to display according to the brightness parameter; The system in the running state is triggered to be switched from the first system to the second system in response to the time length that the screen of the electronic device is in the off-screen state reaching a preset time length, or the system in the running state is triggered to be switched from the first system to the second system in response to the time length that the screen of the electronic device is in the off-screen state reaching a preset time length and the screen state of the electronic device being switched from the off-screen state to the on-screen state.
17. An electronic device, comprising: one or more processors and memory; one or more programs stored in the memory and configured for execution by the one or more processors, the one or more programs configured for performing the method of any one of claims 1-4.
18. A computer-readable storage medium, characterized in that, The computer readable storage medium has program code stored therein, wherein the program code, when executed by a processor, performs the method of any one of claims 1-4.
Citation Information
Patent Citations
System switching method and electronic device
CN104516747A
Optimization method for mapping mobile phone screen to computer terminal
CN105335125A
Display method, device, circuit and electronic equipment
CN105446462A
Method and apparatus for processing brightness in multi-system mobile terminal
CN105657112A