CN110825677A - Display hot plug processing method, system, equipment and storage medium - Google Patents

Display hot plug processing method, system, equipment and storage medium Download PDF

Info

Publication number
CN110825677A
CN110825677A CN201810904587.7A CN201810904587A CN110825677A CN 110825677 A CN110825677 A CN 110825677A CN 201810904587 A CN201810904587 A CN 201810904587A CN 110825677 A CN110825677 A CN 110825677A
Authority
CN
China
Prior art keywords
display
hot
plug
hot plug
resolution
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.)
Withdrawn
Application number
CN201810904587.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810904587.7A priority Critical patent/CN110825677A/en
Publication of CN110825677A publication Critical patent/CN110825677A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a hot plug processing method, a system, equipment and a storage medium for a display, relating to the technical field of display processing. The method comprises the following steps: if a hot plug event broadcasted by a kernel is received, acquiring equipment information of current hot plug equipment; according to the device information, traversing a pre-configured display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file; and if the hot plug display processing program matched with the equipment information exists, calling the hot plug display processing program to display the current hot plug equipment. The embodiment of the invention can adaptively switch the display resolution of the system according to the equipment information of the current hot-plug display when a hot-plug event occurs, thereby effectively avoiding various abnormal display problems caused by the hot-plug display.

Description

Display hot plug processing method, system, equipment and storage medium
Technical Field
The present invention relates to the field of display processing technologies, and in particular, to a method, a system, a device, and a storage medium for hot plug processing of a display.
Background
Under the scene that a plurality of hosts share one display, the display needs to be switched and displayed among different hosts; alternatively, in a scenario where a plurality of displays share one host, the same host needs to switch display among the plurality of displays to compare the effects. These scenes involve hot plugging of the display, whether the display is switched by an adapter or a screen splitter, or by manually plugging and unplugging the signal lines of the display. However, in the linux system, the system itself does not perform special processing for hot plugging of the display, and the hot plugging of the display may not automatically adapt to the optimal resolution of the display due to inconsistent sizes of the displays connected before and after the hot plugging and different supported resolutions; or the problems of the loss of the resolution set before plugging and the black screen caused by exceeding the display range of the display and the like.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a method, a system, a device and a storage medium for hot-plug processing of a display, so as to solve the problem that the hot-plug of the display may not automatically adapt to the optimal resolution of the display due to the inconsistent sizes of the displays connected before and after the hot-plug and the different supported resolutions; or the technical problem of black screen caused by the loss of the resolution set before plugging and exceeding the display range of the display.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of the embodiments of the present invention, there is provided a method for hot plug processing of a display, the method including:
if a hot plug event broadcasted by a kernel is received, acquiring equipment information of current hot plug equipment;
according to the device information, traversing a pre-configured display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file;
and if the hot plug display processing program matched with the equipment information exists, calling the hot plug display processing program to display the current hot plug equipment.
According to another aspect of an embodiment of the present invention, a system for hot-plug processing of a display, the system comprising:
the device information acquisition unit is used for acquiring the device information of the current hot plug device if a hot plug event broadcasted by the kernel is received;
the processing program matching unit is used for traversing a preset display hot plug rule file according to the equipment information and inquiring whether a hot plug display processing program matched with the equipment information exists in the display hot plug rule file or not;
and the display processing control unit is used for calling the hot plug display processing program to display the current hot plug equipment if the hot plug display processing program matched with the equipment information exists.
According to another aspect of the embodiments of the present invention, there is provided a display hot plug processing apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the display hot plug processing method are implemented.
According to still another aspect of the embodiments of the present invention, there is provided a storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the hot-plug processing method.
In the method, the system, the device and the storage medium for processing hot plug of the display provided by the embodiment of the invention, the hot plug rule file of the display is configured in advance, the device information of the current hot plug device is acquired after the hot plug event broadcasted by the kernel is received, then the hot plug rule file of the display configured in advance is traversed according to the device information, the hot plug display processing program matched with the device information is inquired, and finally the display processing is performed according to the hot plug display processing program matched with the device information, so that the display resolution of the self-adaptive switching system is realized according to the device information of the current hot plug display when the hot plug event occurs, and the problem of various display abnormalities caused by the hot plug display is effectively avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a hot plug processing method for a display according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a hot plug processing method for a display according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a hot plug processing method for a display according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a hot-plug processing system for a display according to a fourth embodiment of the present invention;
fig. 5 is a schematic view of an implementation flow structure of a hot-plug processing device for a display according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Fig. 1 is a schematic flow chart illustrating an implementation of a display hot-plug processing method according to an embodiment of the present invention, where an execution subject of the method is a display hot-plug processing system/device. Referring to fig. 1, the method for hot-plug processing of a display provided in this embodiment includes the following steps:
step S101, if a hot plug event broadcasted by a kernel is received, acquiring equipment information of the current hot plug equipment.
Preferably, in this embodiment, before step S101, the method further includes:
the method comprises the steps that a display hot plug rule file is configured in advance, wherein the display hot plug rule file comprises at least one group of matching keys and assignment keys;
the matching key comprises a device name, a subsystem to which the matching key belongs, an event behavior and display card driving information; the assignment key includes a designated hot-plug display handler.
The event behavior includes inserting a device, deleting a device, and a device change. The device change is information that a display of the access system is changed.
Preferably, in this embodiment, the display hot-plug processing system/device creates a socket connection to obtain a hot-plug event broadcasted by the kernel through a standard socket mechanism.
Preferably, in this embodiment, the device information includes, but is not limited to, a device name, a belonging subsystem, an event behavior, and display card driving information. Step S101 specifically includes:
and if a hot plug event broadcasted by the kernel is received, analyzing the hot plug event, acquiring the equipment name, the subsystem to which the hot plug event belongs and the event behavior of the current hot plug display, and operating an lspci command or an lshw command to acquire the display card driving information of the display.
The device name, the subsystem to which the device name belongs and the event behavior can be obtained by monitoring a hot plug event broadcasted by a kernel when the system is subjected to one-time display plugging operation, and the display card driving information of the display can be obtained by running a command lspci-vnn or lshw-c video.
Step S102, according to the device information, traversing a preset display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file; if there is a hot plug display processing program matching the device information, the process proceeds to step S103.
In this embodiment, after the display hot plug processing system/device obtains the device information of the current hot plug device, it may determine whether the current hot plug event is a display hot plug event by traversing whether a hot plug display processing program matched with the device information exists in the display hot plug rule file; if a hot plug display processing program matched with the equipment information exists, the current hot plug event is a display hot plug event, and the step S103 is entered; otherwise, the current hot plug event is not the display hot plug event, and no processing is performed at this time.
In this embodiment, after acquiring device information of the current hot-plug device, the display hot-plug processing system/device sequentially searches matching keys of all rule files in a directory where a preconfigured display hot-plug rule file is located, queries whether there is a matching key that is the same as the device information, and if so, acquires a hot-plug display processing program specified in an assignment key corresponding to the matching key that is the same as the device information, and uses the hot-plug display processing program as a hot-plug display processing program matched with the device information; otherwise, if the matching key matched with the device information is not found, it indicates that the hot plug display processing program matched with the device information does not exist in the display hot plug rule file.
And step S103, calling the hot plug display processing program to display the current hot plug equipment.
In this embodiment, the display processing rule corresponding to the current hot-plug device is configured in the hot-plug display processing program, and after the display hot-plug processing system/device acquires the hot-plug display processing program, the display hot-plug processing system/device can perform display processing on the current hot-plug device by using the hot-plug display processing program, so that the display hot-plug processing system/device can adapt to the display resolution of the current hot-plug device, and the problem of abnormal display caused by a display hot-plug event in the prior art is solved.
As can be seen from the above, in the display hot plug processing method provided in this embodiment, the display hot plug rule file is configured in advance, after a hot plug event broadcasted by the kernel is received, the device information of the current hot plug device is acquired, then the pre-configured display hot plug rule file is traversed according to the device information, the hot plug display processing program matched with the device information is queried, and finally, the display processing is performed according to the hot plug display processing program matched with the device information, so that when the hot plug event occurs, the display resolution of the self-adaptive switching system is implemented according to the device information of the current hot plug display, and the problem of various display abnormalities caused by the hot plug display is effectively avoided.
Example two
Fig. 2 is a schematic flow chart illustrating an implementation of a display hot-plug processing method according to a second embodiment of the present invention, where an execution main body of the method is a display hot-plug system/device. Referring to fig. 2, the display hot-plug processing method provided in this embodiment includes:
step S201, if a hot plug event broadcasted by the kernel is received, acquiring device information of the current hot plug device.
Step S202, according to the device information, traversing a preset display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file; if there is a hot plug display processing program matching the device information, the process proceeds to step S203.
It should be noted that, since the implementation manners of step S201 to step S202 in this embodiment are completely the same as the implementation manners of step S101 to step S102 in the previous embodiment, detailed descriptions thereof are omitted here.
Step S203, reading EDID (Extended Display Identification Data) of the Display, and judging whether the EDID of the Display is empty; if the EDID of the display is not empty, go to step S204; if the EDID of the display is empty, the process proceeds to step S209.
And step S204, analyzing the EDID of the display to obtain the optimal resolution of the display.
In this embodiment, resolution lists supported by different displays are pre-stored in the system, and when the EDID complement bit of the display is empty, the system may acquire the resolution list supported by the current hot-pluggable display through the analyzed EDID, and then acquire the best resolution supported by the display from the resolution list. Preferably, the resolutions in the resolution list are sorted according to the size of the resolution, the optimal resolution is located at the head of the resolution list, and after the resolution list supported by the display is obtained, the resolution at the head of the resolution is extracted as the optimal resolution of the display.
Step S205, inquiring a display configuration file of a system, and judging whether the system sets the original resolution for the display before the hot plug event occurs; if the display is set with the original resolution, the process goes to step S206; if the original resolution is not set, the process proceeds to step S207.
Step S206, judging whether the original resolution is greater than the optimal resolution; if the original resolution is greater than the optimal resolution, go to step S207; if the original resolution is less than or equal to the optimal resolution, the process proceeds to step S208.
Step S207, setting the display resolution of the display to the optimal resolution.
Step S208, setting the display resolution of the display to the original resolution.
In this embodiment, after the EDID of the currently plugged and unplugged display is not read, the display resolution of the display is set to the general resolution and the optimal resolution of the currently plugged and unplugged display is obtained, and when it is detected that the system does not configure the original resolution for the currently plugged and unplugged display, the display resolution of the currently plugged and unplugged display is set to the optimal resolution, so that the technical problem of black screen caused by the loss of the resolution of the device before plugging and unplugging in the prior art can be solved; after the optimal resolution of the current pluggable display is obtained, when the original resolution configured by the system on the current pluggable display is detected to be less than or equal to the optimal resolution, the display resolution of the display is set to the original resolution, and when the original resolution configured by the system on the current pluggable display is detected to be greater than the optimal resolution, the display resolution of the current pluggable display is switched from the original resolution to the optimal resolution, so that the problems that the optimal resolution of the display is not automatically adapted, and the resolution set before plugging exceeds the display range of the display, which are caused by the fact that the sizes of the displays accessed before and after plugging are inconsistent and the supported resolutions are different, existing in the display technology, are solved.
Step S209, setting the display resolution of the display to the general resolution.
Preferably, in this embodiment, the universal resolution is 1024 × 768. In this embodiment, when the EDID of the currently plugged display is not read, the display resolution of the currently plugged display is set to the general resolution, so that the problem of a black screen caused by the display resolution being not suitable can be avoided.
As can be seen from the above, the display hot plug processing method provided in this embodiment also achieves that, when a hot plug event occurs, the display resolution of the system is adaptively switched according to the device information of the current hot plug display, and thus effectively avoids various display abnormalities caused by the hot plug display.
EXAMPLE III
Fig. 3 is a schematic flow chart illustrating an implementation of a display hot-plug processing method according to a third embodiment of the present invention, where an execution main body of the method is a display hot-plug system/device. Referring to fig. 3, the method for hot-plugging a display provided in this embodiment may include the following steps:
step S301, if a hot plug event broadcasted by the kernel is received, acquiring device information of the current hot plug device.
Step S302, according to the device information, traversing a preset display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file; if there is a hot plug display processing program matching the device information, the process proceeds to step S303.
Step S303, reading the EDID of the display and judging whether the EDID of the display is empty or not; if the EDID of the display is not empty, go to step S304; if the EDID of the display is empty, the process proceeds to step S310.
And step S304, analyzing the EDID of the display to obtain the optimal resolution of the display.
Step S305, inquiring a display configuration file of a system, and judging whether the system sets the original resolution for the display before the hot plug event occurs; if the display is set with the original resolution, the step S306 is entered; if the original resolution is not set, the process proceeds to step S307.
Step S306, judging whether the original resolution is greater than the optimal resolution; if the original resolution is greater than the optimal resolution, go to step S307; if the original resolution is less than or equal to the optimal resolution, the process proceeds to step S308.
Step S307, setting the display resolution of the display to the optimal resolution.
Step S308, setting the display resolution of the display to the original resolution.
Step S309, setting the display resolution of the display to the general resolution.
It should be noted that, since the implementation manners of step S301 to step S309 in this embodiment are completely the same as the implementation manners of step S201 to step S209 in the previous embodiment, no further description is provided herein.
Preferably, in this embodiment, compared to the previous embodiment, the method for hot-plug processing of a display further includes:
step S310, judging whether the hot plug event is accessed to a double display or a single display; if the access is a dual display, step S311 is performed; if the single display is accessed, the process proceeds to step S312.
Step S311, setting the display mode to a dual display mode;
step S3112, the display mode is set to the single display mode.
Compared with the previous embodiment, in this embodiment, since it is further determined whether the access system corresponding to the currently sent hot-plug event is a dual display or a single display, and the display mode is set according to the determination result, it is possible to avoid the problem that when the hot-plug event is changed from the single display to the dual display or from the dual display to the single display, the display mode of the system cannot be adaptively updated, which causes abnormal display in the prior art.
Example four
Fig. 4 is a schematic structural diagram of a hot-plug processing system for a display according to a fourth embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 4, the display hot-plug processing system 4 according to the embodiment includes:
a device information obtaining unit 41, configured to obtain device information of a current hot-plug device if a hot-plug event broadcasted by a kernel is received;
the processing program matching unit 42 is configured to traverse a preconfigured display hot plug rule file according to the device information, and query whether a hot plug display processing program matched with the device information exists in the display hot plug rule file;
and the display processing control unit 43 is configured to, if there is a hot-plug display processing program that matches the device information, call the hot-plug display processing program to perform display processing on the current hot-plug device.
The display hot-plug processing system of the embodiment of the present invention and the display hot-plug processing method of the first to third embodiments belong to the same concept, and specific implementation processes thereof are detailed in corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in this device embodiment, which is not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the disclosed methods of the present embodiments may be implemented as software, firmware, hardware, or any suitable combination thereof.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a hot-plug processing device for a display according to a fifth embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 5, the display hot-plug processing apparatus 5 provided in this embodiment includes a memory 51, a processor 52, and a computer program 53 stored in the memory 51 and capable of running on the processor 52, where when the computer program 53 is executed by the processor 52, the steps of the display hot-plug processing method provided in the first embodiment, the second embodiment, or the third embodiment are implemented.
Those skilled in the art will appreciate that the display hot-plug processing device may be a computing device based on Linux operating system, such as a desktop computer, a notebook computer, and a palm computer. Fig. 5 is only an example of a display hot-plug processing device, and does not constitute a limitation of the display hot-plug processing device, and in practical applications, the display hot-plug processing device may include more or less components than those shown, or combine some components, or different components, for example, the display hot-plug processing device may further include an input/output device, a network access device, a bus, and the like.
The device of the embodiment of the present invention and the display hot-plug processing method of the first to third embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, and technical features in the method embodiments are correspondingly applicable in the device embodiments, which are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the disclosed methods of the present embodiments may be implemented as software, firmware, hardware, or any suitable combination thereof.
EXAMPLE six
An embodiment of the present invention provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the display hot plug processing method according to the first embodiment, the second embodiment, or the third embodiment are implemented.
The storage medium of the embodiment of the present invention and the method of the first to third embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in the computer-readable storage medium embodiment, which is not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (10)

1. A hot plug processing method for a display is characterized by comprising the following steps:
if a hot plug event broadcasted by a kernel is received, acquiring equipment information of current hot plug equipment;
according to the device information, traversing a pre-configured display hot plug rule file, and inquiring whether a hot plug display processing program matched with the device information exists in the display hot plug rule file;
and if the hot plug display processing program matched with the equipment information exists, calling the hot plug display processing program to display the current hot plug equipment.
2. The method for processing hot plug of display as claimed in claim 1, wherein if a hot plug event broadcasted by a kernel is received, before acquiring device information of a current hot plug device, the method further comprises:
the method comprises the steps that a display hot plug rule file is configured in advance, wherein the display hot plug rule file comprises at least one group of matching keys and assignment keys; the matching key comprises a device name, a subsystem to which the matching key belongs, an event behavior and display card driving information; the assignment key includes a designated hot-plug display handler.
3. The method for processing hot plug of display as claimed in claim 2, wherein said obtaining the device information of the current hot plug device if a hot plug event broadcasted by the kernel is received comprises:
and if a hot plug event broadcasted by the kernel is received, analyzing the hot plug event, acquiring the equipment name, the subsystem to which the hot plug event belongs and the event behavior of the current hot plug display, and operating an lspci command or an lshw command to acquire the display card driving information of the display.
4. The method for hot-plug processing of a display according to claim 1, wherein said invoking the hot-plug display handler to perform display processing on the current hot-plug device comprises:
reading extended display identification data EDID of the display;
if the EDID of the display is not empty, analyzing the EDID of the display to obtain the optimal resolution of the display;
inquiring a display configuration file of a system, and judging whether the system sets the original resolution for the display before the hot plug event occurs;
if the display is provided with an original resolution, judging whether the original resolution is greater than the optimal resolution;
if the original resolution is larger than the optimal resolution, setting the display resolution of the display to be the optimal resolution;
and if the original resolution is less than or equal to the optimal resolution, setting the display resolution of the display to be the original resolution.
5. The method according to claim 4, wherein the reading of the extended display identification data EDID of the display further comprises:
and if the EDID of the display is empty, setting the display resolution of the display to be the universal resolution.
6. The method as claimed in claim 4, wherein said querying a display configuration file of a system and determining whether the system has set an original resolution for the display before the occurrence of the hot-plug event further comprises:
and if the original resolution is not set by the display, setting the display resolution of the display to be the optimal resolution.
7. The method for hot-plug processing of a display as claimed in any one of claims 4 to 6, wherein the method for display processing of a dynamic display further comprises:
judging whether the hot plug event is accessed to a double display or a single display;
if the double-display is accessed, setting the display mode to be a double-display mode;
and if the accessed single display is the single display, setting the display mode to be the single display mode.
8. A system for hot-plug processing of a display, comprising:
the device information acquisition unit is used for acquiring the device information of the current hot plug device if a hot plug event broadcasted by the kernel is received;
the processing program matching unit is used for traversing a preset display hot plug rule file according to the equipment information and inquiring whether a hot plug display processing program matched with the equipment information exists in the display hot plug rule file or not;
and the display processing control unit is used for calling the hot plug display processing program to display the current hot plug equipment if the hot plug display processing program matched with the equipment information exists.
9. A display hot-plug processing apparatus, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the display hot-plug processing method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of hot-plug processing of a display according to any one of claims 1 to 7.
CN201810904587.7A 2018-08-09 2018-08-09 Display hot plug processing method, system, equipment and storage medium Withdrawn CN110825677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810904587.7A CN110825677A (en) 2018-08-09 2018-08-09 Display hot plug processing method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810904587.7A CN110825677A (en) 2018-08-09 2018-08-09 Display hot plug processing method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110825677A true CN110825677A (en) 2020-02-21

Family

ID=69541021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810904587.7A Withdrawn CN110825677A (en) 2018-08-09 2018-08-09 Display hot plug processing method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110825677A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830970A (en) * 2012-08-10 2012-12-19 深圳市共进电子股份有限公司 Hot-plug treatment method applicable to Linux embedded system
CN106686332A (en) * 2016-11-17 2017-05-17 西安诺瓦电子科技有限公司 Video display control method and EDID management method
CN107491405A (en) * 2017-07-17 2017-12-19 北京小鸟看看科技有限公司 It is a kind of to realize the method, apparatus and terminal device for wearing display device hot plug

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830970A (en) * 2012-08-10 2012-12-19 深圳市共进电子股份有限公司 Hot-plug treatment method applicable to Linux embedded system
CN106686332A (en) * 2016-11-17 2017-05-17 西安诺瓦电子科技有限公司 Video display control method and EDID management method
CN107491405A (en) * 2017-07-17 2017-12-19 北京小鸟看看科技有限公司 It is a kind of to realize the method, apparatus and terminal device for wearing display device hot plug

Similar Documents

Publication Publication Date Title
US9179014B2 (en) Information processing apparatus, and method for controlling the same
US7694029B2 (en) Detecting miscabling in a storage area network
US20160048472A1 (en) Apparatus and method of recognizing external device in a communication system
US10082991B2 (en) Information processing apparatus, control method of information processing apparatus, and non-transitory computer-readable storage medium
US11720370B2 (en) Electronic apparatus and method of executing application program
CN112752024B (en) Method and device for controlling multiple external cameras by intelligent terminal
US11765469B2 (en) Image capturing apparatus, device, control method, and computer-readable storage medium
CN109473081B (en) Interface circuit, display method and display device
KR102012937B1 (en) Apparatus and method for connecting an external device in a portable terminal
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN109298956B (en) File transmission method and device and terminal equipment
CN110825677A (en) Display hot plug processing method, system, equipment and storage medium
CN107526814B (en) Mobile terminal file storage method and device
US20160358301A1 (en) Video Adapter Alignment
US11507396B2 (en) Method, device and computer program product for storage management
CN113656718A (en) Theme switching method and device
CN107480004B (en) Fault recovery method and device and computer equipment
CN114840460B (en) Hot plug processing method, storage medium, electronic equipment and processing system
US9900449B2 (en) Image reading system, image reading apparatus, information processing apparatus, method for controlling them, and storage medium
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN107168913B (en) Sharing equipment hot-plug method and device and multi-user management system
CN110875873B (en) Information monitoring method, information monitoring device and mobile terminal
CN108012308B (en) Network connection method, mobile terminal and computer readable storage medium
CN118245422A (en) Method and terminal for reconnecting USB based on Linux system

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200221

WW01 Invention patent application withdrawn after publication