Control method and apparatus, electronic device

By automatically acquiring and configuring the setting parameters of target components in multi-mode electronic devices, the problem of inconsistent user experience in different modes is solved, achieving a unified user experience when switching modes and improving the user experience.

CN115640071BActive Publication Date: 2026-04-10LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In multi-mode electronic devices, users need to manually adjust the settings of the target components to adapt to different modes, resulting in inconsistent user experience and increased user burden.

Method used

The electronic device's processor calls program code to automatically obtain the target component's setting parameters in the first mode, and configures the setting parameters in the second mode based on these parameters, so that the effect is the same as in the first mode, achieving a unified usage effect of the target component in different modes.

Benefits of technology

When switching modes of electronic devices, the setting parameters of the target components are automatically and uniformly configured, which improves the user experience and reduces the steps and burden of manual adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640071B_ABST
    Figure CN115640071B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a control method and device, and an electronic device, wherein the control method comprises: in response to the electronic device switching from a first mode to a second mode, obtaining a first setting parameter of a target component of the electronic device in the first mode; configuring a second setting parameter of the target component in the second mode based on the first setting parameter, so that the use effect of the target component in the second mode is the same as the use effect of the target component in the first mode; wherein the usability of the electronic device in the first mode and the second mode is different.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the electronic technology, and relate to but not limited to a control method and device, and an electronic device. BACKGROUND

[0002] With the increasing application of the vertical screen scene of the current consumer electronics, the all-in-one computer with rotation function also becomes more and more, and the all-in-one computer with multiple modes becomes more and more common, such as three modes of the all-in-one computer Yoga 27, which are PC (Personal Computer) mode, wireless projection mode and one-line connection mode, and the circuit and system of the three modes are independent of each other. SUMMARY

[0003] Therefore, embodiments of the present application provide a control method and device, and an electronic device.

[0004] The technical solution of the embodiments of the present application is implemented as follows:

[0005] In a first aspect, the embodiments of the present application provide a control method, which comprises:

[0006] In response to switching of an electronic device from a first mode to a second mode, obtaining a first setting parameter of a target component of the electronic device in the first mode;

[0007] Configuring a second setting parameter of the target component in the second mode based on the first setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode;

[0008] Wherein, the usability of the electronic device in the first mode and the second mode is different.

[0009] In a second aspect, the embodiments of the present application provide a control device, which comprises:

[0010] A parameter obtaining unit, configured to obtain a first setting parameter of a target component of an electronic device in a first mode in response to switching of the electronic device from the first mode to a second mode;

[0011] A parameter configuring unit, configured to configure a second setting parameter of the target component in the second mode based on the first setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode;

[0012] Wherein, the usability of the electronic device in the first mode and the second mode is different.

[0013] In a third aspect, an electronic device is provided, which comprises a memory and a processor, the memory storing a computer program capable of running on the processor, and the processor implements the steps in the above method when executing the program.

[0014] The embodiments of the present application provide a control method and device and an electronic device. The control method comprises the following steps: obtaining a first setting parameter of a target component of the electronic device in a first mode of the electronic device in response to the electronic device switching from the first mode to a second mode; and configuring a second setting parameter of the target component in the second mode based on the first setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode. The usability of the electronic device in the first mode and the second mode is different. Thus, the setting parameter of the target component of the electronic device can be automatically and uniformly configured when the electronic device switches between different modes, so that the use effect in different modes is the same. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1 Implementation process of the control method of the embodiments of the present application Figure One

[0016] Figure 2 Implementation process of the control method of the embodiments of the present application Figure Two

[0017] Figure 3 Implementation process of the control method of the embodiments of the present application Figure Three

[0018] Figure 4A Implementation process of the control method of the embodiments of the present application

[0019] Figure 4B Principle of the control logic of the embodiments of the present application Figure One

[0020] Figure 4C Implementation process of the control method of the embodiments of the present application Figure Five

[0021] Figure 4D Principle of the control logic of the embodiments of the present application Figure Two

[0022] Figure 5 Composition structure of the control device of the embodiments of the present application

[0023] Figure 6 Hardware entity of the electronic device of the embodiments of the present application DETAILED DESCRIPTION ​​​​​​

[0024] The technical solutions of the present application are further described in detail below in conjunction with the drawings and embodiments. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0025] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0026] In the subsequent description, the suffix such as "module", "component" or "unit" used to represent elements is only for the convenience of the description of the present application, and has no specific meaning in itself. Therefore, "module", "component" or "unit" can be used mixedly.

[0027] It should be noted that the terms "first", "second", "third" involved in the embodiments of the present application are only to distinguish similar objects, and do not represent a specific order of the objects. Understandably, "first", "second", "third" can be interchanged with a specific order or sequence as allowed, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0028] With the increasing application of vertical screen scenarios of current consumer electronics, all-in-one computers with rotation function are becoming more and more common, and all-in-one computers with multiple modes are becoming more and more common. However, the circuits and systems of different modes are independent of each other.

[0029] For example, the screen brightness in different modes is controlled by different systems or hardware. For example, in PC mode, the brightness of the screen is controlled by the Windows operating system, which can be directly adjusted by dragging the brightness adjustment bar with the mouse. In wireless projection mode or in one-line connection mode, the brightness is controlled by the Scalar chip, which needs to be adjusted by hardware buttons. However, the user's demand for brightness is uniform in the same environment, that is, although the input video mode of the all-in-one computer is different, the brightness of the screen is consistent, and the user has to adjust it every time a mode is switched, increasing the user's burden and poor experience.

[0030] Based on this, the embodiments of the present application provide a control method, the function realized by the method can be realized by calling program code by the processor in the electronic device, of course, the program code can be saved in the storage medium of the electronic device. Figure 1 Implementation flow of the control method of the embodiments of the present application Figure One ,Figure 1 As shown, the method comprises:

[0031] In step S101, in response to the electronic device switching from a first mode to a second mode, a first setting parameter of a target component of the electronic device in the first mode is obtained.

[0032] Here, the electronic device can be various types of devices with information processing capabilities, such as a navigator, a smartphone, a tablet computer, a wearable device, a laptop computer, an all-in-one computer and a desktop computer, a server cluster, etc.

[0033] In the embodiments of the present application, the electronic device can have multiple modes, and the usability of the electronic device in different modes is different, and the usability at least includes the use permission. For example, a certain all-in-one computer has three modes, which are PC mode, one-line connection mode and wireless projection mode. In the PC mode, the all-in-one computer is a personal computer. In the one-line connection mode, the notebook computer can connect the all-in-one computer through a full-featured USB-C line, and can directly use the display, speaker, keyboard and mouse, camera, built-in large-capacity hard disk, etc. of the all-in-one computer, and a set of peripherals is shared. In the wireless projection mode, the all-in-one computer supports wireless projection function. That is, the usability of the all-in-one computer in the above three modes is different, and the three modes of the all-in-one computer can be switched to each other, for example, from PC mode to one-line connection mode, from wireless projection mode to PC mode. The first mode and the second mode in the embodiments of the present application can belong to any two modes of the multiple modes of the electronic device.

[0034] Here, the target component of the electronic device can be a component with a specific function in the electronic device, such as a display screen, a speaker, a camera, a keyboard and mouse, a microphone, etc. The target component has different setting parameters, and the different setting parameters make the target component have different functional attributes. For example, if the target component is a display screen, the different setting parameters include the brightness of the display screen, the contrast of the display screen, the color gamut of the display screen, the refresh rate, etc. If the target component is a speaker, the different setting parameters include the volume, the loudness, the timbre, the pitch, etc. If the target component is a camera, the different setting parameters include the image parameters such as the capture frame rate, the resolution and the image size of the camera. If the target component is a keyboard and mouse, the different setting parameters include the response speed and the dots per inch (DPI), etc. Furthermore, the first setting parameter of the target component of the electronic device in the first mode can include the display parameters such as the brightness of the display screen in the PC mode, the first setting parameter of the target component of the electronic device in the first mode can also include the display parameters such as the color gamut of the display screen in the one-line connection mode, and the first setting parameter of the target component of the electronic device in the first mode can also include the audio output parameters such as the volume of the speaker in the wireless projection mode.

[0035] In step S102, the second setting parameter of the target component in the second mode is configured based on the first setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0036] In some embodiments, the electronic device has different usability in the first mode and the second mode.

[0037] Here, if the electronic device is switched from the first mode to the second mode, the second setting parameter of the target component in the second mode is automatically configured based on the first setting parameter. For example, if the display screen of the electronic device has a first brightness in the first mode, in response to the electronic device being switched from the first mode to the second mode, the brightness of the display screen in the second mode is automatically configured based on the first brightness, so that the brightness of the display screen in the first mode is the same as that in the second mode. For another example, if the display screen of the electronic device has a first contrast in the first mode, in response to the electronic device being switched from the first mode to the second mode, the contrast of the display screen in the second mode is automatically configured based on the first contrast, so that the contrast of the display screen in the first mode is the same as that in the second mode. For another example, if the speaker of the electronic device has a first output volume in the first mode, in response to the electronic device being switched from the first mode to the second mode, the output volume of the speaker in the second mode is automatically configured based on the first output volume, so that the output volume of the speaker in the first mode is the same as that in the second mode. For another example, if the microphone of the electronic device has a first collection volume in the first mode, in response to the electronic device being switched from the first mode to the second mode, the collection volume of the microphone in the second mode is automatically configured based on the first collection volume, so that the collection volume of the microphone in the first mode is the same as that in the second mode.

[0038] In this way, through the above steps S101 to S102, the use effect of the target component of the electronic device in different modes can be automatically unified.

[0039] In some embodiments, the step S102 of configuring the second setting parameter of the target component in the second mode based on the first setting parameter comprises at least one of the following:

[0040] In step S1021a, the first setting parameter obtained from the first control component of the electronic device is converted to obtain the second setting parameter, and the second setting parameter is configured to the corresponding control component in the second mode.

[0041] Here, the first setting parameter of the target component of the electronic device in the first mode can be converted to obtain a second setting parameter, and the second setting parameter is configured to the corresponding control component in the second mode. The first control component can be a control component connected between the first control unit and the second control unit, the first setting parameter in the first mode is controlled and adjusted by the first control unit, and the second setting parameter in the second mode is controlled and adjusted by the second control unit.

[0042] For example, the brightness of the all-in-one machine in the PC mode is controlled by the Windows operating system (i.e., the CPU controls the brightness progress bar through the graphics card driver for adjustment), the brightness in the wired mode or the wireless projection mode is controlled by the Scalar chip (i.e., the screen brightness is adjusted by the hardware button), and there is a data transmission line between the EC and the CPU. Further, the graphics card driver of the electronic device can obtain the screen brightness parameter of the display screen in the wired mode or the wireless projection mode from the EC of the electronic device, then convert the screen brightness parameter to the screen brightness parameter in the Windows mode (PC mode), and finally configure the brightness parameter in the Windows mode to the graphics card driver or the display application in the PC mode to realize brightness adjustment.

[0043] In step S1021b, the first setting parameter obtained from the second control component of the electronic device is directly used as the second setting parameter in the second mode.

[0044] Here, the first setting parameter in the first mode obtained from the second control component can be directly used as the second setting parameter in the second mode. The second setting parameter in the second mode can be controlled and adjusted by the second control component.

[0045] For example, the brightness of the all-in-one machine in the PC mode is controlled by the Windows operating system (i.e., the CPU controls the brightness progress bar through the graphics card driver for adjustment), the brightness in the wired mode or the wireless projection mode is controlled by the Scalar chip (i.e., the screen brightness is adjusted by the hardware button), and there is a data transmission line between the EC and the Scalar. Further, the EC can be used to write the screen brightness parameter in the wired mode or the wireless projection mode into the Scalar chip, and then obtain the screen brightness parameter directly from the Scalar chip as the screen brightness in the wired mode or the wireless projection mode.

[0046] In some embodiments, the step S102 of configuring the second setting parameter of the target component in the second mode based on the first setting parameter comprises at least one of the following:

[0047] Step S1022a, obtaining user portrait information of the target user, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the user portrait information.

[0048] Here, the user portrait information refers to information corresponding to a labeled user model abstracted from attributes, preferences, habits, and behaviors of a user. For example, the user portrait information can include display parameters or sound output parameters that the user is accustomed to in different modes. Furthermore, the second setting parameter of the target component in the second mode can be configured based not only on the first setting parameter, but also on the user portrait information.

[0049] Step S1022b, obtaining environment information of the electronic device, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the environment information.

[0050] Here, the environment information can include environmental brightness, environmental noise, and the number of users of the electronic device. For example, the environment information of the electronic device includes at least one or more of the following: an outdoor environment, an indoor environment, a noisy environment, a quiet environment, a dimly lit environment, a brightly lit environment, a public place, a private place, and the like. Furthermore, the first setting parameter can be adjusted based on the environment information, and the second setting parameter of the target component in the second mode can be configured according to the adjusted result. For example, in the case of low environmental brightness, the screen brightness can be appropriately increased when configuring the second setting parameter; in the case of high environmental noise, the output volume can be appropriately increased when configuring the second setting parameter, and the like.

[0051] Step S1022c, obtaining first running information of the electronic device, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the first running information.

[0052] Here, the first running information includes at least running state information such as running power and load information, and running application information (e.g., a game application, an office application, or an entertainment application).

[0053] In the embodiments of the present application, the second setting parameter of the target component in the second mode can be configured based on the first setting parameter according to different output content sources. For example, the display parameter required by the game in different modes and the display parameter or sound output parameter required by the video and audio are different. If the application used by the user in the first mode is a document editing application, the first setting parameter is the first volume of the user in the first mode, and the application used in the second mode is a game application, the volume of the target component in the second mode can be configured to match the game application. For example, the office application is running in the current PC mode, and the game application is running in the wireless projection mode. The switching mode can further trigger the setting parameter adaptation of the game application, such as increasing the brightness and / or volume, and the like.

[0054] Based on the foregoing embodiments, the embodiments of the present application further provide a control method, which is applied to an electronic device, Figure 2 The implementation process of the control method of the embodiments of the present application is shown in Figure Two As shown in Figure 2 The method comprises the following steps:

[0055] In step S201, in response to obtaining the adjustment operation of the setting parameter of the target component, the first setting parameter obtained after the adjustment is written to the second control component of the electronic device through the corresponding drive of the target component.

[0056] Here, the target component can include a display screen, a loudspeaker or a microphone. Correspondingly, the first setting parameter includes a display parameter in the first mode or an audio parameter in the first mode, and further, the second control component includes a control adjustment component of the display parameter or the audio parameter in the second mode. Of course, the target component can also include other components, which are not limited in the embodiments of the present application.

[0057] For example, the adjustment of the Window brightness is not from 0% to 100%, that is, 0% still has a certain brightness. However, the brightness of the Scalar is the hardware controlled, and the minimum brightness of the hardware is to completely darken the screen. Therefore, the Windows brightness in the first mode can be adjusted, and the adjusted Windows brightness is written to the Scalar chip through the display drive.

[0058] In step S202, in response to the switching of the electronic device from the first mode to the second mode, the first setting parameter of the target component of the electronic device in the first mode is obtained.

[0059] For example, the electronic device is switched from the PC mode to the one-wire connection or wireless projection mode.

[0060] Step S203, directly taking the first setting parameter obtained from the second control component of the electronic device as the second setting parameter in the second mode, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0061] The electronic device has different usability in the first mode and the second mode.

[0062] Here, by the method in steps S201 to S203, the adjusted first setting parameter can be written into the second control component, and the first setting parameter obtained from the second control component after the mode of the electronic device is switched is directly taken as the second setting parameter in the second mode, thereby automatically realizing the unification of the parameters in different modes.

[0063] Of course, in addition to the above adjustment operation performed before mode switching, the adjustment operation can also be performed after mode switching. It should be noted that no matter which way is used, the setting parameters in the switched mode are automatically configured to be the same as those before switching.

[0064] In some embodiments, the method further comprises at least one of the following:

[0065] Step S21, obtaining second running information of an output device having a first connection with the electronic device, and adjusting the output parameter of the corresponding target component of the output device based on at least the second running information and the adjustment operation;

[0066] Here, the output device having a first connection with the electronic device includes an external device of the electronic device, and the second running information includes running state information such as running power, load information, and running application information (game application or office application or entertainment application), so that the output parameter of the target component of the output device can be adjusted based on the automatic adjustment operation of the setting parameter of the target component of the electronic device.

[0067] Step S22, adjusting the setting parameter or the output parameter of the corresponding component of the output device having a first connection with the electronic device based on the adjustment operation of the setting parameter of the target component.

[0068] Here, the output parameter or the setting parameter of the corresponding component of the output device can be adjusted based on the automatic adjustment operation of the setting parameter of the target component of the electronic device. For example, the electronic device is connected to an external display device, and the brightness of the display screen of the external display device is adjusted based on the adjustment operation of the brightness of the display of the electronic device.

[0069] Based on the foregoing embodiments, an embodiment of the present application further provides a control method, which is applied to an electronic device, and the method comprises:

[0070] Step S211, in response to the electronic device switching from the first mode to the second mode, obtaining the first setting parameter of the target component of the electronic device in the first mode;

[0071] Step S212, in response to obtaining the adjustment operation on the setting parameter of the target component, writing the first setting parameter obtained by the corresponding drive of the target component after the adjustment operation corresponding to the setting parameter is converted to the second control component by the first control component of the electronic device;

[0072] Here, the setting parameter in the first mode can be converted during the adjustment of the setting parameter, so as to obtain the setting parameter in the second mode.

[0073] Step S213, directly taking the first setting parameter obtained from the second control component of the electronic device as the second setting parameter in the second mode, so that the use effect of the target component in the second mode is the same as that in the first mode;

[0074] Wherein, the usability of the electronic device in the first mode and the second mode is different.

[0075] Based on the foregoing embodiment, the embodiment of the application further provides a control method, which is applied to an electronic device, Figure 3 The implementation process of the control method of the embodiment of the application is shown in the figure Figure Three As shown in the figure Figure 3 The method comprises the following steps:

[0076] Step S301, in response to obtaining the adjustment operation on the setting parameter of the target component, writing the first setting parameter obtained after adjustment to the first control component of the electronic device through the second control component of the electronic device;

[0077] Here, the target component can include a display screen, a loudspeaker or a microphone; correspondingly, the first setting parameter includes a display parameter in the first mode or an audio parameter in the first mode. The second control component includes a component for controlling and adjusting the setting parameter (at least including the display parameter or the audio parameter) in the second mode. The first control component is an intermediate component, which is connected with the second control component and also connected with the component for controlling and adjusting the setting parameter in the first mode.

[0078] For example, the adjustment of the Window brightness is not from 0% to 100%, that is, 0% still has a certain brightness. However, the brightness of the Scalar is the hardware controlled, and the minimum brightness of the hardware is to make the screen completely black. Therefore, the adjusted Scalar brightness in the first mode can be written into the EC of the electronic device through the Scalar chip of the electronic device.

[0079] In step S302, in response to the electronic device being switched from the first mode to the second mode, the first setting parameter of the target component of the electronic device in the first mode is obtained.

[0080] In step S303, the first setting parameter obtained from the first control component of the electronic device is converted to obtain the second setting parameter, and the second setting parameter is configured to the corresponding control component in the second mode, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0081] Wherein, the usability of the electronic device in the first mode and the second mode is different.

[0082] For example, the Scalar brightness obtained from the EC can be converted to obtain the corresponding Window brightness, and then the Window brightness is configured to the display card driver or display application in the PC mode.

[0083] Here, through the method in steps S301 to S303, the adjusted first setting parameter can be written into the first control component through the second control component, and the second setting parameter obtained by converting the first setting parameter obtained from the first control component after the mode of the electronic device is switched is configured in the second mode, thereby automatically realizing the unification of the parameters in different modes.

[0084] Of course, in addition to the above adjustment operation performed before mode switching, the adjustment operation can also be performed after mode switching. It should be noted that no matter which way is used, the setting parameter in the switched mode is automatically configured to be unified with the parameter before switching.

[0085] In some embodiments, the method further comprises:

[0086] In step S31, if the target component of the electronic device is not unique, the output parameter of at least part of the target component is adjusted based on the adjustment operation.

[0087] In step S32, if the adjustment operation acts on a split screen area of the display component of the electronic device, the output parameter of the split screen area or the entire area of the display component is adjusted based on the adjustment operation.

[0088] For example, the electronic device has two display screens (dual-screen notebook), a main screen and a secondary screen. If the brightness of the main screen is adjusted before mode switching, after mode switching, not only is the brightness of the main screen in the second mode automatically configured based on the brightness of the main screen in the first mode, but the brightness of the secondary screen in the second mode is also automatically configured.

[0089] Based on the foregoing embodiments, the embodiments of the present application further provide a control method, which is applied to an electronic device, and the method comprises:

[0090] Step S311, in response to the electronic device being switched from a first mode to a second mode, obtaining a first setting parameter of a target component of the electronic device in the first mode;

[0091] Step S312, in response to obtaining an adjustment operation on the setting parameter of the target component, directly writing the first setting parameter obtained through the adjustment operation to the first control component through the second control component;

[0092] For example, if the all-in-one machine is switched from the one-line connection mode to the PC mode, the adjusted first setting parameter can be written to the EC through the Scalar chip.

[0093] Step S313, performing conversion processing on the first setting parameter obtained from the first control component of the electronic device to obtain the second setting parameter, and configuring the second setting parameter to the corresponding control component in the second mode, so that the use effect of the target component in the second mode is the same as the use effect in the first mode;

[0094] Wherein, the usability of the electronic device in the first mode and the second mode is different.

[0095] For example, if the all-in-one machine is switched from the one-line connection mode to the PC mode, the adjusted first setting parameter can be written to the EC through the Scalar chip. Further, the adjusted first setting parameter is obtained from the EC and is converted to the second setting parameter in the PC mode, and the second setting parameter is configured to the graphic card driver.

[0096] Based on the foregoing embodiments, the embodiments of the present application further provide a control method, which is applied to an electronic device, and the method comprises:

[0097] Step S321, in response to the electronic device being switched from a first mode to a second mode, obtaining a first setting parameter of a target component of the electronic device in the first mode;

[0098] The second setting parameter is obtained by performing conversion processing on the first setting parameter through corresponding driving of the target component, and the second setting parameter is written into the second control component corresponding to the second mode by the first control component of the electronic device, so that the second control component controls the use effect of the target component in the second mode based on the second setting parameter.

[0099] The electronic device has different usability in the first mode and the second mode.

[0100] Here, the setting parameter in the first mode can be converted to obtain the setting parameter in the second mode when the mode is switched.

[0101] In the embodiment of the application, the second control component controls the use effect of the target component in the second mode based on the second setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0102] Based on the foregoing embodiment, the embodiment of the application further provides a control method, which is applied to an electronic device and includes the following steps:

[0103] In response to switching of the electronic device from the first mode to the second mode, a first setting parameter of a target component of the electronic device in the first mode is obtained.

[0104] The first setting parameter is directly written into the first control component corresponding to the second mode by the second control component of the electronic device, and the first setting parameter obtained from the first control component is processed through corresponding driving of the target component to obtain the second setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0105] The electronic device has different usability in the first mode and the second mode.

[0106] For example, if the all-in-one machine is switched from the one-line connection mode to the PC mode, the adjusted first setting parameter (for example, Scalar) can be written into EC through the Scalar chip, and then the display parameter or the audio parameter obtained from EC is converted to obtain the second setting parameter (for example, Windows brightness) through the graphics card driver or the audio driver, and then the second setting parameter is configured in the second mode.

[0107] Based on the foregoing embodiments, the embodiments of the present application further provide a control method, which can realize unified adjustment of display parameters or audio parameters of a multi-mode all-in-one machine, i.e., only one parameter adjustment can realize parameter change of all modes.

[0108] Figure 4A For the implementation flowchart of the control method of the embodiments of the present application, as shown in Figure 4A if the electronic device is in the PC mode, the brightness is adjusted under Windows, i.e., the brightness of the screen is adjusted through the brightness progress bar. The graphic card driver obtains the brightness value, maps the brightness value under Windows to the brightness value under the Scalar chip, and writes the brightness value under the Scalar chip into the EC. The EC writes the brightness value under the Scalar chip into the Scalar chip. In this way, in the case that the electronic device is switched from the PC mode to the one-line or wireless projection mode, if there is video input to the Scalar chip, the Scalar chip encodes and decodes the video, directly reads the stored brightness value, and displays the video in the screen according to the brightness value under the Scalar chip.

[0109] Figure 4B For the principle diagram of the control logic of the embodiments of the present application, Figure One as shown in Figure 4B the user adjusts the brightness in the PC mode in the user space, and the adjusted value is fed back to the kernel driver in the kernel layer. The kernel driver and the graphic card driver can interact, and the EC can obtain or set the parameter value through the graphic card driver. Further, the parameter value can be transmitted through the I2C line between the EC and the CPU, and the SMBus line between the EC and the Scalar chip, with the EC as an intermediate component. In this way, the control method in the embodiments of the present application can be directly realized by using the existing hardware connection to automatically adjust the setting parameters of the display screen. The kernel driver and the graphic card driver work in the kernel layer, and the CPU, the EC, and the Scalar work in the H / W space.

[0110] Of course, the line connected to the ground in the Scalar can be changed to the line between the Scalar and the CPU, i.e., the AUX line, so that the transmission of the parameter value between the CPU and the Scalar can be realized directly through the AUX line without the EC, improving the speed and efficiency.

[0111] That is, the brightness is adjusted in the PC mode, and the brightness value after the adjustment is fed back to the Windows bottom layer, i.e., the kernel layer, and then written into the graphics card driver. The graphics card driver runs on the CPU. The adjustment of the brightness of the Window is not from 0% to 100%, i.e., 0% still has a certain brightness, but the brightness of the Scalar is controlled by hardware, and the lowest brightness under the Scalar is that the screen is completely black, so it is necessary to map the brightness under the Window and the brightness under the Scalar. Since the EC is connected to the CPU and the SCALAR at the same time, if other IC (Integrated Circuit Chip) is used, it needs to be designed separately. The CPU does not actively write values to the EC, but writes through the graphics card driver. There is another method, i.e., not through the EC, but adding a connection line, which can be a line in the Scalar chip that is grounded and changed to a connection line between the CPU. The effect is to improve the speed and efficiency without going through the EC.

[0112] Figure 4C Implementation flow of the control method of the embodiment of the application Figure Five As shown in Figure 4C , if the electronic device is in a wired or wireless projection mode, the brightness of the screen is adjusted through a hardware button, i.e., the brightness is adjusted under the Scalar, and the adjusted brightness value is written into a fixed position of the EC. In this way, in the case that the electronic device is switched from the wired or wireless projection mode to the all-in-one PC mode, the graphics card driver reads the brightness value in the EC when displaying, maps the value as the brightness value under the Window, and then outputs the brightness value to the screen.

[0113] Figure 4D Principle of the control logic of the embodiment of the application Figure Two As shown in Figure 4D , the adjustment of the sound by the user in the PC mode is performed in the user space, and the adjusted value is fed back to the kernel driver in the kernel layer. The kernel driver and the audio driver can interact, and the EC can obtain or set the parameter value through the audio driver. Further, the parameter value can be transmitted between the EC and the CPU through the I2C line between the EC and the CPU, and the SMBus line between the EC and the Scalar chip, with the EC as an intermediate component. In this way, the existing hardware connection can be used to directly implement the control method in the embodiment of the application, i.e., automatically adjusting the setting parameters of the display screen. The kernel driver and the audio driver work in the kernel layer, and the CPU, the EC, and the Scalar work in the H / W space.

[0114] Of course, a line in the Scalar that is grounded can be changed to a connection line between the CPU, i.e., an AUX line, and then the transmission of the parameter value between the CPU and the Scalar can be realized directly through the AUX line without going through the EC, to improve the speed and efficiency.

[0115] Based on the foregoing embodiments, the embodiments of the present application provide a control device, which includes various units, various modules included in the units, and various components included in the modules, and can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a CPU (Central Processing Unit), MPU (Microprocessor Unit), DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or the like.

[0116] Figure 5 The constituent structure of the control device of the embodiments of the present application is shown in FIG. 5, which includes: Figure 5

[0117] The parameter obtaining unit 501 is configured to obtain a first setting parameter of a target component of the electronic device in a first mode in response to the electronic device being switched from the first mode to a second mode.

[0118] The parameter configuration unit 502 is configured to configure a second setting parameter of the target component in the second mode based on the first setting parameter, so that the use effect of the target component in the second mode is the same as that in the first mode.

[0119] In some embodiments, the electronic device has different usability in the first mode and the second mode.

[0120] In some embodiments, the parameter configuration unit 502 includes at least one of:

[0121] The first configuration module is configured to perform conversion processing on the first setting parameter obtained from the first control component of the electronic device to obtain the second setting parameter, and configure the second setting parameter to the corresponding control component in the second mode.

[0122] The second configuration module is configured to directly use the first setting parameter obtained from the second control component of the electronic device as the second setting parameter in the second mode.

[0123] In some embodiments, the device further includes at least one of:

[0124] ​The first writing unit is configured to, in response to obtaining an adjustment operation on the setting parameter of the target component, write the first setting parameter obtained after adjustment to the second control component of the electronic device through the corresponding drive of the target component.

[0125] The second writing unit is configured to, in response to obtaining an adjustment operation on the setting parameter of the target component, write the first setting parameter obtained after adjustment to the first control component of the electronic device through the second control component of the electronic device.

[0126] In some embodiments, the first writing unit comprises:

[0127] The first writing sub-unit is configured to, after conversion processing of the setting parameter corresponding to the adjustment operation by the corresponding drive of the target component, write the first setting parameter written by the first control component of the electronic device to the second control component through the corresponding drive of the target component; or,

[0128] The second writing unit comprises:

[0129] The second writing sub-unit is configured to directly write the first setting parameter obtained through the adjustment operation to the first control component through the second control component.

[0130] In some embodiments, the parameter configuration unit 502 comprises at least one of the following:

[0131] The parameter configuration sub-unit is configured to, after conversion processing of the first setting parameter by the corresponding drive of the target component, write the second setting parameter to the second control component corresponding to the second mode by the first control component of the electronic device, so that the second control component controls the use effect of the target component in the second mode based on the second setting parameter.

[0132] The parameter configuration sub-unit is further configured to directly write the first setting parameter to the first control component corresponding to the second mode by the second control component of the electronic device, and process the first setting parameter obtained from the first control component by the corresponding drive of the target component to obtain the second setting parameter.

[0133] In some embodiments, the parameter configuration unit 502 comprises at least one of the following:

[0134] The first configuration component is configured to obtain user portrait information of a target user, and configure the second setting parameter of the target component in the second mode based on the first setting parameter and the user portrait information.

[0135] The second configuration component is configured to obtain environment information of the electronic device, and configure the second setting parameter of the target component in the second mode based on the first setting parameter and the environment information.

[0136] The third configuration component is configured to obtain first running information of the electronic device, and configure the second setting parameter of the target component in the second mode based on the first setting parameter and the first running information.

[0137] In some embodiments, the apparatus further comprises at least one of:

[0138] The first adjustment unit is configured to obtain second running information of an output device having a first connection with the electronic device, and adjust the output parameter of the corresponding target component of the output device based on at least the second running information and the adjustment operation.

[0139] The first adjustment unit is further configured to adjust the setting parameter or the output parameter of the corresponding component of the output device having the first connection with the electronic device based on the adjustment operation on the setting parameter of the target component.

[0140] In some embodiments, the apparatus further comprises:

[0141] The second adjustment unit is configured to adjust the output parameter of at least part of the target component based on the adjustment operation if the target component of the electronic device is not unique.

[0142] The second adjustment unit is further configured to adjust the output parameter of the split-screen area or the whole area of the display component based on the adjustment operation if the adjustment operation is applied to a split-screen area of the display component of the electronic device.

[0143] The above apparatus embodiments are similar to the description of the above method embodiments, and have similar beneficial effects as the method embodiments. For technical details not disclosed in the apparatus embodiments of the present application, please refer to the description of the method embodiments of the present application.

[0144] It should be noted that, in the embodiments of the present application, if the control method described above is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which can be a personal computer, a server, etc.) to execute all or part of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM (Read Only Memory), a magnetic disk or an optical disk, and various other media that can store program codes. Thus, the embodiments of the present application are not limited to any particular combination of hardware and software.

[0145] Correspondingly, the embodiments of the present application provide an electronic device, including a memory and a processor, the memory stores a computer program capable of running on the processor, and the processor implements the steps of the control method provided in the above embodiments when executing the program.

[0146] Correspondingly, the embodiments of the present application provide a readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the control method.

[0147] It should be noted that: the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0148] It should be noted that, Figure 6 A hardware entity diagram of an electronic device according to an embodiment of the present application is shown in FIG. 6. Figure 6 As shown in FIG. 6, the hardware entity of the electronic device 600 includes a processor 601, a communication interface 602 and a memory 603, wherein

[0149] The processor 601 generally controls the overall operation of the electronic device 600.

[0150] The communication interface 602 can enable the electronic device 600 to communicate with other electronic devices or servers or platforms through a network.

[0151] The memory 603 is configured to store instructions and applications executable by the processor 601, and can also cache data (for example, image data, audio data, voice communication data, and video communication data) to be processed by the processor 601 and modules in the electronic device 600, and can be implemented by FLASH (Flash Memory) or RAM (Random Access Memory).

[0152] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are merely schematic, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling, or direct coupling or communication connection between the components can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0153] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, can be located in one place, or can be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0154] In addition, each functional unit in the embodiments of the present application can be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in the form of hardware, or in the form of hardware plus software function unit. Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by a program instructing related hardware, and the foregoing program can be stored in a computer readable storage medium, and when the program is executed, the steps of the method embodiments are executed. The foregoing storage medium includes mobile storage devices, ROM, RAM, magnetic disks or optical disks and various media that can store program codes.

[0155] The methods disclosed in the several method embodiments provided in the present application can be combined arbitrarily without conflict, to obtain new method embodiments.

[0156] The features disclosed in the several product embodiments provided in the present application can be combined arbitrarily without conflict, to obtain new product embodiments.

[0157] The features disclosed in several method or device embodiments of the present application can be combined, without conflict, to form new method or device embodiments.

[0158] The above description is merely a specific implementation of the present application. The protection scope of the present application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A control method comprising: obtaining a first setting parameter of a target component of an electronic device in a first mode in response to the electronic device switching from the first mode to a second mode; the first mode and the second mode comprising: a PC mode, a one-line connection mode or a wireless projection mode; configuring a second setting parameter of the target component in the second mode based on the first setting parameter, so that an output parameter of the target component in the second mode is the same as that in the first mode; the output parameter comprising at least one of: brightness, contrast, output volume and acquisition volume; wherein the usability of the electronic device in the first mode and the second mode is different.

2. The method of claim 1, wherein the configuring of the second setting parameter of the target component in the second mode based on the first setting parameter comprises at least one of: performing conversion processing on the first setting parameter obtained from a first control component of the electronic device to obtain the second setting parameter, and configuring the second setting parameter to a corresponding control component in the second mode; directly taking the first setting parameter obtained from a second control component of the electronic device as the second setting parameter in the second mode.

3. The method of claim 1 or 2, further comprising at least one of: in response to obtaining an adjustment operation on the setting parameter of the target component, writing the adjusted first setting parameter to the second control component of the electronic device through a corresponding driver of the target component; in response to obtaining an adjustment operation on the setting parameter of the target component, writing the adjusted first setting parameter to the first control component of the electronic device through the second control component of the electronic device.

4. The method of claim 3, wherein the writing of the adjusted first setting parameter to the second control component of the electronic device through the corresponding driver of the target component comprises: performing conversion processing on the setting parameter corresponding to the adjustment operation through the corresponding driver of the target component to obtain the first setting parameter, and writing the first setting parameter written by the corresponding driver of the target component to the second control component by the first control component of the electronic device; or the writing of the adjusted first setting parameter to the first control component of the electronic device through the second control component of the electronic device comprises: directly writing the first setting parameter obtained through the adjustment operation to the first control component through the second control component.

5. The method of claim 1 or 2, wherein the configuring of the second setting parameter of the target component in the second mode based on the first setting parameter comprises at least one of: performing conversion processing on the first setting parameter through the corresponding driver of the target component to obtain the second setting parameter, and writing the second setting parameter to a second control component corresponding to the second mode by the first control component of the electronic device, so that the second control component controls the use effect of the target component in the second mode based on the second setting parameter; ​ The first setting parameter is written into the first control component corresponding to the second mode by the second control component of the electronic device, and the first setting parameter obtained from the first control component is processed by the corresponding drive of the target component to obtain the second setting parameter.

6. The method of claim 1 or 2, wherein the configuring the second setting parameter of the target component in the second mode based on the first setting parameter comprises at least one of the following: obtaining user portrait information of a target user, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the user portrait information; obtaining environment information in which the electronic device is located, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the environment information; obtaining first running information of the electronic device, and configuring the second setting parameter of the target component in the second mode based on the first setting parameter and the first running information.

7. The method of claim 3, further comprising at least one of the following: obtaining second running information of an output device having a first connection with the electronic device, and adjusting an output parameter of a corresponding target component of the output device based on at least the second running information and the adjustment operation; adjusting a setting parameter or an output parameter of a corresponding component of an output device having a first connection with the electronic device based on the adjustment operation on the setting parameter of the target component.

8. The method of claim 3, further comprising: if the target component of the electronic device is not unique, adjusting an output parameter of at least part of the target component based on the adjustment operation; if the adjustment operation is performed on a split-screen area of a display component of the electronic device, adjusting an output parameter of the split-screen area or a whole area of the display component based on the adjustment operation.

9. A control apparatus, comprising: a parameter obtaining unit configured to obtain a first setting parameter of a target component of an electronic device in a first mode in response to the electronic device switching from the first mode to a second mode; the first mode and the second mode comprising a PC mode, a one-wire connection mode or a wireless projection mode; a parameter configuring unit configured to configure a second setting parameter of the target component in the second mode based on the first setting parameter, so that an output parameter of the target component in the second mode is the same as an output parameter of the target component in the first mode; the output parameter comprising at least one of the following: brightness, contrast, output volume and collection volume; wherein the availability of the electronic device in the first mode and the second mode is different.

10. An electronic device comprising a memory and a processor, the memory storing a computer program capable of running on the processor, and the processor implementing the steps of the control method of any one of claims 1 to 8 when executing the computer program.

Citation Information

Patent Citations

  • Mobile terminal based audio parameter configuration method and system as well as mobile terminal

    CN104660818A

  • Intelligent control display system and control method

    CN111651133A