Display device and method for displaying picture after startup
By setting up a shared partition in the display device memory, the kernel can directly read the extended display identification information set by the user, solving the problem of the kernel waiting for the user process to read the EDID and achieving faster picture display time.
Patent Information
- Application Number
- CN202510593900.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-09-19
AI Technical Summary
After the display device is powered on, the user space does not grant read permission to the kernel. As a result, the kernel needs to wait for the user process to start and read the EDID, which prolongs the image display time.
A shared partition is set in the memory. The shared partition has read permission for the kernel and write permission for the user process. The kernel directly reads the extended display identification information from the shared partition during the initialization phase and triggers the plug-in and unplugging events of the HDMI device to obtain the signal.
Directly accessing the shared partition through the kernel shortens the time to read the extended display identification information and reduces the waiting time for the screen display after startup.
Smart Images

Figure CN120669939A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a method for displaying an image after powering on. Background Art
[0002] A display device refers to a terminal device capable of outputting a specific display image. These devices can include smart TVs, mobile terminals, smart advertising screens, projectors, and other terminal devices. Taking smart TVs as an example, they are based on Internet application technology, feature an open operating system and chip, and possess an open application platform. They enable two-way human-computer interaction and integrate multiple functions, including audio, video, entertainment, and data, to meet the diverse and personalized needs of users.
[0003] Display devices can connect to external devices through device interfaces, for example, connecting to HDMI devices through the High Definition Multimedia Interface (HDMI). Extended display identification data (EDID) is a data structure stored by HDMI devices that describes the hardware capabilities and compatibility parameters of the display device, such as display parameters. Users can set display parameters on the display device, and the display device will generate a new EDID based on the display parameters set by the user. The new EDID is stored in user space, and user space is only open to user processes for reading permissions.
[0004] After the display device responds to the power-on command, during the power-on process, the kernel of the operating system needs to update the EDID to the HDMI driver so that the external HDMI device can read the EDID and input the HDMI signal corresponding to the EDID to the display device. The display device will then display the image corresponding to the HDMI signal. If the user space stores an EDID generated based on the display parameters set by the user, the kernel needs to give priority to updating the EDID to the HDMI driver. Since the user space only has read permissions for the user process, the user process needs to read the EDID from the user space and pass the read EDID to the kernel. However, since the user process has a lower startup priority, the kernel needs to spend a long time waiting for the user process to start, and waiting to receive the reading result of the EDID read from the user space from the user process. Therefore, the kernel needs to wait for a long time before updating the EDID to the HDMI driver, which causes the external HDMI device to wait for a long time before it can read the EDID and send the HDMI signal based on the read EDID. As a result, the display device responds to the power-on command. After the screen is turned on, it still needs to wait for a long time before it can receive the HDMI signal sent by the HDMI device and display the corresponding picture. Summary of the Invention
[0005] The present application provides a display device and a method for displaying a screen after startup, which solves the problem of long waiting time for screen display after startup.
[0006] In a first aspect, the present application provides a display device, comprising:
[0007] The HDMI interface is configured to: connect to an HDMI device;
[0008] The memory includes a shared partition, the shared partition being configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process;
[0009] monitor;
[0010] The controller is configured to: in response to a power-on instruction, during the kernel initialization phase, read first extended display identification information from a shared partition by the kernel, where the first extended display identification information is the extended display identification information written to the shared partition based on first display parameters set by the user before the current power-on; when the first extended display identification information is read, update the first extended display identification information to an HDMI driver; trigger an HDMI interface plug-in / unplug event so that the HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in / unplug event; receive a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; and control the display to display a corresponding image according to the first HDMI signal.
[0011] The above technical solution has the following beneficial effects or advantages:
[0012] A shared partition is set in the memory of the display device, and the shared partition has read permissions for the kernel and write permissions for the user process. The user process can write the first extended display identification information generated based on the display parameters set by the user into the shared partition, and the kernel can directly read the first extended display identification information from the shared partition. In this way, the kernel directly reads the first extended display identification information stored in the shared partition during the initialization phase, without waiting for the user process to start and receiving the reading result of the first extended display identification information read by the user process from the user space. The shared partition is directly accessed by the kernel, which shortens the reading time of the first extended display identification information and thereby shortens the screen display time after startup.
[0013] In some embodiments of the present application, the memory further includes a system read-only space, and the system read-only space is configured to: store default extended display identification information, wherein the system read-only space is only open to the kernel for read permission;
[0014] The controller executes a response to a power-on instruction. During the kernel initialization phase, after the kernel reads the first extended display identification information from the shared partition, the controller is further configured to: if the first extended display identification information is not read, the kernel reads the default extended display identification information from the system read-only space; updates the default extended display identification information to the HDMI driver; triggers a plug-in and unplug event of the HDMI interface, so that the HDMI device reads the default extended display identification information from the HDMI driver in response to the plug-in and unplug event; receives a second HDMI signal corresponding to the default extended display identification information sent by the HDMI device; and controls the display to display a corresponding picture according to the second HDMI signal.
[0015] The above technical solution has the following beneficial effects or advantages:
[0016] If the display device fails to read the first extended display identification information, the kernel directly reads the default extended display identification information through the system read-only space with read-only access rights. During the kernel initialization phase, the kernel does not need to wait for the user process to start or receive the result of the user process reading the extended display identification information from the user space, thereby shortening the screen display time after booting.
[0017] In some embodiments of the present application, the controller executes, in response to a power-on instruction, a kernel initialization phase, and the kernel reads the first extended display identification information from the shared partition, and is specifically configured as follows:
[0018] The kernel reads the first extended display identification information from the shared partition;
[0019] If the first extended display identification information is not read, read the first extended display identification information from the shared partition again, and record the number of times the first extended display identification information fails to be read;
[0020] If the number of times is greater than or equal to the preset threshold and the first extended display identification information is not read, it is determined that the first extended display identification information is not read;
[0021] If the number of times is less than the preset threshold and the first extended display identification information is read, it is determined that the first extended display identification information is read.
[0022] The above technical solution has the following beneficial effects or advantages:
[0023] By setting a reading retry mechanism for the first extended display identification information, when the initial reading fails, repeated reading is performed for a preset number of times. If the preset number of times is reached and the reading is still unsuccessful, it is determined that the first extended display identification information has not been read, and the reading of the default extended display identification information can be executed, thereby avoiding misjudgment caused by reading abnormalities, and reading the default extended display identification information when the first extended display identification information is not read.
[0024] In some embodiments of the present application, the memory further includes a user space, which is used to store display parameters set by the user and default display parameters, wherein the user space is only open to read and write permissions for user processes;
[0025] The controller is further configured to: in a first power cycle, in response to a user's control instruction, read the currently stored display parameters from the user space by the user process, the first power cycle being earlier than the second power cycle corresponding to the power-on instruction; generate a display parameter setting interface based on the currently stored display parameters, the setting interface including setting items for the display parameters, wherein the parameter information indicated by the setting items for the display parameters corresponds to the currently stored display parameters; generate first extended display identification information by the user process based on the first display parameter set by the user based on the setting items for the display parameters; write the first extended display identification information to the shared partition by the user process, and write the first display parameter to the user space.
[0026] The above technical solution has the following beneficial effects or advantages:
[0027] The user process reads the display parameters stored in the user space in the first power cycle, generates a setting interface based on the display parameters, and after the user sets the display parameters through the setting items in the setting interface, generates the first display parameters. The user process generates the first extended display identification information based on the first display parameters, and writes the first extended display identification information into the shared partition. When the display device is turned on in the second power cycle, the kernel can directly read the first extended display identification information in the shared partition, reducing the time delay caused by the kernel's inability to read the first extended display identification information and the startup of the user process, thereby shortening the screen display time after startup.
[0028] In some embodiments of the present application, the memory further includes a user space, which is used to store display parameters set by the user and default display parameters, wherein the user space is only open to read and write permissions for user processes;
[0029] After the controller executes control of the display to display the corresponding picture according to the first HDMI signal, it is also configured to: after the user process is started, in response to the user's control instructions, the user process reads the currently stored display parameters from the user space; based on the currently stored display parameters, a display parameter setting interface is generated, the setting interface includes setting items of the display parameters, wherein the parameter information indicated by the setting items of the display parameters corresponds to the currently stored display parameters; the user process generates second extended display identification information according to the second display parameters set by the user based on the setting items of the display parameters; the user process writes the second extended display identification information to the shared partition, deletes the first extended display identification information from the shared partition, and writes the second display parameters to the user space.
[0030] The above technical solution has the following beneficial effects or advantages:
[0031] During the second power cycle, after the display device completes displaying the screen based on the first extended display identification information, it generates second extended display identification information based on the second display parameters set by the user, updates the second extended display representation information to the shared partition, and simultaneously deletes the first extended display identification information. During the power cycle following the second power cycle, the kernel can read the second extended display identification information from the shared partition, reducing the time delay caused by the kernel's inability to read the first extended display identification information and the user process startup, thereby shortening the screen display time after booting up.
[0032] In some embodiments of the present application, the controller triggers a plug-in and unplug event of the HDMI interface, so that the HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in and unplug event, and is specifically configured to: send a level control signal to the plug-in and unplug detection pin of the HDMI interface; respond to the level control signal through the plug-in and unplug detection pin of the HDMI interface, and send a high-level signal to the HDMI device, so that the HDMI device responds to the high-level signal and reads the first extended display identification information from the HDMI driver.
[0033] The above technical solution has the following beneficial effects or advantages:
[0034] When the kernel reads the first extended display identification information, the display device actively triggers the level change of the plug-in detection pin, without the need to manually plug and unplug the HDMI cable. By sending a high-level signal to the HDMI device, the HDMI device drives the first extended display identification information from the HDMI driver, triggering signal negotiation to solve the picture display delay caused by the display device cache.
[0035] In a second aspect, the present application further provides a display device, comprising:
[0036] The HDMI interface is configured to: connect to an HDMI device;
[0037] The memory includes a shared partition, the shared partition being configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process;
[0038] The memory further includes a system read-only space, which is configured to: store default extended display identification information, wherein the system read-only space is only open to the kernel for read permission;
[0039] monitor;
[0040] The controller is configured to: in response to a power-on instruction, during the kernel initialization phase, cause the kernel to read first extended display identification information from a shared partition, and cause the kernel to read default extended display identification information from a system read-only space, wherein the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current power-on; when the first extended display identification information is read, update the first extended display identification information to an HDMI driver; trigger an HDMI interface plug-in / unplug event so that the HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in / unplug event; receive a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; and control the display to display a corresponding image according to the first HDMI signal.
[0041] The above technical solution has the following beneficial effects or advantages:
[0042] A shared partition and a system read-only space are set in the memory of the display device, and the kernel can directly read the first extended display identification information from the shared partition, and can also read the default extended display identification information from the system read-only space. In this way, the kernel directly reads the first extended display identification information stored in the shared partition or reads the default extended display identification information stored in the system read-only space during the initialization phase, without waiting for the user process to start or receiving the reading result of the extended display identification information from the user space by the user process. By directly accessing the shared partition and the system read-only space through the kernel, the time to read the extended display identification information is shortened, thereby shortening the screen display time after startup.
[0043] In some embodiments of the present application, the controller executes in response to a power-on instruction. In response to the power-on instruction, during the initialization phase of the kernel, the kernel reads the first extended display identification information from the shared partition, and after the kernel reads the default extended display identification information from the system read-only space, it is also configured to: update the default extended display identification information to the HDMI driver if the first extended display identification information is not read; trigger the plug-in and unplug event of the HDMI interface to enable the HDMI device to read the default extended display identification information from the HDMI driver in response to the plug-in and unplug event; receive a second HDMI signal corresponding to the default extended display identification information sent by the HDMI device; and control the display to display the corresponding picture according to the second HDMI signal.
[0044] The above technical solution has the following beneficial effects or advantages:
[0045] When the display device fails to read the first extended display identification information, the kernel directly updates the default extended display identification information read in the system read-only space to the HDMI driver, triggering a plug-in and unplug event of the HDMI interface. The HDMI device can respond to the plug-in and unplug event, read the default extended display identification information from the HDMI driver, and then receive the HDMI signal corresponding to the default extended display identification information sent by the HDMI device. The display displays the picture based on the HDMI signal without waiting for the user process to be started, and without receiving the reading result of the user process reading the extended display identification information from the user space, thereby shortening the picture display time after startup.
[0046] In a third aspect, the present application provides a method for displaying a screen after powering on, which is applied to a display device as described in any one of the first aspects, wherein the display device is connected to an HDMI device; the display device includes a memory, the memory includes a shared partition, and the shared partition is configured to: store extended display identification information generated based on display parameters set by a user, wherein the shared partition has read permission for the kernel of the operating system and write permission for user processes;
[0047] The method includes: in response to a power-on instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition, where the first extended display identification information is the extended display identification information written into the shared partition based on first display parameters set by a user before the current power-on; when the first extended display identification information is read, the first extended display identification information is updated to an HDMI driver; a plug-in and unplug event of an HDMI interface is triggered, so that an HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in and unplug event; a first HDMI signal corresponding to the first extended display identification information, sent by the HDMI device, is received; and a display is controlled to display a corresponding image according to the first HDMI signal.
[0048] The above technical solution has the following beneficial effects or advantages:
[0049] A shared partition is set in the memory of the display device, and the shared partition has read permissions for the kernel and write permissions for the user process. The user process can write the first extended display identification information generated based on the display parameters set by the user into the shared partition, and the kernel can directly read the first extended display identification information from the shared partition. In this way, the kernel directly reads the first extended display identification information stored in the shared partition during the initialization phase, without waiting for the user process to start and receiving the reading result of the extended display identification information read by the user process from the user space. The shared partition is directly accessed by the kernel, shortening the reading time of the extended display identification information, thereby shortening the screen display time after startup.
[0050] In a fourth aspect, the present application provides a method for displaying a screen after startup, applied to a display device according to any one of the second aspects, wherein the display device is connected to an HDMI device; the display device includes a memory, the memory includes a shared partition, and the shared partition is configured to: store extended display identification information generated based on display parameters set by a user, wherein the shared partition has read permission for the kernel of an operating system and write permission for user processes; the memory further includes a system read-only space, and the system read-only space is configured to: store default extended display identification information, wherein the system read-only space has read permission only for the kernel;
[0051] The method includes: in response to a power-on instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition, and reads default extended display identification information from a system read-only space, wherein the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current power-on; when the first extended display identification information is read, the first extended display identification information is updated to an HDMI driver; a plug-in and unplug event of an HDMI interface is triggered, so that an HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in and unplug event; a first HDMI signal corresponding to the first extended display identification information, sent by the HDMI device, is received; and a display is controlled to display a corresponding image according to the first HDMI signal.
[0052] The above technical solution has the following beneficial effects or advantages: by setting a shared partition and a system read-only space in the memory of the display device, the kernel can directly read the first extended display identification information from the shared partition and can also read the default extended display identification information from the system read-only space. In this way, during the initialization phase, the kernel directly reads the first extended display identification information stored in the shared partition or reads the default extended display identification information stored in the system read-only space, without waiting for the user process to start or receiving the result of the user process reading the extended display identification information from the user space. By directly accessing the shared partition and the system read-only space through the kernel, the time to read the extended display identification information is shortened, thereby shortening the screen display time after startup. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0054] Figure 1 Schematic diagram of an operation scenario between the display device 200 and the control device 100 in an embodiment of the present application;
[0055] Figure 2 This is a hardware configuration block diagram of the display device 200 in an embodiment of the present application;
[0056] Figure 3 This is a diagram of the operating system configuration of the display device 200 in an embodiment of the present application;
[0057] Figure 4 A flowchart of a display screen after the display device 200 provided in an embodiment of the present application is turned on;
[0058] Figure 5 A timing diagram of the display screen after the display device 200 provided in an embodiment of the present application is turned on;
[0059] Figure 6 A flowchart of generating first extended display identification information provided in an embodiment of the present application;
[0060] Figure 7 A schematic diagram of a first display setting interface provided in an embodiment of the present application;
[0061] Figure 8 A flowchart of a kernel reading first extended display identification information provided in an embodiment of the present application;
[0062] Figure 9 A timing diagram of the process of writing the first EDID provided in an embodiment of the present application;
[0063] Figure 10 A flowchart of an HDMI device reading first extended display identification information provided by an embodiment of the present application;
[0064] Figure 11 A flowchart of the kernel reading default extended display identification information provided in an embodiment of the present application;
[0065] Figure 12 A flowchart of generating second extended display identification information provided in an embodiment of the present application;
[0066] Figure 13 Another flow chart of the display device 200 provided in an embodiment of the present application controlling the display screen after powering on;
[0067] Figure 14 Another flowchart of the kernel reading default extended display identification information provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] The following embodiments are described in detail, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numbers in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following embodiments are not intended to represent all possible implementations consistent with the present application. They are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the claims.
[0069] It should be noted that the brief descriptions of terms in this application are only for the purpose of facilitating the understanding of the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings.
[0070] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," etc. are used to distinguish similar or similar objects or entities, and are not necessarily intended to limit a particular order or sequence, unless otherwise noted. It should be understood that the terms used in this manner are interchangeable under appropriate circumstances.
[0071] The terms "comprise," "include," and "have," and any variations thereof, are intended to cover but not exclude inclusion; for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0072] In the embodiments of the present application, a display device generally refers to a device capable of displaying images and processing data. For example, a display device includes but is not limited to smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0073] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG, the user can operate the display device 200 through touch operation, voice, mobile terminal 300 and control device 100. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0074] like Figure 1 As shown in FIG, the display device 200 also communicates data with the server 400 (also referred to as the cloud or cloud server) through various communication methods. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0075] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart TV, Internet Protocol television (IPTV), etc.
[0076] Figure 2 Some embodiments of this application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0077] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a user input interface 280, a memory, and a power supply.
[0078] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 depending on the supported communication methods. The communication device 220 can enable the display device 200 to communicate with the external device or server 400 through wireless or wired connections.
[0079] In some embodiments, detector 230 is used to collect signals from the external environment or external interactions. For example, detector 230 may include a light receiver, such as a sensor for collecting ambient light intensity; or an image collector, such as a camera, for collecting external environmental scenes, user attributes, or user interaction gestures; or a sound collector, such as a microphone, for receiving external sounds.
[0080] In some embodiments, the device interface 240 is used to access an external device.
[0081] In some embodiments, the controller 250 is used to control the overall operation of the display device 200. The controller 250 may include at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a power processor, and first to nth interfaces for input / output. The controller 250 controls the operation of the display device 200 and responds to user operations through various software control programs stored in the memory.
[0082] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0083] In some embodiments, the display 260 is configured to receive and display image signals outputted from the controller 250. The display 260 may include a display functional component for presenting images and a driving component for driving image display.
[0084] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface 280 may receive the user command through the GUI.
[0085] In some embodiments, the audio output device 270 may be a local speaker of the display device 200 or an external audio output device of the display device 200 .
[0086] In some embodiments, the user input interface 280 may be configured to receive instructions from a user.
[0087] To facilitate user interaction, in some embodiments, the display device 200 may run an operating system. An operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device 200 to provide a user interface. For example, the operating system can directly control the display device 200 to provide a user interface, or it can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.
[0088] The operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device 200 .
[0089] The operating system can be divided into different modules or layers according to the functions implemented, e.g. Figure 3 As shown, in some embodiments, the system can be divided into four layers, from top to bottom, namely the application layer (referred to as "application layer"), the application framework layer (referred to as "framework layer"), the system runtime layer and the kernel layer.
[0090] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. For example, the application layer may include a voice assistant that provides voice interaction capabilities, allowing users to interact with the display device 200 through voice.
[0091] The framework layer provides applications with an application programming interface (API) and programming framework. The application framework layer includes predefined functions. The application framework layer acts as a processing center, determining the actions taken by applications in the application layer. Through the API, applications can access system resources and services during execution.
[0092] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.
[0093] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management.
[0094] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device 200 and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.
[0095] In some embodiments, the device interface 240 includes a video transmission interface, an audio interaction interface, a data and power interface, and other interfaces.
[0096] Among them, the video transmission interface may include HDMI interface, high-bandwidth digital interface (DisplayPort, DP) interface, etc.; the audio interaction interface may include HDMI integrated audio, optical fiber audio, etc.; the data and power interface may include USB interface, power interface, etc.; other interfaces include broadcast-level digital interface (Serial Digital Interface, SDI), etc.
[0097] The display device 200 can be connected to an HDMI device through an HDMI interface, Figure 1 The display device 200 can be connected to at least one HDMI device via an HDMI interface. The HDMI interface provides a signal transmission channel between the display device 200 and the HDMI device. The display device 200 can output the rendered image to the HDMI device, and the HDMI device can feed back the display parameters it supports to the display device 200 to achieve the configuration of resolution, refresh rate, and color space.
[0098] In some embodiments, the display device 200 includes at least one HDMI interface, and the HDMI interface of the display device 200 can establish a communication connection with an HDMI device via an HDMI cable.
[0099] The display device 200 is connected to the HDMI device via an HDMI cable. For example, the HDMI interface of the display device 200 is used as an input port, and the HDMI port of the HDMI device is used as an output port. The input port and the output port are connected via an HDMI cable to form a transmission channel.
[0100] HDMI devices may include media playback devices, such as digital TV receivers, Blu-ray players, network streaming devices, etc., which are used to transmit audio and video content to the display device 200; HDMI devices may also include computing devices, such as personal computers and game consoles, which output graphics rendering results through the HDMI interface; HDMI devices may also include expansion devices, such as HDMI switches and audio separators, which are used to expand the input or output capabilities of the display device 200.
[0101] The HDMI device sends a signal to the display device 200 via the HDMI cable. The display device 200 can also access the storage area of the EDID of the HDMI device via the Display Data Channel (DDC) to read the display parameters.
[0102] EDID is a 128-byte or 256-byte standardized data structure stored by HDMI devices, used to describe its hardware capabilities and compatibility parameters to the display device 200. EDID includes basic identification information, display parameters, a timing description block, and an extended data block.
[0103] Basic identification information includes manufacturer ID, product serial number, manufacturing date, etc.; display parameters include a list of supported resolutions, supported color spaces, and maximum pixel clock frequency; the timing description block includes the horizontal or vertical synchronization signal timing corresponding to the defined resolution, pixel scanning frequency, etc.; the extended data block includes optional extended information, such as HDR support, audio format compatibility, etc.
[0104] When the display device 200 is started or detects that an HDMI device is connected, it reads the EDID and outputs the display image according to the configuration of the HDMI device. The EDID is stored in the memory of the display device 200. In some embodiments, the memory includes system read-only space and user space.
[0105] The system read-only space is only accessible to the kernel and stores the default EDID. During kernel initialization, the kernel reads the default EDID from the system read-only space. User space is used to store user-set runtime parameter preferences such as brightness and contrast, as well as user-set display parameters and default display parameters. It is only accessible to user processes for read and write permissions. The kernel cannot read user-set display parameters stored in user space.
[0106] In some application scenarios, users will modify EDID to achieve specific functions.
[0107] In an example scenario, the resolution output by the HDMI device is inconsistent with the resolution of the display device 200 , and the resolution parameter in the EDID may be modified.
[0108] In another example scenario, some displays support other modes that are not declared in the standard EDID, for example, a 144 Hz refresh rate mode. Users can customize the 144 Hz refresh rate mode by modifying the EDID.
[0109] In some embodiments, the display device 200 displays a setting interface, and the user modifies the EDID through the setting interface.
[0110] In one example, a user adjusts the setting items through the setting interface displayed by the display device 200. The setting interface displays the setting items corresponding to the current display parameters, where the setting items may include resolution, color depth, HDR mode, and audio output. After the user adjusts the setting items, a modified EDID is generated.
[0111] After the user modifies the EDID of the display device 200, the modified EDID is stored in the user space. For example, the user process stores the modified EDID in a configuration file, and the configuration file is stored in the user space. The user space is only accessible to the user process and cannot be directly accessed by the kernel.
[0112] Since the user space does not grant read permission to the kernel, the kernel cannot read the EDID modified by the user during the initialization phase. Even if the user process has been started, the modified EDID still needs to be read in the user space by the user process, and the modified EDID needs to be transmitted to the kernel by the user process, resulting in the external HDMI device having to wait a long time before it can read the EDID and send an HDMI signal based on the read EDID, which in turn causes the display device to respond to the power-on command. After the screen is turned on, it still needs to wait a long time before it can receive the HDMI signal sent by the HDMI device, resulting in a delay in the screen display time of the display device 200.
[0113] Moreover, the startup order of user processes is later than that of the kernel, such as Figure 3 As shown, when display device 200 is powered on, after the kernel loads the hardware drivers, the system runtime layer starts components such as the virtual machine and database. The framework layer initializes middleware such as the content provider and manager and establishes inter-process communication channels. User processes reside in the application layer and are started in order of priority. This means that user processes start later than the kernel and rely on underlying services provided by the kernel to implement their functional logic.
[0114] When the user process is not started, the kernel cannot read the EDID modified by the user, causing the external HDMI device to wait for a long time before it can read the EDID modified by the user and send an HDMI signal based on the read EDID, which in turn causes the display device to respond to the power-on command. After the screen is turned on, it still needs to wait for a long time to receive the HDMI signal sent by the HDMI device, resulting in a time delay for the display device 200 to display the picture.
[0115] In some embodiments, the modified EDID may be stored in the display device 200 in two modes, including a raw data mode and an index value mode.
[0116] The raw data mode is a complete EDID binary file, stored in user space, which is only allowed to be read by user processes but not by the kernel. The complete EDID binary file can be sent to the kernel through the user process without format conversion.
[0117] The user sets the display parameters through the setting interface, and generates a modified EDID based on the display parameters. The modified EDID is stored in the user space. After the display device 200 responds to the power-on instruction, because the user space does not open read permission to the kernel, the kernel cannot read the modified EDID file stored in the user space. It is necessary to wait for the user process to start, and the user process reads the modified EDID in the user space and sends the modified EDID to the kernel.
[0118] In the index value mode, display parameters set by the user are converted into index values, and the index values are stored in the user space.
[0119] The user sets display parameters through the settings interface, generates a modified EDID based on the display parameters, and stores the modified EDID in the user space as an index value. After the display device 200 responds to the power-on command, the kernel cannot read the index value stored in the user space because the user space does not grant read permission to the kernel. The kernel must wait for the user process to start, and then read the index value in the user space. The index value must also be converted by the user process into a complete EDID binary file before being sent to the kernel.
[0120] That is to say, if the modified EDID is stored in index value mode, the kernel not only cannot read the modified EDID directly, but also needs to wait for the user process to start, and also needs to wait for the user process to convert the index value into a complete EDID binary file. The kernel needs to wait for a long time before updating the EDID to the HDMI driver, which causes the external HDMI device to wait for a long time before it can read the EDID and send the HDMI signal based on the read EDID, which in turn causes the display device to respond to the power-on command. After the screen is turned on, it still needs to wait for a long time to receive the HDMI signal sent by the HDMI device and display the corresponding picture.
[0121] The display device 200 provided in the present application sets a shared partition in the memory, and the shared partition stores the first extended display identification information set by the user. The shared partition opens read permission to the kernel. During the kernel initialization phase, the first extended display identification information can be directly read in the shared partition without waiting for the user process to start and the time to receive the first extended display identification information sent by the user process, thereby shortening the screen display time after startup.
[0122] The process of controlling the display image after the display device 200 is powered on will be described with reference to the following embodiments.
[0123] Example 1
[0124] Figure 4 The flowchart of the display device 200 provided in the embodiment of the present application after being powered on and displaying a screen, the specific steps are as follows:
[0125] Step S401: In response to a power-on instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition.
[0126] The power-on instruction may be an instruction input by the user, for example, an instruction input through the control device 100 , or an instruction automatically triggered by the display device 200 , for example, an instruction generated by the display device 200 through a scheduled task.
[0127] For ease of description, in this embodiment, the first extended display identification information is defined as a first EDID, and the first EDID is an EDID modified by a user.
[0128] The first EDID is stored in a shared partition, which is set in a memory. The shared partition has a write permission open to the user process, and the user process can write the first EDID into the shared partition.
[0129] The shared partition stores the first EDID written by the user process. During the kernel initialization phase, since the shared partition opens read permission to the kernel of the operating system, the kernel can directly read the first EDID in the shared partition without waiting for the user process to send the first EDID.
[0130] The user process needs to be started based on the kernel, that is, the kernel's startup priority is higher than the user process's startup priority. However, in this embodiment, even if the user process's startup priority is higher than the kernel's startup priority, because the kernel has read permission on the shared partition, the kernel can directly access the shared partition during the initialization phase and read the first EDID from the shared partition, which is not affected by the user process startup time, thereby shortening the time to update the first EDID to the HDMI driver.
[0131] Figure 5 The timing diagram of the display device 200 provided in the embodiment of the present application after being powered on is as follows: Figure 5 As shown, in response to the power-on instruction, the kernel starts up and reads the first EDID from the shared partition.
[0132] In some embodiments, the first EDID is the extended display identification information written to the shared partition based on the first display parameters set by the user before the current startup. The first EDID may include an EDID extension block and a default EDID. The first EDID may also be a modified EDID complete file.
[0133] In one example, the user sets the display parameters through the setting interface, and the user process converts the display parameters into an EDID extension block. The EDID extension block does not include the default EDID, but only contains extended information for the default EDID, such as additional resolution and HDR metadata. The EDID extension block needs to be used in combination with the default EDID.
[0134] The default EDID may also be stored in the shared partition. When the kernel reads the first EDID, if the user process converts the display parameters into an EDID extension block, the first EDID read by the kernel includes the EDID extension block and the default EDID.
[0135] In another example, the user sets the display parameters through the setting interface, and the user process generates a modified EDID complete file for the display parameters. The modified EDID complete file is independent of the default EDID. When the kernel needs to read the first EDID, it directly reads the modified EDID complete file without the need to be combined with the default EDID.
[0136] In some embodiments, the user space is used to store display parameters set by the user and default display parameters. The display parameters include resolution, refresh rate, HDR mode, etc. The default display parameters are factory preset parameters of the memory and cannot be modified by the user.
[0137] Among them, the user space only opens read and write permissions to user processes. User processes can write and read display parameters, and the kernel has no read and write permissions.
[0138] In this embodiment, the display parameters set by the user are generated within the first power cycle. The power cycle refers to the complete process of the display device 200 from power-on to power-off state. The first power cycle is earlier than the second power cycle corresponding to the power-on instruction. That is, the user has set the display parameters in the power cycle before this power cycle.
[0139] The first power cycle may be a power cycle before the second power cycle, or the first power cycle may be several cycles before the second power cycle.
[0140] Figure 6 The flowchart for generating the first extended display identification information provided in the embodiment of the present application has the following specific steps:
[0141] Step S601: In the first power cycle, in response to a user control instruction, the user process reads the currently stored display parameters from the user space.
[0142] In the first power cycle, when the user issues a control instruction, the display device 200 will respond. The control instruction can be a control instruction based on the control device 100, or a control instruction generated based on software interface interaction.
[0143] In one example, when the user presses the "Menu" key through the control device 100, an electrical signal is generated, and the electrical signal is converted into a control instruction to perform operations such as reading display parameters and generating a setting interface.
[0144] In another example, on the display interface of the display device 200, the user touches the screen and clicks a "display settings" button, and the display device 200 generates corresponding control instructions based on the user's operation behavior.
[0145] After receiving the control instruction, since the kernel cannot access the user space, but the user process can access the user space, the user process accesses the user space and reads the currently stored display parameters, where the display parameters can be the display parameters saved when the user last set them, or the display parameters can be the default display parameters.
[0146] Step S602: Generate a display parameter setting interface according to the currently stored display parameters.
[0147] In one example, a settings interface is generated based on the set display parameters. If the currently stored display parameters are the display parameters saved by the user during the last setting, and the display parameters saved by the user during the last setting only include resolution settings, a display parameter settings interface is generated based on the resolution set by the user last time and other unset display parameters.
[0148] In another example, a setting interface is generated based on default display parameters. If the currently stored display parameters are default display parameters, a setting interface for the display parameters is generated based on the default display parameters.
[0149] like Figure 7 As shown, the setting interface 701 includes a setting item 702 for display parameters, wherein the parameter information indicated by the setting item 702 for display parameters corresponds to the currently stored display parameters, for example, the setting item 702 includes resolution, refresh rate, color depth, and HDR mode.
[0150] The user can generate the first display parameter by adjusting the setting item 702. For example, the user can adjust the refresh rate and generate the first display parameter based on the modified refresh rate and other setting items 702 that have not been adjusted.
[0151] Step S603: The user process generates first extended display identification information according to the first display parameter set by the user based on the setting item of the display parameter.
[0152] The first display parameters include display parameters corresponding to the first EDID set by the user. An EDID extension block may be generated based on the first display parameters, or a complete EDID file may be generated based on the first display parameters.
[0153] For example, the user sets the refresh rate and generates an EDID extension block based on the display parameters corresponding to the refresh rate, or generates a complete EDID file based on the display parameters corresponding to the refresh rate and other unadjusted display parameters.
[0154] Step S604: The user process writes the first extended display identification information into the shared partition, and writes the first display parameter into the user space.
[0155] The shared partition opens write permission to the user process. After generating the first EDID, the user process writes the first EDID into the shared partition. The kernel can read the first EDID in the shared partition during the initialization phase.
[0156] During a first power cycle, the user adjusts the resolution setting item through the setting interface. The user process generates a first EDID based on the first display parameter set by the resolution adjustment setting item, and then writes the first EDID into the shared partition through the user process.
[0157] After the user process writes the first EDID into the shared partition during the first power cycle, the kernel may read the first EDID from the shared partition during the initialization phase of the second power cycle.
[0158] The user also writes the first display parameter into the user space. When the user needs to modify the EDID again, the user process can read the first display parameter in the user space and display the setting item corresponding to the first display parameter on the setting interface, wherein the parameter information indicated by the setting item of the first display parameter corresponds to the parameter information displayed on the setting interface.
[0159] In some embodiments, a certain display mode of the display device 200 may correspond to a set of display parameters. For example, the game mode and the theater mode correspond to different display parameters. It is understandable that the user may also set the first display parameter by adjusting the display mode.
[0160] Figure 8 The flowchart of the kernel reading the first extended display identification information provided in the embodiment of the present application has the following specific steps:
[0161] Step S801: The kernel reads first extended display identification information from the shared partition.
[0162] When the display device 200 enters the second power cycle, in response to a power-on instruction, the kernel is in an initialization phase, and the kernel accesses the shared partition.
[0163] During the kernel initialization phase, since the kernel can read the first EDID stored in the shared partition, the kernel directly accesses the shared partition. After the kernel confirms that the first EDID has been read, the kernel sends the first EDID to the HDMI driver.
[0164] Step S802: if the first extended display identification information is not read, read the first extended display identification information from the shared partition again, and record the number of times the first extended display identification information is read unsuccessfully.
[0165] When the first read operation fails to read the entire data or fails to read the first EDID, the kernel initiates a retry mechanism.
[0166] In an example scenario, after the first read fails, the kernel starts a retry mechanism, sets a preset threshold to three times, increments the failure counter, and the kernel accesses the shared partition again to execute the same read process as step S801.
[0167] In another example scenario, when the shared partition response delay causes the first read to fail, the kernel starts the retry mechanism and performs a second retry after 50ms. After the kernel successfully reads the first EDID, it updates the first EDID to the HDMI driver.
[0168] Step S803: If the number of times is less than the preset threshold and the first extended display identification information is read, it is determined that the first extended display identification information is read.
[0169] When the first EDID is read within the preset threshold, the kernel sends the first EDID to the HDMI driver. If the number of read failures is less than the preset threshold, but the first extended display identification information is not read, it is determined that the first extended display identification information is not read.
[0170] Figure 9 This is a timing diagram of the process of writing the first EDID provided in an embodiment of the present application.
[0171] Combine Figure 3 The user interface and setting module are located in the application layer, the Framework communication module is located in the framework layer, the HAL module is located in the system runtime layer, and the kernel and HDMI driver are located in the kernel layer.
[0172] The user sets display parameters and generates control instructions through the user interface. The Framework communication module calls the API interface to coordinate communication between the application layer and the underlying layer. The HAL module passes the control instructions to the kernel. The kernel attempts to access the shared partition and returns an error message if the access fails.
[0173] Step S402: when the first extended display identification information is read, the first extended display identification information is updated to the HDMI driver.
[0174] The HDMI driver is used to perform signal transmission protocol processing, HDMI device capability parameter parsing, and display output mode configuration.
[0175] The first EDID is updated to the HDMI driver, triggering the plug-in and unplugging event of the HDMI interface, so that the HDMI device reads the first EDID from the HDMI driver in response to the plug-in and unplugging event. The display device 200 receives the first HDMI signal corresponding to the first EDID sent by the HDMI device, so that the display device 200 can display the picture according to the first display parameters customized by the user, for example, realizing the setting of resolution and refresh rate, color space conversion and dynamic range adaptation.
[0176] Step S403: triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event.
[0177] The plug-in and unplug-out events simulate the physical connection status change of the HDMI interface, i.e., plug-in or unplug-out, through electronic signals to trigger the connected HDMI device to initialize the communication protocol and read the first EDID in the HDMI driver.
[0178] By controlling the HPD pin level change, a physical plug-in and unplug action can be simulated to initialize the connection of the HDMI device. After the HDMI device is initialized, the first EDID is read from the HDMI driver.
[0179] During the kernel initialization phase, after reading the first EDID, the HDMI driver converts the first EDID into a configuration that can be recognized by the hardware and stores it. Figure 5 , the HDMI driver stores the first EDID sent by the kernel.
[0180] Figure 10 The flowchart of the HDMI device reading the first extended display identification information provided in the embodiment of the present application has the following specific steps:
[0181] Step S1001: sending a level control signal to the plug detection pin of the HDMI interface.
[0182] When the HDMI device detects that the HPD pin is at a low level, it determines that the HDMI cable is unplugged; when the HDMI device detects that the HPD pin is at a high level, it determines that the HDMI cable is plugged in. When the core generates a level control instruction, the HPD pin switches from a low level to a high level.
[0183] Step S1002: Sending a high level signal to the HDMI device via the plug detection pin of the HDMI interface in response to the level control signal, so that the HDMI device responds to the high level signal and reads the first extended display identification information from the HDMI driver.
[0184] The HDMI device detects that the level of the HPD pin is converted from low level to high level, determines that the HDMI cable is reconnected, and sends a first EDID read request to the HDMI driver. The HDMI driver responds to the read request sent by the HDMI device and sends the stored first EDID to the HDMI device.
[0185] In an example, the user changes the resolution of the display device 200 from 1920×1080 to 3840×2160. The kernel generates EDID based on the display parameters set by the user, sends the EDID to the HDMI driver, and triggers the HPD level to change from low level to high level. The HDMI device reads the EDID from the HDMI driver.
[0186] Step S404: receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device.
[0187] The first HDMI signal is a signal generated by the HDMI device according to the first EDID. The controller 250 can obtain the pixel data, standard color gamut color value and basic brightness range corresponding to the first EDID by parsing the first HDMI signal, and then control the display 260 to render the picture according to the first display parameters.
[0188] Step S405: Control the display 260 to display a corresponding image according to the first HDMI signal.
[0189] The display device 200 parses the first HDMI signal to obtain the first display parameter, and controls the display 260 to display according to the first display parameter.
[0190] In an example scenario, user A sets a high refresh rate, for example, 120Hz, and a wide color gamut mode in a first power cycle. The user process writes a first EDID to a shared partition. After the display device 200 responds to a power-on command in a second power cycle, the kernel reads the first EDID from the shared partition, and then updates the first EDID to the HDMI driver, and receives a first HDMI signal corresponding to the first EDID sent by the HDMI device, wherein the first HDMI signal includes data of a high refresh rate and a wide color gamut mode. The display device 200 displays the picture in a high refresh rate and a wide color gamut mode according to the first HDMI signal.
[0191] In the case that the first EDID is not read, the kernel reads the default extended display identification information. For ease of description, in this embodiment, the default extended display identification information is defined as the default EDID.
[0192] The default EDID is stored in the system read-only space of the memory, wherein the system read-only space is only open to the kernel for reading permission. The kernel can access the system read-only space and read the default EDID from the system read-only space if the first EDID is not read.
[0193] Figure 11 The flowchart of the kernel reading the default extended display identification information provided in the embodiment of the present application has the following specific steps:
[0194] Step S1101: when the first extended display identification information is not read, the kernel reads the default extended display identification information from the system read-only space.
[0195] The default EDID is generated based on default display parameters and is used to define the display capabilities of the display device 200 when no user-defined configuration is performed. It can be stored in the system read-only space of the display device 200 as a binary data structure. The default EDID implements basic signal output and allows the display device 200 to maintain basic display functionality even under abnormal circumstances.
[0196] The following describes several scenarios where the first EDID is not read:
[0197] In the first scenario, after the kernel reads the data block corresponding to the first EDID from the shared partition, it detects that the data format or content of the data block does not comply with the EDID standard specification, and the kernel marks the data block invalid, marking it as not reading the first EDID.
[0198] In the second scenario, in response to a power-on instruction, the kernel fails to access the shared partition during the initialization phase and is marked as failing to read the first EDID.
[0199] In the third scenario, in response to a power-on instruction, the kernel accesses the shared partition during the initialization phase and reads the first EDID from the shared partition, but fails to read the first EDID, and the kernel marks the first EDID as not read.
[0200] In the fourth scenario, in response to the power-on instruction, the kernel accesses the shared partition during the initialization phase and reads the first EDID from the shared partition. The kernel reads the first EDID from the shared partition multiple times within a preset threshold and fails to read the first EDID, which is marked as the first EDID not being read.
[0201] If the first EDID is not read, an error log may be generated. The error log may include the HDMI port number that was not read, the last first EDID read, and the number of retries. The kernel reads the default EDID from the system read-only space. The reading process for the default EDID varies in different scenarios. The retry mechanism can be omitted and the default EDID can be directly read (applicable to the first and second scenarios) without the retry mechanism to avoid extended screen startup time due to format errors.
[0202] It is understandable that, not limited to the above four scenarios where the first EDID is not read, in other scenarios where the first EDID is not read, the kernel reads the default EDID in the system read-only space.
[0203] Step S1102: updating the default extended display identification information to the HDMI driver.
[0204] If the first EDID is not read, the kernel reads the default EDID from the system read-only space during the initialization phase and sends the default EDID to the HDMI driver. The update process of updating the default EDID to the HDMI driver is the same as the process of updating the first EDID to the HDMI driver, so it will not be repeated here.
[0205] Step S1103: triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the default extended display identification information from the HDMI driver in response to the plug-in / unplug-out event.
[0206] After the HDMI device is initialized, the default EDID is read from the HDMI driver.
[0207] Step S1104: receiving a second HDMI signal corresponding to the default extended display identification information sent by the HDMI device.
[0208] The second HDMI signal is generated by the HDMI device based on the default EDID. After receiving the second HDMI signal, the controller 250 can parse the second HDMI signal to obtain the pixel data, standard color gamut color values, and basic brightness range corresponding to the default EDID. By parsing the content of the second HDMI signal, the controller 250 can control the display 260 to render the image according to the default display parameters.
[0209] Step S1105: Control the display 260 to display a corresponding image according to the second HDMI signal.
[0210] The display device 200 parses the second HDMI signal to obtain default display parameters, and controls the display 260 to perform display according to the default display parameters.
[0211] After the display 260 displays the corresponding image according to the first HDMI signal or the second HDMI signal, the user can also customize the EDID during use. For example, if the user believes that the display image is not in the desired state, the user can input control instructions to generate new display parameters by adjusting the settings items in the setting interface, and then generate a new EDID.
[0212] Figure 12 The flowchart for generating the second extended display identification information provided in the embodiment of the present application has the following specific steps:
[0213] Step S1201: After the user process is started, in response to a user control instruction, the user process reads the currently stored display parameters from the user space.
[0214] The user process startup process occurs in the second power cycle, that is, after the power-on instruction is issued and the corresponding image is displayed according to the first HDMI signal.
[0215] After the user process is started, the currently stored display parameters are read in response to the control instructions input by the user. The control instructions in the second power cycle are the same as those in the first power cycle and are not described in detail here.
[0216] Based on the control instruction, the user process reads the currently stored display parameters from the user space, which is the same as the process in the first power cycle and will not be described in detail here.
[0217] Step S1202: Generate a display parameter setting interface based on the currently stored display parameters.
[0218] It can be understood that, unlike the second power cycle, in this step S1202, the currently stored display parameter is the first display parameter, and the setting interface includes setting items for the display parameters, wherein the parameter information indicated by the setting items for the display parameters corresponds to the first display parameter.
[0219] like Figure 8 In the setting interface, preselect the first display parameter in the setting item. For example, when regenerating the first display parameter, the user only adjusts the refresh rate to 120Hz. Then, in the setting interface, Figure 7 Adjust the refresh rate setting item in to the corresponding refresh rate in the first display parameter, and adjust 60Hz to 120Hz.
[0220] Step S1203: The user process generates second extended display identification information according to the second display parameter set by the user based on the setting item of the display parameter.
[0221] The second display parameters include display parameters corresponding to the EDID modified by the user. An EDID extension block may be generated based on the second display parameters, or a complete EDID file may be generated based on the second display parameters.
[0222] For ease of description, the second extended display identification information is defined as a second EDID.
[0223] Step S1204: The user process writes the second extended display identification information into the shared partition, deletes the first extended display identification information from the shared partition, and writes the second display parameter into the user space.
[0224] Based on the user process, the second EDID is written into the shared partition, and the first EDID stored in the shared partition is deleted, that is, the first EDID is overwritten by the second EDID, which can reduce the probability of data confusion.
[0225] Similarly, the second display parameter is written into the user space. This process is the same as the process of writing the first display parameter into the user space, and will not be repeated here.
[0226] In some embodiments, during the third power cycle, during the kernel's initialization phase, the shared partition grants read permission to the kernel, and the kernel reads a second EDID from the shared partition. The second EDID is the EDID written to the shared partition based on the second display parameters set by the user before the current startup. Upon reading the second EDID, the second EDID is updated to the HDMI driver. A plug-in / unplug event of the HDMI interface is triggered, causing the HDMI device to read the second EDID from the HDMI driver in response to the plug-in / unplug event. A third HDMI signal corresponding to the second EDID sent by the HDMI device is received. The display 260 is controlled to display the corresponding screen according to the third HDMI signal. The third power cycle is the next power cycle following the first power cycle corresponding to the startup instruction. The display device 200 sets a shared partition in memory, and the kernel can read the shared partition. During the initialization phase, the kernel can directly read the second EDID stored in the shared partition without waiting for the user process to start or receiving the EDID reading result from the user process in user space. Direct access to the shared partition by the kernel shortens the EDID reading time, thereby shortening the screen display time after startup.
[0227] Example 2
[0228] The main difference between Example 2 and Example 1 is that the kernel can read the first EDID and the default EDID in parallel. That is, during the kernel initialization phase, the kernel reads the first EDID in the shared partition and the default EDID in the system read-only space at the same time. If the first EDID is read, it is used first. For the rest of Example 2, please refer to Example 1 and will not be repeated here.
[0229] In some embodiments, because the kernel has read permission for the shared partition and system read-only space set in the memory, during the initialization phase, the kernel reads the first EDID in the shared partition and the default EDID in the system read-only space. If the first EDID is read, the first EDID is updated to the HDMI driver to receive the first HDMI signal sent by the HDMI device and display the corresponding image. In this way, if the display device 200 does not read the first EDID, it can directly update the default EDID to the HDMI driver without waiting for the user process to start and receiving the reading result of the EDID from the user space. The kernel directly accesses the shared partition and the system read-only space, shortening the ED ID reading time and thereby shortening the image display time.
[0230] Figure 13 Another flowchart of the display device 200 provided in the embodiment of the present application controlling the display screen after powering on is shown, and the specific steps are as follows:
[0231] Step S1301: In response to a boot instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition, and reads default extended display identification information from a system read-only space.
[0232] In the kernel initialization phase, the first EDID and the default EDID are simultaneously started to be read, thereby saving the time of reading the default EDID when the first EDID is not read.
[0233] In some embodiments, the kernel may execute EDID reading operations of the shared partition and the system read-only space separately through threads or tasks.
[0234] When the kernel reads both the first EDID and the default EDID, the priority of updating the first EDID to the HDMI driver is higher than the priority of updating the default EDID to the HDMI driver. That is, when the kernel reads both the first EDID and the default EDID, the first EDID is updated to the HDMI driver. If the first EDID is not read, the default EDID is updated to the HDMI driver.
[0235] Step S1302: when the first extended display identification information is read, the first extended display identification information is updated to the HDMI driver.
[0236] Step S1303: triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event.
[0237] Step S1304: receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device.
[0238] Step S1305: Control the display 260 to display a corresponding image according to the first HDMI signal.
[0239] Steps S1302 to S1305 may refer to steps S402 to S405 in Example 1 and are not described in detail here.
[0240] Figure 14 Another flowchart of the kernel reading the default extended display identification information provided in the embodiment of the present application, the specific steps are as follows:
[0241] S1401: If the first extended display identification information is not read, update the default extended display identification information to the HDMI driver.
[0242] S1402: Triggering the plug-in event of the HDMI interface, so that the HDMI device reads the default extended display identification information from the HDMI driver in response to the plug-in event.
[0243] S1403: Receive a second HDMI signal corresponding to the default extended display identification information sent by the HDMI device;
[0244] S1404: Control the display 260 to display a corresponding image according to the second HDMI signal.
[0245] Steps S1401 to S1404 may refer to steps S1101 to S1104 in Example 1 and are not described in detail here.
[0246] In some embodiments, a method for displaying a screen after power-on is further provided, which can be applied to the display device 200 provided in an embodiment of the present application, wherein the display device 200 is connected to an HDMI device; the display device 200 includes a memory, the memory includes a shared partition, and the shared partition is configured to: store extended display identification information generated based on display parameters set by a user, wherein the shared partition has read permission for the kernel of the operating system and write permission for user processes;
[0247] The method includes: in response to a power-on instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition, where the first extended display identification information is the extended display identification information written to the shared partition based on first display parameters set by the user before the current power-on; when the first extended display identification information is read, the first extended display identification information is updated to an HDMI driver; triggering a plug-in and unplug-out event of the HDMI interface so that the HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in and unplug-out event; receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; and controlling the display 260 to display a corresponding screen according to the first HDMI signal.
[0248] A shared partition is set in the memory of the display device 200. The shared partition stores first extended display identification information set by the user. The shared partition has read permission for the kernel and write permission for the user process. After the display device 200 is powered on, during the kernel initialization phase, the kernel can directly read the first extended display identification information set by the user from the shared partition without waiting for the user process to start and then receive the first extended display identification information set by the user sent by the user process. The kernel reads the first extended display identification information in the shared partition. If the first extended display identification information is read, it is updated to the HDMI driver, triggering a plug-in or unplug event of the HDMI interface. The HDMI device can respond to the plug-in or unplug event by reading the first extended display identification information from the HDMI driver and then receiving an HDMI signal corresponding to the first extended display identification information sent by the HDMI device. The display 260 displays the screen based on the HDMI signal. In this way, the kernel directly reads the first EDID stored in the shared partition during the initialization phase, waits for the user process to start, and receives the EDID reading result from the user process in user space. Direct access to the shared partition by the kernel shortens the EDID reading time, thereby shortening the screen display time after powering on.
[0249] In other embodiments, a method for displaying a screen after startup is also provided, which can be applied to the display device 200 provided in the embodiments of the present application, wherein the display device 200 is connected to an HDMI device; the display device 200 includes a memory, the memory includes a shared partition, and the shared partition is configured to: store extended display identification information generated based on display parameters set by the user, wherein the shared partition has read permission for the kernel of the operating system and write permission for the user process; the memory also includes a system read-only space, and the system read-only space is configured to: store default extended display identification information, wherein the system read-only space has read permission only for the kernel;
[0250] The method includes: in response to a power-on instruction, during the kernel initialization phase, the kernel reads first extended display identification information from a shared partition, and the kernel reads default extended display identification information from a system read-only space, wherein the first extended display identification information is extended display identification information written to the shared partition based on a first display parameter set by a user before the current power-on; when the first extended display identification information is read, the first extended display identification information is updated to an HDMI driver; a plug-in and unplug event of the HDMI interface is triggered, so that the HDMI device reads the first extended display identification information from the HDMI driver in response to the plug-in and unplug event; a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device is received; and control the display 260 to display a corresponding screen according to the first HDMI signal.
[0251] A shared partition and a system read-only space are set in the memory of the display device 200. The shared partition stores the first extended display identification information set by the user, and the system read-only space stores the default extended display identification information. After the display device 200 is turned on, the kernel reads the first extended display identification information and the default extended display identification information at the same time during the initialization phase. If the first extended display identification information is read, it is updated to the HDMI driver, triggering a plug-in or unplug event of the HDMI interface. The HDMI device can respond to the plug-in or unplug event, read the first extended display identification information from the HDMI driver, and then receive an HDMI signal corresponding to the first extended display identification information sent by the HDMI device. The display 260 displays the screen based on the HDMI signal. In this way, the kernel directly reads the first extended display identification information stored in the shared partition during the initialization phase, or reads the default extended display identification information stored in the system read-only space, without waiting for the user process to be started and receiving the EDID reading result from the user process in the user space. The kernel directly accesses the shared partition and the system read-only space, shortening the EDID reading time and thereby shortening the screen display time after startup.
[0252] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion of some embodiments is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The above embodiments are selected and described to better explain the content of this disclosure, thereby enabling those skilled in the art to better use the embodiments.
Claims
1. A display device, characterized in that: include: The HDMI interface is configured to: connect to an HDMI device; The memory includes a shared partition, wherein the shared partition is configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process; monitor; The controller is configured as: In response to a power-on instruction, during an initialization phase of the kernel, the kernel reads first extended display identification information from the shared partition, where the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current power-on; When the first extended display identification information is read, updating the first extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; Control the display to display a corresponding image according to the first HDMI signal.
2. The display device according to claim 1, wherein The memory further includes a system read-only space, wherein the system read-only space is configured to store default extended display identification information, wherein the system read-only space is only open to the kernel for read permission; The controller is further configured to: execute, in response to a power-on instruction, after the kernel reads the first extended display identification information from the shared partition during the initialization phase of the kernel; In the case that the first extended display identification information is not read, the kernel reads the default extended display identification information from the system read-only space; Updating the default extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the default extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a second HDMI signal corresponding to the default extended display identification information and sent by the HDMI device; The display is controlled to display a corresponding picture according to the second HDMI signal.
3. The display device according to claim 1, wherein The controller executes, in response to a power-on instruction, reading, by the kernel during the initialization phase of the kernel, the first extended display identification information from the shared partition, and is specifically configured as follows: Reading, by the kernel, the first extended display identification information from the shared partition; If the first extended display identification information is not read, read the first extended display identification information from the shared partition again, and record the number of failures in reading the first extended display identification information; If the number of times is greater than or equal to the preset threshold and the first extended display identification information is not read, determining that the first extended display identification information is not read; If the number of times is less than the preset threshold and the first extended display identification information is read, it is determined that the first extended display identification information is read.
4. The display device according to claim 1 or 2, characterized in that The memory further includes a user space, wherein the user space is used to store display parameters set by the user and default display parameters, wherein the user space is only open to read permission and write permission for the user process; The controller is further configured to: In a first power cycle, in response to a user control instruction, the user process reads the currently stored display parameters from the user space, the first power cycle being earlier than a second power cycle corresponding to the power-on instruction; generating a display parameter setting interface according to the currently stored display parameters, wherein the setting interface includes display parameter setting items, wherein parameter information indicated by the display parameter setting items corresponds to the currently stored display parameters; The user process generates the first extended display identification information according to the first display parameter set by the user based on the setting item of the display parameter; The user process writes the first extended display identification information into the shared partition, and writes the first display parameter into the user space.
5. The display device according to claim 1 or 2, characterized in that: The memory further includes a user space, wherein the user space is used to store display parameters set by the user and default display parameters, wherein the user space is only open to read permission and write permission for the user process; After the controller controls the display to display a corresponding image according to the first HDMI signal, the controller is further configured to: After the user process is started, in response to a user control instruction, the user process reads the currently stored display parameters from the user space; generating a display parameter setting interface according to the currently stored display parameters, wherein the setting interface includes display parameter setting items, wherein parameter information indicated by the display parameter setting items corresponds to the currently stored display parameters; The user process generates second extended display identification information according to a second display parameter set by the user based on the setting item of the display parameter; The user process writes the second extended display identification information into the shared partition, deletes the first extended display identification information from the shared partition, and writes the second display parameter into the user space.
6. The display device according to claim 1, wherein The controller triggers a plug-in / unplug event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug event, and is specifically configured as follows: Sending a level control signal to the plug detection pin of the HDMI interface; In response to the level control signal, a high level signal is sent to the HDMI device via the plug detection pin of the HDMI interface, so that the HDMI device responds to the high level signal and reads the first extended display identification information from the HDMI driver.
7. A display device, characterized in that: include: The HDMI interface is configured to: connect to an HDMI device; The memory includes a shared partition, wherein the shared partition is configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process; The memory further includes a system read-only space, wherein the system read-only space is configured to store default extended display identification information, wherein the system read-only space is only open to the kernel for read permission; monitor; The controller is configured as: In response to a boot instruction, during an initialization phase of the kernel, the kernel reads first extended display identification information from the shared partition, and the kernel reads default extended display identification information from the system read-only space, wherein the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current boot; When the first extended display identification information is read, updating the first extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; Control the display to display a corresponding image according to the first HDMI signal.
8. The display device according to claim 7, wherein: The controller is further configured to: execute, in response to a power-on instruction, in response to the power-on instruction, after the kernel reads the first extended display identification information from the shared partition and the kernel reads the default extended display identification information from the system read-only space during an initialization phase of the kernel; If the first extended display identification information is not read, updating the default extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the default extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a second HDMI signal corresponding to the default extended display identification information and sent by the HDMI device; The display is controlled to display a corresponding picture according to the second HDMI signal.
9. A method for displaying a picture after powering on, characterized in that: The invention is applied to a display device connected to an HDMI device; the display device includes a memory, the memory includes a shared partition, and the shared partition is configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process; The method comprises: In response to a power-on instruction, during an initialization phase of the kernel, the kernel reads first extended display identification information from the shared partition, where the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current power-on; When the first extended display identification information is read, updating the first extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; Control the display to display a corresponding image according to the first HDMI signal.
10. A method for displaying a picture after powering on, characterized in that: The invention is applied to a display device connected to an HDMI device; the display device includes a memory, the memory includes a shared partition, and the shared partition is configured to store extended display identification information generated based on display parameters set by a user, wherein the shared partition has a read permission for the kernel of the operating system and a write permission for the user process; The memory further includes a system read-only space, wherein the system read-only space is configured to store default extended display identification information, wherein the system read-only space is only open to the kernel for read permission; The method comprises: In response to a boot instruction, during an initialization phase of the kernel, the kernel reads first extended display identification information from the shared partition, and the kernel reads default extended display identification information from the system read-only space, wherein the first extended display identification information is extended display identification information written to the shared partition based on first display parameters set by a user before the current boot; When the first extended display identification information is read, updating the first extended display identification information to the HDMI driver; triggering a plug-in / unplug-out event of the HDMI interface, so as to enable the HDMI device to read the first extended display identification information from the HDMI driver in response to the plug-in / unplug-out event; receiving a first HDMI signal corresponding to the first extended display identification information sent by the HDMI device; Control the display to display a corresponding image according to the first HDMI signal.