CN1700175A - Computer system, method and medium for switching operation system - Google Patents
Computer system, method and medium for switching operation system Download PDFInfo
- Publication number
- CN1700175A CN1700175A CNA2005100710410A CN200510071041A CN1700175A CN 1700175 A CN1700175 A CN 1700175A CN A2005100710410 A CNA2005100710410 A CN A2005100710410A CN 200510071041 A CN200510071041 A CN 200510071041A CN 1700175 A CN1700175 A CN 1700175A
- Authority
- CN
- China
- Prior art keywords
- operating system
- computer system
- information
- state
- switching method
- 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.)
- Granted
Links
Images
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
-
- 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/46—Multiprogramming arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Power Sources (AREA)
Abstract
提供一种在具有至少两个操作系统的计算机系统中的操作系统切换方法。该操作系统切换方法包括:接收将当前运行的第一操作系统切换至第二操作系统的命令;使计算机系统响应于该命令转换至低功率休眠状态;以及利用转换的状态中的第二操作系统引导计算机系统。
An operating system switching method in a computer system with at least two operating systems is provided. The operating system switching method includes: receiving a command to switch a currently running first operating system to a second operating system; causing the computer system to transition to a low-power sleep state in response to the command; and utilizing the second operating system in the transitioned state Boot the computer system.
Description
技术领域Technical field
本发明涉及一种多操作系统,尤其涉及一种具有安装在其上的多操作系统的计算机系统中的操作系统切换方法。The invention relates to a multi-operating system, in particular to an operating system switching method in a computer system with multiple operating systems installed thereon.
背景技术 Background technique
尽管过去单一的操作系统被安装在一个计算机系统中,但是计算机技术的发展已使两个或更多的操作系统可被安装在一个计算机系统上。具有两个或更多操作系统安装在其中的操作系统配置被称作多操作系统。Although a single operating system was installed in one computer system in the past, the development of computer technology has enabled two or more operating systems to be installed on one computer system. An operating system configuration that has two or more operating systems installed in it is called a multi-operating system.
从而,一旦期望的多操作系统配置被构建,则用户变得能够在适当的操作系统中执行期望的计算任务。在计算任务期间,如果需要执行不同的计算任务,则计算机系统必须从一个操作系统切换至另一操作系统。从而,具有多操作系统的计算机系统典型地提供操作系统切换功能。Thus, once the desired multi-operating system configuration is constructed, the user becomes able to perform the desired computing task in the appropriate operating system. During a computing task, if a different computing task needs to be performed, the computer system must switch from one operating system to another. Thus, computer systems with multiple operating systems typically provide operating system switching functionality.
图1是示出传统的操作系统切换方法的流程图。为了方便解释,图1中示出在其中安装有Windows和Linux操作系统的计算机系统中的操作系统切换方法。FIG. 1 is a flowchart illustrating a conventional operating system switching method. For convenience of explanation, an operating system switching method in a computer system in which Windows(R) and Linux(R) operating systems are installed is shown in FIG.
在步骤S100,假设Windows操作系统被引导并正运行正常。在此情况下,在步骤S110和S120,当用户想要使用预定的短键(short key)从Windows操作系统切换至Linux操作系统,Windows操作系统将计算机系统的电源管理状态切换至软关机状态S5,其将参照图2做更详细地描述。换言之,计算机系统使用电源管理功能用来切换操作系统。In step S100, it is assumed that the Windows(R) operating system is booted and running normally. In this case, in steps S110 and S120, when the user wants to use a predetermined short key (short key) to switch from the Windows® operating system to the Linux® operating system, the Windows® operating system switches the power management state of the computer system to the software The power-off state S5 will be described in more detail with reference to FIG. 2 . In other words, the computer system uses the power management function to switch operating systems.
当切换传统的操作系统时,在步骤S120,电源管理状态被转至与S5状态相应的电源管理状态240(图2),从而Windows操作系统被终止。在步骤S130当开启电源时,在步骤S140,bios引导启动。在此情况下,电源可通过用户的电源输入按钮或由计算机系统自动地被启动。当bios系统引导被执行时,用户在步骤S150被询问计算机系统将由哪个操作系统引导。用户选择Linux操作系统,其后,计算机系统在步骤S160由Linux操作系统来引导。这里,当然,如果用户选择Windows操作系统,则计算机系统将在步骤S100由Windows操作系统来引导。When switching the traditional operating system, at step S120, the power management state is transferred to the power management state 240 (FIG. 2) corresponding to the S5 state, so that the Windows(R) operating system is terminated. In step S130, when the power is turned on, in step S140, the bios is booted. In this case, power may be activated by the user's power input button or automatically by the computer system. When the bios system boot is performed, the user is asked which operating system the computer system will be booted by in step S150. The user selects the Linux(R) operating system, after which the computer system is booted by the Linux(R) operating system in step S160. Here, of course, if the user selects the Windows(R) operating system, the computer system will be booted by the Windows(R) operating system in step S100.
为了更好地理解传统的操作系统切换方法,现在大致描述一下计算机系统的电源管理功能。In order to better understand the traditional operating system switching method, a general description of the power management function of the computer system is now given.
计算机系统的电源管理系统由最初简单的功能发展为增强的功能。最近,英特尔公司、微软公司和东芝公司已建议高级配置和电源接口(ACPI)规范。根据ACPI规范,电源管理不是由BIOS(基本输入输出系统)来执行,而是由操作系统来执行。ACPI规范的详细内容被公开于“高级配置和电源接口规范1.0版”中。The power management system of the computer system develops from the initial simple function to the enhanced function. Recently, Intel Corporation, Microsoft Corporation, and Toshiba Corporation have proposed the Advanced Configuration and Power Interface (ACPI) specification. According to the ACPI specification, power management is not performed by the BIOS (Basic Input Output System), but by the operating system. Details of the ACPI specification are disclosed in "Advanced Configuration and Power Interface Specification Version 1.0."
图2是示出根据ACPI规范的计算机系统的多种状态以及各个状态的转变的状态示图。FIG. 2 is a state diagram illustrating various states of a computer system and transitions of each state according to the ACPI specification.
如图2中所示,计算机系统的全部状态有5个:传统状态210、G0状态220、G1状态230、G2状态240、以及G3状态250。As shown in FIG. 2 , there are five total states of the computer system: legacy state 210 , G0 state 220 , G1 state 230 , G2 state 240 , and G3 state 250 .
在传统状态210中,ACPI功能被禁止并且电源管理不被执行。在G0状态220中,计算机系统正常工作。在G1状态230中,即,休眠状态中,功率消耗被逐渐减少。在G2状态240中,即,软关机状态,只有最小的功率被消耗以感应软切换(用于电源开/关的计算机系统的切换)。在G3状态250中,即,机械关机状态,电源被切断。In legacy state 210, ACPI functionality is disabled and power management is not performed. In the G0 state 220, the computer system is functioning normally. In the G1 state 230, ie, the sleep state, power consumption is gradually reduced. In the G2 state 240, ie, the soft off state, only minimal power is consumed to sense soft switching (switching of the computer system for power on/off). In the G3 state 250, ie, the mechanical shutdown state, the power is cut off.
在ACPI功能被使用并且电被供给的状态中,计算机系统具有6阶休眠状态:S0至S5。S0状态相当于G0状态220。状态S1至S4232、234、236、和238(以下,称为低功率休眠状态)与G1状态230相应。S5状态与G2状态240相应。在低功率休眠状态232、234、236、和238中,根据计算机系统的运行状态功率消耗被逐渐减少。在此状态中,S1状态232是低功率休眠状态,计算机系统的所有状态被存储在其中,并且S2状态234是类似于S1状态232的低功率休眠状态,但是CPU高速缓存和系统高速缓存没有被存储在S2状态234中。S3状态236是类似于S1状态232的低功率状态,但是除存储器信息之外的关于硬件信息的丢失。在S4状态238中,即,低功率休眠状态中,硬件停止工作。在S4状态238中,电源几乎被切断,从而,要花费时间以重新使用S4状态238。然而,先前被运行的操作系统的环境,诸如存储器信息、多种应用程序的信息、或者数据信息被存储在硬盘中,其被称作镜像备份。In a state where the ACPI function is used and power is supplied, the computer system has 6 stages of sleep states: S0 to S5. The S0 state is equivalent to the G0 state 220 . States S1 to S4 232 , 234 , 236 , and 238 (hereinafter, referred to as low-power sleep states) correspond to the G1 state 230 . The S5 state corresponds to the G2 state 240 . In low power sleep states 232, 234, 236, and 238, power consumption is gradually reduced according to the operating state of the computer system. In this state, the S1 state 232 is a low power sleep state in which all states of the computer system are stored, and the S2 state 234 is a low power sleep state similar to the S1 state 232, but the CPU cache and system cache are not Stored in S2 state 234. The S3 state 236 is a low power state similar to the S1 state 232, but with the loss of hardware-related information other than memory information. In the S4 state 238, the low power sleep state, the hardware stops working. In the S4 state 238, the power is almost cut off, and thus, it takes time to reuse the S4 state 238. However, the environment of the previously run operating system, such as memory information, information of various application programs, or data information is stored in the hard disk, which is called mirror backup.
如图1和2所示,在传统的操作系统切换方法中,在当前的操作系统被完全地终止之后,bios引导被执行并且由将被切换的操作系统进行的引导其后被执行。必要时,在bios引导时或其后,可执行请用户选择操作系统的处理。As shown in FIGS. 1 and 2, in the conventional OS switching method, after the current OS is completely terminated, bios booting is performed and booting by the OS to be switched is performed thereafter. If necessary, a process of asking the user to select an operating system may be performed at the time of bios booting or thereafter.
换言之,在终止当前操作系统的过程中,切换操作系统需要的全部时间被延长并且诸如用户选择操作系统的不必要的用户操作被要求。对于需要更快速引导的多操作系统,需要解决这些问题。In other words, in the process of terminating the current operating system, the overall time required to switch the operating system is extended and unnecessary user operations such as selection of the operating system by the user are required. For multiple operating systems that require faster boot, these issues need to be addressed.
另外,在将当前操作系统切换至用于特定目的的操作系统时,未被用于该特定目的的其它处理或硬件也被运行,其导致系统资源或功率的不必要消耗。因此,为了节省系统资源和功率,需要的是只运行用于执行该特定目的所需要的处理或硬件。In addition, when switching the current operating system to an operating system for a specific purpose, other processing or hardware not used for the specific purpose is also executed, which results in unnecessary consumption of system resources or power. Therefore, to conserve system resources and power, it is desirable to run only the processing or hardware needed to perform that particular purpose.
发明内容Contents of Invention
发明另外的方面和/或优点将在下面的描述中部分地阐述,可从描述中部分地变得清楚,或者可通过对发明的实践得到。Additional aspects and/or advantages of the invention will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be acquired by practice of the invention.
本发明提供一种操作系统切换方法,通过此方法,当在安装有多操作系统的计算机系统中切换操作系统时,计算机系统的状态被转向特定状态并且在过渡状态中,操作系统被切换至需要的操作系统,从而,减少了切换操作系统需要的时间并且不需要用户的额外操作。The present invention provides an operating system switching method, by which, when switching operating systems in a computer system with multiple operating systems installed, the state of the computer system is shifted to a specific state and in the transition state, the operating system is switched to the required operating system, thereby reducing the time required for switching the operating system and requiring no additional operations by the user.
本发明还提供一种操作系统切换方法,通过此方法,在操作系统切换期间,先前运行的操作系统的环境信息被存储,从而即使当前的操作系统被恢复为先前运行的操作系统,先前运行的系统的环境也被保持。The present invention also provides an operating system switching method, by which, during operating system switching, the environment information of the previously running operating system is stored, so that even if the current operating system is restored to the previously running operating system, the previously running operating system The environment of the system is also maintained.
本发明还提供一种操作系统切换方法,通过此方法,当当前的操作系统被切换至为特定目的安装的操作系统时,系统最优化的低功率状态被保持。The present invention also provides an operating system switching method, by which the optimal low power state of the system is maintained when the current operating system is switched to a purpose-installed operating system.
参照下面的描述、附图以及所附的权利要求,本发明的上述目的以及其它目的、特征和优点对于本领域技术人员将变得清楚。The above and other objects, features and advantages of the present invention will become apparent to those skilled in the art with reference to the following description, drawings and appended claims.
根据本发明的一方面,提供一种在具有至少两个操作系统的计算机系统中的操作系统切换方法,该操作系统切换方法包括:接收将当前运行的第一操作系统切换至第二操作系统的命令;使计算机系统响应于该命令转换至低功率休眠状态;以及利用转换的状态中的第二操作系统引导计算机系统。According to one aspect of the present invention, there is provided an operating system switching method in a computer system having at least two operating systems, the operating system switching method comprising: receiving a command to switch the currently running first operating system to the second operating system causing the computer system to transition to a low-power sleep state in response to the command; and booting the computer system with the second operating system in the transitioned state.
命令的接收可包括利用计算机系统中提供的输入单元接收命令。输入单元可包括:用于切换操作系统的用户输入装置、无线信号接收模块、以及网络接口模块。The receiving of the command may include receiving the command using an input unit provided in the computer system. The input unit may include: a user input device for switching operating systems, a wireless signal receiving module, and a network interface module.
低功率休眠状态可包括根据高级配置和电源接口(ACPI)规范的S3电源管理状态。Low power sleep states may include S3 power management states according to the Advanced Configuration and Power Interface (ACPI) specification.
使计算机系统转换至低功率休眠状态的步骤可包括:设置指示转换的低功率休眠状态的电源管理状态信息以及指示利用第二操作系统的计算机系统的引导的操作系统切换信息,并且在转换的状态中利用第二操作系统的计算机的引导可包括根据电源管理状态信息和操作系统切换信息利用第二操作系统引导计算机系统。Transitioning the computer system to the low-power sleep state may include setting power management state information indicating the transitioned low-power sleep state and operating system switching information indicating booting of the computer system utilizing the second operating system, and in the transitioned state The booting of the computer using the second operating system may include booting the computer system using the second operating system according to the power management state information and the operating system switching information.
使计算机系统转换至低功率休眠状态的步骤可包括当在预定的存储区域接收到命令时,存储关于第一操作系统的环境的信息。该信息可包括:系统资源信息、程序信息、或数据信息。在根据ACPI规范的S4电源管理状态中,该信息可被存储在预定的存储区域中。Transitioning the computer system to a low-power sleep state may include storing information on an environment of the first operating system when a command is received at a predetermined storage area. The information may include: system resource information, program information, or data information. In the S4 power management state according to the ACPI specification, this information may be stored in a predetermined storage area.
利用转换的状态中的第二操作系统引导计算机系统的步骤可包括从预定的存储区域提取关于操作系统的环境的信息并且利用该提取的信息提供第二操作系统的环境,提取的信息包括关于在将第二操作系统切换至第一操作系统之前运行的第二操作系统的环境的信息。在根据ACPI规范的S4电源管理状态中,该信息可被存储在预定的存储区域中。The step of booting the computer system with the second operating system in the transitioned state may include extracting information about the environment of the operating system from a predetermined storage area and providing the environment of the second operating system using the extracted information, the extracted information including information about the Information about the environment of the second operating system running before the second operating system is switched to the first operating system. In the S4 power management state according to the ACPI specification, this information may be stored in a predetermined storage area.
根据本发明的另一方面,提供一种具有至少两个操作系统的计算机系统,该计算机系统包括:接收模块,其接收将当前运行的第一操作系统切换至第二操作系统的命令;状态控制模块,其使计算机系统响应于该命令转换至低功率休眠状态;以及操作系统切换模块,其利用转换的状态中的第二操作系统引导计算机系统。According to another aspect of the present invention, a computer system with at least two operating systems is provided, and the computer system includes: a receiving module, which receives a command to switch the currently running first operating system to the second operating system; a module that causes the computer system to transition to a low power sleep state in response to the command; and an operating system switching module that boots the computer system with a second operating system in the transitioned state.
低功率休眠状态可包括根据高级配置和电源接口(ACPI)规范的S3电源管理状态。Low power sleep states may include S3 power management states according to the Advanced Configuration and Power Interface (ACPI) specification.
状态控制模块可将指示转换的低功率休眠状态的电源管理状态信息和指示利用第二操作系统的计算机系统的引导的操作系统切换信息发送至操作系统切换模块,并且操作系统切换模块可根据电源管理状态信息和操作系统切换信息利用第二操作系统引导计算机系统。The state control module may send power management state information indicating transitioned low power sleep state and operating system switching information indicating booting of the computer system utilizing the second operating system to the operating system switching module, and the operating system switching module may, according to the power management The status information and operating system switching information boot the computer system with the second operating system.
操作系统切换模块执行包括bios ROM的操作系统切换。The operating system switching module performs operating system switching including the bios ROM.
计算机系统可还包括存储模块,其存储关于第二操作系统的环境的信息,其中,该计算机系统在被切换至第一操作系统之前正在运行,其中,操作系统切换模块从存储模块提取信息并利用提取的信息执行操作系统切换以提供第二操作系统的环境。根据ACPI规范,存储模块可将信息存储在S4电源管理状态中。The computer system may further include a storage module that stores information about an environment of a second operating system that the computer system was running before being switched to the first operating system, wherein the operating system switching module extracts the information from the storage module and utilizes The extracted information performs operating system switching to provide an environment of a second operating system. According to the ACPI specification, the storage module may store information in the S4 power management state.
根据本发明的另一方面,提供一种在具有至少两个操作系统的计算机系统中的操作系统切换方法,该操作系统切换方法包括:引导当前运行的第一操作系统至第二操作系统以向用户提供多媒体内容;根据多媒体内容的类型控制包括于计算机系统中的至少两种硬件状态;以及在受控制的硬件状态中向用户提供多媒体内容。According to another aspect of the present invention, there is provided an operating system switching method in a computer system having at least two operating systems, the operating system switching method includes: booting the currently running first operating system to the second operating system to The user provides multimedia content; controls at least two hardware states included in the computer system according to the type of the multimedia content; and provides the user with the multimedia content in the controlled hardware state.
根据本发明的另一方面,提供一种在具有至少两个操作系统的计算机系统中的操作系统切换方法,该操作系统切换方法包括:引导当前运行的第一操作系统至第二操作系统以向用户提供多媒体内容;提供用户接口以向用户提供多媒体内容的列表;使计算机系统被设置为低功率状态模式以便运行由用户从列表中选择的多媒体内容;以及在低功率状态模式下运行选择的多媒体内容。According to another aspect of the present invention, there is provided an operating system switching method in a computer system having at least two operating systems, the operating system switching method includes: booting the currently running first operating system to the second operating system to providing the multimedia content by the user; providing a user interface to provide the user with a list of the multimedia content; causing the computer system to be placed in a low power state mode to run the multimedia content selected by the user from the list; and running the selected multimedia in the low power state mode content.
根据本发明的另一方面,提供至少一种计算机可读介质,其存储控制至少一个处理器以执行下面方法的指令,该方法包括:接收将计算机系统中当前运行的第一操作系统切换至第二操作系统的命令;使计算机系统响应于该命令转换至低功率休眠状态;以及利用第二操作系统引导计算机系统。According to another aspect of the present invention, there is provided at least one computer-readable medium storing instructions for controlling at least one processor to perform a method comprising: switching from a first operating system currently running in a computer system to a second operating system a command of the second operating system; causing the computer system to transition to a low power sleep state in response to the command; and booting the computer system using the second operating system.
根据本发明的另一方面,提供至少一种计算机可读介质,其存储控制至少一个处理器以执行下面方法的指令,该方法包括:引导当前运行的第一操作系统至第二操作系统以向用户提供多媒体内容;根据多媒体内容的类型控制包括于计算机系统中的至少两种硬件状态;以及在受控制的硬件状态中向用户提供多媒体内容。According to another aspect of the present invention, there is provided at least one computer-readable medium storing instructions for controlling at least one processor to perform a method comprising: booting a currently running first operating system to a second operating system to The user provides multimedia content; controls at least two hardware states included in the computer system according to the type of the multimedia content; and provides the user with the multimedia content in the controlled hardware state.
根据本发明的另一方面,提供至少一种计算机可读介质,其存储控制至少一个处理器以执行下面方法的指令,该方法包括:引导当前运行的第一操作系统至第二操作系统以向用户提供多媒体内容;提供用户接口以向用户提供多媒体内容的列表;使计算机系统被设置为低功率状态模式以便运行由用户从列表中选择的多媒体内容;以及在低功率状态模式下运行选择的多媒体内容。According to another aspect of the present invention, there is provided at least one computer-readable medium storing instructions for controlling at least one processor to perform a method comprising: booting a currently running first operating system to a second operating system to providing the multimedia content by the user; providing a user interface to provide the user with a list of the multimedia content; causing the computer system to be placed in a low power state mode to run the multimedia content selected by the user from the list; and running the selected multimedia in the low power state mode content.
附图说明Description of drawings
通过下面的结合附图进行的对实施例的描述,本发明的上述和/或其它方面和优点将会变得更加清楚,其中:The above and/or other aspects and advantages of the present invention will become more clear through the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1是示出传统的操作系统切换方法的流程图;Fig. 1 is a flowchart illustrating a traditional operating system switching method;
图2是示出根据ACPI规范的计算机系统的状态以及每一状态转换的状态示图;2 is a state diagram illustrating the states of a computer system according to the ACPI specification and each state transition;
图3是示出根据本发明的示例性实施例的用于执行操作系统切换的计算机系统的方框图;3 is a block diagram illustrating a computer system for performing operating system switching according to an exemplary embodiment of the present invention;
图4是示出根据本发明的示例性实施例的操作系统切换,即,第一操作系统切换模式的状态示图;4 is a state diagram illustrating OS switching, that is, a first OS switching mode, according to an exemplary embodiment of the present invention;
图5是示出如图4所示的操作系统切换方法的流程图;Fig. 5 is a flowchart showing the operating system switching method as shown in Fig. 4;
图6是示出根据本发明的另一示例性实施例的操作系统切换,即,第二操作系统切换模式的状态示图;6 is a state diagram illustrating OS switching according to another exemplary embodiment of the present invention, that is, a second OS switching mode;
图7是示出如图6所示的操作系统切换方法的流程图;Fig. 7 is a flowchart showing the operating system switching method as shown in Fig. 6;
图8是示出根据本发明的另一示例性实施例的操作系统切换方法的流程图;FIG. 8 is a flowchart illustrating a method for operating system switching according to another exemplary embodiment of the present invention;
图9是示出根据本发明的另一示例性实施例的操作系统切换方法的流程图;FIG. 9 is a flowchart illustrating a method for operating system switching according to another exemplary embodiment of the present invention;
图10是示出根据本发明的另一示例性实施例的用于控制低功率状态的计算机系统的方框图;10 is a block diagram illustrating a computer system for controlling a low power state according to another exemplary embodiment of the present invention;
图11是示出根据本发明的另一示例性实施例的控制低功率状态的方法的流程图;11 is a flowchart illustrating a method of controlling a low power state according to another exemplary embodiment of the present invention;
图12是示出根据如图10所示结构的用户接口的示例性示图。FIG. 12 is an exemplary diagram showing a user interface according to the structure shown in FIG. 10 .
具体实施方式 Detailed ways
现在将详细说明本发明的实施例,其实例由附图示出,其中,相同的标号始终指的是相同的部件。下面,示例性实施例被描述以参考附图解释本发明。Reference will now be made in detail to embodiments of the invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. Hereinafter, the exemplary embodiments are described in order to explain the present invention by referring to the figures.
根据本发明的示例性实施例,参照方法的流程图在下文中描述本发明。应理解流程图的每个方框、以及流程图中的方框的结合能够由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或者其它可编程数据处理设备以生产机器的处理器,从而,这些指令通过计算机或其它可编程数据处理设备的处理器执行以实现流程方框或方框结合中的指定的功能。这些计算机程序指令也可被存储在计算机可用或计算机可读的存储器中,其可指示计算机或其它可编程数据处理设备以特定的方式运行,从而,存储在计算机可用或计算机可读存储器中的指令产生制造物以实现流程方框或方框结合中的指定的功能。计算机程序指令也可被加载到计算机或其它可编程数据处理设备上以使一系列操作步骤在计算机或其它可编程设备上被执行以产生计算机执行的处理,从而在计算机或其它可编程设备上执行的指令提供实现流程方框或方框结合中的指定的功能。The invention is described hereinafter with reference to flowcharts of methods according to exemplary embodiments of the invention. It will be understood that each block of the flowchart illustrations, and combinations of blocks in the flowchart illustrations, can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, special-purpose computer, or other programmable data processing equipment to produce the processor of the machine, so that these instructions are executed by the processor of the computer or other programmable data processing equipment to realize the flow block or the specified function in a combination of boxes. These computer program instructions can also be stored in a computer-usable or computer-readable memory, which can instruct a computer or other programmable data processing device to operate in a specific way, so that the instructions stored in the computer-available or computer-readable memory Create artifacts to perform the specified functions in a process block or combination of blocks. Computer program instructions can also be loaded onto a computer or other programmable data processing device to cause a series of operational steps to be executed on the computer or other programmable device to generate computer-implemented processing, thereby executing The instructions provide the functionality specified in the implementation process block or combination of blocks.
另外,流程图的每一方框可表示模块、程序段或部分代码,其包括一个或多个可执行指令以实现特定的逻辑功能。同样应注意到,在某些替代的实现中,方框中示出的功能可异常发生。例如,连续所示的两方框实际上可实质上同时被执行或者方框有时可被以相反的顺序执行,这取决于有关的功能性。In addition, each block of the flowchart may represent a module, a program segment, or a portion of code, which includes one or more executable instructions to implement a specific logical function. It should also be noted that in some alternative implementations, the functionality noted in the blocks may occur exceptionally. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
同时,为了对于本发明的更好理解,假设根据本发明,Windows和Linux操作系统被安装在计算机系统中。然而,本发明并不限于Windows和Linux操作系统并且可包括除了Windows和Linux之处的其它操作系统或系统的任何组合以取代Windows和Linux。另外,尽管下面的例子指出Windows操作系统是默认的操作系统,但是诸如Linux的操作系统可被指定为默认的操作系统。Meanwhile, for a better understanding of the present invention, it is assumed that Windows(R) and Linux(R) operating systems are installed in the computer system according to the present invention. However, the present invention is not limited to Windows(R) and Linux(R) operating systems and may include other operating systems or any combination of systems other than Windows(R) and Linux(R) in place of Windows(R) and Linux(R). Additionally, although the examples below indicate that the Windows(R) operating system is the default operating system, an operating system such as Linux(R) could be designated as the default operating system.
图3是示出根据本发明的示例性实施例的用于执行操作系统切换的计算机系统300的方框图。该计算机系统300包括:接收模块330,其从用户接收操作系统切换命令;状态控制模块310,其响应于命令控制计算机系统300的状态;操作系统切换模块320,其响应于命令将当前操作系统切换至不同的操作系统;以及存储模块340,当切换操作系统时,其存储关于先前被运行的操作系统的环境的信息。FIG. 3 is a block diagram illustrating a
这里,在此使用的术语‘模块’通常指的是,但并不限于,诸如现场可编程门阵列(FPGA)或专用集成电路(ASIC)的软件或硬件部件,其执行某些任务。模块可方便地被配置为驻留在可寻址存储介质中以及被配置为执行一个或多个处理器。因此,模块可包括,例如,诸如软件部件、面向对象的软件部件、类部件和任务部件、进程、功能、属性、过程、子程序、程序码段、驱动、固件、微编码、电路、数据、数据库、数据结构、列表、数组以及变量等部件。用于在部件和模块中而设置的功能性可被结合为更少的部件和模块或者进一步被分离成另外的部件和模块。另外,部件和模块可被实现以便它们在通信系统中可被一个或多个计算机执行。Here, the term 'module' as used herein generally refers to, but is not limited to, a software or hardware component, such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), which performs certain tasks. A module may conveniently be configured to reside on the addressable storage medium and configured to execute on one or more processors. Thus, a module may include, for example, such components as software components, object-oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, program code segments, drivers, firmware, microcode, circuits, data, Components such as databases, data structures, lists, arrays, and variables. Functionality intended to be provided in components and modules may be combined into fewer components and modules or further separated into additional components and modules. Additionally, components and modules may be implemented so that they are executable by one or more computers in a communication system.
现在,模块的操作将在下面更加详细地描述。Now, the operation of the module will be described in more detail below.
如果工作在Windows操作系统下的用户利用预定的输入单元执行操作系统切换命令以便将当前的操作系统切换至Linux操作系统,则接收模块330接收该操作系统切换命令。在这种情况下,诸如鼠标、键盘、以及触摸屏等的用户输入装置可被用作输入单元。作为选择,当用户利用遥控器切换操作系统时,用于接收从遥控器发送的无线信号的无线信号接收模块可被用作输入单元。另外,当用户通过有线或无线网络执行操作系统切换时,则输入单元可包括网络接口模块。If a user working under the Windows(R) operating system executes an operating system switching command using a predetermined input unit to switch the current operating system to a Linux(R) operating system, the receiving
接收模块330将从输入单元接收的操作系统切换命令处理为‘事件的发生’并且将关于该事件的信息发送至状态控制模块310。在这种情况下,状态控制模块310将电源管理状态信息和操作系统切换信息发送至操作系统切换模块320,其中,电源管理状态信息指示计算机系统300的电源管理状态,操作系统切换信息指示利用Linux操作系统来执行的引导。在一实例中,电源管理状态信息可指示其中功率被部分供给计算机系统300的状态。在该实例中,其中功率被部分供给的状态可以是其中功率被供给至计算机系统300的所有系统资源和安装在该计算机系统上的所有装置以便系统资源和装置可运行的状态,或者可以是其中功率未被供给至计算机系统300的状态,例如,先前描述的‘低功率休眠状态’。电源管理信息还可指示诸如“系统终止”的状态。The receiving
同时,电源管理状态信息和操作系统切换信息可以消息格式被发送。Meanwhile, power management status information and operating system switching information may be sent in a message format.
操作系统切换模块320包括指示电源管理状态信息和操作系统切换信息的各个变量,并对变量设置从状态控制模块310接收的信息。以下,为了本发明的更好理解,指示电源管理状态信息的变量被称作‘Power_state_var’,并且指示操作系统切换信息的变量被称作‘InstantOn_var’。由于即使计算机系统300的电源被关闭,被设置给变量的值优选地也被保持,所以切换模块320可用诸如bios ROM通过附加电源运行的装置和或在该装置中运行的程序来实现。变量‘Power_state_var’可在一个变量中指示关于每一操作系统的电源管理状态。The
当变量‘Power_state_var’和变量‘InstantOn_var’被改变时,操作系统切换模块320将计算机系统300的电源管理状态变成在变量‘Power_state_var’中设置的电源管理状态。然后,通过利用在变量‘InstantOn_var’中设置的Linux操作系统开始引导。在这种情况下,电源管理状态可被限定为根据ACPI规范的电源管理状态S1至S4,即,先前描述的低功率休眠状态,以及,优选地,S3或S4状态。When the variable 'Power_state_var' and the variable 'InstantOn_var' are changed, the operating
当切换Linux操作系统时,用户可能仍想要保持Windows操作系统的环境。于是,关于Windows操作系统的环境的信息被存储在存储模块340中。在该实例中,存储模块340可为诸如硬盘等的非易失性存储介质。关于Windows操作系统的环境的信息可为诸如存储器的系统资源信息,如在存储器中堆栈的应用程序或执行后台工作的多种处理的程序信息、以及与程序相关的数据信息。另外,该信息可以以被存储在根据ACPI规范的S4电源管理状态中的方式被存储在存储模块340中。在该实例中,当用户将Windows操作系统切换至Linux操作系统并将Linux操作系统再次切换至Windows操作系统时,Windows操作系统的环境可被恢复。由设置在变量‘Power_state_var’中的值确定操作系统切换模块320是否恢复存储在存储模块340中的关于操作系统环境的信息。When switching to the Linux(R) operating system, the user may still want to maintain the Windows(R) operating system environment. Thus, information about the environment of the Windows(R) operating system is stored in the
例如,当用户想要将Windows操作系统切换至Linux操作系统,同时保持Windows操作系统的环境时,在变量‘Power_state_var’中设置的值在‘S4电源管理状态’下被设置,并且关于Windows操作系统的环境的信息被存储在存储模块340。其后,当恢复至Windows操作系统时,操作系统切换模块320发现在变量‘Power_state_var’中设置的值是在‘S4电源管理状态’下被设置的,提取先前被存储在存储模块340中的信息,并且恢复Windows操作系统的环境。For example, when the user wants to switch the Windows® operating system to the Linux® operating system while maintaining the environment of the Windows® operating system, the value set in the variable 'Power_state_var' is set under the 'S4 power management state', and about The information of the environment of the Windows(R) operating system is stored in the
在这种情况下,当用户执行操作系统切换命令时,可利用诸如图形用户界面(GUI)的接口询问用户,用户是否在存储模块340中存储关于当前操作系统的环境的信息。另外,指示操作系统切换的代码可根据操作系统切换方法而变化。In this case, when a user executes an OS switching command, an interface such as a Graphical User Interface (GUI) may be used to ask the user whether to store information about the environment of the current OS in the
为了本发明的更好理解,其中在操作系统切换期间关于操作系统的环境的信息未被存储的情况被称作‘第一操作系统切换模式’,并且其中在操作系统切换期间,关于操作系统的环境的信息被存储的情况被称作‘第二操作系统切换模式’。For a better understanding of the present invention, the situation in which the information about the environment of the operating system is not stored during the switching of the operating system is referred to as a 'first operating system switching mode', and wherein during the switching of the operating system, the information about the operating system The case where the information of the environment is stored is referred to as a 'second operating system switching mode'.
图4是示出根据本发明的示例性实施例的操作系统切换,即,第一操作系统切换模式的状态示图。FIG. 4 is a state diagram illustrating OS switching, ie, a first OS switching mode, according to an exemplary embodiment of the present invention.
例如,假设在步骤410,当前Windows操作系统被正常引导并运行。该状态与ACPI规范的S0电源管理状态相应。在这个实例中,在步骤420,当关于来自用户的操作系统切换请求的事件发生时,则在步骤430,电源管理状态被切换至ACPI规范的S3电源管理状态。其后,当前的Windows操作系统由Linux操作系统引导,以便在步骤440建立Linux操作系统的环境。在步骤440的状态中可有两种情况:一种在步骤450由用户将计算机系统的电源关闭的情况;和一种在步骤470,Linux操作系统被切换至Windows操作系统的情况。For example, assume that at
如果用户关闭计算机系统的电源并且在步骤460再次开启电源,则计算机系统由预定的操作系统引导。图4示出计算机系统由Windows操作系统引导。If the user turns off the power of the computer system and turns it on again at
在步骤470,如果用户将Linux操作系统切换回Windows操作系统,则在步骤480,电源管理状态被切换至ACPI规范的S3电源管理状态,并且在步骤410,该计算机系统由Windows操作系统引导以便建立Windows操作系统的环境。At
图5是示出图4所示的操作系统切换方法的流程图。FIG. 5 is a flowchart showing the operating system switching method shown in FIG. 4 .
例如,假设在步骤S505,当前的Windows操作系统被正常引导并运行。在这种情况下,当指示用户切换操作系统的事件发生时,在步骤S510和S515,指示ACPI规范的S3电源管理状态的值被设置在变量‘Power_state_var’中。然后,在步骤S520,变量‘InstantOn_var’被设置为‘真’,并且在步骤S525,bios引导开始。同时,其中变量‘InstantOn_var’被设置为‘真’的情况指示当前的操作系统被切换至现在还未运行的操作系统,并且其中变量‘InstantOn_var’被设置为‘假’的情况指示当前的操作系统没有被切换至现在未运行的操作系统,即,当前正运行的操作系统被保持。优选地,变量‘InstantOn_var’的初始值被设置为‘假’,并且变量‘Power_state_var’和变量‘InstantOn_var’被存储在bios ROM中。For example, assume that in step S505, the current Windows(R) operating system is normally booted and running. In this case, when an event instructing the user to switch the operating system occurs, a value indicating the S3 power management state of the ACPI specification is set in the variable 'Power_state_var' in steps S510 and S515. Then, at step S520, the variable 'InstantOn_var' is set to 'true', and at step S525, the bios booting starts. Meanwhile, a case where the variable 'InstantOn_var' is set to 'true' indicates that the current operating system is switched to an operating system that is not running yet, and a case where the variable 'InstantOn_var' is set to 'false' indicates that the current operating system The operating system that is not running now is not switched, that is, the operating system that is currently running is maintained. Preferably, the initial value of the variable 'InstantOn_var' is set to 'false', and the variable 'Power_state_var' and the variable 'InstantOn_var' are stored in the bios ROM.
在步骤S525,当bios引导开始时,如果变量‘InstantOn_var’被设置为‘真’,则当前的操作系统被切换至Linux操作系统。在这种情况下,在步骤S535,指示ACPI规范的S0电源管理状态的值被设置给变量‘Power_state_var’。然后,在步骤S540,计算机系统由Linux操作系统引导,并且变量‘InstantOn_var’被设置为‘假’。这是因为,如果变量‘InstantOn_var’被设置为‘真’,则操作系统应该被切换至Windows操作系统。然后,在步骤S550,Linux操作系统运行。In step S525, when the bios boot starts, if the variable 'InstantOn_var' is set to 'true', the current operating system is switched to the Linux® operating system. In this case, at step S535, a value indicating the S0 power management state of the ACPI specification is set to the variable 'Power_state_var'. Then, in step S540, the computer system is booted by the Linux® operating system, and the variable 'InstantOn_var' is set to 'false'. This is because, if the variable 'InstantOn_var' is set to 'true', the operating system should be switched to the Windows(R) operating system. Then, in step S550, the Linux(R) operating system runs.
同时,在步骤S555,可通过按下被关闭的计算机系统的电源按钮来运行计算机系统。在这种情况下,在步骤S525,bios引导如同在传统方法中开始。在这种情况下,假设引导的操作系统被初始设置为Windows操作系统。因此,由于变量‘InstantOn_var’被设置为‘假’,所以当前的操作系统不被切换至Linux操作系统。Meanwhile, at step S555, the computer system may be operated by pressing a power button of the computer system that is turned off. In this case, in step S525, bios booting starts as in the conventional method. In this case, it is assumed that the booted operating system is initially set to the Windows(R) operating system. Therefore, since the variable 'InstantOn_var' is set to 'false', the current operating system is not switched to the Linux(R) operating system.
在步骤S560,当变量‘Power_state_var’被设置为指示与ACPI规范的S3电源管理状态相应的状态的值时,在步骤S565,变量‘Power_state_var’应该被设置为与ACPI规范的S0电源管理状态相应的值。这是因为计算机系统被阻止保持在ACPI规范的S3电源管理状态。In step S560, when the variable 'Power_state_var' is set to a value indicating a state corresponding to the S3 power management state of the ACPI specification, in step S565, the variable 'Power_state_var' should be set to a value corresponding to the S0 power management state of the ACPI specification value. This is because the computer system is prevented from remaining in the S3 power management state of the ACPI specification.
图6是示出根据本发明的另一示例性实施例的操作系统切换,即,第二操作系统切换的状态示图。FIG. 6 is a state diagram illustrating OS switching according to another exemplary embodiment of the present invention, that is, a second OS switching.
例如,假设在步骤S610,当前的Windows操作系统被正常引导并运行。该状态与ACPI规范的S0电源管理状态相应。在这种情况下,在步骤620,当关于来自用户的操作系统切换请求的事件发生时,则在步骤630,电源管理状态被切换至ACPI规范的S4电源管理状态。其后,在步骤S635,关于Windows操作系统的环境的信息被镜像并存储,并且计算机系统由Linux操作系统引导,以便在步骤640建立Linux操作系统的环境。在步骤640的状态中可有两种情况:一种在步骤650由用户将计算机系统的电源关闭的情况;和一种在步骤670,Linux操作系统被切换至Windows操作系统的情况。For example, assume that in step S610, the current Windows(R) operating system is normally booted and running. This state corresponds to the S0 power management state of the ACPI specification. In this case, at
如果用户关闭计算机系统的电源并且在步骤660再次开启电源,则计算机系统由预定的操作系统引导。If the user turns off the power of the computer system and turns it on again at
图6示出计算机系统由Windows操作系统引导。在这种情况下,在步骤S635存储的镜像在步骤S665被恢复。Figure 6 shows the computer system being booted by the Windows(R) operating system. In this case, the image stored at step S635 is restored at step S665.
在步骤S670,如果用户将Linux操作系统切换回Windows操作系统,则在步骤S680,电源管理状态被切换至ACPI规范的S4电源管理状态,并且在步骤610,计算机系统由Windows操作系统引导,以便建立Windows操作系统的环境。即使在这种情况下,在步骤635存储的镜像在步骤685被恢复。In step S670, if the user switches the Linux® operating system back to the Windows® operating system, then in step S680, the power management state is switched to the S4 power management state of the ACPI specification, and in
图7是示出图6所示的示例性操作系统切换方法的流程图。FIG. 7 is a flow chart illustrating the exemplary operating system switching method shown in FIG. 6 .
例如,假设在步骤S705,当前的Windows操作系统被正常引导并运行。在这种情况下,当指示用户切换操作系统的事件发生时,在步骤S710和S715,指示ACPI规范的S4电源管理状态的值被设置在变量‘Power_state_var’中。然后,在步骤S720,变量‘InstantOn_var’被设置为‘真’。For example, assume that in step S705, the current Windows(R) operating system is normally booted and running. In this case, when an event instructing the user to switch the operating system occurs, a value indicating the S4 power management state of the ACPI specification is set in the variable 'Power_state_var' at steps S710 and S715. Then, at step S720, the variable 'InstantOn_var' is set to 'true'.
然后,在步骤S722,关于Windows操作系统的环境的信息被镜像并存储,并且在步骤S725,bios引导开始。Then, in step S722, information about the environment of the Windows(R) operating system is mirrored and stored, and in step S725, bios booting starts.
同时,其中变量‘InstantOn_var’被设置为‘真’的情况指示当前的操作系统被切换至现在还未运行的操作系统,并且其中变量‘InstantOn_var’被设置为‘假’的情况指示当前的操作系统没有被切换至现在未运行的操作系统,即,当前正运行的操作系统被保持。优选地,变量‘InstantOn_var’的初始值被设置为‘假’,并且变量‘Power_state_var’和变量‘InstantOn_var’被存储在bios ROM中。Meanwhile, a case where the variable 'InstantOn_var' is set to 'true' indicates that the current operating system is switched to an operating system that is not running yet, and a case where the variable 'InstantOn_var' is set to 'false' indicates that the current operating system The operating system that is not running now is not switched, that is, the operating system that is currently running is maintained. Preferably, the initial value of the variable 'InstantOn_var' is set to 'false', and the variable 'Power_state_var' and the variable 'InstantOn_var' are stored in the bios ROM.
在步骤S725,当bios引导开始时,在步骤S740,计算机系统由Linux操作系统引导,并且变量‘InstantOn_var’被设置为‘假’。这是因为,如果变量‘InstantOn_var’被设置为‘真’,则操作系统被切换至Windows操作系统。然后,在步骤S750,Linux操作系统运行。In step S725, when the bios boot starts, in step S740, the computer system is booted by the Linux® operating system, and the variable 'InstantOn_var' is set to 'false'. This is because, if the variable 'InstantOn_var' is set to 'true', the operating system is switched to the Windows® operating system. Then, in step S750, the Linux(R) operating system runs.
同时,在步骤S755,可通过按下被关闭的计算机系统的电源按钮来运行计算机系统。在这种情况下,在步骤S725,bios引导如同在传统方法中开始。在这种情况下,假设引导的操作系统被初始设置为Windows操作系统。因此,由于变量‘InstantOn_var’被设置为‘假’,所以当前的操作系统不被切换至Linux操作系统。Meanwhile, at step S755, the computer system may be operated by pressing a power button of the computer system that is turned off. In this case, at step S725, bios booting starts as in the conventional method. In this case, it is assumed that the booted operating system is initially set to the Windows(R) operating system. Therefore, since the variable 'InstantOn_var' is set to 'false', the current operating system is not switched to the Linux(R) operating system.
当变量‘Power_state_var’被设置为指示与ACPI规范的S4电源管理状态相应的状态的值时(在步骤S760),在步骤S765,变量‘Power_state_var’应该被设置为与ACPI规范的S0电源管理状态相应的值。这是因为计算机系统被阻止保持在ACPI规范的S4电源管理状态。然后,在步骤S722存储的镜像在步骤S767被恢复。When the variable 'Power_state_var' is set to a value indicating a state corresponding to the S4 power management state of the ACPI specification (at step S760), at step S765, the variable 'Power_state_var' should be set to correspond to the S0 power management state of the ACPI specification value. This is because the computer system is prevented from remaining in the S4 power management state of the ACPI specification. Then, the image stored at step S722 is restored at step S767.
同时,假设Linux操作系统被用于特定的目的,例如,为了看电影、听音乐、或使用多种图像文件浏览照片或图片的目的。在这种情况下,如果未用于上述目的的多种处理或硬件被允许不断运行,则引起系统资源和功率的不必要消耗。因此,当Windows操作系统被切换至Linux操作系统时,需要允许只有上述目的所需的处理或硬件运行(以下,称作‘低功率状态模式’)的过程。Meanwhile, it is assumed that the Linux(R) operating system is used for a specific purpose, for example, for the purpose of watching movies, listening to music, or browsing photos or pictures using various image files. In this case, unnecessary consumption of system resources and power is caused if various processes or hardware not used for the above-mentioned purpose are allowed to run continuously. Therefore, when the Windows(R) operating system is switched to the Linux(R) operating system, a process of allowing only processing or hardware necessary for the above purpose to operate (hereinafter, referred to as 'low power state mode') is required.
图8是示出根据本发明的另一示例性实施例的操作系统切换方法,即,在图5所示的操作系统切换期间设置低功率状态的操作的流程图。图8的步骤S805至S835通常与图5的步骤S505至S535相应。图8的步骤S840至S865通常与图5的步骤S540至S565相应。FIG. 8 is a flowchart illustrating an operating system switching method according to another exemplary embodiment of the present invention, that is, an operation of setting a low power state during the operating system switching shown in FIG. 5 . Steps S805 to S835 in FIG. 8 generally correspond to steps S505 to S535 in FIG. 5 . Steps S840 to S865 of FIG. 8 generally correspond to steps S540 to S565 of FIG. 5 .
当Windows操作系统被切换至Linux操作系统时,可设置低功率状态模式。例如,当指示低功率状态模式的有效和非有效状态的变量是‘PowerSavingMode’时,如果该变量的值在步骤S837被设置为‘开’,则在步骤S840,当计算机系统由Linux操作系统引导时,低功率状态的环境被建立。然而,当计算机系统由Windows操作系统引导时,在步骤S870,变量‘PowerSavingMode’的值被设置为‘关’,以便低功率状态模式被取消。同时,现在将参照图10和11描述当计算机系统由Linux操作系统引导时,通过设置变量‘PowerSavingMode’的值为‘开’以在低功率状态中建立系统的环境的方法。A low power state mode can be set when the Windows(R) operating system is switched to the Linux(R) operating system. For example, when the variable indicating the effective and non-effective state of the low power state mode is 'PowerSavingMode', if the value of this variable is set to 'on' in step S837, then in step S840, when the computer system is powered by the Linux® operating system At boot time, a low power state environment is established. However, when the computer system is booted by the Windows® operating system, at step S870, the value of the variable 'PowerSavingMode' is set to 'off' so that the low power state mode is canceled. Meanwhile, the method of setting up the environment of the system in the low power state by setting the value of the variable 'PowerSavingMode' to 'on' will now be described with reference to FIGS. 10 and 11 when the computer system is booted by the Linux® operating system.
图9是示出根据本发明的另一示例性实施例的操作系统切换方法,即,在图7所示的操作系统切换期间设置低功率状态的操作的流程图。图9的步骤S905至S930通常与图7的步骤S705至S730相应。图9的步骤S940至S967通常与图7的步骤S740至S767相应。FIG. 9 is a flowchart illustrating an operating system switching method according to another exemplary embodiment of the present invention, that is, an operation of setting a low power state during the operating system switching shown in FIG. 7 . Steps S905 to S930 in FIG. 9 generally correspond to steps S705 to S730 in FIG. 7 . Steps S940 to S967 in FIG. 9 generally correspond to steps S740 to S767 in FIG. 7 .
当在步骤S935,Windows操作系统被切换至Linux操作系统时,如同图8中的低功率状态模式被设置。当在步骤S940,计算机系统由Linux操作系统引导时,低功率状态中的系统的环境被建立。然而,当计算机系统由Windows操作系统引导时,在步骤S969,变量‘PowerSavingMode’的值被设置为‘关’,以便取消低功率状态模式。When the Windows(R) operating system is switched to the Linux(R) operating system at step S935, the low power state mode as in FIG. 8 is set. When the computer system is booted by the Linux(R) operating system at step S940, the environment of the system in the low power state is established. However, when the computer system is booted by the Windows® operating system, at step S969, the value of the variable 'PowerSavingMode' is set to 'off' so as to cancel the low power state mode.
图10是示出根据本发明的另一示例性实施例的用于控制低功率状态的计算机系统的方框图。计算机系统300包括:CPU 1010、存储器1020、bios1030、以及应用程序1040,其访问安置在存储器1020中的用于控制硬件的通道(以下,称作‘应用程序’)。同时,为了本发明的更好理解,假设Linux操作系统被用作看电影、听音乐、或使用多种图像文件浏览照片或图片,即,Linux操作系统仅被用来提供多媒体内容。然而,任何其它的操作系统可取代Linux。应用程序1040包括诸如用于再现电影或音乐的程序或图像浏览器的程序,并且根据用户选择的对象运行相应的程序。FIG. 10 is a block diagram illustrating a computer system for controlling a low power state according to another exemplary embodiment of the present invention. The
现在,将参照图11的流程图,详细地描述图10中所示的操作。Now, the operation shown in FIG. 10 will be described in detail with reference to the flowchart of FIG. 11 .
图11是示出根据本发明的另一示例性实施例的控制低功率状态的方法的流程图。FIG. 11 is a flowchart illustrating a method of controlling a low power state according to another exemplary embodiment of the present invention.
当用户将Windows操作系统切换至Linux操作系统时,在步骤S1110,Linux操作系统开始引导。在这种情况下,变量‘PowerSavingMode’的值被设置为‘开’,以便激活低功率状态模式。应用程序1040在Linux操作系统的上面位置运行。在这种情况下,在步骤S1120,除了应用程序1040之外的其它应用程序或处理不运行。When the user switches the Windows(R) operating system to the Linux(R) operating system, in step S1110, the Linux(R) operating system starts to boot. In this case the value of the variable 'PowerSavingMode' is set to 'on' in order to activate the low power state mode. Application programs 1040 run on top of the Linux(R) operating system. In this case, in step S1120, other application programs or processes other than the application program 1040 are not executed.
然后,在步骤S1130,应用程序1040向用户提供图12中所示的用户接口1200,以便用户可选择诸如电影1220、音乐1240、以及照片/图片1260的内容之一。在这种情况下,可根据应用程序1040的设计改变用户接口1200的形状,并且用户可选择以在Linux操作系统的环境中执行特定的内容。Then, in step S1130, the application 1040 provides the user with the user interface 1200 shown in FIG. In this case, the shape of the user interface 1200 can be changed according to the design of the application program 1040, and the user can select to execute specific content in the environment of the Linux(R) operating system.
如果用户想在Linux操作系统的环境中看电影,则用户从用户接口1200选择电影1220。然后,应用程序1040开始建立用于播放电影的低功率系统的环境。换言之,诸如CPU 1010、光盘驱动器、硬盘驱动器、液晶显示屏(LCD)面板、以及无线LAN模块等的安装在系统中的硬件的状态被设置为播放电影的最适宜状态。为此,需要利用应用程序1040控制上述硬件的方法。在示例性实施例中,在步骤S1140,用于控制硬件的通道在存储器1020中形成。通常,用于控制硬件的代码被记录在bios 1030中。存储器1020的特定区域被映射到代码并且应用程序1040访问该特定区域,以便在步骤S1150,将记录在bios 1030中的用于控制硬件的代码载入存储器1020中。在这种情况下,中断发生并且CPU 1010执行载入存储器1020的代码,以便在步骤S1160,应用程序1040控制硬件。例如,当用户想要观看存储在光盘驱动器上的电影时,供给硬盘驱动器的电源被切断,并且当时钟的速度被调整以便CPU 1010执行75%的功能以及LCD面板的亮度被分为10级(例如,最亮状态被设置为级10)时,LCD面板的亮度可被设置为7级并且电源可被阻止供给无线LAN模块。该信息可在bios 1030中被预置,并且根据用户选择的电影1220、音乐1240以及照片/图片1260,控制每一硬件的程度可不同。例如,当用户想要听存储在硬盘驱动器上的音乐时,LCD面板的亮度可被设置为低于7级的3到4级,电源被阻止供给光盘驱动器,并且时钟的速度可被设置以便CPU 1010执行50%的功能。If the user wants to watch a movie in the environment of the Linux(R) operating system, the user selects the movie 1220 from the user interface 1200 . The application 1040 then begins setting up the environment for the low power system to play the movie. In other words, the state of hardware installed in the system such as the CPU 1010, optical disk drive, hard disk drive, liquid crystal display (LCD) panel, and wireless LAN module is set to an optimum state for playing movies. For this reason, a method of controlling the above-mentioned hardware using the application program 1040 is required. In an exemplary embodiment, a channel for controlling hardware is formed in the memory 1020 at step S1140. Usually, the code used to control the hardware is recorded in bios 1030. A specific area of the memory 1020 is mapped to code and the application program 1040 accesses the specific area to load the code for controlling hardware recorded in the bios 1030 into the memory 1020 at step S1150. In this case, an interrupt occurs and the CPU 1010 executes the code loaded into the memory 1020, so that in step S1160, the application program 1040 controls the hardware. For example, when a user wants to watch a movie stored on an optical disc drive, the power supply to the hard drive is cut off, and when the speed of the clock is adjusted so that the CPU 1010 performs 75% of the functions and the brightness of the LCD panel is divided into 10 levels ( For example, when the brightest state is set to level 10), the brightness of the LCD panel can be set to level 7 and power can be blocked from being supplied to the wireless LAN module. This information can be preset in the bios 1030, and depending on the movies 1220, music 1240, and photos/pictures 1260 selected by the user, the degree of control over each piece of hardware can vary. For example, when a user wants to listen to music stored on a hard drive, the brightness of the LCD panel can be set to
CPU 1010执行载入存储器1020的代码,从而控制相关的硬件。因此,在步骤S1170,应用程序1040负责控制并执行电影以使用户能够观看存储在光盘驱动器上的电影。CPU 1010 executes codes loaded into memory 1020, thereby controlling related hardware. Therefore, in step S1170, the application program 1040 is responsible for controlling and executing the movie so that the user can watch the movie stored on the optical disc drive.
根据本发明,当在具有至少两个操作系统的计算机系统中,操作系统被切换时,无需用户的额外操作,操作系统可被更快地切换。另外,先前操作的系统的环境可被恢复。According to the present invention, when an operating system is switched in a computer system having at least two operating systems, the operating system can be switched more quickly without an additional operation by a user. In addition, the environment of the previously operated system can be restored.
尽管参照一些本发明的示例性实施例,本发明被显著示出并描述,但是本领域的技术人员应理解在不脱离本发明的原理和精神的情况下,多种形式上的变化和细节可加入这些示例性实施例中,本发明的范围由权利要求及其等同物限定。Although the present invention has been particularly shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the principle and spirit of the invention. In addition to these exemplary embodiments, the scope of the invention is defined by the claims and their equivalents.
Claims (31)
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020040036400 | 2004-05-21 | ||
| KR20040036400 | 2004-05-21 | ||
| KR1020040058266 | 2004-07-26 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1700175A true CN1700175A (en) | 2005-11-23 |
| CN100474246C CN100474246C (en) | 2009-04-01 |
Family
ID=35476250
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100710410A Expired - Fee Related CN100474246C (en) | 2004-05-21 | 2005-05-23 | Computer system, method and medium for switching operation system |
Country Status (2)
| Country | Link |
|---|---|
| KR (1) | KR100714677B1 (en) |
| CN (1) | CN100474246C (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100458701C (en) * | 2006-01-17 | 2009-02-04 | 株式会社Ntt都科摩 | Input/output control device, input/output control system, and input/output control method |
| CN102043670A (en) * | 2009-10-22 | 2011-05-04 | 系微股份有限公司 | How to switch between different operating systems on a computer |
| CN102135910A (en) * | 2011-03-03 | 2011-07-27 | 威盛电子股份有限公司 | Method for switching operating system and electronic device using same |
| CN101382909B (en) * | 2007-09-05 | 2013-03-13 | 宏达国际电子股份有限公司 | Method and electronic device for gradually adjusting screen brightness when operating system is switched |
| CN103064645A (en) * | 2011-10-21 | 2013-04-24 | 联想(北京)有限公司 | Display method and electronic equipment |
| CN103150209A (en) * | 2011-12-07 | 2013-06-12 | 文晔科技股份有限公司 | Portable tablet computer with dual operating systems and control method thereof |
| CN103150210A (en) * | 2011-12-07 | 2013-06-12 | 宏碁股份有限公司 | Electronic device and operating system switching method thereof |
| CN103886267A (en) * | 2012-12-20 | 2014-06-25 | 联想(北京)有限公司 | Method, device, chip and computer mainboard for isolating and switching internal and external network and computer |
| CN103902322A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | System switching method and electronic equipment |
| CN102023887B (en) * | 2009-09-21 | 2015-01-28 | 联想(北京)有限公司 | Power supply management method of computer system and computer system |
| CN105993001A (en) * | 2014-03-20 | 2016-10-05 | 英特尔公司 | Techniques for switching between operating systems |
| CN111078374A (en) * | 2018-10-19 | 2020-04-28 | 西安中兴新软件有限责任公司 | Task recovery method, device and storage medium in multi-operating system environment |
| CN111142651A (en) * | 2019-05-09 | 2020-05-12 | 广东小天才科技有限公司 | System switching method of a communication terminal and communication terminal |
| CN115033092A (en) * | 2021-03-05 | 2022-09-09 | Oppo广东移动通信有限公司 | Off-screen display control method, device, mobile device and computer storage medium |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101026397B1 (en) * | 2006-11-16 | 2011-04-07 | 삼성전자주식회사 | Display device and control method thereof |
| KR20130116599A (en) * | 2012-04-16 | 2013-10-24 | 삼성전자주식회사 | Electronic apparatus, method for controlling the same and computer-readable recording medium |
| CN104077185B (en) * | 2013-03-27 | 2017-12-29 | 联想(北京)有限公司 | A kind of switching method and electronic equipment of shared equipment |
| CN119357982B (en) * | 2024-12-27 | 2025-08-01 | 山东浪潮超高清智能科技有限公司 | LED large screen double-system implementation system, method and medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3149904B2 (en) * | 1995-06-14 | 2001-03-26 | 日本電気株式会社 | OS switching device |
| KR20010012032A (en) * | 1999-07-19 | 2001-02-15 | 유춘열 | Devices for using Multi OSs |
| JP2001256066A (en) * | 2000-02-29 | 2001-09-21 | Internatl Business Mach Corp <Ibm> | Computer system, switching system of operating system, mounting method of operating system, switching method of operating system, storage medium and program transmitter |
| US7522964B2 (en) * | 2000-12-01 | 2009-04-21 | O2Micro International Limited | Low power digital audio decoding/playing system for computing devices |
| KR100626361B1 (en) * | 2000-12-16 | 2006-09-20 | 삼성전자주식회사 | Computer system with multiple operating systems and method for changing the operating system in use |
-
2004
- 2004-07-26 KR KR1020040058266A patent/KR100714677B1/en not_active Expired - Fee Related
-
2005
- 2005-05-23 CN CNB2005100710410A patent/CN100474246C/en not_active Expired - Fee Related
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100458701C (en) * | 2006-01-17 | 2009-02-04 | 株式会社Ntt都科摩 | Input/output control device, input/output control system, and input/output control method |
| US9105212B2 (en) | 2007-09-05 | 2015-08-11 | Htc Corporation | Method for gradually adjusting screen brightness when switching operating system |
| CN101382909B (en) * | 2007-09-05 | 2013-03-13 | 宏达国际电子股份有限公司 | Method and electronic device for gradually adjusting screen brightness when operating system is switched |
| US8730270B2 (en) | 2007-09-05 | 2014-05-20 | Htc Corporation | Method for gradually adjusting screen brightness when switching operating system |
| CN102023887B (en) * | 2009-09-21 | 2015-01-28 | 联想(北京)有限公司 | Power supply management method of computer system and computer system |
| CN102043670A (en) * | 2009-10-22 | 2011-05-04 | 系微股份有限公司 | How to switch between different operating systems on a computer |
| CN102135910B (en) * | 2011-03-03 | 2014-05-14 | 威盛电子股份有限公司 | Method for switching operating systems and electronic device using the method |
| CN102135910A (en) * | 2011-03-03 | 2011-07-27 | 威盛电子股份有限公司 | Method for switching operating system and electronic device using same |
| CN103064645A (en) * | 2011-10-21 | 2013-04-24 | 联想(北京)有限公司 | Display method and electronic equipment |
| CN103150209A (en) * | 2011-12-07 | 2013-06-12 | 文晔科技股份有限公司 | Portable tablet computer with dual operating systems and control method thereof |
| CN103150210A (en) * | 2011-12-07 | 2013-06-12 | 宏碁股份有限公司 | Electronic device and operating system switching method thereof |
| CN103886267A (en) * | 2012-12-20 | 2014-06-25 | 联想(北京)有限公司 | Method, device, chip and computer mainboard for isolating and switching internal and external network and computer |
| CN103902322A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | System switching method and electronic equipment |
| CN105993001A (en) * | 2014-03-20 | 2016-10-05 | 英特尔公司 | Techniques for switching between operating systems |
| US11307868B2 (en) | 2014-03-20 | 2022-04-19 | Intel Corporation | Techniques for switching between operating systems |
| CN111078374A (en) * | 2018-10-19 | 2020-04-28 | 西安中兴新软件有限责任公司 | Task recovery method, device and storage medium in multi-operating system environment |
| CN111142651A (en) * | 2019-05-09 | 2020-05-12 | 广东小天才科技有限公司 | System switching method of a communication terminal and communication terminal |
| CN115033092A (en) * | 2021-03-05 | 2022-09-09 | Oppo广东移动通信有限公司 | Off-screen display control method, device, mobile device and computer storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100474246C (en) | 2009-04-01 |
| KR100714677B1 (en) | 2007-05-07 |
| KR20050111512A (en) | 2005-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1700175A (en) | Computer system, method and medium for switching operation system | |
| US7886136B2 (en) | Computer system, method, and medium for switching operating system | |
| JP4437137B2 (en) | Adjustment of computer system power policy in response to positive instructions from users | |
| CN1129831C (en) | Method for setting computer having power saving function into power saving mode when using network | |
| CN1740949A (en) | Information processor, starting method thereof | |
| CN109906437B (en) | Processor Core Stalling and Frequency Selection Based on Thread Importance | |
| CN1595332A (en) | Computer system and a control method thereof | |
| CN1816790A (en) | Non main cpu/os based operational environment | |
| US20050246561A1 (en) | Computer power mangement architecture and method thereof | |
| JP5423362B2 (en) | Information processing terminal and control method thereof | |
| JP2007179225A (en) | Information processing apparatus, information processing method, and program thereof | |
| CN1725163A (en) | Information processing apparatus | |
| US20080065917A1 (en) | Information Processing Apparatus and Resume Control Method | |
| CN1885270A (en) | Information processing apparatus, storage medium, and data rescue method | |
| CN1707399A (en) | Portable electronic device used by opening cover and method of controlling portable electronic device | |
| CN1519683A (en) | Information processing device and display brightness control method | |
| JP2004139613A (en) | Power management in data processing system based on processor usage status | |
| CN1641585A (en) | Information processing equipment and programs | |
| CN1959639A (en) | Information processing apparatus with boot devices, and method for starting up the information processing apparatus | |
| EP2653965A2 (en) | Electronic apparatus, method of controlling the same, and computer-readable recording medium | |
| CN1894648A (en) | Frequency control method and information processing apparatus | |
| CN1828479A (en) | A method and device for switching the operating frequency of a graphics card | |
| KR20100041518A (en) | Selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof | |
| CN1866165A (en) | Computer system with power-saving capability and method for implementing power-saving mode in computer system | |
| CN100349097C (en) | Power Management Architecture and Method for Computer System |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090401 Termination date: 20190523 |