A method and display device for implementing pseudo standby mode
By using a fake standby method to control the power lock management module to hold the lock, the problem of system crashes or freezes after an external storage device in a display device is converted into an internal storage device is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HISENSE VISUAL TECH CO LTD
- Filing Date
- 2022-02-09
- Publication Date
- 2026-05-26
AI Technical Summary
After converting an external storage device to an internal storage device in a display device, restarting the application may cause the display device to freeze or the application to crash.
By performing a fake standby, the power lock management module holds the lock and only retains the original, unreleased handle in the display device, thus avoiding the need to reacquire the application handle.
This prevents display device crashes and application freezes, thus improving the user experience.
Smart Images

Figure CN116614663B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of display devices, and more particularly to a method and display device for implementing a fake standby mode. Background Technology
[0002] Display devices refer to terminal devices capable of outputting specific display images, such as smart TVs, mobile terminals, smart advertising screens, and projectors. Taking smart TVs as an example, smart TVs are television products based on Internet application technologies, possessing open operating systems and chips, and having open application platforms. They enable two-way human-computer interaction and integrate multiple functions such as audio-visual, entertainment, and data to meet diverse and personalized user needs.
[0003] As users continuously install and run applications on their display devices, the built-in storage space gradually decreases. To expand the display's internal storage, users often convert external storage devices to internal storage. While users can install applications on the converted internal storage, they often find that running the application and then the display entering true standby (STR standby, where the display is in suspend mode) can cause the device to freeze or the application to crash upon restarting the display and reopening the application, severely impacting the user experience.
[0004] Therefore, how to avoid display device crashes or application crashes when the application is reopened has become a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] Some embodiments of this application provide a method and display device for implementing false standby. This method implements false standby so that when the display device is powered on and running an application, it no longer reacquires the handle corresponding to the application. In this way, only the original unreleased handle exists in the display device, which will not cause problems such as display device crash or application crash.
[0006] In a first aspect, a display device is provided, comprising:
[0007] A monitor is used to display the user interface.
[0008] User interface, used to receive input signals;
[0009] The controllers, connected to the display and user interface respectively, are used to perform:
[0010] The system receives a power-off command from the display device, determines whether the power lock management module holds the lock, and obtains the status of the power-saving switch. When the display device contains an internal storage device converted from an external storage device, the system controls the power lock module to hold the lock. When the power lock module holds the lock and the power-saving switch is in the "on" state, the system executes a pseudo-standby mode.
[0011] In some embodiments, the controller is configured to perform the following steps to determine whether a built-in storage device, converted from an external storage device, exists in the display device:
[0012] Obtain device information for all storage devices in the display device, the device information including device identifier and device type;
[0013] When the device identifier indicates the existence of an external storage device connected to the display device, and the device type is a private type, it is determined that the display device contains an internal storage device converted from an external storage device.
[0014] In some embodiments, the controller is configured to perform the following steps to determine whether the device identifier indicates the existence of an external storage device connected to the display device:
[0015] The device identifier includes a device identifier and a universally unique identification code;
[0016] Determine whether the device identifier is empty. If the device identifier is not empty, determine whether the universally unique identifier is empty. If the universally unique identifier is not empty, determine that the device identifier indicates the existence of an external storage device connected to the display device.
[0017] In some embodiments, the controller is configured to control the power lock management module to hold the lock in accordance with the following steps: using a power management service to control the power lock management module to hold the lock.
[0018] In some embodiments, the controller is configured to perform the following steps to convert an external storage device into an internal storage device:
[0019] Receive the instruction to select a preset control and determine the path of the external storage device connected to the display device;
[0020] Determine if the path exists; if it does, write it to the external storage device. After successful uninstallation, format the external storage device and clear the corresponding cache.
[0021] If it does not exist, control the display to show a prompt message.
[0022] Secondly, a method for implementing dummy standby mode is provided, including:
[0023] The system receives a power-off command from the display device, determines whether the power lock management module holds the lock, and obtains the status of the power-saving switch. When the display device contains an internal storage device converted from an external storage device, the system controls the power lock module to hold the lock. When the power lock module holds the lock and the power-saving switch is in the "on" state, the system executes a pseudo-standby mode.
[0024] In some embodiments, the step of determining whether a display device has an internal storage device converted from an external storage device includes:
[0025] Obtain device information for all storage devices in the display device, the device information including device identifier and device type;
[0026] When the device identifier indicates the existence of an external storage device connected to the display device, and the device type is a private type, it is determined that the display device contains an internal storage device converted from an external storage device.
[0027] In some embodiments, the step of determining whether the device identifier indicates the presence of an external storage device connected to the display device includes:
[0028] The device identifier includes a device identifier and a universally unique identification code;
[0029] Determine whether the device identifier is empty. If the device identifier is not empty, determine whether the universally unique identifier is empty. If the universally unique identifier is not empty, determine that the device identifier indicates the existence of an external storage device connected to the display device.
[0030] In some embodiments, the method further includes: using a power management service to control a power lock management module to hold a lock.
[0031] In some embodiments, the step of converting an external storage device into an internal storage device includes:
[0032] Receive the instruction to select a preset control and determine the path of the external storage device connected to the display device;
[0033] Determine if the path exists; if it does, write it to the external storage device. After successful uninstallation, format the external storage device and clear the corresponding cache.
[0034] If it does not exist, control the display to show a prompt message.
[0035] In the above embodiments, a screen mirroring method and display device are provided. This method executes a false standby mode so that when the display device powers on and runs an application, it does not reacquire the application's handle. This ensures that only the original, unreleased handles exist in the display device, preventing issues such as display device crashes or application crashes. The method includes: receiving a power-off command from the display device; determining whether the power lock management module holds a lock; and obtaining the state of a power-saving switch. When the display device contains an internal storage device converted from an external storage device, the power lock module is controlled to hold a lock. When the power lock module holds a lock and the power-saving switch is active, a false standby mode is executed. Attached Figure Description
[0036] Figure 1 An operational scenario between a display device and a control device according to some embodiments is illustrated;
[0037] Figure 2 A hardware configuration block diagram of a control device 100 according to some embodiments is shown;
[0038] Figure 3 A hardware configuration block diagram of a display device 200 according to some embodiments is shown;
[0039] Figure 4 A software configuration diagram of a display device 200 according to some embodiments is shown;
[0040] Figure 5 The diagram above exemplifies a flowchart of a method for implementing dummy standby according to some embodiments;
[0041] Figure 6 The diagram above exemplarily illustrates a user interface schematic of a display device according to some embodiments;
[0042] Figure 7 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0043] Figure 8 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0044] Figure 9 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0045] Figure 10 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0046] Figure 11 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0047] Figure 12 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0048] Figure 13 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments;
[0049] Figure 14 The diagram illustrates a user interface schematic of another display device according to some embodiments. Detailed Implementation
[0050] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0051] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0052] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0053] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0054] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0055] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control unit according to the embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control device 100.
[0056] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0057] In some embodiments, a smart device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the smart device may be used to control the display device 200.
[0058] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the smart device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0059] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0060] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.
[0061] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown.
[0062] In some embodiments, the display device 200 includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0063] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first interface to an nth interface for input / output.
[0064] In some embodiments, the display 260 includes a display screen component for presenting an image, a driving component for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0065] In some embodiments, the display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.
[0066] In some embodiments, the communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0067] In some embodiments, the user interface can be used to receive control signals from the control device 100 (e.g., an infrared remote control).
[0068] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0069] In some embodiments, the external device interface 240 may include, but is not limited to, one or more interfaces such as: High Definition Multimedia Interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.
[0070] In some embodiments, the tuner 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
[0071] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0072] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations via various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the display 260, the controller 250 can perform operations related to the object selected by the user command.
[0073] In some embodiments, the object can be any of the optional objects, such as a hyperlink, an icon, or other operable controls. Operations related to the selected object include: displaying links to hyperlinked pages, documents, images, etc., or performing operations corresponding to the program associated with the icon.
[0074] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM (random access memory), ROM (read-only memory), a first to an nth interface for input / output, a communication bus, etc.
[0075] A CPU (CPU) processor is used to execute operating system and application instructions stored in memory, as well as various interactive instructions received from external input, to execute various applications, data, and content, ultimately for the display and playback of various audio and video content. A CPU processor can include multiple processors, such as a main processor and one or more sub-processors.
[0076] In some embodiments, a graphics processor is used to generate various graphical objects, such as icons, operation menus, and graphics displayed based on user input commands. The graphics processor includes an arithmetic logic unit (ALU) that performs calculations based on various user-input interactive commands and displays various objects according to display attributes; it also includes a renderer that renders the various objects obtained from the ALU, and the rendered objects are used to display on a monitor.
[0077] In some embodiments, the video processor is configured to receive external video signals and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard encoding and decoding protocol of the input signals, so as to obtain a signal that can be directly displayed or played on the display device 200.
[0078] In some embodiments, the video processor includes a demultiplexing module, a video decoding module, an image compositing module, a frame rate conversion module, and a display formatting module. The demultiplexing module demultiplexes the input audio and video data streams. The video decoding module processes the demultiplexed video signal, including decoding and scaling. The image compositing module, such as an image synthesizer, overlays and blends a GUI signal generated by a graphics generator based on user input or its own generation with the scaled video image to generate a displayable image signal. The frame rate conversion module converts the input video frame rate. The display formatting module modifies the received frame rate-converted video output signal to conform to a display format, such as outputting RGB data signals.
[0079] In some embodiments, the audio processor is configured to receive external audio signals, and according to the standard codec protocol of the input signals, perform decompression and decoding, as well as noise reduction, digital-to-analog conversion, and amplification processing, to obtain a sound signal that can be played in a speaker.
[0080] In some embodiments, the user can input user commands through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input commands through the GUI. Alternatively, the user can input user commands by inputting specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0081] In some embodiments, a "user interface" is the medium through which an application or operating system interacts and exchanges information with a user, converting information between its internal form and a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0082] In some embodiments, the display device's system may include a kernel, a command interpreter (shell), a file system, and applications. The kernel, shell, and file system together form the basic operating system structure, allowing users to manage files, run programs, and use the system. Upon power-up, the kernel starts, activates the kernel space, abstracts hardware, initializes hardware parameters, and runs and maintains virtual memory, the scheduler, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. Applications are compiled into machine code after startup, forming a process.
[0083] See Figure 4 In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Layer"), and the kernel layer.
[0084] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0085] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0086] like Figure 4As shown, the application framework layer in this embodiment includes managers, content providers, etc., wherein the managers include at least one of the following modules: ActivityManager, which interacts with all activities running in the system; LocationManager, which provides access to system location services for system services or applications; PackageManager, which retrieves various information related to application packages currently installed on the device; NotificationManager, which controls the display and clearing of notification messages; and WindowManager, which manages icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0087] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling display window changes (e.g., shrinking the display window, shaking the display, distorting the display, etc.).
[0088] In some embodiments, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions that the framework layer needs to perform.
[0089] In some embodiments, the kernel layer is a layer between hardware and software. For example... Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver.
[0090] Display devices refer to terminal devices capable of outputting specific display images, such as smart TVs, mobile terminals, smart advertising screens, and projectors. Taking smart TVs as an example, smart TVs are television products based on Internet application technologies, possessing open operating systems and chips, and having open application platforms. They enable two-way human-computer interaction and integrate multiple functions such as audio-visual, entertainment, and data to meet diverse and personalized user needs.
[0091] As users continuously install and run applications on their display devices, the built-in storage space gradually decreases. To expand the display's internal storage, users often convert external storage devices to internal storage. While users can install applications on the converted internal storage, they often find that running the application and then the display entering true standby (STR standby, where the display is in suspend mode) can cause the device to freeze or the application to crash upon restarting the display and reopening the application, severely impacting the user experience.
[0092] Therefore, how to avoid display device crashes or application crashes when the application is reopened has become a problem that urgently needs to be solved by those skilled in the art.
[0093] Research revealed that the technical problem was caused by the fact that the file handle held by the application was not released after true standby. When the device was turned on again and the application was launched, the handle corresponding to the application was reacquired. This conflict between the unreleased handle and the reacquired handle ultimately caused problems such as the display device freezing or the application crashing.
[0094] To address the aforementioned technical problems, this application provides a method for implementing a false standby mode. This method executes a false standby mode so that when the display device powers on and runs an application, it no longer reacquires the application's handle. Thus, only the original, unreleased handles remain in the display device, preventing issues such as display device crashes or application crashes. Figure 5 As shown, Figure 5 The diagram illustrates a flowchart of a method for implementing dummy standby according to some embodiments, the method comprising S100-S200:
[0095] S100: Receive the power-off command from the display device, determine whether the power lock management module holds the lock (wake_lock), and obtain the status of the power-saving switch. When there is an internal storage device in the display device converted from an external storage device, control the power lock management module to hold the lock.
[0096] In this application embodiment, the power-off command for the display device can be generated in different ways. In some embodiments, the user can press the power button on the control device to generate the power-off command. In other embodiments, a power-off control is provided on the user interface of the display device, and the user can move the focus to the power-off control through the control device and press the confirmation button on the control device to generate the power-off command. Figure 6 As shown, Figure 6 The diagram illustrates, exemplarily, a user interface schematic of a display device according to some embodiments. Figure 6 In this embodiment, a shutdown control is displayed on the user interface. In some cases, to enrich the user's operations on the display device, a restart control can also be displayed when the shutdown control is shown. It should be noted that the embodiments of this application do not limit the operation of generating a shutdown command for the display device; any operation that can generate a shutdown command for the display device is acceptable.
[0097] In this application embodiment, moving the focus to a control can thicken the control's border. Alternatively, other methods can be used to indicate that the control is selected. For example, when the focus moves to a control, the control can change its shape, such as from a square to a circle. Alternatively, when a control is selected, it can be enlarged according to a preset ratio. For instance, if the display area of video controls on the user interface is the same, when a control is selected, its display area increases by 1.2 times compared to the original control's display area. Since this application does not restrict the shape of the control when the focus is on it, other forms that facilitate user identification of selected video controls are acceptable.
[0098] In this embodiment, the steps of determining whether the power lock management module holds the lock and obtaining the status of the power-saving switch can be performed simultaneously, or the step of determining whether the power lock management module holds the lock can be performed first, and if the lock is held, the step of obtaining the status of the power-saving switch can be performed first, and if the power-saving switch is in an "on" state, the step of determining whether the power lock management module holds the lock can be performed. Therefore, this application does not restrict the order in which the steps of determining whether the power lock management module holds the lock and obtaining the status of the power-saving switch are executed after receiving a power-off command from the display device, and can be set according to actual needs.
[0099] In some embodiments, after the display device is powered on, a resident listening service (Agent) is created in the display device to receive various broadcasts issued for the operation of the display device and to perform corresponding operations based on the broadcasts. For example, the operations corresponding to the broadcasts can be turning off the sound and controlling the lighting effects. When the display device receives a power-off command, the system sends a screen-off broadcast. After receiving the screen-off broadcast, the listening service (Agent) determines whether the power lock management mode holds the lock and obtains the status of the power-saving switch. In some embodiments, when the display device receives a power-off command, for example, the user presses the power button on the control device, the driver parses the key value, and throws it up to the framework layer, calls the PhoneWindowManager service, executes the PowerPress function, sends a power-off broadcast, calls the PowerManager service, executes the GotoSleep function, and sends a screen-off broadcast.
[0100] In this embodiment, when the display device contains an internal storage device converted from an external storage device, the power lock management module holds the lock. In some embodiments, when an internal storage device converted from an external storage device exists, the power lock management module is invoked using a listening service to acquire the lock; specifically, the lock is acquired using the wakelockManager.acquireWakeLock interface. In some embodiments, the power lock management module acquires the lock primarily through the power management (powermanager) service. This is achieved by calling the power management service to create a power lock (wakelock) object using the newwakelock method, and then using that object to acquire the lock using the acquire method.
[0101] In related technologies, when an application is installed and running on an internal storage device converted from an external storage device, and the display device is in true standby mode, restarting and running the application may cause the display device to freeze or the application to crash. Therefore, in this embodiment, to prevent the above-mentioned technical problems, when an internal storage device converted from an external storage device exists in the display device, the power lock management module is directly controlled to hold the lock. When the power lock management module holds the lock, it can determine whether to perform false standby based on the power saving switch settings. When the display device receives a shutdown command and performs false standby, restarting and launching the application will not reacquire the handle corresponding to the application, thus avoiding conflicts with unreleased handles and improving the user experience.
[0102] The following sections detail how to determine if an external storage device has been converted into an internal storage device in a display device, as well as information regarding the power management module holding a lock.
[0103] First, we will explain how to determine whether an external storage device has been converted into an internal storage device in the display device.
[0104] In some embodiments, the step of determining whether a built-in storage device converted from an external storage device exists in the display device includes: obtaining device information of the storage device (volume) in the display device, the device information including a device identifier and a device type; when the device identifier indicates the existence of an external storage device connected to the display device, and the device type is private (TYPE_PRIVATE), it is determined that a built-in storage device converted from an external storage device exists in the display device. In some embodiments, obtaining the device information of the storage device in the display device can be accomplished through a storage device management system service.
[0105] The display device can implement its storage function using either a built-in storage device or an external storage device. The built-in storage device may be an existing internal storage device or an external storage device converted into a built-in storage device. Therefore, the display device can have one or more storage devices.
[0106] In this embodiment, different methods can be used to obtain device information of storage devices in the display device. In some embodiments, device information of all storage devices in the display device can be obtained at once, and then the device information can be analyzed one by one. When an internal storage device converted from an external storage device is found, the analysis of the remaining device information is stopped. If the currently analyzed device information cannot determine the existence of an internal storage device converted from an external storage device, the analysis of the next device information continues until all device information has been analyzed. If the existence of an internal storage device converted from an external storage device is still not determined, it is determined that there is no internal storage device converted from an external storage device in the display device.
[0107] For example, the storage devices in the display device include device A, device B, and device C. The device information of the three storage devices is acquired all at once, and then analyzed sequentially. For instance, device A is analyzed first. The analysis reveals that device A is not an external storage device converted into an internal storage device. Next, the device information of storage device B is analyzed. The analysis shows that device B is an external storage device converted into an internal storage device. Therefore, it is determined that the display device contains an internal storage device converted from an external storage device. The analysis of the device information of storage device C is not continued.
[0108] In other embodiments, device information for one storage device at a time can be acquired and analyzed. If it is determined that the storage device corresponding to the acquired device information is an internal storage device converted from an external storage device, then the acquisition of device information for the next storage device in the display device is stopped. If it is determined that the storage device corresponding to the acquired device information is not an internal storage device converted from an external storage device, then the acquisition of device information for the next storage device in the display device continues, and the analysis of this device information continues until device information for all storage devices in the display device is acquired. If it is still not determined that an internal storage device converted from an external storage device exists, then it is determined that no internal storage device converted from an external storage device exists in the display device.
[0109] For example, the storage devices in the display device include device A, device B, and device C. First, device information for device A is obtained and analyzed to determine that device A is not an internal storage device converted from an external storage device. Then, device information for device B is obtained and analyzed to determine that device B is also not an internal storage device converted from an external storage device. Finally, device information for device C is obtained and analyzed to determine that device C is also not an internal storage device converted from an external storage device. Therefore, it is concluded that there is no internal storage device converted from an external storage device in the display device.
[0110] In some embodiments, the device information includes a device identifier and a device type. The device identifier is a unique identifier for the storage device, and its form may include numbers, letters, and / or symbols. The device type includes private and public types. A private device type indicates that the storage device is an internal storage device. A public device type indicates that the storage device is an external storage device.
[0111] The step of determining whether the device identifier in the device information indicates the existence of a storage device includes: determining whether the device identifier is empty; when the device identifier is not empty, it indicates that an external storage device connected to the display device exists. When the device identifier is empty, it indicates that no external storage device is connected to the display device. In this embodiment, when the device identifier is empty, it may be because the storage device corresponding to the device information is the display device's own built-in storage device.
[0112] For example, if the device identifier of device A is empty, it means that device A is the built-in storage device of the display device itself, so there is no need to consider the device type of device A. If the device identifiers of devices B and C are not empty, it means that devices B and C are external storage devices. In subsequent steps, only external storage devices will be identified to determine whether they have been converted into built-in storage devices.
[0113] The system will indicate the presence of an external storage device connected to the display device. It will then determine if the corresponding device type is private. If any storage device is private, it confirms the presence of an internal storage device converted from the external storage device within the display device. If all indicated storage devices are public (not private), it confirms that only external storage devices exist within the display device, and no internal storage devices are present.
[0114] In this embodiment, after determining the existence of an external storage device connected to the display device, it is determined whether the device type of all external storage devices connected to the display device is a proprietary type. When at least one storage device has a proprietary type, it is determined that the display device contains an internal storage device converted from an external storage device. In some embodiments, there may be multiple external storage devices connected to the display device. The device type of each external storage device can be determined one by one. When an external storage device has a proprietary type, it is determined that the external storage device has been converted into an internal storage device, thus eliminating the need to further determine the remaining external storage devices connected to the display device. In other words, once an internal storage device converted from an external storage device is present in the display device, the determination of the storage device's device type ceases. This is because the existence of an internal storage device converted from an external storage device may lead to the technical problems described in related technologies.
[0115] In some embodiments, to more accurately determine whether a device identifier indicates the existence of an external storage device connected to the display device, the step of determining whether the device identifier indicates the existence of an external storage device connected to the display device includes:
[0116] The device identifier includes a device identifier (diskid) and a universally unique identifier (uuid). In this embodiment, each external storage device corresponds to a unique device identifier, and each external storage device also corresponds to a unique universally unique identifier. Both the device identifier and the universally unique identifier can identify a unique external storage device in two different ways. To more accurately determine whether the device identifier indicates the existence of an external storage device connected to the display device, in this embodiment, it is determined whether the device identifier is empty. If the device identifier is not empty, then it is determined whether the universally unique identifier is empty; if the universally unique identifier is not empty, then it is determined that the device identifier indicates the existence of an external storage device connected to the display device. Thus, by using both the device identifier and the universally unique identifier, it is possible to more accurately determine whether the device identifier indicates the existence of an external storage device connected to the display device.
[0117] In some embodiments, the step of converting an external storage device into an internal storage device includes:
[0118] The system receives an instruction to display a preset control and controls the display interface to show the preset control. In this embodiment, the preset control is a control corresponding to an external storage device converted to an internal storage device. In some embodiments, the user connects the external storage device to the display device, at which time an instruction to display the preset control is generated. For example, a large-capacity storage device is inserted into the display device through a USB interface provided on the display device, at which time an instruction to display the preset control is generated. When the display device receives the instruction to display the preset control, it controls the display to show the following: Figure 7 The user interface shown is Figure 7 The diagram illustrates, exemplarily, a user interface schematic of another display device according to some embodiments, in Figure 7 The system displays a preset control that is labeled "Convert to internal storage device".
[0119] The system receives an instruction to select a preset control and determines the path of the external storage device connected to the display device. In some embodiments, the user can move the focus to the preset control using a control device and press the confirmation button on the control device, which generates an instruction to select the preset control.
[0120] In some embodiments, in order to more accurately understand the user's intent, after the user moves the focus to the preset control through the control device and presses the confirmation button on the control device, the command to select the preset control is not generated immediately. Instead, the display is controlled to show a query message. The query message is used to ask the user whether they are sure they want to perform the operation of converting the external storage device into an internal storage device. This can more accurately understand the user's intent and avoid problems caused by misoperation.
[0121] For example, such as Figure 8 As shown, Figure 8 The diagram illustrates a user interface of another display device according to some embodiments, where the user interface changes after a user inserts an external storage device into the display device. In some embodiments, the user interface jumps directly, and the user interface after the jump displays a prompt message, for example, as shown below. Figure 8 The user interface shown will jump to... Figure 9 The user interface shown is Figure 9 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments. Figure 9 A query message is displayed. In other embodiments, the query message is displayed on a floating layer of the user interface, for example, such as... Figure 10 As shown, Figure 10 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments. Figure 10 A prompt message is displayed, which is shown as a floating layer on the user interface.
[0122] Specifically, the query message may be "Are you sure you want to perform the operation of converting the external storage device into an internal storage device?" Along with this query message, confirmation and cancellation controls are also displayed. When the user confirms the operation, they can use the control device to move the focus to the confirmation control and press the confirmation button. This generates an instruction to select a preset control, determining the path of the external storage device connected to the display device. In some embodiments, upon receiving the instruction to select the preset control, the display also continues to show the user interface before the external storage device was inserted. For example, it displays... Figure 8 The user interface shown is the interface used before an external storage device is inserted into the display device.
[0123] When a user does not want the display device to perform this operation, the user can use the control device to move the focus to the cancel control and press the confirmation button on the control device. At this time, no instruction to select the preset control is generated. In some embodiments, when the user selects the cancel control, if the user interface displaying the preset control also displays other controls, the display can be controlled to show the user interface with the preset control, such as... Figure 9 or Figure 10 The user interface shown is designed to allow users to select the cancel control again if they accidentally do so. If the user selects the cancel control a second time, the prompt message is not displayed again. In some embodiments, when the user interface displaying the preset controls does not display other controls, the display can continue to show the user interface before the external storage device is inserted. For example, if there is no step to display the prompt message, the user interface directly displays the user interface before the external storage device is inserted, such as... Figure 8 As shown.
[0124] In this embodiment of the application, when an external storage device is inserted into a display device, the path corresponding to the external storage device is automatically determined, which makes it easier to find the storage location corresponding to the external storage device.
[0125] The system determines whether the path exists. If it exists, the external storage device is unloaded; otherwise, a prompt message is displayed on the screen. In some embodiments, the `onStartCommand` method of the `ExtemalStorageFormatter` class in `framwake` is called to receive the path, and the `updateProgressState` method is executed to determine whether the path exists. If it exists, the external storage device is unloaded.
[0126] In this embodiment, it is determined whether the path exists. If it exists, it indicates that the external storage device is currently connected to the display device, and the external storage device can be unplugged. If it does not exist, it indicates that the external storage device corresponding to the path is not currently connected to the display device. In some embodiments, the display can be controlled to show a prompt message. For example, such as... Figure 11 As shown, Figure 11 The diagram illustrates a user interface of another display device according to some embodiments, where the prompt message can be for an unformatted device, allowing the user to understand the current status of the display device.
[0127] It should be noted that, in the embodiments of this application, unloading the external storage device means that the external storage device and the display device are only physically connected, and at this time, there is no data interaction between the external storage device and the display device.
[0128] After successful uninstallation, the external storage device is formatted and the corresponding cache is cleared. In some embodiments, successful uninstallation triggers a StorageEventListener event, which executes the updateProgressState method to format the storage device; at this time, the formatting operation is performed and the cache is cleared.
[0129] It should be noted that when the external storage device is formatted, all files originally stored on the external storage device are deleted. The corresponding cache refers to the running data generated between the external storage device and the display device when the external storage device is inserted into the display device. In this embodiment, this running data is also deleted.
[0130] In some embodiments, after formatting the external storage device, if the formatting is successful, the display is controlled to show a formatting success message, for example, as shown in the example below. Figure 12 As shown, Figure 12 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments; Figure 12 The system displays a message indicating successful formatting.
[0131] The above content details how to determine if an external storage device has been converted into an internal storage device in a display device. The following section discusses the relevant content regarding the power management module's holding lock.
[0132] In this embodiment of the application, the power lock management module (wakelockManager) holds the lock mainly through the power management (powermanager) service. Specifically, the power management service creates a power lock object by calling the power management module and uses the object to obtain the lock.
[0133] In this embodiment, the lock obtained using the object can also be called a wakelock. In some embodiments, the wakelock is a core mechanism for power management in the Android system, including the following four types: PARTIAL_WAKE_LOCK, SCREEN_DIM_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK, and FULL_WAKE_LOCK. When holding a wakelock of type PARTIAL_WAKE_LOCK, the display may be turned off while other modules are still running, i.e., in a false standby state. In this embodiment, whether to execute false standby when the display device is off, i.e., in standby state, also needs to consider the setting of the power saving switch, which will be described in detail below.
[0134] In this embodiment, the "pseudo-standby" corresponds to the "true standby," which is STR (suspend to RAM, also known as memory standby mode). When the display device is in STR standby mode, the controller in the display device only controls the power circuit to maintain power supply to the RAM and MCU, while other hardware, such as the display, Bluetooth module, MIC module, and SOC module, are in a power-off (shutdown) state. In the pseudo-standby of this embodiment, the display is turned off, but other modules remain running.
[0135] S200. When the power lock module holds the lock and the power saving switch is in the open state, a false standby mode is executed.
[0136] In this embodiment, the user interface of the display device displays a power-saving switch status control. The user controls the status control via a control device to turn the power-saving switch on or off. When the user selects the power-saving switch as on using the status control, it means the user wants the display device to save power during operation. When the user selects the power-saving switch as off using the status control, it means the user does not want the display device to save power during operation.
[0137] For example, such as Figure 13 As shown, Figure 13 The diagram above exemplarily illustrates a user interface schematic of another display device according to some embodiments. Figure 13 The display shows the status control for the power-saving switch. Users can adjust the status control of the power-saving switch via the control device, turning it on or off. Figure 13 When the power-saving switch is in the off state, the user can move the focus to the power-saving switch's status control via the control device and press the confirmation button or the right button to switch the power-saving switch to the on state. Figure 14 As shown, Figure 14 The diagram illustrates, exemplarily, a user interface schematic of another display device according to some embodiments, in Figure 14 The energy-saving switch is in the ON position. When the energy-saving switch is in the ON position, press the confirmation button on the control device, or press the left button, to switch the energy-saving switch to the OFF position. See again. Figure 13 The power-saving switch is in the off state.
[0138] In some embodiments, when the power-saving switch is in the on state and the power lock module holds the lock, the power management server (PMS) will never release the lock, thereby achieving the goal of fake standby.
[0139] When a display device contains an internal storage device converted from an external storage device, the power lock module holds a lock. Because in related technologies, after the display device enters true standby mode, the handles of files held by applications installed in the internal storage device are not released. In this embodiment, by holding a lock and with the power-saving switch in an on state, it can be ensured that the display device will not enter true standby mode after receiving a shutdown command, but will instead enter false standby mode. This prevents the repeated acquisition of the file handles, avoiding display device crashes and application crashes.
[0140] In this embodiment, on the one hand, the external storage device is converted into an internal storage device, saving the original internal storage space of the display device. On the other hand, it solves the problem that the application may freeze or crash when running on the internal storage device converted from the external storage device. This makes it easier for users to start and use the application smoothly, improves the real-time performance of the operation, and brings great convenience to users using the display device.
[0141] In the above embodiments, a screen mirroring method and display device are provided. This method executes a false standby mode so that when the display device powers on and runs an application, it does not reacquire the application's handle. This ensures that only the original, unreleased handles exist in the display device, preventing display device crashes or application crashes. The method includes: receiving a power-off command from the display device; determining whether the power lock management module holds a lock; and obtaining the state of the power-saving switch. When the display device contains an internal storage device converted from an external storage device, the power lock module is controlled to hold a lock. When the power lock module holds a lock and the power-saving switch is active, a false standby mode is executed.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0143] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized by comprising: include: A monitor is used to display the user interface. User interface, used to receive input signals; The controllers, connected to the display and user interface respectively, are used to perform: Receive the power-off command from the display device, determine whether the power lock management module holds the lock, and obtain the status of the power-saving switch. When there is an internal storage device in the display device converted from an external storage device, control the power lock module to hold the lock. When the power lock module holds the lock and the power saving switch is in the ON state, a false standby is executed. The false standby indicates that the display is in the OFF state and the modules in the display device other than the display are in the OFF state.
2. The display device of claim 1, wherein, The controller is configured to perform the following steps to determine whether a built-in storage device, converted from an external storage device, exists in the display device: Obtain device information for all storage devices in the display device, the device information including device identifier and device type; When the device identifier indicates the existence of an external storage device connected to the display device, and the device type is a private type, it is determined that the display device contains an internal storage device converted from an external storage device.
3. The display device of claim 2, wherein, The controller is configured to perform the following steps to determine whether the device identifier indicates the existence of an external storage device connected to the display device: The device identifier includes a device identifier and a universally unique identification code; Determine whether the device identifier is empty. If the device identifier is not empty, determine whether the universally unique identifier is empty. If the universally unique identifier is not empty, determine that the device identifier indicates the existence of an external storage device connected to the display device.
4. The display device of claim 1, wherein, The controller is configured to control the power lock management module to hold the lock in the following steps: using the power management service, control the power lock management module to hold the lock.
5. The display device of claim 1, wherein, The controller is configured to convert an external storage device into an internal storage device by performing the following steps: Receive the instruction to select a preset control and determine the path of the external storage device connected to the display device; Determine if the path exists; if it does, write it to the external storage device. After successful uninstallation, format the external storage device and clear the corresponding cache. If it does not exist, control the display to show a prompt message.
6. A method of implementing a fake standby, characterized by, include: Receive the power-off command from the display device, determine whether the power lock management module holds the lock, and obtain the status of the power-saving switch. When there is an internal storage device in the display device converted from an external storage device, control the power lock module to hold the lock. When the power lock module holds the lock and the power saving switch is in the open state, a false standby is executed. The false standby indicates that the display of the display device is in the off state and the modules in the display device other than the display are in the running state.
7. The method according to claim 6, characterized in that, The steps to determine whether a display device contains an internal storage device converted from an external storage device include: Obtain device information for all storage devices in the display device, the device information including device identifier and device type; When the device identifier indicates the existence of an external storage device connected to the display device, and the device type is a private type, it is determined that the display device contains an internal storage device converted from an external storage device.
8. The method according to claim 7, characterized in that, The steps for determining whether the device identifier indicates the presence of an external storage device connected to the display device include: The device identifier includes a device identifier and a universally unique identification code; Determine whether the device identifier is empty. If the device identifier is not empty, determine whether the universally unique identifier is empty. If the universally unique identifier is not empty, determine that the device identifier indicates the existence of an external storage device connected to the display device.
9. The method according to claim 6, characterized in that, The method further includes: using a power management service to control the power lock management module to hold the lock.
10. The method according to claim 6, characterized in that, The steps to convert an external storage device into an internal storage device include: Receive the instruction to select a preset control and determine the path of the external storage device connected to the display device; Determine if the path exists; if it does, write it to the external storage device. After successful uninstallation, format the external storage device and clear the corresponding cache. If it does not exist, control the display to show a prompt message.