CN105844182A - Screen locking method and device of notebook computer and the notebook computer - Google Patents

Screen locking method and device of notebook computer and the notebook computer Download PDF

Info

Publication number
CN105844182A
CN105844182A CN201610153980.8A CN201610153980A CN105844182A CN 105844182 A CN105844182 A CN 105844182A CN 201610153980 A CN201610153980 A CN 201610153980A CN 105844182 A CN105844182 A CN 105844182A
Authority
CN
China
Prior art keywords
laptop
notebook computer
screen
magnetic switch
state
Prior art date
Application number
CN201610153980.8A
Other languages
Chinese (zh)
Inventor
汪二虎
Original Assignee
合肥联宝信息技术有限公司
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 合肥联宝信息技术有限公司 filed Critical 合肥联宝信息技术有限公司
Priority to CN201610153980.8A priority Critical patent/CN105844182A/en
Publication of CN105844182A publication Critical patent/CN105844182A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts which could be adopted independently from the movement typologies specified in G06F1/1615 and subgroups
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts which could be adopted independently from the movement typologies specified in G06F1/1615 and subgroups for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors

Abstract

The invention discloses a screen locking method and device of a notebook computer and the notebook computer. The method comprises following steps of detecting the state of the upper cover of the notebook computer; sending a scanning code for locking a screen to the keyboard buffer of the notebook computer if the state of the upper cover of the notebook computer is a closed state; and sending an interruption signal to the central processing unit of the notebook computer, thus enabling the central processing unit to invoke the keyboard driver in an operation system to execute the scanning code for locking the screen in the keyboard buffer. According to the technical scheme provided by the invention, whether the state of the upper cover of the notebook computer is the closed state is detected, if the state of the upper cover is the closed state, a screen locking instruction is sent to the keyboard buffer of the notebook computer, so that a screen locking operation is automatically carried out on the notebook computer when the upper cover of the notebook computer is in the closed state, an unauthorized user cannot access the notebook computer, and the security of the notebook computer is improved.

Description

笔记本电脑锁屏方法、装置及笔记本电脑 Laptop lock screen method, device and laptop

技术领域 FIELD

[0001]本发明涉及终端安全技术领域,特别涉及一种笔记本电脑锁屏方法、装置及笔记本电脑。 [0001] The present invention relates to a terminal security technology, and particularly, to a laptop lock screen method, apparatus and notebook computers.

背景技术 Background technique

[0002]随着信息技术的不断发展,越来越多的商务人士使用笔记本电脑进行移动办公。 [0002] With the continuous development of information technology, more and more business people using laptop mobile office. 同时,对于有人机交互的界面的手持移动设备,其安全性和私密性越来越受到广大用户的格外关注。 At the same time, the interface for handheld mobile devices interact with manned aircraft, its security and privacy more and more users are particularly concerned about.

[0003]在相关技术中,针对笔记本电脑等手持设备,提供了多种锁屏方法,最简单的如同时按下笔记本电脑键盘的WIN键和L键的热键组合,即可达到锁屏的目的。 [0003] In the related art, for notebook computers and other handheld devices, it provides multiple lock screen method, such as simple press notebook keyboards WIN key and the L key hotkey combinations, can achieve lock screen purpose. 然而,很多用户在完成使用笔记本电脑的过程中,往往仅是将笔记本电脑进行合盖,此时,笔记本电脑屏幕的背光会关掉,但是却没有锁屏,而笔记本电脑中的往往存储了大量的信息,非授权用户仍然可以访问笔记本电脑,造成笔记本电脑的安全性受到威胁。 However, many users through the process of using a laptop, often the only laptops closing lid, this time, the backlight will turn off the laptop screen, but did not lock the screen while the laptop is often stored in a large number of information, unauthorized users can still access the laptop, causing the security of your computer is threatened.

发明内容 SUMMARY

[0004]有鉴于此,本发明的目的是提供一种提高笔记本的安全性的笔记本电脑锁屏方法、装置及笔记本电脑。 [0004] In view of this, an object of the present invention is to provide an improved safety lock laptop notebook screen method, apparatus and notebook computers.

[0005]为了实现上述目的,本发明提供了一种笔记本电脑锁屏方法,包括: [0005] To achieve the above object, the present invention provides a laptop lock screen method, comprising:

[0006]检测笔记本电脑的上盖的状态; [0006] PC notebook cover state detector is;

[0007]若所述笔记本电脑的上盖的状态为合盖状态,则向所述笔记本电脑的键盘缓冲器发送用于锁屏的扫描码; [0007] If the status of the upper lid of the laptop closed condition, is sent to the buffer for laptop keyboard scan code lock screen;

[0008]向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 [0008] sending an interrupt signal to the central processor, a notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.

[0009]优选地,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,相应地,检测所述笔记本电脑的上盖的状态包括: [0009] Preferably, the cover and the laptop base are provided with cooperating magnetic switch, respectively, the detection state of the laptop cover comprises:

[0010]检测所述笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态。 [0010] The magnetic switch and magnetic switch cover the base of the laptop to detect whether the closed state.

[0011 ]优选地,检测所述磁性开关是否为闭合状态,包括: [0011] Preferably, the magnetic detecting switch is in a closed state, comprising:

[0012]接收所述磁性开关发送的电信号; [0012] The magnetic switch receiving the transmitted electrical signal;

[0013]根据所述电信号,确定所述磁性开关是否为闭合状态。 [0013] According to the electrical signal, determining the magnetic switch is in a closed state.

[0014]优选地,其中所述用于锁屏的扫描码包括锁屏键所对应的扫描码,所述锁屏键包括WIN键和L键的热键组合。 [0014] Preferably, wherein the scan code comprises a lock for locking the screen corresponding to the screen key scan code of the key lock screen button and keyboard combinations include WIN L key.

[0015]基于同一发明构思,本发明还提供一种笔记本电脑锁屏装置,包括: [0015] Based on the same inventive concept, the present invention also provides a laptop lock screen apparatus comprising:

[0016]检测模块,用于检测笔记本电脑的上盖的状态; [0016] detection means for detecting a state of the laptop cover;

[0017]第一发送模块,用于当所述笔记本电脑的上盖的状态为合盖状态时,向所述笔记本电脑的键盘缓冲器发送用于锁屏的扫描码; [0017] The first sending module, configured to, when the state of the cover when the laptop is closed condition, to the transmission buffer for laptop keyboard scan code lock screen;

[0018]第二发送模块,用于向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 [0018] The second sending module, configured to send an interrupt signal to the central processor, a notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.

[0019]优选地,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,相应地,所述检测模块具体用于: [0019] Preferably, the cover and the laptop base are provided with cooperating magnetic switch, respectively, said detecting module is configured to:

[0020]检测所述笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态。 [0020] The magnetic switch and magnetic switch cover the base of the laptop to detect whether the closed state.

[0021]优选地,所述检测模块,还具体用于: [0021] Preferably, the detection module is further configured to:

[0022]接收所述磁性开关发送的电信号; [0022] The magnetic switch receiving the transmitted electrical signal;

[0023]根据所述电信号,确定所述磁性开关是否为闭合状态。 [0023] According to the electrical signal, determining the magnetic switch is in a closed state.

[0024]优选地,其中所述第一发送模块进一步配置为:其发送的用于锁屏的扫描码包括锁屏键所对应的扫描码,所述锁屏键包括WIN键和L键的热键组合。 [0024] Preferably, wherein the first sending module is further configured to: send a scan code for the lock includes a lock screen screen button corresponding to the scan code, said lock comprising a key panel and a heat WIN key L key key combination.

[0025]基于同一发明构思,本发明还提供一种笔记本电脑,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,包括如上所述的装置,以实现如上所述的方法。 [0025] Based on the same inventive concept, the present invention further provides a notebook computer, the notebook computer base and the cover are provided with a cooperating magnetic switch, comprising a device as described above, to implement the method described above.

[0026]与现有技术相比,本发明具有以下有益效果:本发明的技术方案通过检测笔记本电脑的上盖状态是否为合盖状态,若为合盖状态,则向所述笔记本电脑的键盘缓冲器发送用于锁屏的扫描码,使笔记本电脑上盖呈合盖状态时,自动对笔记本电脑进行锁屏的操作,使非授权用户无法访问笔记本电脑,从而提高了笔记本电脑的安全性。 [0026] Compared with the prior art, the present invention has the following advantages: the technical solution of the present invention by a cover state detector whether the laptop closed condition, when the cap is engaged state, to the laptop keyboards a buffer for transmitting scan code of the lock screen, so when the laptop cover was closed condition, automatically operated lock laptop screen, so that unauthorized users can not access the laptop, thereby improving the safety of the laptop.

附图说明 BRIEF DESCRIPTION

[0027]图1为本发明的笔记本电脑锁屏方法的实施例一的流程图; A flowchart of [0027] Example 1 FIG laptop lock screen method of the present invention;

[0028]图2为本发明的笔记本电脑锁屏方法的实施例二的流程图; II flowchart of an embodiment [0028] laptop lock screen method of the present invention of FIG 2;

[0029]图3为本发明的笔记本电脑锁屏方法的实施例二的笔记本电脑磁性开关示意图; Magnetic laptop notebook second embodiment of the lock screen method [0029] Figure 3 is a schematic view of the invention of the switch;

[0030]图4为本发明的笔记本电脑锁屏装置的实施例一的示意图。 Example laptop screen locking device [0030] FIG. 4 is a schematic view of the present disclosure.

具体实施方式 Detailed ways

[0031]下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。 [0031] The following embodiments and the accompanying drawings, specific embodiments of the present invention will be further described in detail. 以下实施例用于说明本发明,但不用来限制本发明的范围。 The following examples serve to illustrate the present invention but are not intended to limit the scope of the present invention.

[0032] 通常,笔记本电脑的键盘的内部设置有嵌入式控制器(Embedded Contrallor,EC),它控制着键盘的全部工作,比如电脑开机启动时键盘的自检、扫描、扫描码的缓冲以及与主机的通讯等等。 [0032] Generally, the internal laptop keyboard is provided with an embedded controller (Embedded Contrallor, EC), which controls the entire work of the keyboard, such as computer boot buffering self-test, scanning, keyboard scan code and a host communications, and so on. 当键盘中的一个键被按下时,EC便根据该键的位置,将该键对应的电信号转换成二进制码,发送给中央处理器(Central Processing Unit,CPU)和显示器。 When a keyboard key is pressed, then the position of the EC's key, the key corresponding to the electrical signal into a binary code sent to the CPU (Central Processing Unit, CPU) and a display. 如果用户的输入速度很快或CHJ正在处理其他的任务,就先将转换的二进制码送至内存中的键盘缓冲区进行暂存,等CHJ空闲时再从键盘缓冲区中取出暂存的二进制码分析并执行。 Then remove the temporary binary code if the input from the keyboard buffer or speed of the user quickly CHJ other tasks being processed, it is first converted to the binary code in the keyboard buffer memory for temporary storage, and other idle CHJ analysis and execution. 一般的笔记本电脑的键盘上都设置有很多快捷键,例如,Win+R,打开运行窗口;Win+E,打开资源管理器;Win+F,打开搜索窗口; Win+M,最小化所有窗口;Win+D,执行〃显示桌面〃命令(效果等同于Win+M);Win+L,锁定计算机;ffin+U,打开〃辅助工具管理器〃。 Are provided on conventional laptop keyboard has many shortcuts, e.g., Win + R, open the operation window; Win + E, open Explorer; Win + F, to open the search window; Win + M, minimize all windows; Win + D, displaying the desktop 〃 〃 command execution (effect equivalent to Win + M); Win + L, locking the computer; ffin + U, open Utility Manager 〃 〃. 其中,Win+L,为笔记本电脑的锁屏键。 Which, Win + L, laptop lock screen button. 为笔记本电脑锁屏的目的是使笔记本电脑在不断网的情况下,防止授权用户不在笔记本电脑旁时非授权用户使用电脑,从而影响笔记本电脑的安全性。 For the purpose laptop lock screen is the laptop in case of constantly network, the user is not authorized to prevent the laptop when the computer next to non-authorized users to use the computer, thus affecting the security of your computer. 现有技术都是通过用户手动按下锁屏的快捷键来为笔记本电脑进行锁屏的。 The prior art is to lock the screen by the user to manually press the shortcut key for the lock screen laptop. 有的时候用户为了简单,仅仅是将笔记本电脑的上盖合上,但这样仅能关掉屏幕的背光,并没有锁屏,从而降低了笔记本电脑的安全性。 Sometimes the user for simple, just on the laptop lid closed, but this can only turn off the backlight of the screen, and there is no lock screen, which reduces the security of your computer.

[0033]图1为本发明的笔记本电脑锁屏方法的实施例一的流程图,如图1所示,本实施例的笔记本电脑锁屏方法,具体可以包括如下以下步骤: A flowchart of [0033] Example 1 FIG laptop computer screen locking method of the present invention, shown in Figure 1, the laptop screen locking method according to the present embodiment may specifically include the following steps:

[0034] SlOl,检测笔记本电脑的上盖的状态。 [0034] SlOl, the cover state detection laptop.

[0035]本实施例的执行主体为EC。 Execution subject [0035] The present embodiment is EC. 在具体实施时,检测笔记本电脑的上盖的状态有很多种方法,例如,在本发明的其中一个实施例中,可以通过在笔记本电脑的上盖和底座上分别设置相配合的磁性开关,根据霍尔效应原理,当磁性开关产生电信号时,可以知道笔记本电脑的上盖为合盖状态;在本发明的其他实施例中,可以采用检测屏幕背光灯的方式来确定笔记本电脑的上盖是否为合盖状态。 In a specific embodiment, the cover state detection laptop There are many ways, for example, in one embodiment of the present invention which embodiment can be provided by each cooperating on the laptop cover and base of the magnetic switch, according to Hall effect principle, generates an electrical signal when the magnetic switch can be known as the laptop cover closed condition; in other embodiments of the present invention, the detection screen backlight way to determine the laptop cover may be employed if for the closed condition. 而不限于此。 Without being limited thereto.

[0036] S102,若笔记本电脑的上盖的状态为合盖状态,则向笔记本电脑的键盘缓冲器发送用于锁屏的扫描码。 [0036] S102, if the state of the upper lid of the laptop closed condition, is sent to a buffer for laptop keyboard scan code lock screen.

[0037]具体地,当EC检测到笔记本电脑的上盖是合盖状态,则向笔记本电脑的内存,具体是内存中的键盘缓冲器,发送用于锁屏的扫描码。 [0037] Specifically, when the detected EC laptop lid cover is engaged state, the notebook computer memory, in particular a keyboard buffer memory, for transmitting the scan code of the lock screen. 通常情况下,笔记本电脑的制造商会将WIN键+L键的热键组合设置为默认的锁屏键,但是也可以将其他快捷键作为锁屏键。 Typically, the laptop manufacturers WIN key + L key hotkey set as the default key lock screen, but may also be another shortcut key as the lock screen.

[0038] S103,向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 [0038] S103, transmits an interrupt signal to the central processor notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.

[0039]具体地,EC向内存中的键盘缓冲器发送用于锁屏的扫描码的同时,还向CPU发送一个中断信号,CPU接收到EC发送的中断信号后,开始执行操作系统中的键盘驱动器中的扫描码所对应的锁屏指令,以达到为笔记本电脑自动锁屏的目的。 At the same time [0039] Specifically, EC transmitted to the buffer memory for the keyboard scan code lock screen, and also sends an interrupt signal, the CPU receives an interrupt signal is sent to the CPU EC, starts executing operating system keyboard drive scan code corresponding to the lock screen instructions to achieve automatic locking a notebook computer screen. 本领域技术人员应该可以知道,所谓键盘驱动器尽管名称类似于硬件名称,但是实际是由一些代码组成的软件,而代码由CPU来执行时也可以称为指令。 Those skilled in the art would know that, despite the so-called keyboard driver name similar to the name of the hardware, but the software is actually composed of some of the code, while code is executed by the CPU can also be called command. 其中键盘驱动器包含了每个键所执行的功能的指令,当然也就包括了锁屏指令。 Wherein the drive comprises a keyboard function instructions executed by each key, of course, also includes a lock-screen instructions.

[0040]本实施例的技术方案通过检测笔记本电脑的上盖状态是否为合盖状态,若为合盖状态,则向笔记本电脑的键盘缓冲器发送用于锁屏的扫描码,使笔记本电脑上盖呈合盖状态时,自动对笔记本电脑进行锁屏的操作,使非授权用户无法访问笔记本电脑,从而提高了笔记本电脑的安全性。 [0040] The technical solutions of the present embodiment by the upper cover state detector whether the laptop closed condition, if it is a closed condition, for transmitting the scan code of the lock screen laptop keyboard buffer, so that laptop when the lid was closed condition, the laptop automatically operates the lock screen, so that unauthorized users can not access the laptop, thereby enhancing the security of your computer.

[0041]图2为本发明的笔记本电脑锁屏方法的实施例二的流程图,本实施例的笔记本电脑锁屏方法在上述实施例一的基础上,进一步更加详细地介绍本发明的技术方案。 Laptop lock screen flowchart of a method [0041] Example laptop computer screen locking method of the present invention. FIG. 2 II, in the present embodiment based on the above-described first embodiment, a further aspect of the present invention is described in more detail . 如图2所示,本实施例的笔记本电脑锁屏方法,具体可以包括如下步骤: As illustrated, the laptop screen locking method of the present embodiment may specifically include the following two steps:

[0042] S201,检测笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态,其中,笔记本电脑的上盖和底座分别设置有相配合的磁性开关。 [0042] S201, a magnetic switch and magnetic switch cover the base of the laptop detecting whether the closed state, wherein the cover and the base of the laptop are provided with a cooperating magnetic switch.

[0043]进一步地,在笔记本上盖和底座设置有相配合的磁性开关。 [0043] Further, in the notebook cover and base provided with cooperating magnetic switch. 例如,上盖的磁性开关为磁环,底座的磁性开关为磁簧片,当上盖闭合过程中,上盖所设置的磁环,逐渐接近底座所设置的磁簧片,根据霍尔效应原理,磁环与磁簧片相互感应,会产生电信号,磁环将该电信号发送至EC,EC根据接收到磁环所发送的电信号,可以确定笔记本电脑上盖的为合盖状 For example, the magnetic switch cover for the ring, the magnetic reed switch is a magnetic base, the process when the upper cover is closed, the set ring cover, gradually close to the magnetic reed base provided in accordance with the principle of the Hall effect , mutual induction magnetic ring with the magnetic reed, will generate an electrical signal, the electrical signal is transmitted to the ring EC, EC electrical signal transmitted according to the received magnetic ring can be determined laptop lid-like cover for closing

ίέτ O ίέτ O

[0044]本发明的磁性开关可以采用现有技术中的磁性开关,本实施例中的磁性开关电路如图3所示,在磁性开关中包括芯片U21,芯片U21的OUTPUT引脚连接EC,OUTPUT引脚还连接第一电容C1的第一端,第一电容C1的第二端接地,第一电容C1的第二端还连接第二电容C2的第一端,第二电容的第一端还连接芯片21的GND引脚,第二电容C2的第二端连接电阻R的第一端,芯片U21的VCC引脚连接电阻R的第一端,电阻R的第二端连接工作电压,例如3V电源。 [0044] The magnetic switch of the present invention may employ the prior art magnetic switch, magnetic switch circuit shown, OUTPUT pin connections for EC in the magnetic switch 3 including a chip U21, U21 chip according to the present embodiment, OUTPUT a first end of the pin is also connected to a first capacitor C1, the second terminal of the first capacitor C1, a second terminal of the first capacitor C1 is also connected to a first terminal of the second capacitor C2, a first terminal of the second capacitor further chip connected to the GND pin 21, a second terminal of the resistor R, a first terminal of the second capacitor C2, a first end, a second end connected to the working voltage of the resistor R is connected to the resistor R VCC pin chip U21, e.g. 3V power supply. 具体地,在笔记本合上上盖时,磁性开关中的芯片U21根据磁场变化产生电流,由OUTPUT引脚输出,并发送至EC,从而使EC检测到磁性开关为闭合状态。 In particular, when engaged in a notebook cover, a magnetic switch chip U21 current generating the magnetic field changes, the output of the OUTPUT pin, and is sent to EC, EC so that the detected magnetic switch closed state.

[0045] S202,若笔记本电脑的上盖的磁性开关和底座的磁性开关为闭合状态,则向笔记本电脑的键盘缓冲器发送WIN键和L键的热键组合所对应的扫描码。 [0045] S202, when the magnetic switch and magnetic switch cover the base of the laptop is closed, the send button and keyboard combinations WIN L key scan code corresponding to the laptop keyboard buffer.

[0046]例如,当用户在使用完笔记本电脑,并离开电脑时,往往将笔记本电脑的上盖合上,此时EC检测到笔记本电脑的上盖与底座所设置的磁性开关是否为闭合状态,若磁性开关为闭合状态,则EC将WIN键和L键的热键组合所对应的锁屏扫描码发送给内存中的键盘缓冲器。 [0046] For example, when the user is finished using a laptop, and leave the computer, the notebook computer is often the lid closed, the magnetic case EC detect whether the switch cover and the base of the laptop set to the closed state, when the magnetic switch is closed, the EC of the memory button and keyboard combinations WIN L key corresponding to the lock screen scan code sent to the keyboard buffer.

[0047] S203,向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 [0047] S203, transmits an interrupt signal to the central processor notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.

[0048]具体地,EC向内存中的键盘缓冲器发送用于锁屏的扫描码的同时,还向CPU发送一个中断信号,CPU接收到EC发送的中断信号后,开始执行操作系统中的键盘驱动器中的扫描码所对应的锁屏指令,以达到为笔记本电脑自动锁屏的目的。 At the same time [0048] Specifically, EC transmitted to the buffer memory for the keyboard scan code lock screen, and also sends an interrupt signal, the CPU receives an interrupt signal is sent to the CPU EC, starts executing operating system keyboard drive scan code corresponding to the lock screen instructions to achieve automatic locking a notebook computer screen. 本领域技术人员应该可以知道,所谓键盘驱动器尽管名称类似于硬件名称,但是实际是由一些代码组成的软件,而代码由CPU来执行时也可以称为指令。 Those skilled in the art would know that, despite the so-called keyboard driver name similar to the name of the hardware, but the software is actually composed of some of the code, while code is executed by the CPU can also be called command. 其中键盘驱动器包含了每个键所执行的功能的指令,当然也就包括了锁屏指令。 Wherein the drive comprises a keyboard function instructions executed by each key, of course, also includes a lock-screen instructions.

[0049]本实施例的技术方案通过检测笔记本电脑的磁性开关是否为闭合状态,若为闭合状态,则向笔记本电脑的键盘缓冲器发送锁屏的扫描码,使CPU执行操作系统中的键盘驱动器所对应的锁屏指令,以实现自动对笔记本电脑进行锁屏的操作,从而提高了笔记本电脑的安全性。 [0049] The technical solution of the present embodiment by a magnetic switch detects the laptop if the closed state, if the closed state, then the scan code keyboard buffer transmitted locks the screen of the laptop, executed by the CPU operating system keyboard driver corresponding lock screen instructions to automatically lock the operation on the laptop screen, thereby improving the safety of the laptop.

[0050]图4为本发明的笔记本电脑锁屏装置的实施例一的示意图,如图4所示,本实施例的笔记本电脑锁屏装置,具体可以包括检测模块41和发送模块42。 [0050] FIG. 4 is a schematic of an embodiment of a laptop screen locking apparatus of the present invention, shown in Figure 4, the screen laptop lock apparatus of the present embodiment, the detection module 41 may specifically include and a sending module 42.

[0051 ]检测模块41,用于检测笔记本电脑的上盖的状态; [0051] The detection module 41 for detecting the laptop cover state;

[0052]第一发送模块42,用于当笔记本电脑的上盖的状态为合盖状态时,向笔记本电脑的键盘缓冲器发送用于锁屏的扫描码; [0052] The first sending module 42, configured to, when the state of the upper lid of the laptop when closed condition, to the transmission buffer for the laptop keyboard scan code lock screen;

[0053]第二发送模块,用于向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 [0053] The second sending module, configured to send an interrupt signal to the central processor, a notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.

[0054]本实施例的笔记本电脑锁屏装置,通过采用上述模块对笔记本电脑进行锁屏的实现机制与上述图1所示实施例的笔记本电脑锁屏方法的实现机制相同,详细可以参考上述图1所示实施例的记载,在此不再赘述。 [0054] laptop screen lock apparatus according to the present embodiment, be implemented by the laptop screen with said lock mechanism using the above modules shown in FIG same screen laptop lock mechanism implemented method of Example 1, reference may be made in detail FIG. embodiment shown in FIG. 1 described embodiment, are not repeated here.

[0055]本发明的笔记本电脑锁屏装置的实施例二的示意图与图4 一致,具体请参见图4,本实施例的笔记本电脑锁屏装置在如图4所示的实施例一的基础上,进一步更加详细地介绍本发明的技术方案。 [0055] Example laptop screen locking apparatus 2 of the invention and FIG. 4 is a schematic view of the same, particularly see Figure 4, laptop lock screen apparatus according to the present embodiment based on the embodiment shown in Figure 4 on a further aspect of the present invention is described in more detail. 如图4所示,本实施例的笔记本电脑锁屏装置,进一步可以包括如下。 4, the screen laptop lock apparatus according to the present embodiment may further include the following.

[0056]笔记本电脑的上盖和底座分别设置有相配合的磁性开关,相应地,检测模块41具体用于: [0056] notebook computer base and cover are respectively provided with a magnetic switch cooperating, accordingly, the detection module 41 is specifically configured to:

[0057]检测笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态。 Magnetic switch and magnetic switch cover the base of [0057] detecting whether the laptop closed state.

[0058]检测模块41还具体用于: [0058] The detection module 41 is further configured to:

[0059]接收磁性开关发送的电信号; [0059] The magnetic switch receiving the transmitted electrical signal;

[0060]根据电信号,确定磁性开关是否为闭合状态。 [0060] According to the electric signal, determines whether the magnetic switch closed state.

[0061]其中,第一发送模块进一步配置为:其发送的用于锁屏的扫描码包括锁屏键所对应的扫描码,所述锁屏键包括WIN键和L键的热键组合。 [0061] The first sending module is further configured to: send a scan code for the lock includes a lock screen screen button corresponding to the scan code of the key lock screen button and keyboard combinations include WIN L key.

[0062]本实施例的笔记本电脑锁屏装置,通过采用上述模块对笔记本电脑进行锁屏的实现机制与上述图2所示实施例的笔记本电脑锁屏方法的实现机制相同,详细可以参考上述图2所示实施例的记载,在此不再赘述。 [0062] laptop screen lock apparatus according to the present embodiment, be implemented by the laptop screen with said lock mechanism using the above modules shown in FIG same screen laptop lock mechanism implemented method of Example 2, described above in detail with reference to FIG be embodiment shown in FIG. 2 described embodiment, are not repeated here.

[0063]本发明还提供一种笔记本电脑,在该笔记本电脑的上盖和底座设置有相配合的磁性开关,该笔记本电脑还包括如图3或图4所示的实施例的装置,能够实现如图1或图2所示的实施例的方法。 [0063] The present invention further provides a notebook computer, cooperates with a magnetic switch is provided in the cover and base of the notebook computer, the portable computer further comprises means in the embodiment shown in FIG. 3 or FIG. 4, can be realized the method of Example 2 of the embodiment shown in FIG. 1 or FIG.

[0064]以上实施例仅为本发明的示例性实施例,不用于限制本发明,本发明的保护范围由权利要求书限定。 Merely exemplary embodiments of the present invention embodiment [0064] the above embodiment, the present invention is not intended to limit, the scope of the present invention is defined by the claims. 本领域技术人员可以在本发明的实质和保护范围内,对本发明做出各种修改或等同替换,这种修改或等同替换也应视为落在本发明的保护范围内。 Those skilled in the art may be within the spirit and scope of the present invention, that various changes or modifications of the present invention, such modifications or equivalents shall also be considered to fall within the scope of the present invention.

Claims (9)

1.一种笔记本电脑锁屏方法,其特征在于,包括: 检测笔记本电脑的上盖的状态; 若所述笔记本电脑的上盖的状态为合盖状态,则向所述笔记本电脑的键盘缓冲器发送用于锁屏的扫描码; 向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 A screen laptop lock method comprising: detecting a state of an upper cover of a laptop; state if the upper lid of the laptop closed condition, the notebook computer to the keyboard buffer transmitting a scan code of the lock screen; sending an interrupt signal to the central processor, a notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard buffer of the lock screen.
2.根据权利要求1所述的方法,其特征在于,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,相应地,检测所述笔记本电脑的上盖的状态包括: 检测所述笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态。 2. The method according to claim 1, wherein said cap and base notebooks are provided with a magnetic switch cooperating, respectively, the state of the upper lid of the laptop detecting comprises: detecting magnetic switch and magnetic switch cover the base of said laptop if the closed state.
3.根据权利要求2所述的方法,其特征在于,检测所述磁性开关是否为闭合状态,包括: 接收所述磁性开关发送的电信号; 根据所述电信号,确定所述磁性开关是否为闭合状态。 3. The method according to claim 2, wherein detecting whether the magnetic switch in a closed state, comprising: receiving the transmitted electrical signal of the magnetic switch; according to the electrical signal, determining whether the magnetic switch closed state.
4.根据权利要求1-3任一项所述的方法,其特征在于,其中所述用于锁屏的扫描码包括锁屏键所对应的扫描码,所述锁屏键包括WIN键和L键的热键组合。 4. The method according to any one of claims 1-3, characterized in that, wherein the scan code comprises a lock for locking the screen corresponding to the screen button scan code, said lock comprising a key panel key and L WIN hotkey combination key.
5.一种笔记本电脑锁屏装置,其特征在于,包括: 检测模块,用于检测笔记本电脑的上盖的状态; 第一发送模块,用于当所述笔记本电脑的上盖的状态为合盖状态时,向所述笔记本电脑的键盘缓冲器发送用于锁屏的扫描码; 第二发送模块,用于向所述笔记本电脑的中央处理器发送中断信号,以使中央处理器调用操作系统中的键盘驱动器来执行键盘缓冲器中的用于锁屏的扫描码。 A laptop lock screen apparatus, characterized by comprising: detecting means for detecting the state of the upper lid of the laptop computer; first sending module, configured to, when the state of said upper lid is closing lid laptops state is transmitted to the notebook computer for keyboard scan code lock screen buffer; and a second sending module, configured to send an interrupt signal to the central processor, a notebook computer, so that the central processor to call the operating system keyboard driver performs a scan code for the keyboard lock screen buffer.
6.根据权利要求5所述的装置,其特征在于,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,相应地,所述检测模块具体用于: 检测所述笔记本电脑的上盖的磁性开关和底座的磁性开关是否为闭合状态。 6. The apparatus according to claim 5, wherein the notebook computer base and cover are respectively provided with a magnetic switch cooperating, respectively, the detection module is configured to: detecting the laptop the magnetic switch cover and the base magnetic switch whether the closed state.
7.根据权利要求6所述的装置,其特征在于,所述检测模块,还具体用于: 接收所述磁性开关发送的电信号; 根据所述电信号,确定所述磁性开关是否为闭合状态。 7. The device according to claim 6, wherein said detection module is further configured to: receive the electrical signal transmitted by the magnetic switch; according to the electrical signal, determining the magnetic switch is in a closed state .
8.根据权利要求5-7任一项所述的装置,其特征在于,其中所述第一发送模块进一步配置为:其发送的用于锁屏的扫描码包括锁屏键所对应的扫描码,所述锁屏键包括WIN键和L键的热键组合。 8. The device according to any of claims 5-7, characterized in that, wherein the first sending module is further configured to: send a scan code for the lock includes a lock screen screen button corresponding to the scan code the lock comprises a key panel key and the L key WIN hot key combination.
9.一种笔记本电脑,其特征在于,所述笔记本电脑的上盖和底座分别设置有相配合的磁性开关,包括如权利要求5-8任一项所述的装置,以实现如权利要求1-4任一项所述的方法。 A notebook computer, wherein the laptop cap and base are provided with a cooperating magnetic switch, comprising a device as claimed in claim any one of claims 5-8, in order to achieve as claimed in claim 1 the method according to any one -4.
CN201610153980.8A 2016-03-16 2016-03-16 Screen locking method and device of notebook computer and the notebook computer CN105844182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610153980.8A CN105844182A (en) 2016-03-16 2016-03-16 Screen locking method and device of notebook computer and the notebook computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610153980.8A CN105844182A (en) 2016-03-16 2016-03-16 Screen locking method and device of notebook computer and the notebook computer

Publications (1)

Publication Number Publication Date
CN105844182A true CN105844182A (en) 2016-08-10

Family

ID=56587240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610153980.8A CN105844182A (en) 2016-03-16 2016-03-16 Screen locking method and device of notebook computer and the notebook computer

Country Status (1)

Country Link
CN (1) CN105844182A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108010761A (en) * 2016-10-28 2018-05-08 研能科技股份有限公司 Liftable keyboard structure
CN108010760A (en) * 2016-10-28 2018-05-08 研能科技股份有限公司 Liftable keyboard structure

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201072530Y (en) * 2007-08-09 2008-06-11 无敌科技(西安)有限公司 Keyboard input device
CN101398697A (en) * 2007-09-27 2009-04-01 联想(北京)有限公司 Method for implementing auto covering setup of notebook computer
CN102707790A (en) * 2012-05-14 2012-10-03 江苏中科梦兰电子科技有限公司 Automatic switching device for laptop and control method thereof
US20130229568A1 (en) * 2012-03-02 2013-09-05 Microsoft Corporation Mobile Device Power State
CN103616928A (en) * 2013-11-27 2014-03-05 深圳万虹科技发展有限公司 Tablet computer with soft leather keyboard protective sleeve
CN103793243A (en) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 Mobile equipment, screen locking/unlocking method of mobile equipment and protective shell

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201072530Y (en) * 2007-08-09 2008-06-11 无敌科技(西安)有限公司 Keyboard input device
CN101398697A (en) * 2007-09-27 2009-04-01 联想(北京)有限公司 Method for implementing auto covering setup of notebook computer
US20130229568A1 (en) * 2012-03-02 2013-09-05 Microsoft Corporation Mobile Device Power State
CN102707790A (en) * 2012-05-14 2012-10-03 江苏中科梦兰电子科技有限公司 Automatic switching device for laptop and control method thereof
CN103793243A (en) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 Mobile equipment, screen locking/unlocking method of mobile equipment and protective shell
CN103616928A (en) * 2013-11-27 2014-03-05 深圳万虹科技发展有限公司 Tablet computer with soft leather keyboard protective sleeve

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108010761A (en) * 2016-10-28 2018-05-08 研能科技股份有限公司 Liftable keyboard structure
CN108010760A (en) * 2016-10-28 2018-05-08 研能科技股份有限公司 Liftable keyboard structure

Similar Documents

Publication Publication Date Title
CN102402661B (en) Multi-level access lock screen
AU2015280834B2 (en) Foldable electronic apparatus and interfacing method thereof
US9183373B2 (en) Secure input via a touchscreen
CN102210134A (en) Intelligent input device lock
CN101697181A (en) Unlocking a device by performing gestures on an unlock image
CN104361272A (en) Fingerprint input information processing method and system and mobile terminal
CN101021762A (en) Touch screen locking device and method
CN102203705B (en) A touch-off method and wireless hand-held device
JP2011129084A (en) Touch control lock circuit structure operated by hand gesture or graphic form, and operating method
CN1591296A (en) Computer apparatus capable of cooperatively controlling touchpad and keyboard and control method therefor
CN103294366A (en) Screen unlocking method and electronic equipment
JP2002082734A (en) Device and method for information processing and program storage medium
CN103440445A (en) Electronic equipment unlocking control method and system
JP2014506361A (en) Environment-dependent dynamic range control for gesture recognition
US20050122318A1 (en) Data processing device
CN103324431A (en) Electronic apparatus and control method thereof
CN103744604B (en) An information processing method and an electronic device
US20120192100A1 (en) Method and apparatus for locking and unlocking multiple operating system environments with a single gesture input
EP2720133A2 (en) Apparatus and method for unlocking screen and executing operation in a portable terminal
CN101387915B (en) Touching keyboard control system and method
CN102495768B (en) Instruction processing method and terminal equipment
CN104778397B (en) The information processing apparatus and method
CN102262465B (en) And an electronic device having a touch input method for a touch input unit
US8417971B2 (en) Data processing device and data processing method
CN101739204A (en) Method and device for selecting multiple objects in batches and touch screen terminal

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination