CN105975293A - Method and device for driving MHL of mobile terminal audio-video equipment - Google Patents

Method and device for driving MHL of mobile terminal audio-video equipment Download PDF

Info

Publication number
CN105975293A
CN105975293A CN201510921133.7A CN201510921133A CN105975293A CN 105975293 A CN105975293 A CN 105975293A CN 201510921133 A CN201510921133 A CN 201510921133A CN 105975293 A CN105975293 A CN 105975293A
Authority
CN
China
Prior art keywords
mhl
driving
screen
interface
drive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510921133.7A
Other languages
Chinese (zh)
Inventor
周百龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Priority to CN201510921133.7A priority Critical patent/CN105975293A/en
Publication of CN105975293A publication Critical patent/CN105975293A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a method and device for driving an MHL of mobile terminal audio-video equipment. The method comprises the steps that an MHL driver entry is removed from a system equipment driver list; and when a screen is powered on or powered off, an MHL driver interface is called to drive the MHL. The method and the device provided by the embodiment of the invention are characterized in that the MHL driver entry is removed from the equipment driver list of an operation system, so that calling of the MHL interface is not triggered even if the operation system needs to execute multiple times of sleeping/awaking of equipment in the equipment driver list when an interrupt signal appears during sleep of the system. In this way, the problem in the prior art that the sleeping operation is executed for many times to the MHL during the system sleep can be avoided. Hence, unnecessary power consumption of the system is reduced, and consumption of system resources is reduced.

Description

Method and device for driving MHL (Mobile high-definition Link) of audio-video equipment of mobile terminal
Technical Field
The invention relates to the technical field of videos, in particular to a method and a device for driving MHL (mobile high-definition link) of video equipment of a mobile terminal.
Background
Currently, a Mobile High-Definition Link (MHL) of a Mobile terminal is widely applied to Mobile terminal devices such as a Mobile phone, a tablet computer or a notebook computer. Through MHL, a user can project content in a mobile phone screen to an external large screen in real time, and can pause or continue projection of the large screen by turning off/on the mobile phone screen.
In order to operate the MHL normally, the MHL as an external device is usually registered in a driving device list of the operating system, so when the operating system is in a sleep mode, all the registered devices and the MHL in the system are simultaneously put into sleep, and in the sleep process, if a network signal, a timer signal or other wake-up sources cause a system sleep failure, all the devices in the system need to be put into sleep again until all the devices are successfully put into sleep, which can be seen as a result, the MHL is put into sleep for multiple times, and for a user, the MHL is put into sleep/wake up for one time when a mobile phone screen is turned off/on, so that the MHL is put into sleep for multiple times due to the system sleep failure, which causes unnecessary resource consumption of the system.
Therefore, one technical problem that needs to be urgently solved by those skilled in the art is: how to avoid the waste of system resources caused by the MHL being dormant/started for many times in the dormancy process of the operating system.
Disclosure of Invention
The embodiment of the invention provides a driving method and a driving device for an MHL (mobile high-definition link) of video equipment of a mobile terminal, which are used for solving the defect that the MHL is dormant/awakened for a plurality of times due to network signals, timer signals or other awakening sources in the dormancy process of an operating system in the prior art.
In order to solve the above problem, an embodiment of the present invention discloses a method for driving an MHL of a mobile terminal audio-visual device, including:
removing the MHL drive entry from the system device drive list;
and when the screen is opened or closed, calling the MHL driving interface to drive the MHL.
Preferably, the method further comprises:
an MHL driving inlet is arranged in a callback function list Callbacklist corresponding to the screen in advance;
when the screen is opened or closed, the step of calling the MHL driving interface to drive the MHL comprises the following steps:
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL driving interface to drive the MHL.
Preferably, the MHL driven interface comprises an MHL sleep driven interface;
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; the step of calling the MHL driving interface to drive the MHL comprises the following steps:
when the screen is closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL sleep driving interface to set the MHL to be in a sleep state.
Preferably, the MHL driving interface comprises an MHL wake-up driving interface;
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; the step of calling the MHL driving interface to drive the MHL comprises the following steps:
and when the screen is opened, executing an MHL drive inlet in a callback function list Callbacklist corresponding to the screen, and calling an MHL awakening drive interface to set the MHL to be in an awakening state.
Preferably, the MHL sleep driving interface is specifically an MHL suspend interface.
In order to solve the above problem, an embodiment of the present invention further discloses a driving device for an MHL of a mobile terminal audio-visual device, including: an inlet removing module and a driving module; the entry removing module is used for removing the MHL driving entry from the system equipment driving list;
and the driving module is used for calling the MHL driving interface to drive the MHL when the screen is opened or closed.
Preferably, the apparatus further comprises:
the entrance setting module is used for setting the MHL driving entrance in a callback function list Callbacklist corresponding to the screen in advance;
the drive module is further configured to: when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL driving interface to drive the MHL.
Preferably, the MHL driven interface comprises an MHL sleep driven interface;
the driving module includes:
the first driving subunit is used for executing the MHL driving inlet in the callback function list Callbacklist corresponding to the screen when the screen is closed; and calling an MHL sleep driving interface to set the MHL to be in a sleep state.
Preferably, the MHL driving interface comprises an MHL wake-up driving interface;
the driving module includes:
and the second driving subunit is used for executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen when the screen is started, and calling an MHL awakening driving interface to set the MHL to be in an awakening state.
Preferably, the MHL sleep driving interface is specifically an MHL suspend interface.
The embodiment of the invention provides a method and a device for driving MHL of mobile terminal audio-video equipment, wherein an MHL driving entrance is removed from a system equipment driving list; and calling the MHL driving interface to drive the MHL when the screen is opened or closed. Because the MHL driving entry is removed from the device driving list of the operating system, even if the operating system needs to perform multiple times of sleep/awakening on the devices in the device driving list due to the occurrence of an interrupt signal in the sleeping process, the call of the MHL interface cannot be triggered, and the problem that the MHL can be performed multiple times of sleep in the sleeping process of the system in the prior art is solved, so that unnecessary power consumption of the system is reduced, and system resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a method for driving MHL of a mobile terminal audio-visual device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for driving MHL of a mobile terminal audio-visual device according to an embodiment of the present invention;
fig. 3 is a block diagram of a driving apparatus of an MHL of a mobile terminal audio-visual device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating a method for driving MHL of a mobile terminal audio-visual device according to an embodiment of the present invention is shown.
The method of the embodiment comprises the following steps:
step 101, removing an MHL driving entrance from a system equipment driving list;
generally, MHL, as an external device, its corresponding driver and driver interface are registered in the device driver list of the operating system, and a corresponding driver entry is set, only then, upper applications can use MHL through the operating system. However, in this way, during the system sleep process, when an external interrupt source such as a network signal occurs, the MHL is also put to sleep or wake again by the operating system along with other devices in the device driver list, so in step 101, the driver entry of the MHL is masked or removed from the device driver list of the operating system.
It should be noted that, in the embodiment of the present invention, the MHL driving entry masked or removed from the system device driving list may specifically include a driving entry required for sleeping or waking up the MHL, and in implementation, a person skilled in the art may also determine the driving entry required to be removed according to actual needs, which is not limited by the present invention.
And 103, calling an MHL driving interface to drive the MHL when the screen is opened or closed.
In an optional embodiment of the present invention, before the step 102, the method may further include: and setting the MHL driving inlet in a callback function list Callbacklist corresponding to the screen. The step 102 may specifically include: when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling the MHL driving interface to drive the MHL.
Thus, when the screen is turned off/on, since the callback function list callbaclclist needs to be executed, the MHL driver entry is executed according to the execution sequence set in the callback function list, and then the MHL driver entry calls the corresponding MHL driver interface to drive the MHL.
In an optional embodiment of the present invention, the MHL driver interface includes an MHL sleep driver interface, and the step 102 specifically includes: when the screen is closed, executing an MHL driving inlet in a callback function list corresponding to the screen; and calling the MHL sleep driving interface to set the MHL to be in a sleep state.
In another optional embodiment of the invention, the MHL driver interface comprises an MHL wake-up driver interface; the step 102 may specifically include: when the screen is opened, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen, and calling an MHL awakening driving interface to set the MHL in an awakening state.
It should be noted that the MHL driving method provided by the embodiment of the present invention can be applied to different operating systems such as Windows, Mac os, Linux, and the like. For different operating systems, those skilled in the art may use the methods corresponding to the different operating systems to sleep or wake up the MHL when the screen is turned on or off, which is not limited in the present invention.
To sum up, the MHL driving method provided by the embodiment of the present invention removes the MHL driving entry from the system device driving list; and calling the MHL driving interface to drive the MHL when the screen is opened or closed. Because the MHL driving entry is removed from the device driving list of the operating system in the embodiment of the invention, even if the operating system needs to carry out a plurality of times of sleep/awakening on the devices in the device driving list due to the occurrence of an interrupt signal (such as a network signal) in the sleeping process, the call of the MHL interface can not be triggered, and the problem that the MHL can carry out the sleep for a plurality of times in the sleeping process of the system in the prior art is avoided, thereby reducing the unnecessary power consumption of the system and saving the system resources.
Example two
Referring to fig. 2, a flowchart illustrating a step of a driving method for MHL of a mobile terminal audio-visual device according to an embodiment of the present invention is shown. The embodiment is described by taking a Linux operating system as an example.
The MHL driving method of the present embodiment specifically includes the steps of:
step 201, removing an MHL drive entry registered in a system device drive list by an MHL;
specifically, the sleep callback function suspend and the wake callback function resume registered by the MHL in the system device driver list are removed. The suspend and resume callback functions are MHL driver entries when the embodiment of the present invention is applied to a Linux system.
It should be noted that the suspend and resume are only an example of the MHL driver entry when the embodiment of the present invention is applied to the Linux system, and in a specific implementation, different MHL driver entries may be determined according to different operating systems or MHL device requirements, which is not limited in this embodiment of the present invention.
Step 202, setting the MHL driving entrance in a callback function list Callbacklist corresponding to a screen;
specifically, suspend and resume callback functions of the MHL are registered in the callback function list Callbacklist of the frame buffer device Framebuffer, and an example of the registration process is as follows:
blocking_notifier_chain_register(&fb_notifier_list,nb)
the parameter & fb _ notifier _ list is a callback function list of the frame buffer device, and the parameter nb is a callback function structure of MHL suspend and resume.
Step 203, judging whether the current screen is opened or closed, and executing step 204 when the screen is closed; when the screen is on, go to step 205;
and step 204, using a kernel notification chain Notifier in the frame buffer Framebuffer to call a suspend callback function of the MHL to set the MHL in a sleep state.
The following is an example of calling the suspend callback function to set the MHL to the sleep state:
blocking_notifier_call_chain(&fb_notifier_list,val,v)
wherein, & fb _ notifier _ list represents a callback function list of the frame buffering device; val, v denotes parameters passed to the MHL suspend and resume callback functions for setting the MHL to sleep.
Step 205, using the kernel notification chain Notifier in the frame buffer Framebuffer to call the resume callback function of the MHL to set the MHL to the on state.
Specific examples are as follows:
blocking_notifier_call_chain(&fb_notifier_list,val,v);
similarly to the setting to the sleep state in step 204, the MHL can be set to the wake state here by changing the parameter val, v.
EXAMPLE III
Referring to fig. 3, a block diagram of a driving apparatus of an MHL of a mobile terminal audio-visual device according to a third embodiment of the present invention is shown.
The device of the embodiment comprises: an entrance removing module 310, a driving module 320; wherein,
an entry removal module 310, configured to remove the MHL driver entry from the system device driver list;
and the driving module 320 is configured to call the MHL driving interface to drive the MHL when the screen is turned on or turned off.
In an optional embodiment of the invention, the apparatus further comprises:
the entry setting module 330 is configured to set the MHL driver entry in a callback function list callbaclcest corresponding to the screen in advance;
the drive module is further configured to: when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling the MHL driving interface to drive the MHL.
In an alternative embodiment of the present invention,
the MHL driving interface comprises an MHL sleep driving interface;
the driving module 320 includes:
the first driving subunit 3201 is configured to, when the screen is closed, execute an MHL driving entry in a callback function list callbaclclist corresponding to the screen; and calling the MHL sleep driving interface to set the MHL to be in a sleep state.
In an optional embodiment of the present invention, the MHL driver interface includes an MHL wake-up driver interface;
the driving module 320 includes:
the second driver subunit executes, by 3202, the MHL driver entry in the callback function list callbaccllist corresponding to the screen when the screen is turned on, and calls the MHL wake-up driver interface to set the MHL to the wake-up state.
The MHL sleep driving interface is specifically an MHL suspend interface.
The driving apparatus for MHL of mobile terminal audio-visual device provided in this embodiment is used to implement a corresponding driving method for MHL of mobile terminal audio-visual device in the foregoing first embodiment and second embodiment, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for driving MHL of mobile terminal audio-visual equipment is characterized by comprising the following steps:
removing the MHL drive entry from the system device drive list;
and when the screen is opened or closed, calling the MHL driving interface to drive the MHL.
2. The method of claim 1, further comprising:
an MHL driving inlet is arranged in a callback function list Callbacklist corresponding to the screen in advance;
when the screen is opened or closed, the step of calling the MHL driving interface to drive the MHL comprises the following steps:
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL driving interface to drive the MHL.
3. The method of claim 2, wherein the MHL-driven interface comprises an MHL sleep-driven interface;
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; the step of calling the MHL driving interface to drive the MHL comprises the following steps:
when the screen is closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL sleep driving interface to set the MHL to be in a sleep state.
4. The method of claim 2, wherein the MHL driven interface comprises an MHL wake-up driven interface;
when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; the step of calling the MHL driving interface to drive the MHL comprises the following steps:
and when the screen is opened, executing an MHL drive inlet in a callback function list Callbacklist corresponding to the screen, and calling an MHL awakening drive interface to set the MHL to be in an awakening state.
5. The method according to claim 3, wherein the MHL sleep-driven interface is specifically an MHL suspend interface.
6. A drive device of mobile terminal audio-visual equipment MHL is characterized by comprising: an inlet removing module and a driving module; wherein,
an entry removing module for removing the MHL driving entry in the system device driving list;
and the driving module is used for calling the MHL driving interface to drive the MHL when the screen is opened or closed.
7. The apparatus of claim 6, further comprising:
the entrance setting module is used for setting the MHL driving entrance in a callback function list Callbacklist corresponding to the screen in advance;
the drive module is further configured to: when the screen is opened or closed, executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen; and calling an MHL driving interface to drive the MHL.
8. The apparatus of claim 7, wherein the MHL driven interface comprises an MHL sleep driven interface;
the driving module includes:
the first driving subunit is used for executing the MHL driving inlet in the callback function list Callbacklist corresponding to the screen when the screen is closed; and calling an MHL sleep driving interface to set the MHL to be in a sleep state.
9. The apparatus of claim 7, wherein the MHL driven interface comprises an MHL wake-up driven interface;
the driving module includes:
and the second driving subunit is used for executing an MHL driving inlet in a callback function list Callbacklist corresponding to the screen when the screen is started, and calling an MHL awakening driving interface to set the MHL to be in an awakening state.
10. The apparatus of claim 8, wherein the MHL sleep-driven interface is specifically an MHL suspend interface.
CN201510921133.7A 2015-12-11 2015-12-11 Method and device for driving MHL of mobile terminal audio-video equipment Pending CN105975293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510921133.7A CN105975293A (en) 2015-12-11 2015-12-11 Method and device for driving MHL of mobile terminal audio-video equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510921133.7A CN105975293A (en) 2015-12-11 2015-12-11 Method and device for driving MHL of mobile terminal audio-video equipment

Publications (1)

Publication Number Publication Date
CN105975293A true CN105975293A (en) 2016-09-28

Family

ID=56988363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510921133.7A Pending CN105975293A (en) 2015-12-11 2015-12-11 Method and device for driving MHL of mobile terminal audio-video equipment

Country Status (1)

Country Link
CN (1) CN105975293A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063311A (en) * 2009-11-12 2011-05-18 英业达股份有限公司 Electronic equipment and starting method thereof
CN104598400A (en) * 2014-12-15 2015-05-06 北京奇虎科技有限公司 Peripheral equipment management method, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063311A (en) * 2009-11-12 2011-05-18 英业达股份有限公司 Electronic equipment and starting method thereof
CN104598400A (en) * 2014-12-15 2015-05-06 北京奇虎科技有限公司 Peripheral equipment management method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余亮: "基于MHL接口的智能电视的设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
US20200278737A1 (en) Terminal control method and apparatus, and terminal
US7463255B2 (en) Portable electronic apparatus and power management method thereof
TWI494857B (en) Method for performing wake-up event management, and associated apparatus and associated computer program product
WO2017084293A1 (en) Application closing method, device and electronic equipment
CN102622079B (en) Sleep method, wakening method and mobile terminal device
CN106815065B (en) Background application awakening method and device and electronic equipment
CN107302789B (en) Method and system for improving battery endurance of android device
CN103902316B (en) Switching method and electronic equipment
CN103207659B (en) Switching method and electronic equipment
CN104657228B (en) A kind of system exception processing method and processing device of mobile terminal
CN106990972B (en) Method and device for operating a trusted user interface
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
CN107851050B (en) Device with watchdog timer and method for operating watchdog timer
CN104252389A (en) Application operation method, system and application
CN107810488A (en) A kind of method of state management of virtual machine, device and intelligent terminal
WO2022242683A1 (en) Memory recovery method and apparatus, and electronic device
CN108628560A (en) A kind of display methods and terminal
CN103260224A (en) Mobile terminal and method for achieving refreshing of charging animation during charging
CN103577306A (en) Active-detecting high-availability software operating method in cloud platform
WO2019127082A1 (en) Display screen control method and apparatus, and intelligent terminal
US20120137155A1 (en) Electronic apparatus and power saving control method for electronic apparatus
CN105100125B (en) A kind of dormancy control method of virtual desktop, apparatus and system
CN117369888A (en) Electronic equipment awakening method and device, electronic equipment and readable storage medium
CN105975293A (en) Method and device for driving MHL of mobile terminal audio-video equipment
CN107526512A (en) Switching method and system for electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928