CN116610392A - HDMI screen control method, device, computer equipment and storage medium - Google Patents
HDMI screen control method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN116610392A CN116610392A CN202310415748.7A CN202310415748A CN116610392A CN 116610392 A CN116610392 A CN 116610392A CN 202310415748 A CN202310415748 A CN 202310415748A CN 116610392 A CN116610392 A CN 116610392A
- Authority
- CN
- China
- Prior art keywords
- screen
- hdmi
- extinguishing
- state
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30076—Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Power Sources (AREA)
Abstract
The application relates to the technical field of screen control, and particularly discloses a control method and device of an HDMI screen, computer equipment and a storage medium. The method comprises the following steps: acquiring the current state of the HDMI screen; generating a screen extinguishing signal based on user operation when the current state is a screen brightening state; and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen. According to the method, the current state of the HDMI screen is obtained, the screen-extinguishing signal is generated in the screen-brightening state, the screen-extinguishing interface of the power management tool is called according to the screen-extinguishing signal to realize screen-extinguishing control of the HDMI screen, rapid screen-extinguishing can be realized, control of the HDMI screen is realized, and user experience is improved.
Description
Technical Field
The present application relates to the field of screen control technologies, and in particular, to a method and apparatus for controlling an HDMI screen, a computer device, and a storage medium.
Background
With the popularization of HDMI (High Definition Multimedia Interface, high-definition multimedia interface) interfaces, HDMI displays provided with HDMI interfaces are widely used, and can be used for connecting video game devices such as televisions, television boxes, digital audio, PS3, PS4, and Xbox, and camera mobile devices such as smartphones, digital cameras, and video cameras, in addition to computer hosts. However, the control capability of the HDMI screen cannot be realized at present, so how to realize the control of the HDMI screen and improve the user experience become a problem to be solved.
Disclosure of Invention
The application provides a control method, a device, computer equipment and a storage medium of an HDMI screen, so as to realize the control of the HDMI screen and improve user experience.
In a first aspect, the present application provides a method for controlling an HDMI screen, the method comprising:
acquiring the current state of the HDMI screen;
generating a screen extinguishing signal based on user operation when the current state is a screen brightening state;
and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
Further, when the current state is a bright screen state, generating a screen extinguishing signal based on user operation, including:
when the current state is a bright screen state, based on user operation, invoking an identity verification module to verify the identity of the user;
after the user passes the identity verification, a user interface of the screen-extinguishing application is displayed to the user;
based on the user interface, when receiving the screen-extinguishing request of the user, acquiring the desktop file storage state at the current moment;
when the desktop file storage state is not stored, a prompt popup window is initiated, and a file storage result is obtained based on the prompt popup window;
and generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful.
Further, after the current state of the HDMI screen is obtained, the method further includes:
when the current state is a screen-off state, receiving a screen-on signal;
and calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen.
Further, after the executing the screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen, the method further includes:
judging whether the HDMI screen is started or not;
generating a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not started;
based on the detection signal, obtaining a connection state of the HDMI screen and the main device;
and when the connection state is unconnected, monitoring the power key of the main equipment, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen.
Further, the obtaining, based on the detection signal, a connection state of the HDMI screen and the master device includes:
detecting a pin voltage of the HDMI based on the detection signal;
when the pin voltage is lower than a preset voltage threshold, determining that the HDMI screen and the main device are in an unconnected state;
and when the pin voltage is not lower than the voltage threshold, determining that the HDMI screen and the main device are in a connected state.
Further, after obtaining the connection state of the HDMI screen and the master device based on the detection signal, the method further includes:
and when the connection state is connected, monitoring the power key of the HDMI screen to obtain a second key state of the power key of the HDMI screen, and generating the control instruction based on the second key state to start the HDMI screen.
Further, when the current state is a bright screen state, generating a screen extinguishing signal based on user operation, and further including:
detecting whether a user operates the HDMI screen;
when the user does not operate the HDMI screen, a timer is called, and the unoperated duration of the user is recorded;
and generating the screen-extinguishing signal when the non-operation time length is greater than a preset time length threshold.
In a second aspect, the present application also provides a control apparatus for an HDMI screen, the apparatus comprising:
the current state acquisition module is used for acquiring the current state of the HDMI screen;
the screen-extinguishing signal generating module is used for generating screen-extinguishing signals based on user operation when the current state is a screen-brightening state;
and the screen-extinguishing realizing module is used for calling a screen-extinguishing interface in the power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
In a third aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the control method of the HDMI screen as described above when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement a control method of an HDMI screen as described above.
The application discloses a control method, a control device, computer equipment and a storage medium of an HDMI screen, wherein the current state of the HDMI screen is obtained; generating a screen extinguishing signal based on user operation when the current state is a screen brightening state; and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen. According to the method, the current state of the HDMI screen is obtained, the screen-extinguishing signal is generated in the screen-brightening state, the screen-extinguishing interface of the power management tool is called according to the screen-extinguishing signal to realize screen-extinguishing control of the HDMI screen, rapid screen-extinguishing can be realized, control of the HDMI screen is realized, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart showing a first embodiment of a control method of an HDMI screen provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a screen-extinguishing application page of a control method of an HDMI screen according to an embodiment of the present application;
fig. 3 is an application screen schematic flowchart of a control method of an HDMI screen provided by an embodiment of the present application;
fig. 4 is a flowchart showing a second embodiment of a control method of an HDMI screen provided by an embodiment of the present application;
fig. 5 is a flowchart showing a third embodiment of a control method of an HDMI screen provided by an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for controlling an HDMI screen according to an embodiment of the present application;
fig. 7 is a flowchart showing a fourth embodiment of a control method of an HDMI screen provided by an embodiment of the present application;
fig. 8 is a schematic block diagram of a control device for an HDMI screen according to an embodiment of the present application;
fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a control method and device of an HDMI screen, computer equipment and storage medium. The control method of the HDMI screen can be applied to a server, and control of the HDMI screen is achieved through an instruction of screen-off or an instruction of screen-on, so that user experience is improved. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of a control method of an HDMI screen according to an embodiment of the present application. The control method of the HDMI screen can be applied to a server and used for realizing control of the HDMI screen through a screen-extinguishing instruction or a screen-brightening instruction and improving user experience.
As shown in fig. 1, the control method of the HDMI screen specifically includes steps S101 to S104.
S101, acquiring the current state of the HDMI screen.
In one embodiment, whether the current state of the HDMI screen is a bright screen state or a blank screen state is determined, if the current state of the HDMI screen is a blank screen state, the HDMI screen may be made bright according to a bright screen request of the user, and if the current state of the HDMI screen is a bright screen state, the HDMI screen may be made blank according to a blank screen request of the user.
Among them, the HDMI screen is a display device supporting an HDMI interface (High Definition Multimedia Interface ). HDMI is a fully digital video and audio transmission interface that can transmit uncompressed audio and video signals.
S102, generating a screen extinguishing signal based on user operation when the current state is a screen brightening state.
When the current state is a bright screen state, generating a screen extinguishing signal based on user operation, and further comprising: detecting whether a user operates the HDMI screen; when the user does not operate the HDMI screen, a timer is called, and the unoperated duration of the user is recorded; and generating the screen-extinguishing signal when the non-operation time length is greater than a preset time length threshold.
In one embodiment, as shown in fig. 2, when the HDMI screen is in a bright screen state, the user may start the screen-extinguishing application, and determine whether the user has a screen-extinguishing requirement according to the user interface of the screen-extinguishing application.
In one embodiment, the off-screen application includes an off-screen interface of the power management tool, and stores off-screen instructions.
In one embodiment, authentication is required before the user enters the screen-in application, and after the authentication is passed, the user interface of the screen-in application is displayed to the user.
In one embodiment, after the user has a screen-in requirement, whether the unsaved file exists at the current moment of the system is detected, if so, a popup window is initiated to inform the user, and the user is inquired whether the current file needs to be saved. And after the user indication is obtained, carrying out corresponding processing on the file, and generating a screen-extinguishing signal according to the screen-extinguishing request of the user.
In one embodiment, if a page in the HDMI screen is not operated for a long time, a screen-extinguishing signal is generated, the current time and the duration of the last operation performed on the page by the user are recorded, and when the duration of the last operation reaches a preset threshold, the screen-extinguishing signal is generated.
S103, calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
In one embodiment, as shown in FIG. 3, after obtaining the off-screen signal, the off-screen application invokes an off-screen interface in the power management tool to execute an off-screen instruction echo >/sys/class/dram/card 0-HDMI-A-1/status to implement the off-screen.
The above embodiments provide a method, an apparatus, a computer device, and a storage medium for controlling an HDMI screen, to obtain a current state of the HDMI screen; generating a screen extinguishing signal based on user operation when the current state is a screen brightening state; and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen. According to the method, the current state of the HDMI screen is obtained, the screen-extinguishing signal is generated in the screen-brightening state, the screen-extinguishing interface of the power management tool is called according to the screen-extinguishing signal to realize screen-extinguishing control of the HDMI screen, rapid screen-extinguishing can be realized, control of the HDMI screen is realized, and user experience is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a control method of an HDMI screen according to an embodiment of the present application. The control method of the HDMI screen can be applied to a server and used for realizing control of the HDMI screen through a screen-extinguishing instruction or a screen-brightening instruction and improving user experience.
As shown in fig. 4, the step S102 of the control method of the HDMI screen specifically includes steps S201 to S205.
S201, when the current state is a bright screen state, based on user operation, invoking an identity verification module to verify the identity of the user;
s202, after the user passes the identity authentication, a user interface of the screen-extinguishing application is displayed to the user;
s203, based on the user interface, acquiring a desktop file storage state at the current moment when receiving a screen-off request of the user;
s204, when the desktop file storage state is not stored, a prompt popup window is initiated, and a file storage result is obtained based on the prompt popup window;
s205, generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful.
In one embodiment, authentication is required before the user enters the screen-in application, and after the authentication is passed, the user interface of the screen-in application is displayed to the user.
In one embodiment, after the user has a screen-in requirement, whether the unsaved file exists at the current moment of the system is detected, if so, a popup window is initiated to inform the user, and the user is inquired whether the current file needs to be saved. And after the user indication is obtained, carrying out corresponding processing on the file, and generating a screen-extinguishing signal according to the screen-extinguishing request of the user.
The above embodiments provide a method, an apparatus, a computer device, and a storage medium for controlling an HDMI screen, where when the current state is a bright screen state, an identity verification module is invoked to verify the identity of the user based on user operation; after the user passes the identity verification, a user interface of the screen-extinguishing application is displayed to the user; based on the user interface, when receiving the screen-extinguishing request of the user, acquiring the desktop file storage state at the current moment; when the desktop file storage state is not stored, a prompt popup window is initiated, and a file storage result is obtained based on the prompt popup window; and generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful. According to the method, the current state of the HDMI screen is obtained, the screen-extinguishing signal is generated in the screen-brightening state, the screen-extinguishing interface of the power management tool is called according to the screen-extinguishing signal to realize screen-extinguishing control of the HDMI screen, rapid screen-extinguishing can be realized, control of the HDMI screen is realized, and user experience is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart of a control method of an HDMI screen according to an embodiment of the present application. The control method of the HDMI screen can be applied to a server and used for realizing control of the HDMI screen through a screen-extinguishing instruction or a screen-brightening instruction and improving user experience.
As shown in fig. 5, after the step S101, the method for controlling an HDMI screen specifically further includes steps S301 to S302.
S301, when the current state is a screen-off state, receiving a screen-on signal;
s302, calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize screen lighting of the HDMI screen.
In one embodiment, the user may be monitored for operation and key status to obtain a bright screen signal.
In one embodiment, as shown in FIG. 6, after obtaining the bright screen signal, the bright screen interface executes the bright screen instruction echo on >/sys/class/dram/card 0-HDMI-A-1/status to implement bright screen.
The above embodiments provide a method, an apparatus, a computer device, and a storage medium for controlling an HDMI screen, to obtain a current state of the HDMI screen; when the current state is a screen-off state, receiving a screen-on signal; and calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen. According to the method, the current state of the HDMI screen is obtained, when the screen is in the bright state, a screen-extinguishing signal is generated, and the bright screen interface of the power management tool is called according to the bright screen signal to realize bright screen control of the HDMI screen, so that quick bright screen can be realized, HDMI screen control is realized, and user experience is improved.
Referring to fig. 7, fig. 7 is a schematic flowchart of a control method of an HDMI screen according to an embodiment of the present application. The control method of the HDMI screen can be applied to a server and used for realizing control of the HDMI screen through a screen-extinguishing instruction or a screen-brightening instruction and improving user experience.
As shown in fig. 7, after the step S302, the method for controlling an HDMI screen specifically further includes steps S401 to S404.
S401, judging whether the HDMI screen is started or not;
s402, generating a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not started;
s403, based on the detection signal, obtaining a connection state of the HDMI screen and the main device;
and S404, monitoring the power key of the main equipment when the connection state is unconnected, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen.
Based on the detection signal, obtaining a connection state of the HDMI screen and the master device includes: detecting a pin voltage of the HDMI based on the detection signal; when the pin voltage is lower than a preset voltage threshold, determining that the HDMI screen and the main device are in an unconnected state; and when the pin voltage is not lower than the voltage threshold, determining that the HDMI screen and the main device are in a connected state.
Based on the detection signal, after obtaining the connection state of the HDMI screen and the master device, the method further includes: and when the connection state is connected, monitoring the power key of the HDMI screen to obtain a second key state of the power key of the HDMI screen, and generating the control instruction based on the second key state to start the HDMI screen.
In one embodiment, to avoid a screen-on failure, after the execution of the screen-on instruction is completed, it is detected whether the HDMI screen is already turned on, and if not, a detection signal is generated according to the HDMI interface, and the connection state of the main device and the HDMI interface is detected.
In one embodiment, when the connection status is unconnected, it may be indicated that the main device is not turned on, and the HDMI screen cannot be connected to the main device, so as to obtain the display content of the main device. Therefore, the power key of the main device is monitored, when the power key of the main device is pressed, a starting signal of the main device is obtained, and according to the starting signal, a control instruction for starting the HDMI screen can be generated.
In one embodiment, when the connection status is connected, it may be indicated that the main device is turned on, but the HDMI screen is not turned on, i.e., the HDMI screen self-switch key is not turned on. Therefore, the power key of the HDMI screen is monitored, when the power key of the HDMI screen is pressed, a start signal of the HDMI screen is obtained, and according to the start signal, a control instruction for starting the HDMI screen can be generated.
In one embodiment, whether the HDMI screen is connected to the host device may be determined by detecting a pin voltage of the HDMI interface via a detection signal, comparing the pin voltage to a voltage threshold, and then determining whether the HDMI screen is connected to the host device. And when the pin voltage is not lower than the power supply threshold value, the HDMI screen is in a connection state with the main device.
The above embodiments provide a method, an apparatus, a computer device, and a storage medium for controlling an HDMI screen, to determine whether the HDMI screen is turned on; generating a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not started; based on the detection signal, obtaining a connection state of the HDMI screen and the main device; and when the connection state is unconnected, monitoring the power key of the main equipment, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen. According to the method, whether the HDMI is successfully lightened is judged after the screen lightening instruction is executed, if the HDMI is not lightened, the screen lightening is realized through the key state, the HDMI screen is ensured to be successfully started, the control of the HDMI screen is realized, and the user experience is improved.
Referring to fig. 8, fig. 8 is a schematic block diagram of an HDMI screen control apparatus according to an embodiment of the present application, where the HDMI screen control apparatus is configured to execute the above-described HDMI screen control method. The control device of the HDMI screen may be configured in a server.
As shown in fig. 8, the control device 500 of the HDMI screen includes:
a current state obtaining module 501, configured to obtain a current state of the HDMI screen;
the screen-off signal generating module 502 is configured to generate a screen-off signal based on a user operation when the current state is a screen-on state;
and the screen-off realizing module 503 is configured to invoke a screen-off interface in the power management tool based on the screen-off signal, and execute a screen-off instruction based on the screen-off interface to realize screen-off of the HDMI screen.
In one embodiment, the screen-off signal generating module 502 includes:
the identity verification unit is used for calling an identity verification module based on user operation when the current state is a bright screen state, and verifying the identity of the user;
the user interface display unit is used for displaying a user interface of the screen-extinguishing application to the user after the user passes the identity authentication;
the file state obtaining unit is used for obtaining the desktop file storage state at the current moment when receiving the screen-extinguishing request of the user based on the user interface;
the file storage result obtaining unit is used for initiating a prompt popup window when the desktop file storage state is not stored, and obtaining a file storage result based on the prompt popup window;
and the screen-extinguishing signal generating unit is used for generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful.
In one embodiment, the control device 500 of the HDMI screen further includes a bright screen module, where the bright screen module includes:
the screen-lighting signal receiving unit is used for receiving screen-lighting signals when the current state is a screen-off state;
and the screen-lighting realizing unit is used for calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen.
In one embodiment, the bright screen module further includes:
a screen state judging unit for judging whether the HDMI screen is started;
a detection signal generating unit, configured to generate a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not turned on;
a connection state obtaining unit configured to obtain a connection state of the HDMI screen and the master device based on the detection signal;
and the control instruction generation unit is used for monitoring the power key of the main equipment when the connection state is unconnected, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen.
In one embodiment, the connection state obtaining unit includes:
a pin voltage detection subunit, configured to detect a pin voltage of the HDMI interface based on the detection signal;
an unconnected state determining subunit, configured to determine that the HDMI screen and the main device are in an unconnected state when the pin voltage is lower than a preset voltage threshold;
and the connected state determining subunit is used for determining that the HDMI screen and the main device are in a connected state when the pin voltage is not lower than the voltage threshold.
In one embodiment, the bright screen module further includes:
and the control instruction generation unit is used for monitoring the power key of the HDMI screen when the connection state is connected, obtaining a second key state of the power key of the HDMI screen, and generating the control instruction based on the second key state so as to start the HDMI screen.
In one embodiment, the screen-off signal generating module 502 further includes:
a screen operation detection unit for detecting whether a user operates the HDMI screen;
an unoperated duration recording unit, configured to invoke a timer to record an unoperated duration of the user when the user does not operate the HDMI screen;
and the screen-extinguishing signal generating unit is used for generating the screen-extinguishing signal when the non-operation time length is greater than a preset time length threshold value.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 9.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server.
With reference to FIG. 9, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the HDMI screen control methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in the non-volatile storage medium, which when executed by the processor, causes the processor to perform any one of the HDMI screen control methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
acquiring the current state of the HDMI screen;
generating a screen extinguishing signal based on user operation when the current state is a screen brightening state;
and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
In one embodiment, the processor is configured to, when implementing that the current state is a bright screen state, generate a screen extinguishing signal based on a user operation, and implement:
when the current state is a bright screen state, based on user operation, invoking an identity verification module to verify the identity of the user;
after the user passes the identity verification, a user interface of the screen-extinguishing application is displayed to the user;
based on the user interface, when receiving the screen-extinguishing request of the user, acquiring the desktop file storage state at the current moment;
when the desktop file storage state is not stored, a prompt popup window is initiated, and a file storage result is obtained based on the prompt popup window;
and generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful.
In one embodiment, the processor, after implementing obtaining the current state of the HDMI screen, is further configured to implement:
when the current state is a screen-off state, receiving a screen-on signal;
and calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen.
In one embodiment, after implementing the bright screen instruction based on the bright screen interface, the processor is further configured to implement:
judging whether the HDMI screen is started or not;
generating a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not started;
based on the detection signal, obtaining a connection state of the HDMI screen and the main device;
and when the connection state is unconnected, monitoring the power key of the main equipment, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen.
In one embodiment, the processor, when implementing obtaining the connection state of the HDMI screen and the master device based on the detection signal, is configured to implement:
detecting a pin voltage of the HDMI based on the detection signal;
when the pin voltage is lower than a preset voltage threshold, determining that the HDMI screen and the main device are in an unconnected state;
and when the pin voltage is not lower than the voltage threshold, determining that the HDMI screen and the main device are in a connected state.
In one embodiment, the processor is further configured to, after implementing obtaining the connection state of the HDMI screen and the master device based on the detection signal, implement:
and when the connection state is connected, monitoring the power key of the HDMI screen to obtain a second key state of the power key of the HDMI screen, and generating the control instruction based on the second key state to start the HDMI screen.
In one embodiment, when the current state is a bright screen state, the processor is further configured to generate a screen extinguishing signal based on a user operation, where the screen extinguishing signal is further configured to implement:
detecting whether a user operates the HDMI screen;
when the user does not operate the HDMI screen, a timer is called, and the unoperated duration of the user is recorded;
and generating the screen-extinguishing signal when the non-operation time length is greater than a preset time length threshold.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize the control method of any HDMI screen provided by the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (10)
1. The control method of the HDMI screen is characterized in that the control method of the HDMI screen is applied to a screen control system, the screen control system comprises a high-definition multimedia interface HDMI screen and a main device carrying a preset operating system, the HDMI screen is provided with an HDMI interface, the HDMI screen and the main device are connected through the HDMI interface, and the control method comprises the following steps:
acquiring the current state of the HDMI screen;
generating a screen extinguishing signal based on user operation when the current state is a screen brightening state;
and calling a screen-extinguishing interface in a power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
2. The method for controlling an HDMI screen according to claim 1, wherein when the current state is a bright screen state, generating a screen-off signal based on a user operation, comprises:
when the current state is a bright screen state, based on user operation, invoking an identity verification module to verify the identity of the user;
after the user passes the identity verification, a user interface of the screen-extinguishing application is displayed to the user;
based on the user interface, when receiving the screen-extinguishing request of the user, acquiring the desktop file storage state at the current moment;
when the desktop file storage state is not stored, a prompt popup window is initiated, and a file storage result is obtained based on the prompt popup window;
and generating the screen-extinguishing signal based on the screen-extinguishing request when the file storage result is that the file storage is successful.
3. The method for controlling an HDMI screen according to claim 1, further comprising, after the obtaining of the current state of the HDMI screen:
when the current state is a screen-off state, receiving a screen-on signal;
and calling a screen-lighting interface in the power management tool based on the screen-lighting signal, and executing a screen-lighting instruction based on the screen-lighting interface to realize the screen lighting of the HDMI screen.
4. The method for controlling an HDMI screen according to claim 3, wherein after executing a bright screen command based on the bright screen interface to realize bright screen of the HDMI screen, further comprises:
judging whether the HDMI screen is started or not;
generating a detection signal based on an HDMI interface of the HDMI screen when the HDMI screen is not started;
based on the detection signal, obtaining a connection state of the HDMI screen and the main device;
and when the connection state is unconnected, monitoring the power key of the main equipment, obtaining a first key state of the power key of the main equipment, and generating a control instruction based on the first key state so as to start the HDMI screen.
5. The method of controlling an HDMI screen according to claim 4, wherein said obtaining a connection state of the HDMI screen with the master device based on the detection signal, comprises:
detecting a pin voltage of the HDMI based on the detection signal;
when the pin voltage is lower than a preset voltage threshold, determining that the HDMI screen and the main device are in an unconnected state;
and when the pin voltage is not lower than the voltage threshold, determining that the HDMI screen and the main device are in a connected state.
6. The method according to claim 4, wherein after obtaining the connection state of the HDMI screen with the main device based on the detection signal, further comprising:
and when the connection state is connected, monitoring the power key of the HDMI screen to obtain a second key state of the power key of the HDMI screen, and generating the control instruction based on the second key state to start the HDMI screen.
7. The control method of an HDMI screen according to any one of claims 1 to 6, wherein when the current state is a bright screen state, based on a user operation, generating a screen extinguishing signal, further comprising:
detecting whether a user operates the HDMI screen;
when the user does not operate the HDMI screen, a timer is called, and the unoperated duration of the user is recorded;
and generating the screen-extinguishing signal when the non-operation time length is greater than a preset time length threshold.
8. A control device of an HDMI screen, comprising:
the current state acquisition module is used for acquiring the current state of the HDMI screen;
the screen-extinguishing signal generating module is used for generating screen-extinguishing signals based on user operation when the current state is a screen-brightening state;
and the screen-extinguishing realizing module is used for calling a screen-extinguishing interface in the power management tool based on the screen-extinguishing signal, and executing a screen-extinguishing instruction based on the screen-extinguishing interface to realize screen extinguishing of the HDMI screen.
9. A computer device, the computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor configured to execute the computer program and realize the control method of the HDMI screen according to any one of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to realize the control method of the HDMI screen according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310415748.7A CN116610392A (en) | 2023-04-12 | 2023-04-12 | HDMI screen control method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310415748.7A CN116610392A (en) | 2023-04-12 | 2023-04-12 | HDMI screen control method, device, computer equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116610392A true CN116610392A (en) | 2023-08-18 |
Family
ID=87673675
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310415748.7A Pending CN116610392A (en) | 2023-04-12 | 2023-04-12 | HDMI screen control method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116610392A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118467091A (en) * | 2024-07-12 | 2024-08-09 | 潍坊众索信息技术有限公司 | Computer screen off control system, method and terminal |
-
2023
- 2023-04-12 CN CN202310415748.7A patent/CN116610392A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118467091A (en) * | 2024-07-12 | 2024-08-09 | 潍坊众索信息技术有限公司 | Computer screen off control system, method and terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10203739B2 (en) | Electronic device for controlling power and method therefor | |
| US20180348999A1 (en) | Method and Apparatus for Taking Screenshot of Screen of Application in Mobile Terminal | |
| US10445104B2 (en) | Electronic device, method for controlling electronic device, and program | |
| CN110881224B (en) | Network long connection method, device, equipment and storage medium | |
| US12393499B2 (en) | Method and device for recovering self-test exception of server component, system and medium | |
| JP2003076651A (en) | Display method of operation state of computer and external equipment of computer | |
| CN112764563A (en) | Multi-screen control method, device and system, electronic equipment and storage medium | |
| CN116610392A (en) | HDMI screen control method, device, computer equipment and storage medium | |
| CN113412480A (en) | Mounting processing method and device, electronic equipment and computer readable storage medium | |
| CN106168974B (en) | Method and system for processing multi-system screenshot file | |
| CN110399168A (en) | System startup method, device and equipment for multi-data disk storage server | |
| CN107153621B (en) | Equipment identification method and device | |
| CN114020386A (en) | Display control method and display device | |
| CN113032130A (en) | System exception handling method and device | |
| CN111651308A (en) | Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device | |
| CN111045876A (en) | Splash screen detection method and device, storage medium and electronic equipment | |
| CN117632816A (en) | Method for accessing external equipment to intelligent terminal and electronic equipment | |
| CN107480004B (en) | Fault recovery method and device and computer equipment | |
| CN114826886B (en) | Disaster recovery method and device for application software and electronic equipment | |
| CN117421242A (en) | Application detection method, apparatus, computer device and computer readable storage medium | |
| CN116185760A (en) | Dynamic monitoring method, device, equipment and storage medium for service operation | |
| CN109144446B (en) | Image display method, image display device, electronic equipment and computer readable storage medium | |
| US11314570B2 (en) | Internet-of-things-associated electronic device and control method therefor, and computer-readable recording medium | |
| CN108279949B (en) | Starting method and system applied to television and television | |
| CN107390981B (en) | A global menu control method, device, device and storage medium |
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 |