CN117453168A - Display control method and device - Google Patents

Display control method and device Download PDF

Info

Publication number
CN117453168A
CN117453168A CN202311402100.2A CN202311402100A CN117453168A CN 117453168 A CN117453168 A CN 117453168A CN 202311402100 A CN202311402100 A CN 202311402100A CN 117453168 A CN117453168 A CN 117453168A
Authority
CN
China
Prior art keywords
electronic device
interface
target
processor
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311402100.2A
Other languages
Chinese (zh)
Inventor
陈桂元
金英杰
陈思波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202311402100.2A priority Critical patent/CN117453168A/en
Publication of CN117453168A publication Critical patent/CN117453168A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a display control method and a display control device, which are applied to first electronic equipment, wherein the method comprises the following steps: the method comprises the steps that a controller of a first electronic device detects that the first electronic device is connected with a second electronic device, and sends a target signal to a processor of the first electronic device, wherein the second electronic device is provided with a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; wherein, when the first electronic equipment is in a shutdown state, the controller keeps a power-on state; the processor outputs display information to a display unit of the second electronic device in response to the target signal.

Description

Display control method and device
Technical Field
The present disclosure relates to the field of display control technologies, and in particular, to a display control method and device.
Background
The kinds of electronic devices are increasingly diversified, and the kinds, the number, and the like of display interfaces supported by different electronic devices are also different.
For a display interface supporting some specific multimedia protocols, an electronic device can only identify a display device connected to the display interface before the electronic device is started, but cannot identify a display device connected to the display interface after the electronic device is started and operated, so that the electronic device cannot output display contents by using the display devices.
Disclosure of Invention
In one aspect, the present application provides a display control method applied to a first electronic device, including:
the method comprises the steps that a controller of a first electronic device detects that the first electronic device is connected with a second electronic device, and sends a target signal to a processor of the first electronic device, wherein the second electronic device is provided with a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; wherein, when the first electronic equipment is in a shutdown state, the controller keeps a power-on state;
the processor outputs display information to a display unit of the second electronic device in response to the target signal.
In one possible implementation, the method for sending the target signal to the processor of the first electronic device includes:
and when the controller detects that the second electronic device is connected with the first electronic device and confirms that the first electronic device cannot output display information to a display unit of the second electronic device based on the first multimedia transmission protocol, sending a target signal to a processor of the first electronic device.
In yet another possible implementation manner, the display control method further includes:
the controller obtains an interface state of a target interface in the first electronic device, wherein the target interface is an interface adopting a first multimedia transmission protocol;
and when the controller detects that the second electronic device is connected with the first electronic device and confirms that the first electronic device cannot output display information to a display unit of the second electronic device based on a first multimedia transmission protocol, sending a target signal to a processor of the first electronic device, including:
and if the controller detects that the second electronic equipment is accessed to the target interface of the first electronic equipment, and the interface state of the target interface connected with the second electronic equipment is an abnormal communication state, sending a target signal to the processor of the first electronic equipment.
In yet another possible implementation manner, the display control method further includes:
in the starting process of an operating system of a first electronic device, if a processor of the first electronic device detects that the target interface is not connected with a display device supporting a first multimedia transmission protocol, setting an interface state of the target interface to be an abnormal communication state;
After an operating system of a first electronic device is started, if the processor detects that the connection between a display device supporting a first multimedia transmission protocol and the target interface is disconnected, setting the interface state of the target interface to be an abnormal communication state;
and if the controller detects that the second electronic device is connected to the target interface of the first electronic device, and the interface state of the target interface connected with the second electronic device is an abnormal communication state, sending a target signal to the processor of the first electronic device, including:
and under the condition that the controller detects that the second electronic equipment is accessed to the target interface of the first electronic equipment, if the operating system of the first electronic equipment is started, confirming that the interface state of the target interface connected with the second electronic equipment is an abnormal communication state, and sending a target signal to the processor of the first electronic equipment.
In yet another possible implementation manner, the sending the target signal to the processor of the first electronic device includes:
and sending the target analog signal to a processor of the first electronic device, wherein the target analog signal is analog and is used for indicating that a signal for supporting a second multimedia transmission protocol is established between an external display device and the first electronic device.
In yet another possible implementation manner, the sending the target analog signal to the processor of the first electronic device includes:
and sending a hot plug analog signal to a processor of the first electronic equipment, wherein the hot plug analog signal is used for indicating that an external display device is connected to a set interface in the first electronic equipment in a hot plug mode, and the set interface is an interface supporting a second multimedia transmission protocol.
In yet another possible implementation, the controller of the first electronic device is connected to a device driver interface or a target hot plug pin of the processor, the driver interface or the target hot plug pin being configured as an interface supporting the second multimedia transport protocol;
the sending the target analog signal to the processor of the first electronic device includes:
and sending the simulated high-level hot plug signal to the device driver interface or the target hot plug pin.
In yet another possible implementation manner, the controller detecting that the first electronic device is connected to a second electronic device includes:
the controller detects that a target interface is connected with the second electronic device, and the target interface is an interface supporting a first multimedia transmission protocol.
In yet another possible implementation manner, before outputting the display information to the display unit of the second electronic device, the method further includes:
the processor of the first electronic device obtains display parameters of a display unit in the second electronic device;
the outputting display information to the display unit of the second electronic device includes:
and outputting display information to the display unit of the second electronic equipment based on the display parameters of the display unit in the second electronic equipment.
In yet another aspect, the present application further provides a first electronic device, including:
a controller and a processor;
the controller is used for detecting that the first electronic device is connected with the second electronic device and sending a target signal to the processor, wherein the second electronic device is provided with a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; wherein, when the first electronic equipment is in a shutdown state, the controller keeps a power-on state;
the processor is used for responding to the target signal and outputting display information to a display unit of the second electronic device.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic flow chart of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a display control method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a display control method according to an embodiment of the present application;
FIG. 4 is a diagram showing an example of possible connection states of a display interface in a first electronic device according to an embodiment of the present application;
FIG. 5 illustrates an example diagram of a first electronic device connected to a second electronic device in an embodiment of the present application;
fig. 6 shows a schematic flow chart of a display control method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without undue burden, are within the scope of the present application.
For easy understanding, an electronic device provided in an embodiment of the present application is described first, and as shown in fig. 1, a schematic diagram of a composition structure of a first electronic device to which the embodiment of the present application is applicable is shown.
As can be seen from fig. 1, the first electronic device at least includes: a controller 101 and a processor 102.
The controller 101 may be configured to detect that the first electronic device is connected to a second electronic device, and send a target signal to the processor, where the second electronic device has a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; and when the first electronic equipment is in a shutdown state, the controller keeps a power-on state.
The processor 102 is configured to output display information to a display unit of the second electronic device in response to the target signal.
The specific operations of the controller and the processor may be described in detail in the following embodiments, which are not described herein.
It is understood that the first electronic device may further comprise at least one interface 103 supporting a first multimedia transmission protocol. Of course, interfaces supporting other multimedia transmission protocols may also be included, without limitation.
The following describes the scheme of the present application in detail with reference to flowcharts.
Fig. 2 is a schematic flow chart of a display control method according to an embodiment of the present application, where the method of the present embodiment may be applied to a first electronic device, and the method of the present embodiment includes:
s201, a controller of the first electronic device detects that the first electronic device is connected with the second electronic device, and sends a target signal to a processor of the first electronic device.
And when the first electronic equipment is in a shutdown state, the controller keeps a power-on state. Based on the above, the controller can operate to execute independent processing functions or data processing and the like under the shutdown and operation states of the electronic device, and the connection state and the like of the first electronic device and other electronic devices can be naturally detected in time.
For example, in one possible implementation, the controller may be an embedded controller (Embedded Controller, EC).
In the present application, the second electronic device has a display unit.
The second electronic device may be any electronic device having a display unit, for example, the second electronic device may be a mobile phone, a tablet or a notebook computer.
In the present application, the first electronic device may be the same type of electronic device as the second electronic device, or may be a different type of electronic device, which is not limited. For example, the first electronic device may be an electronic device without a display unit, e.g., the first electronic device is a host, etc. For another example, the second electronic device may also be an electronic device with a display unit, for example, the first electronic device may be a notebook computer, and the second electronic device may be a tablet computer, which is not limited thereto.
In the present application, a connection supporting a first multimedia transmission protocol is established between a first electronic device and a second electronic device. Accordingly, the detection by the controller of the first electronic device that the first electronic device and the second electronic device establish a connection may be detection that a connection supporting the first multimedia transmission protocol is established between the first electronic device and the second electronic device.
In one possible implementation, the first electronic device may include at least one interface. The first electronic device may configure a data display protocol supported by each interface thereof, based on which the first electronic device may include: at least one interface supporting a first multimedia transport protocol. For ease of distinction, the interface supporting the first multimedia transport protocol is referred to as the target interface. Accordingly, the controller detects that the connection based on the first multimedia transmission protocol is established between the first electronic device and the second electronic device, and can detect that the target interface is connected with the second electronic device for the controller.
It can be understood that, since the second electronic device is connected to the first electronic device for the purpose of using the second electronic device as a display device of the first electronic device, in this application, the first multimedia transmission protocol is a display data transmission protocol, and the first electronic device can output multimedia such as images or videos to the display unit of the second electronic device for display by using the first multimedia transmission protocol.
The first multimedia transmission protocol may also be different according to the application scenario. The present embodiment is applicable to any case where the first electronic device may have a display unit that cannot be effectively identified or cannot be timely identified on the premise that the connection of the first multimedia transmission protocol is established between the second electronic device and the first electronic device. For example, the first multimedia transmission protocol may be an embedded displayport (embedded Display Port, eDP) protocol or the like, which is not limited.
In the present application, the target signal is used to trigger the first electronic device to perform a display device scan.
S202, the processor outputs display information to the display unit of the second electronic device in response to the target signal.
The processor of the first electronic device may be a central processor of the first electronic device, or may be a processor for controlling the first electronic device to output display content to another electronic device, which is not limited.
It will be appreciated that the effect of the target signal can trigger the first electronic device to perform a display device scan, and that the first electronic device performs the display device scan for the purpose of discovering and identifying the display device so as to enable the first electronic device to output display information to the display device.
Based on this, the processor must be able to recognize the display unit of the second electronic device in response to the target signal, so that the first electronic device will output display information to the display unit of the second electronic device.
In one possible implementation, the processor may first scan the display unit of the second electronic device in response to the target signal. For example, the processor of the first electronic device obtains the display parameters of the display unit in the second electronic device, so as to prepare for the first electronic device to output display information to the display unit of the second electronic device. Accordingly, the processor of the first electronic device may output display information to the display unit of the second electronic device based on the display parameters of the display unit in the second electronic device.
As can be seen from the above, when the controller of the first electronic device detects that the connection of the first multimedia transmission protocol is established between the first electronic device and the second electronic device, the controller sends the target signal to the processor of the first electronic device. The target signal can trigger the first electronic device to execute the display device scanning, so that the processor of the first electronic device can naturally scan the display unit of the second electronic device which is currently connected in response to the target signal and output display information to the display unit of the second electronic device, thereby reducing the situation that the first electronic device cannot output display information to the display unit of the second electronic device based on the first multimedia transmission protocol because the operating system of the first electronic device cannot identify the second electronic device which is connected based on the first multimedia transmission protocol.
It will be appreciated that in practical applications, the first electronic device may not be able to identify the second electronic device that is connected to the first electronic device based on the first multimedia transmission protocol only in some special cases. Based on this, in order to avoid that the target signal is transmitted even if the first electronic device can recognize the second electronic device, and thus reduce power consumption of the controller in the first electronic device due to the transmission of the target signal, the controller may further determine whether the first electronic device supports the output of the display information to the second electronic device when detecting that the second electronic device is connected to the first electronic device.
Correspondingly, the target signal is sent to the processor of the first electronic device only when the controller detects that the second electronic device is connected with the first electronic device and confirms that the first electronic device cannot output display information to the display unit of the second electronic device based on the first multimedia transmission protocol.
The controller may determine whether the first electronic device can output the display information to the display unit of the second electronic device based on the first multimedia transmission protocol.
For example, due to the specificity of the first multimedia transmission protocol and the special requirement of the operating system in the first electronic device, the first electronic device can only identify the second electronic device if the second electronic device has established a multimedia transmission protocol with the first electronic device before the first electronic device is powered on.
Based on this, in a possible case, if the controller determines that the current operation state of the first electronic device is started in a case where the controller detects that the first electronic device and the second electronic device are connected, it may be determined that the first electronic device cannot output display information to the display unit of the second electronic device based on the first multimedia transmission protocol.
For ease of understanding, the description is illustrated in connection with one application scenario:
taking the first multimedia transmission protocol as an eDP protocol as an example, the eDP protocol is an internal digital interface based on a display port architecture and a protocol, and is suitable for tablet computers, notebooks, all-in-one machines, large-screen mobile phones and the like.
On the premise that the first electronic device is provided with the eDP interface, if the first electronic device is an electronic device such as a notebook computer with an operating system such as windows, the operating system can consider a display device connected with the first electronic device based on the eDP interface as an internal display screen of the first electronic device to perform display scanning when the operating system is started. However, if the eDP protocol interface is not connected to other display devices during the starting process of the operating system of the first electronic device, the operating system may consider that the device connected to the eDP protocol interface is in a lost state, that is, an abnormal state. Based on the above, if the operating system of the first electronic device is started, the other electronic devices are connected to the eDP protocol interface of the first electronic device, and the operating system of the first electronic device will not read the display parameters of the other electronic devices connected to the eDP protocol interface any more, so that the electronic device connected to the eDP protocol interface cannot pass the authentication of the operating system of the first electronic device.
In this scenario example, if the controller of the first electronic device detects that the eDP protocol interface is connected to the display device having the display unit, and the controller confirms that the first electronic device is started up, that is, the operating system is started up, it is explained that the first electronic device will not scan the display parameters of the display device any more, so it may be determined that the first electronic device cannot output the display content to the display device based on the eDP protocol interface.
As another example, in yet another possible scenario, the controller may further obtain an interface state of a target interface in the first electronic device, where the target interface is an interface that employs the first multimedia transmission protocol. The interface states of the target interface may be classified into an abnormal communication state and a non-abnormal communication state. The interface state of the target interface is an abnormal communication state, which indicates that the first electronic device cannot output display information to the display unit of the second electronic device through the interface of the first multimedia transmission protocol.
Correspondingly, if the controller detects that the second electronic device is connected to the target interface of the first electronic device and the interface state of the target interface is an abnormal communication state, the controller sends a target signal to the processor of the first electronic device.
In this application, the controller obtaining the interface state of the target interface may be that the controller obtains the interface state of the target interface when the controller detects that the second electronic device accesses the target interface. For example, the information of the interface state of the target interface may be stored in the designated storage area in advance, and the controller inquires the interface state of the target interface stored in the designated storage area.
The interface state of the target interface may also be obtained by the controller when the interface state of the target interface changes. For example, after the processor configures or adjusts the interface state of the target interface, the processor sends the interface state of the target interface to the controller, so that the controller can obtain the current interface state of the target interface.
The interface state of the target interface may also be the interface state of the target interface determined by the controller based on the running state of the first electronic device when the second electronic device interfaces with the target interface.
The following description is made in connection with one possible implementation.
Referring to fig. 3, a schematic flow chart of a display control method provided in an embodiment of the present application is shown, where the method of the embodiment may be applied to a first electronic device, and the method of the embodiment may include:
S301, in the starting process of an operating system of the first electronic device, if a processor of the first electronic device detects that a target interface is not connected with a display device supporting a first multimedia transmission protocol, setting an interface state of the target interface to an abnormal communication state.
The target interface is an interface adopting a first multimedia transmission protocol. For example, the first multimedia transport protocol is an eDP protocol, and the target interface is an interface configured to support the eDP protocol.
In the present application, there may be one or more interfaces supporting the first multimedia transmission protocol in the first electronic device, and the processing procedure in the present application is the same for each interface supporting the first multimedia transmission protocol.
The display device may be any electronic device having a display unit, without limitation. Because the first multimedia transmission protocol is a display data protocol, the first electronic device will regard the electronic devices connected to the target interface as the display devices connected to the first electronic device.
In this embodiment, the operating system of the first electronic device needs to scan the display device supporting the first multimedia transmission protocol during the startup process. For the target interface supporting the first multimedia transmission protocol, during the starting process of the operating system of the first electronic device, if the target interface of the first electronic device is not connected with the display device, or the connected display device does not belong to the display device supporting the first multimedia transmission protocol, the operating system cannot identify the display device supporting the first multimedia transmission protocol, and then the operating system confirms that the target interface is abnormal.
Based on the above, if the processor confirms that the target interface is not connected to the display device of the first multimedia transmission protocol during the starting process of the operating system of the first electronic device, the processor confirms that the target interface is in an abnormal communication state.
The interface state of the target interface is in an abnormal communication state, which indicates that the first electronic device cannot output the display information of the first multimedia transmission protocol through the target interface.
S302, after the operating system of the first electronic device is started, if the processor detects that the connection between the display device supporting the first multimedia transmission protocol and the target interface is disconnected, the interface state of the target interface is set to be an abnormal communication state.
In this embodiment, the first electronic device can scan the display device of the first multimedia transmission protocol only when the operating system is started, and on this basis, if after the operating system of the first electronic device is started, the display device supporting the first multimedia transmission protocol is connected to the target interface, or after the display device supporting the first multimedia transmission protocol connected to the target interface is disconnected from the target interface, the display device is connected to the target interface again, so that the operating system cannot scan the display device, and the scanning device cannot be identified naturally.
Based on this, after the operating system is started, if the connection between the display device supporting the first multimedia transmission protocol and the target interface is disconnected, the processor will set the interface state of the target interface to an abnormal communication state as well.
S303, if the controller detects that the second electronic device is connected to the target interface of the first electronic device, if the operating system of the first electronic device is started, confirming that the interface state of the target interface connected to the second electronic device is an abnormal communication state, and sending a target signal to the processor of the first electronic device.
As described above, if the operating system of the first electronic device is started, the second electronic device subsequently accessing the target interface cannot be identified by the operating system, so that the controller can confirm that the target interface connected to the second electronic device is necessarily in an abnormal communication state when confirming that the operating system is started.
In this embodiment, the controller determines the interface state of the target interface by querying the running state of the operating system. In practical applications, other possible implementations are also possible.
For example, after the processor configures the interface state of the target interface, the processor may also actively send the interface state of the target interface to the controller. On the basis, the controller confirms that the second electronic equipment is connected to the target interface, the controller can inquire the interface state of the target interface reported before the processor, and if the interface state of the target interface is inquired to be in an abnormal communication state, a target signal is sent to the processor. And if the interface state of the target interface is not queried to be the abnormal communication state, confirming that the target interface is in a normal state.
For another example, after the processor configures the interface state of the target interface to be an abnormal communication state, the processor may store the interface state of the target interface to a designated storage area that may be accessed by the controller, and the controller may query the interface state of the target interface in the designated storage area to determine whether the interface state of the target interface accessed by the second electronic device is an abnormal communication state.
S304, the processor responds to the target signal and outputs display information to a display unit of the second electronic device.
This step may be referred to in the description of the previous embodiments and will not be described in detail here.
In the above embodiments of the present application, the target signal sent by the controller of the first electronic device to the processor of the first electronic device may be multiple possible, which is not limited as long as the processor can be triggered to perform the scanning of the display device.
For example, in one possible implementation, the target signal sent by the controller to the processor may be a target analog signal, where the target analog signal is analog, and is used to indicate that there is a signal that the external display device establishes a connection supporting the second multimedia transmission protocol with the first electronic device.
Wherein the second multimedia transmission protocol is different from the first multimedia transmission protocol. The processor of the first electronic device detects that the first electronic device is connected to a display device supporting the second multimedia transmission protocol, and the processor of the first electronic device initiates a scan of the display device or of all display devices currently connected. Based on this, in the present application, the controller generates a target analog signal through simulation and sends the target analog signal to the processor, so that the processor may misuse the target analog signal as the display device currently connected to the second multimedia transmission protocol, so that the processor at least scans the currently connected display device.
Wherein scanning the display device may be understood as reading display parameters of the display device to enable the first electronic device to output display information to the display device.
The second multimedia transmission protocol may have various possibilities, so long as the second multimedia transmission protocol is a multimedia transmission protocol that can trigger the electronic device to scan the display device after the display device is connected based on the second multimedia transmission protocol.
For example, the second multimedia transmission protocol may be the DP (DisplayPort) protocol and the DP protocol may be a high-speed serial interface standard for digital audio and video transmission.
As another example, the second multimedia transmission protocol may be a High-definition multimedia interface (HDMI) protocol. The HDMI interface is a fully digital video and audio transmission interface that can transmit uncompressed audio and video signals.
In one possible implementation, it is considered that when the first electronic device accesses the display device supporting the second multimedia transmission protocol, the interface supporting the second multimedia transmission protocol in the first electronic device generates a hot plug signal. Based on the above, the controller can generate a hot plug signal in a simulation manner, and correspondingly, the target analog signal sent to the processor by the controller can be the hot plug analog signal. The hot plug analog signal is used for indicating that an external display device is connected to a set interface in the first electronic equipment in a hot plug mode, and the set interface is an interface supporting a second multimedia transmission protocol.
It can be understood that when the controller detects that the first electronic device is connected to the second electronic device supporting the first multimedia transmission protocol, the processor of the first electronic device does not detect the hot plug signal at present because the second electronic device is not connected to the first electronic device based on the second multimedia transmission protocol, and in order to enable the processor to scan the display unit of the connected second electronic device, the controller simulates a hot plug analog signal and sends the hot plug analog signal to the processor, so that the operating system of the first electronic device is mistakenly connected to the second electronic device supporting the second multimedia transmission protocol at present, and thus the scanning of the display unit of the second electronic device is started.
It will be appreciated that in this application, to enable the controller to send a target analog signal to the processor, the controller is connected to an interface in the processor that supports the target analog signal. For example, the controller of the first electronic device is connected to a device driver interface or a target hot plug pin of the processor.
Wherein the driver interface or the target hot plug pin is configured as an interface supporting the second multimedia transport protocol.
Based on this, in case the controller of the first electronic device detects that the first electronic device is connected to the second electronic device based on the first multimedia transmission protocol, the controller may send an emulated high-level hot plug signal to the device driver interface (Device Driver Interface, DDI) or the target hot plug pin. After the processor detects the high-level hot plug signal, the processor confirms that the display device of the second multimedia transmission protocol is accessed, and then the processor starts scanning all connected display devices.
For ease of understanding, the interfaces in the first electronic device are described as examples. Described in connection with fig. 4, an exemplary diagram of possible connection states of the interfaces in the first electronic device is shown in fig. 4. For convenience of description, in fig. 4, the first multimedia interface protocol is taken as an eDP protocol, and the second multimedia interface protocol is taken as an HDMI protocol as an example.
As can be seen in fig. 4, the processor 401 may be connected with interfaces, such as a plurality of DDI interfaces.
For ease of description in fig. 4, the plurality of interfaces are divided into three groups, interface group a, interface group B, and interface group C. Each interface group may include one or more interfaces.
As in fig. 4, some interfaces in the interface group a may be configured as interfaces of the first multimedia transmission protocol, such as the interface of the eDP protocol in fig. 4; while some of the interfaces in the interface group a are configured to support the second multimedia interface protocol, such as the example of the interface being a hot plug pin in fig. 4.
Accordingly, the interface supporting the eDP protocol may be connected to an interface supporting the eDP protocol in a second electronic device such as a tablet computer, for example, in fig. 4, the second electronic device is taken as the tablet computer. And an interface configured to support the HDMI protocol, a display device supporting the HDMI protocol may be connected.
The interface group B is similar to the interface group a, and will not be described in detail.
In this application, at least one interface of the interface group C is configured as an interface supporting hot plug, where the hot plug interface is connected to the controller, for example, the hot plug interface is connected to a General-Purpose Input/Output (GPIO) of the controller, so that the controller can send a high-level hot plug signal to the processor through the hot plug pin.
It will be appreciated that in the present application, there are a number of possibilities for the controller to detect that the second electronic device has access to the first electronic device based on the first multimedia transmission protocol.
For example, in the case that the second electronic device is connected to the first electronic device, there may be a line in the target interface where the second electronic device is connected to the first electronic device, and based on this, if the second electronic device is connected to the first electronic device, the controller of the first electronic device may also be able to detect the signal that the second electronic device is connected to.
For ease of understanding, an example diagram of the connection of a first electronic device to a second electronic device is shown in fig. 5, described below in connection with fig. 5.
As can be seen in fig. 5, the controller 511 of the first electronic device 51 is connected to a hot plug pin of the processor 512.
An interface based on a first multimedia transmission protocol may be connected between the first electronic device 51 and the second electronic device 52, such that the processor 512 of the first electronic device 51 is able to establish a connection with the processor 521 of the second electronic device 52, and the controller 511 of the first electronic device will likewise be connected with the processor of the second electronic device. For example, a signal line in the target interface connected to the second electronic device in the processor 512 of the first electronic device is connected to the controller 511 of the first electronic device, so that the controller 511 is connected to the processor of the second electronic device through the signal line.
Accordingly, the controller may detect that the second electronic device accesses a target interface in the first electronic device that supports the first multimedia transport protocol.
On the basis of the above, the controller can send the target signal to the processor of the first electronic device when detecting that the second electronic device is connected to the target interface of the first electronic device and confirming that the target interface is in an abnormal communication state. Accordingly, the processor of the first electronic device may obtain the display parameters of the display unit 522 in the second electronic device 52 in response to the target signal.
In order to facilitate understanding of the solution of the present application, an implementation manner of the embodiment of the present application is taken as an example, and is described below in connection with an application scenario.
Fig. 6 is a schematic flow chart of another display control method provided in the embodiment of the present application, where the method of the present embodiment may be applied to a first electronic device, and the embodiment may include:
s601, a controller of the first electronic device detects that the second electronic device is connected to a target interface supporting a first multimedia transmission protocol in the first electronic device, and the controller confirms the running state of an operating system in the first electronic device.
As shown in fig. 5, when the second electronic device accesses the target interface supporting the first multimedia transmission protocol in the first electronic device, the controller also detects a signal input, so that the controller confirms that the second electronic device supporting the first multimedia transmission protocol accesses the first electronic device.
If a second electronic device such as a tablet supporting the eDP protocol is connected to an interface supporting the eDP protocol in a first electronic device such as a notebook computer, an embedded controller (or other controllers) of the first electronic device can detect that the second electronic device such as the tablet is connected to the eDP protocol interface in the first electronic device.
S602, if the controller detects that the operating system of the first electronic device is started, it is confirmed that the first electronic device cannot output display information to the second electronic device through the target interface, the controller simulates a high-level hot plug signal, and the high-level hot plug signal is sent to the processor through a hot plug pin between the controller and the processor.
Of course, other ways of the controller by querying the interface state of the target interface and the like are also applicable to the present embodiment, and the method is not limited to this, so that it is confirmed that the first electronic device cannot output the display information to the second electronic device through the target interface.
It can be understood that if the controller detects that the operating system of the first electronic device is not started, the operating system can scan the second electronic device accessed by the target interface after the first electronic device is started, so that the controller does not need to perform other processing.
Of course, the controller may also send the hot plug signal to the processor when the first electronic device is started up.
And S603, the processor of the first electronic equipment responds to the high-level hot plug signal and scans the display equipment connected with the first electronic equipment to acquire the display parameters of the display unit in the second electronic equipment.
If the processor of the first electronic device detects the hot plug signal, it is considered that the display device based on the DP or HDMI protocol is connected to the first electronic device, then the processor of the first electronic device will rescan all the display devices currently connected to the first electronic device, and will naturally scan the display units in the second electronic device, so as to obtain the display parameters of the display units in the second electronic device.
The display parameter refers to a parameter related to the display content of the display unit, for example, the display parameter may include some or all of parameters such as resolution, contrast, aspect ratio, and refresh rate of the display unit, which is not limited.
And S604, the processor outputs display information to the display unit of the second electronic device based on the display parameters of the display unit in the second electronic device.
For example, based on the display parameters of the display unit, the display information to be output by the first electronic device is converted into a format suitable for the output of the display unit of the second electronic device, and then the converted display information is output to the display unit of the second electronic device, and so on.
The specific implementation manner of outputting the display information to the display unit of the second electronic device based on the display parameter is not limited.
In another aspect, the present application further provides a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by a processor to implement a display control method as in any one of the embodiments above.
The present application also proposes a computer program comprising computer instructions stored in a computer readable storage medium. The computer program is for executing the display control method in any one of the embodiments above when running on an electronic device.
It should be understood that in this application, the terms "first," "second," "third," "fourth," and the like in the description and in the claims and in the above figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the present application described herein may be implemented in other sequences than those illustrated herein.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. Meanwhile, the features described in the embodiments of the present specification may be replaced with or combined with each other to enable those skilled in the art to make or use the present application. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A display control method is applied to a first electronic device and comprises the following steps:
the method comprises the steps that a controller of a first electronic device detects that the first electronic device is connected with a second electronic device, and sends a target signal to a processor of the first electronic device, wherein the second electronic device is provided with a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; wherein, when the first electronic equipment is in a shutdown state, the controller keeps a power-on state;
The processor outputs display information to a display unit of the second electronic device in response to the target signal.
2. The display control method according to claim 1, wherein the controller of the first electronic device detects that the first electronic device is connected to the second electronic device, and sends a target signal to the processor of the first electronic device, comprising:
and when the controller detects that the second electronic device is connected with the first electronic device and confirms that the first electronic device cannot output display information to a display unit of the second electronic device based on the first multimedia transmission protocol, sending a target signal to a processor of the first electronic device.
3. The display control method according to claim 2, further comprising:
the controller obtains an interface state of a target interface in the first electronic device, wherein the target interface is an interface adopting a first multimedia transmission protocol;
and when the controller detects that the second electronic device is connected with the first electronic device and confirms that the first electronic device cannot output display information to a display unit of the second electronic device based on a first multimedia transmission protocol, sending a target signal to a processor of the first electronic device, including:
And if the controller detects that the second electronic equipment is accessed to the target interface of the first electronic equipment, and the interface state of the target interface connected with the second electronic equipment is an abnormal communication state, sending a target signal to the processor of the first electronic equipment.
4. The display control method according to claim 3, further comprising:
in the starting process of an operating system of a first electronic device, if a processor of the first electronic device detects that the target interface is not connected with a display device supporting a first multimedia transmission protocol, setting an interface state of the target interface to be an abnormal communication state;
after an operating system of a first electronic device is started, if the processor detects that the connection between a display device supporting a first multimedia transmission protocol and the target interface is disconnected, setting the interface state of the target interface to be an abnormal communication state;
and if the controller detects that the second electronic device is connected to the target interface of the first electronic device, and the interface state of the target interface connected with the second electronic device is an abnormal communication state, sending a target signal to the processor of the first electronic device, including:
And under the condition that the controller detects that the second electronic equipment is accessed to the target interface of the first electronic equipment, if the operating system of the first electronic equipment is started, confirming that the interface state of the target interface connected with the second electronic equipment is an abnormal communication state, and sending a target signal to the processor of the first electronic equipment.
5. The display control method according to any one of claims 1 to 4, the transmitting a target signal to a processor of the first electronic device, comprising:
and sending the target analog signal to a processor of the first electronic device, wherein the target analog signal is analog and is used for indicating that a signal for supporting a second multimedia transmission protocol is established between an external display device and the first electronic device.
6. The display control method of claim 5, the sending a target analog signal to a processor of the first electronic device, comprising:
and sending a hot plug analog signal to a processor of the first electronic equipment, wherein the hot plug analog signal is used for indicating that an external display device is connected to a set interface in the first electronic equipment in a hot plug mode, and the set interface is an interface supporting a second multimedia transmission protocol.
7. The display control method of claim 5, the controller of the first electronic device being coupled to a device driver interface or a target hot plug pin of the processor, the driver interface or the target hot plug pin being configured to support an interface of the second multimedia transport protocol;
the sending the target analog signal to the processor of the first electronic device includes:
and sending the simulated high-level hot plug signal to the device driver interface or the target hot plug pin.
8. The display control method according to claim 1, the controller detecting that the first electronic device is connected to a second electronic device, comprising:
the controller detects that a target interface is connected with the second electronic device, and the target interface is an interface supporting a first multimedia transmission protocol.
9. The display control method according to claim 1, further comprising, before outputting display information to a display unit of the second electronic device:
the processor of the first electronic device obtains display parameters of a display unit in the second electronic device;
the outputting display information to the display unit of the second electronic device includes:
And outputting display information to the display unit of the second electronic equipment based on the display parameters of the display unit in the second electronic equipment.
10. A first electronic device, comprising:
a controller and a processor;
the controller is used for detecting that the first electronic device is connected with the second electronic device and sending a target signal to the processor, wherein the second electronic device is provided with a display unit; a connection supporting a first multimedia transmission protocol is established between the first electronic equipment and the second electronic equipment, and the target signal is used for triggering the first electronic equipment to execute display equipment scanning; wherein, when the first electronic equipment is in a shutdown state, the controller keeps a power-on state;
the processor is used for responding to the target signal and outputting display information to a display unit of the second electronic device.
CN202311402100.2A 2023-10-26 2023-10-26 Display control method and device Pending CN117453168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311402100.2A CN117453168A (en) 2023-10-26 2023-10-26 Display control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311402100.2A CN117453168A (en) 2023-10-26 2023-10-26 Display control method and device

Publications (1)

Publication Number Publication Date
CN117453168A true CN117453168A (en) 2024-01-26

Family

ID=89581157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311402100.2A Pending CN117453168A (en) 2023-10-26 2023-10-26 Display control method and device

Country Status (1)

Country Link
CN (1) CN117453168A (en)

Similar Documents

Publication Publication Date Title
US20220004313A1 (en) Display Method and Apparatus
US20100241772A1 (en) Thin client server system and method of managing a driver of a usb device
US10296284B2 (en) Audio processing device and audio processing method
KR102110257B1 (en) Electronic device controlling external device using dial and method thereof
US7949708B2 (en) Using a remote handheld device as a local device
TW201220182A (en) Techniques to transmit commands to a target device
US11082480B2 (en) File information system management system and method
EP2784661B1 (en) Computer program product, information processing method, and information processing apparatus
US9542338B2 (en) Controlling applications according to connection state and execution condition
EP3713279A1 (en) Adjacent cell rrm measurement control method, mobile communication terminal, and network side device
KR101277657B1 (en) Method for handling input event between external device and mobile terminal docking thereat
US9838386B2 (en) Information processing system, information processing device, and device control method
CN113079588A (en) Control method, control device, control equipment and storage medium
US20220141205A1 (en) Information processing apparatus, method for controlling information processing apparatus, system, and storage medium
CN102890606A (en) Information processing device, information processing method, and program
CN117453168A (en) Display control method and device
US11606470B2 (en) Information processing apparatus, method for controlling information processing, and storage medium
JP5707366B2 (en) USB terminal control method and apparatus for executing the same
CN113781939A (en) Method and system for recovering abnormal display of display screen and storage device
US10855854B2 (en) Information processing apparatus configured to permit and reject access by external apparatuses
US20170339288A1 (en) Image printing system, method in image processing apparatus, and storage medium
CN100390725C (en) Method and system for information signal display and media for storing program for implementing such method
CN109144446B (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN113810771B (en) Display device and display method of network connection diagnosis result
CN113467729B (en) Electronic device and multi-screen display method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination