CN110990068B - Display method, display device, electronic equipment and storage medium - Google Patents

Display method, display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110990068B
CN110990068B CN201911207685.6A CN201911207685A CN110990068B CN 110990068 B CN110990068 B CN 110990068B CN 201911207685 A CN201911207685 A CN 201911207685A CN 110990068 B CN110990068 B CN 110990068B
Authority
CN
China
Prior art keywords
identification information
attribute identification
display
operating system
binary file
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.)
Active
Application number
CN201911207685.6A
Other languages
Chinese (zh)
Other versions
CN110990068A (en
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.)
Longxin Zhongke Xi'an Technology Co ltd
Original Assignee
Longxin Zhongke Xi'an Technology Co 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 Longxin Zhongke Xi'an Technology Co ltd filed Critical Longxin Zhongke Xi'an Technology Co ltd
Priority to CN201911207685.6A priority Critical patent/CN110990068B/en
Publication of CN110990068A publication Critical patent/CN110990068A/en
Application granted granted Critical
Publication of CN110990068B publication Critical patent/CN110990068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a display method, a device, equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of adding attribute identification information of a display obtained in advance into display drive source codes of an operating system kernel, generating binary files of the operating system kernel through compiling, updating the binary files into an operating system of target equipment, storing the attribute identification information into a target cache according to the binary files, and displaying on the display of the target equipment according to the attribute identification information in the target cache, so that the attribute identification information of the display cannot be obtained even when the target equipment is remotely accessed to the display, the problem that the display cannot normally perform display output or does not perform display output is solved, the running stability of the target equipment accessed to the display is improved, and a plurality of target equipment can use the same binary files to obtain the attribute identification information at the same time, so that the efficiency of obtaining the attribute identification information by the plurality of target equipment is improved.

Description

Display method, display device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technology, and in particular, to a display method, a display device, an electronic apparatus, and a readable storage medium.
Background
With the rapid development of information technology and the differentiation of user demands, new requirements are put forward on the current computer technology, and a single display technical means cannot meet the demands of special situations. When a computer is used in some application scenes, a display is required to be accessed remotely according to actual demands, and due to various problems such as signal transmission faults, the phenomenon that normal display cannot be performed or display output cannot be performed can occur in the scenes.
The applicant found that when the display is remotely accessed, the operating system cannot normally acquire EDID (Extended display identification data, extended display capability identification) information through the DDC (Direct Digital Control, direct digital controller), and the computer cannot normally perform display output or does not perform display output without the EDID information.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a display method, a display device, electronic equipment and a readable storage medium, so as to solve the problem that display output cannot be normally carried out or is not carried out when an EDID information computer cannot be normally acquired through a DDC.
In order to solve the above problems, the present invention provides a display method including:
adding the attribute identification information of the display obtained in advance into display drive source codes of an operating system kernel, and compiling to generate a binary file of the operating system kernel;
updating the binary file into an operating system of target equipment;
storing the attribute identification information into a target cache according to the binary file in an operating system of the target device; the target cache is an area for storing the attribute identification information for a display driver;
and displaying on a display of the target equipment according to the attribute identification information in the target cache.
Optionally, before the attribute identification information of the display acquired in advance is added to the display driving source code of the operating system kernel, and the binary file of the operating system kernel is generated through compiling, the method further includes:
searching the attribute identification information of the display drive cache of the assisting equipment, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
And storing the attribute identification information in the kernel log.
Optionally, the outputting the searched attribute identifying information to the kernel log of the assisting device includes:
and printing the attribute identification information into the kernel log.
Optionally, the storing the attribute identifying information in the target cache according to the binary file includes:
according to the binary file, an operating system of the target device is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller;
and storing the attribute identification information in the binary file into the target cache.
Optionally, the adding the attribute identifying information of the display acquired in advance to the display driving source code of the operating system kernel, and generating the binary file of the operating system kernel through compiling includes:
storing the attribute identification information in the display drive source code in an array form;
adding a copy instruction of the attribute identification information to the display drive source code;
compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
The storing the attribute identification information in the target cache according to the binary file includes:
acquiring a copy instruction and the attribute identification information in the binary file;
and storing the attribute identification information into a target cache according to the copy instruction.
Correspondingly, the invention also provides a display device, which comprises:
the file generation module is used for adding the attribute identification information of the display acquired in advance into the display driving source code of the operating system kernel, and generating a binary file of the operating system kernel through compiling;
the file updating module is used for updating the binary file into an operating system of the target equipment;
the information storage module is used for storing the attribute identification information into a target cache for storing the attribute identification information by a display driver according to the binary file in an operating system of the target device; the target cache is an area for storing the attribute identification information for a display driver;
and the display module is used for displaying on a display of the target equipment according to the attribute identification information in the target cache.
Optionally, the apparatus further comprises:
The output module is used for searching the attribute identification information of the display drive cache of the assisting equipment before the attribute identification information of the display acquired in advance is added to the display drive source code of the kernel of the operating system and the binary file of the kernel of the operating system is generated through compiling, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
and the storage module is used for storing the attribute identification information in the kernel log.
Optionally, the output module includes:
and the printing sub-module is used for printing the attribute identification information into the kernel log.
Optionally, the information storage module includes:
an operation control sub-module, configured to control, according to the binary file, an operating system of the target device not to perform an operation of obtaining the attribute identification information through a direct digital controller;
and the information storage sub-module is used for storing the attribute identification information in the binary file into the target cache.
Optionally, the file generation module includes:
the information storage sub-module is used for storing the attribute identification information in the display drive source code in an array form;
the instruction storage sub-module is used for adding a copy instruction of the attribute identification information into the display drive source code;
the file generation sub-module is used for compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
the information storage module comprises:
the acquisition sub-module is used for acquiring the copying instruction and the attribute identification information in the binary file;
and the storage sub-module is used for storing the attribute identification information into a target cache according to the copy instruction.
Accordingly, the present invention also provides an electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:
adding the attribute identification information of the display obtained in advance into display drive source codes of an operating system kernel, and compiling to generate a binary file of the operating system kernel;
Updating the binary file into an operating system of target equipment;
storing the attribute identification information into a target cache according to the binary file in an operating system of the target device; the target cache is an area for storing the attribute identification information for a display driver;
and displaying on a display of the target equipment according to the attribute identification information in the target cache.
Optionally, before the attribute identification information of the display acquired in advance is added to the display driving source code of the operating system kernel, and the binary file of the operating system kernel is generated through compiling, the method further includes:
searching the attribute identification information of the display drive cache of the assisting equipment, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
and storing the attribute identification information in the kernel log.
Optionally, the outputting the searched attribute identifying information to the kernel log of the assisting device includes:
And printing the attribute identification information into the kernel log.
Optionally, the storing the attribute identifying information in the target cache according to the binary file includes:
according to the binary file, an operating system of the target device is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller;
and storing the attribute identification information in the binary file into the target cache.
Optionally, the adding the attribute identifying information of the display acquired in advance to the display driving source code of the operating system kernel, and generating the binary file of the operating system kernel through compiling includes:
storing the attribute identification information in the display drive source code in an array form;
adding a copy instruction of the attribute identification information to the display drive source code;
compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
the storing the attribute identification information in the target cache according to the binary file includes:
acquiring a copy instruction and the attribute identification information in the binary file;
And storing the attribute identification information into a target cache according to the copy instruction.
Accordingly, the present invention also provides a readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the above-described display method.
According to the embodiment of the invention, the attribute identification information of the display is added into the display drive source code of the kernel of the operating system, the binary file of the kernel of the operating system is generated through compiling, the binary file is updated into the operating system of the target device, the attribute identification information is stored into the target cache according to the binary file in the operating system of the target device, and the display is carried out on the display of the target device according to the attribute identification information in the target cache, so that the attribute identification information of the display cannot be obtained even when the target device is remotely accessed into the display, the problem that the display cannot normally carry out display output or does not carry out display output is solved, and the operation stability of the target device accessed into the display is improved; furthermore, in an application scene with a plurality of target devices, the plurality of target devices can use the same binary file to obtain the attribute identification information at the same time, so that the efficiency of obtaining the attribute identification information by the plurality of target devices is improved.
Drawings
FIG. 1 is a flow chart showing the steps of a display method according to a first embodiment of the present invention;
FIG. 2 is a flow chart showing steps of a display method according to a second embodiment of the present invention;
FIG. 3 is a block diagram showing a display device according to a third embodiment of the present invention;
fig. 4 shows a block diagram of an electronic device for display, according to an example embodiment.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a flowchart illustrating steps of a display method according to a first embodiment of the present invention may specifically include the following steps:
and step 101, adding the attribute identification information of the display acquired in advance into display driving source codes of the operating system kernel, and compiling to generate a binary file of the operating system kernel.
The attribute identifying information of the display includes, but is not limited to, EDID information and the like for enabling a computer or other image output apparatus to better identify the attribute of the display, which is not limited in the embodiment of the present invention. EDID information refers to screen resolution data containing parameters related to the display and its capabilities, such as character strings including vendor information, maximum image size, color settings, vendor presets, frequency range limits, and display name and serial number, etc.; typically, the EDID information is present in a PROM (Programmable read-only memory ) or EEPROM (Electrically Erasable Programmable read only memory, electrically erasable programmable read-only memory) of the display. If EDID information is to be read, it can be implemented by DDC via I2C bus (a simple, bi-directional two-wire synchronous serial bus).
The operating system kernel is the core part of most operating systems. It consists of parts of the operating system that are used to manage memory, files, peripherals, and system resources. The operating system kernel is capable of running processes and providing inter-process communication. Specifically, in a computer architecture, some programs that are closely related to hardware are often separated, and the separated programs are called operating system kernels. The method comprises a driver, wherein the driver is a special program which can enable a computer and equipment to communicate with each other; the driver program comprises a display driver for driving the display card device, so that the display is driven to display after the display card device converts the information to be displayed.
In the embodiment of the invention, when the attribute identification information of the display cannot be acquired in a special scene, for example, when the display is accessed remotely, the attribute identification information of the display cannot be acquired, and at the moment, the problem that the display card cannot identify the display is caused, so that the display cannot normally display the information; therefore, the attribute identification information of the display needs to be acquired in advance, and in particular, the attribute identification information of the display can be acquired by a short-distance access mode. And then, in order to facilitate the identification and processing of the attribute identification information of the display by the operating system, adding the attribute identification information acquired in advance into the display driving source code, and compiling the display driving source code to generate a binary file of an operating system kernel. The display driver source code refers to source code of a display driver, and the binary file is a file of display driver data and instructions which can be used on an operating system through compiling. For example, a compiler is used to compile the display driver source code to obtain a corresponding binary file.
In the embodiment of the present invention, the attribute identifying information of the display acquired in advance is added to the display driving source code of the operating system kernel, and the step of generating the binary file of the operating system kernel through compiling may be performed on the target device, may be performed on the device that acquires the attribute identifying information of the display in advance, or may be performed on any other suitable device, which is not limited in the embodiment of the present invention. The target device is a device that cannot obtain the EDID through the DDC, for example, the target device is a device that is remotely connected to the display, and the target device may include a computer or other image output device, or any other suitable device, which is not limited in this embodiment of the present invention.
And 102, updating the binary file into an operating system of the target device.
In the embodiment of the present invention, the generated binary file includes attribute identification information of the display; based on this, the generated binary file is updated into the operating system of the target device, and when step 101 is executed on the target device, the binary file may be directly updated into the operating system; implementations of updating the binary file into the operating system of the target device when step 101 is performed on another device may include, for example, transmitting the binary file to the target device over a network, or copying the binary file to the target device for use by the operating system, or any other suitable implementation, as the embodiments of the present invention are not limited in this respect.
Step 103, in the operating system of the target device, according to the binary file, storing the attribute identification information into a target cache; and the target cache is an area for storing the attribute identification information for a display driver.
In the embodiment of the invention, in the operating system of the target device, the attribute identification information of the display is not acquired in a conventional manner, for example, the EDID information of the display is acquired through the DDC. But rather saves the attribute identification information present in the binary file to the target cache based on the data and instructions in the binary file. The target cache refers to an area for displaying and storing attribute identification information in an operating system of the target device, and the position of the target cache in the memory is generally determined by display driver source codes.
The DDC generally includes a central control device (such as a central control computer, a color monitor, a keyboard, a printer, an uninterruptible power supply, a communication interface, etc.), a field DDC controller, a communication network, and corresponding components such as a sensor, an actuator, and a regulating valve. The DDC controller is the core of the whole hardware control system and is a key component for realizing the control function of the hardware control system. The DDC is a channel for transmitting EDID information, but there is a problem in that EDID information cannot be acquired through the DDC when a display is remotely accessed.
And 104, displaying on a display of the target equipment according to the attribute identification information in the target cache.
In the embodiment of the invention, when the display accessed by the target equipment is displayed, the attribute identification information can be extracted from the target cache, and the target equipment can output the information to be displayed to the display for displaying according to the attribute identification information.
According to the embodiment of the invention, the attribute identification information of the display is added into the display drive source code of the kernel of the operating system, the binary file of the kernel of the operating system is generated through compiling, the binary file is updated into the operating system of the target device, the attribute identification information is stored into the target cache according to the binary file in the operating system of the target device, and the display is carried out on the display of the target device according to the attribute identification information in the target cache, so that the attribute identification information of the display cannot be obtained even when the target device is remotely accessed into the display, the problem that the display cannot normally carry out display output or does not carry out display output is solved, and the operation stability of the target device accessed into the display is improved; furthermore, in an application scene with a plurality of target devices, the plurality of target devices can use the same binary file to obtain the attribute identification information at the same time, so that the efficiency of obtaining the attribute identification information by the plurality of target devices is improved.
Referring to fig. 2, a flowchart illustrating steps of a display method according to a second embodiment of the present invention may specifically include the following steps:
step 201, searching the attribute identification information of the display driver cache of the assisting equipment, and outputting the searched attribute identification information to a kernel log of the assisting equipment.
In the embodiment of the invention, the assisting equipment is relative to the target equipment, and the assisting equipment can acquire the attribute identification information; the assisting equipment acquires attribute identification information of the display in advance by accessing the display in a short distance. And the assisting equipment is provided with a chip with the capability of acquiring the attribute identification information. For example, data and instructions are exchanged directly with the processor, acting as a processing chip, also called a bridge, connected to the bridge, which is designed as a bridge that can acquire attribute identification information.
The assisting device obtains the attribute identification information of the display through the bridge piece, and the display accessed by the assisting device is not necessarily the same display as the display accessed by the target device, but is necessarily the same model or at least the same display as the attribute identification information. The acquired attribute identification information is firstly stored in a cache of the assisting equipment, and the cache storing the attribute identification information is marked as a display driving cache; and outputting the acquired attribute identification information to a kernel log of the assisting equipment.
In the embodiment of the present invention, optionally, one implementation manner of outputting the searched attribute identification information to the kernel log of the assisting device includes: and printing the attribute identification information into the kernel log.
The kernel log is actually a part of the memory in the kernel, and is used for recording the information about the kernel which cannot be written into the disk, because the information is generated before the file system is loaded, and the attribute identification information belongs to the information; based on the particularity of the kernel log, the attribute identification information can be output to the kernel log in a kernel printing mode. It may appear that the kernel log may be implemented by a printk function, which has a similar effect as the user space corresponding function printf (print by format). In the kernel, a printk (print kernel) can write a formatted message into a cache of a memory using a format almost identical to a printf function.
In the concrete implementation, the display driving cache for storing the attribute identification information is found by reading the kernel code, and the kernel code is recompiled by modifying the kernel code; and putting the recompiled file into an operating system; and (3) placing the operating system on the assisting equipment for running, starting the assisting equipment, and printing attribute identification information into a kernel log of the assisting equipment according to the recompiled kernel code after the operating system runs normally.
Step 202, saving the attribute identification information in the kernel log.
In the embodiment of the invention, the attribute identification information is extracted from the kernel log and stored, for example, in a file form.
And 203, adding the attribute identification information of the display acquired in advance into display driving source codes of the operating system kernel, and compiling to generate a binary file of the operating system kernel.
In the embodiments of the present invention, the specific implementation manner of this step may be referred to the description in the foregoing embodiments, which is not repeated herein.
And step 204, updating the binary file into an operating system of the target device.
In the embodiments of the present invention, the specific implementation manner of this step may be referred to the description in the foregoing embodiments, which is not repeated herein.
Step 205, according to the binary file, the operating system controlling the target device does not execute the operation of obtaining the attribute identification information through the direct digital controller.
In the embodiment of the present invention, since the target device cannot acquire the attribute identification information from the display, in order to keep the hardware state of the target device consistent with the software state of the operating system on the target device, it is necessary that the operating system controlling the target device does not perform the operation of acquiring the attribute identification information through the Direct Digital Controller (DDC). For example, before the binary file is generated by compiling, in the display driver source code, a sentence for obtaining the EDID information by the DDC is found and annotated, so that the operation system of the target device will not perform the operation for obtaining the attribute identification information by the direct digital controller in accordance with the binary file obtained after compiling.
And 206, storing the attribute identification information in the binary file into a target cache.
In the embodiment of the invention, in order to use the attribute identification information on the target device, the attribute identification information in the binary file needs to be stored in the target cache.
In an embodiment of the present invention, optionally, in an implementation manner of adding the attribute identification information of the display acquired in advance to the display driving source code of the operating system kernel and generating the binary file of the operating system kernel through compiling, the method may include: storing the attribute identification information in the display drive source code in an array form; adding a copy instruction of the attribute identification information to the display drive source code; compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel; accordingly, according to the binary file, the implementation manner of saving the attribute identification information into the target cache may include: acquiring a copy instruction and the attribute identification information in the binary file; and storing the attribute identification information into a target cache according to the copy instruction.
The copy instruction is an instruction for copying the attribute identification information into the target cache. That is, when the attribute identification information is added to the display driver source code, the attribute identification information is stored in an array form, and in order to store the attribute identification information in the binary file into the target cache, a copy instruction is also required to be added to the display driver source code, and after the binary file is generated by compiling, the copy instruction can be executed according to the binary file.
For example, EDID information stored in a file is added to the display driver source code; when the EDID information is 128 bytes, the corresponding preferred mode is that the array is also designed into 128-byte numbers, the added EDID information is stored in the display drive source code in the form of 128-byte arrays, the display drive source code is modified, and a copy instruction is added; the copying instruction is an instruction for copying the EDID information stored in the array into a target cache; and compiling the display drive source code added with the EDID information and the copy instruction to generate a binary file of the operating system kernel. After the operating system of the target device is started, according to the data and the instructions in the binary file, the EDID information in the binary file is stored in the target cache.
And step 207, displaying on a display of the target device according to the attribute identification information in the target cache.
In the embodiments of the present invention, the specific implementation manner of this step may be referred to the description in the foregoing embodiments, which is not repeated herein.
According to the embodiment of the invention, the attribute identification information of the display driving cache of the assisting equipment is searched, the searched attribute identification information is output to the kernel log of the assisting equipment, the attribute identification information in the kernel log is stored, the attribute identification information is printed to the kernel log, the attribute identification information of the display acquired in advance is added to the display driving source code of the operating system kernel, the binary file of the operating system kernel is generated through compiling, the binary file is updated to the operating system of the target equipment, the operating system of the target equipment is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller according to the binary file, the attribute identification information in the binary file is stored in the target cache, and the attribute identification information of the display of the target equipment is displayed on the display of the target equipment according to the attribute identification information in the target cache, so that the attribute identification information of the display cannot be obtained even when the target equipment is remotely accessed to the display, and the problem that the display cannot normally output or the display cannot be output is solved or the operation stability of the target equipment is not accessed to the display is improved is solved; furthermore, in an application scene with a plurality of target devices, the plurality of target devices can use the same binary file to obtain the attribute identification information at the same time, so that the efficiency of obtaining the attribute identification information by the plurality of target devices is improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 3, a block diagram of a display device according to a third embodiment of the present invention is shown, which may specifically include the following modules:
the file generation module 301 is configured to add attribute identification information of a display acquired in advance to display driving source codes of an operating system kernel, and generate a binary file of the operating system kernel through compiling;
a file updating module 302, configured to update the binary file to an operating system of the target device;
an information saving module 303, configured to save, in an operating system of the target device, the attribute identification information to a target cache in which a display driver saves the attribute identification information according to the binary file; the target cache is an area for storing the attribute identification information for a display driver;
And the display module 304 is configured to display on a display of the target device according to the attribute identification information in the target cache.
In an embodiment of the present invention, optionally, the apparatus further includes:
the output module is used for searching the attribute identification information of the display drive cache of the assisting equipment before the attribute identification information of the display acquired in advance is added to the display drive source code of the kernel of the operating system and the binary file of the kernel of the operating system is generated through compiling, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
and the storage module is used for storing the attribute identification information in the kernel log.
In an embodiment of the present invention, optionally, the output module includes:
and the printing sub-module is used for printing the attribute identification information into the kernel log.
In an embodiment of the present invention, optionally, the information saving module includes:
an operation control sub-module, configured to control, according to the binary file, an operating system of the target device not to perform an operation of obtaining the attribute identification information through a direct digital controller;
And the information storage sub-module is used for storing the attribute identification information in the binary file into the target cache.
In an embodiment of the present invention, optionally, the file generating module includes:
the information storage sub-module is used for storing the attribute identification information in the display drive source code in an array form;
the instruction storage sub-module is used for adding a copy instruction of the attribute identification information into the display drive source code;
the file generation sub-module is used for compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
the information storage module comprises:
the acquisition sub-module is used for acquiring the copying instruction and the attribute identification information in the binary file;
and the storage sub-module is used for storing the attribute identification information into a target cache according to the copy instruction.
According to the embodiment of the invention, the attribute identification information of the display is added into the display drive source code of the kernel of the operating system, the binary file of the kernel of the operating system is generated through compiling, the binary file is updated into the operating system of the target device, the attribute identification information is stored into the target cache according to the binary file in the operating system of the target device, and the display is carried out on the display of the target device according to the attribute identification information in the target cache, so that the attribute identification information of the display cannot be obtained even when the target device is remotely accessed into the display, the problem that the display cannot normally carry out display output or does not carry out display output is solved, and the operation stability of the target device accessed into the display is improved; furthermore, in an application scene with a plurality of target devices, the plurality of target devices can use the same binary file to obtain the attribute identification information at the same time, so that the efficiency of obtaining the attribute identification information by the plurality of target devices is improved.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Fig. 4 is a block diagram illustrating a structure of an electronic device 700 for display, according to an example embodiment. For example, the electronic device 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 4, an electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
Memory 704 is configured to store various types of data to support operations at device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 706 provides power to the various components of the electronic device 700. Power supply components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 700.
The multimedia component 708 includes a screen between the electronic device 700 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the electronic device 700 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the electronic device 700. For example, the sensor assembly 714 may detect an on/off state of the device 700, a relative positioning of the components, such as a display and keypad of the electronic device 700, a change in position of the electronic device 700 or a component of the electronic device 700, the presence or absence of a user's contact with the electronic device 700, an orientation or acceleration/deceleration of the electronic device 700, and a change in temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, including instructions executable by processor 720 of electronic device 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform a display method, the method comprising:
adding the attribute identification information of the display obtained in advance into display drive source codes of an operating system kernel, and compiling to generate a binary file of the operating system kernel;
updating the binary file into an operating system of target equipment;
storing the attribute identification information into a target cache according to the binary file in an operating system of the target device; the target cache is an area for storing the attribute identification information for a display driver;
and displaying on a display of the target equipment according to the attribute identification information in the target cache.
Optionally, before the attribute identification information of the display acquired in advance is added to the display driving source code of the operating system kernel, and the binary file of the operating system kernel is generated through compiling, the method further includes:
searching the attribute identification information of the display drive cache of the assisting equipment, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
And storing the attribute identification information in the kernel log.
Optionally, the outputting the searched attribute identifying information to the kernel log of the assisting device includes:
and printing the attribute identification information into the kernel log.
Optionally, the storing the attribute identifying information in the target cache according to the binary file includes:
according to the binary file, an operating system of the target device is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller;
and storing the attribute identification information in the binary file into the target cache.
Optionally, the adding the attribute identifying information of the display acquired in advance to the display driving source code of the operating system kernel, and generating the binary file of the operating system kernel through compiling includes:
storing the attribute identification information in the display drive source code in an array form;
adding a copy instruction of the attribute identification information to the display drive source code;
compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
The storing the attribute identification information in the target cache according to the binary file includes:
acquiring a copy instruction and the attribute identification information in the binary file;
and storing the attribute identification information into a target cache according to the copy instruction.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
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 terminal 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 terminal. 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 terminal device comprising the element.
The foregoing has described in detail a display method and a display device according to the present invention, and specific examples are provided herein to illustrate the principles and embodiments of the present invention, the above examples being provided only to assist in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (8)

1. A display method, comprising:
adding the attribute identification information of the display acquired in advance into display driving source codes of an operating system kernel, and generating a binary file of the operating system kernel through compiling, wherein the method comprises the following steps: storing the attribute identification information in the display drive source code in an array form; adding a copy instruction of the attribute identification information to the display drive source code; compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
updating the binary file into an operating system of target equipment;
in the operating system of the target equipment, according to the binary file, the attribute identification information is stored in a target cache, wherein the target cache is an area for storing the attribute identification information by a display driver; wherein the storing the attribute identification information in the target cache according to the binary file includes: according to the binary file, an operating system of the target device is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller; acquiring a copy instruction and the attribute identification information in the binary file; according to the copying instruction, the attribute identification information is stored in a target cache;
And displaying on a display of the target equipment according to the attribute identification information in the target cache.
2. The method of claim 1, wherein before adding the pre-acquired attribute identification information of the display to the display driver code of the operating system kernel, generating the binary file of the operating system kernel by compiling, the method further comprises:
searching the attribute identification information of the display drive cache of the assisting equipment, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
and storing the attribute identification information in the kernel log.
3. The method of claim 2, wherein the outputting the found attribute identification information into a kernel log of the assisting device comprises:
and printing the attribute identification information into the kernel log.
4. A display device, comprising:
the file generation module is used for adding the attribute identification information of the display acquired in advance into the display driving source code of the operating system kernel, generating a binary file of the operating system kernel through compiling, and comprises the following steps: the information storage sub-module is used for storing the attribute identification information in the display drive source code in an array form; the instruction storage sub-module is used for adding a copy instruction of the attribute identification information into the display drive source code; the file generation sub-module is used for compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
The file updating module is used for updating the binary file into an operating system of the target equipment;
the information storage module is used for storing the attribute identification information into a target cache for storing the attribute identification information by a display driver according to the binary file in an operating system of the target device, wherein the target cache is a region for storing the attribute identification information by the display driver; wherein, the information saving module includes: an operation control sub-module, configured to control, according to the binary file, an operating system of the target device not to perform an operation of obtaining the attribute identification information through a direct digital controller; the acquisition sub-module is used for acquiring the copying instruction and the attribute identification information in the binary file; the storage submodule is used for storing the attribute identification information into a target cache according to the copy instruction;
and the display module is used for displaying on a display of the target equipment according to the attribute identification information in the target cache.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the output module is used for searching the attribute identification information of the display drive cache of the assisting equipment before the attribute identification information of the display acquired in advance is added to the display drive source code of the kernel of the operating system and the binary file of the kernel of the operating system is generated through compiling, and outputting the searched attribute identification information to a kernel log of the assisting equipment; the attribute identification information is acquired by installing a chip with attribute identification information acquisition capability on the assisting equipment;
And the storage module is used for storing the attribute identification information in the kernel log.
6. The apparatus of claim 5, wherein the output module comprises:
and the printing sub-module is used for printing the attribute identification information into the kernel log.
7. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
adding the attribute identification information of the display acquired in advance into display driving source codes of an operating system kernel, and generating a binary file of the operating system kernel through compiling, wherein the method comprises the following steps: storing the attribute identification information in the display drive source code in an array form; adding a copy instruction of the attribute identification information to the display drive source code; compiling a source code containing the attribute identification information and the copy instruction stored in an array form to generate a binary file of the operating system kernel;
Updating the binary file into an operating system of target equipment;
in the operating system of the target equipment, according to the binary file, the attribute identification information is stored in a target cache, wherein the target cache is an area for storing the attribute identification information by a display driver; wherein the storing the attribute identification information in the target cache according to the binary file includes: according to the binary file, an operating system of the target device is controlled not to execute the operation of acquiring the attribute identification information through a direct digital controller; acquiring a copy instruction and the attribute identification information in the binary file; according to the copying instruction, the attribute identification information is stored in a target cache;
and displaying on a display of the target equipment according to the attribute identification information in the target cache.
8. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the display method according to one or more of the method claims 1-3.
CN201911207685.6A 2019-11-29 2019-11-29 Display method, display device, electronic equipment and storage medium Active CN110990068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911207685.6A CN110990068B (en) 2019-11-29 2019-11-29 Display method, display device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911207685.6A CN110990068B (en) 2019-11-29 2019-11-29 Display method, display device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110990068A CN110990068A (en) 2020-04-10
CN110990068B true CN110990068B (en) 2023-05-12

Family

ID=70088749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911207685.6A Active CN110990068B (en) 2019-11-29 2019-11-29 Display method, display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110990068B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079247A (en) * 2007-06-05 2007-11-28 东莞黄江达裕科技电子厂 Display apparatus data updating method and device
CN104360860A (en) * 2014-11-17 2015-02-18 长城信息产业股份有限公司 Home-made automatic embedded computer system and display card driving method thereof
CN106844273A (en) * 2016-12-13 2017-06-13 硅谷数模半导体(北京)有限公司 Access the method and device of DP accessory channels
CN110308941A (en) * 2019-07-03 2019-10-08 深圳市海邻科信息技术有限公司 BIOS compatibility method, device, terminal and computer storage medium without EDID screen

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI383315B (en) * 2009-03-27 2013-01-21 Wistron Corp Computer screen displaying method, computer having a vertical displaying device, storage medium having a bios stored therein, and computer program product
US8963797B2 (en) * 2010-01-06 2015-02-24 Apple Inc. Display driving architectures
KR101335247B1 (en) * 2012-02-21 2013-11-29 주식회사 팬택 Displaying method of remote sink device, source device and system for the same
US10706493B2 (en) * 2017-12-29 2020-07-07 Intel Corporation Apparatus and method for display virtualization using mapping between virtual and physical display planes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079247A (en) * 2007-06-05 2007-11-28 东莞黄江达裕科技电子厂 Display apparatus data updating method and device
CN104360860A (en) * 2014-11-17 2015-02-18 长城信息产业股份有限公司 Home-made automatic embedded computer system and display card driving method thereof
CN106844273A (en) * 2016-12-13 2017-06-13 硅谷数模半导体(北京)有限公司 Access the method and device of DP accessory channels
CN110308941A (en) * 2019-07-03 2019-10-08 深圳市海邻科信息技术有限公司 BIOS compatibility method, device, terminal and computer storage medium without EDID screen

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Continuous Remote Mobile Identity Management Using Biometric Integrated Touch-Display》;Tao Feng et al.;《2012 45th Annual IEEE/ACM International Symposium on Microarchitecture Workshops》;20130307;全文 *
基于DisplayPort接口的显示设备设计;陈卫东;《液晶与显示》;20100215(第01期);全文 *
基于PowerPC的多屏***设计;何双江;《软件导刊》;20120131;全文 *

Also Published As

Publication number Publication date
CN110990068A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
EP3096224B1 (en) Method and apparatus for processing application installation package
EP3428790B1 (en) Method and device for displaying application interface
CN107239351B (en) Pasting method and device
CN105468410A (en) System upgrading method and device
US10613848B2 (en) Firmware refreshing method and device
CN107463372B (en) Data-driven page updating method and device
CN112416486A (en) Information guiding method, device, terminal and storage medium
US11847305B1 (en) Page display method, electronic device and storage medium
CN110990068B (en) Display method, display device, electronic equipment and storage medium
CN107885571B (en) Display page control method and device
CN107368562B (en) Page display method and device and terminal
CN106060253B (en) Information presentation method and device
CN110457084B (en) Loading method and device
CN111104110B (en) Global style sharing method, global style sharing device and electronic device
CN112306702B (en) Data sharing method and device, electronic equipment and storage medium
JP2018500612A (en) Information processing method and apparatus
CN107423060B (en) Animation effect presenting method and device and terminal
CN113391804A (en) Page generation method and device, electronic equipment and storage medium
CN111767063A (en) Resource updating method, device and equipment for application program
CN111596949B (en) Method and device for developing application program
CN114420058B (en) Backlight adjusting method and device, electronic equipment and storage medium
CN115098200B (en) Language switching method and device, electronic equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
US11637800B2 (en) Method and device for information processing of cross-devices, and storage medium
CN117632128A (en) Transaction page application processing method, device and equipment

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
GR01 Patent grant
GR01 Patent grant