Information handling devices (“devices”), for example cell phones, smart phones, tablet devices, laptop and desktop computers, televisions, alarm clocks, navigation systems, e-readers, etc., employ one or more input devices. Among these input devices are input surfaces such as a touch sensitive input surface, for example touch screens, digitizers and touch pads.
Input surfaces such as digitizers and touch screens continually record the location of a stylus pointer or finger (relative to the input surface). This location information may be reported to the system, e.g., typically the operating system (OS) uses this location information to render some visual effect based on the location information. Any lags or inconsistency of motion (between the input provided by the user and the interpretation and rendering thereof by the OS) breaks the illusion of responsiveness. Such inconsistencies may cause the user to try to compensate (e.g., by modifying the input provided) or simply frustrate the user.
Sensing, interpreting and rendering within one display screen refresh period creates a beneficial user experience. Achieving all these actions in one screen refresh period is challenging, however, e.g., because screen refresh periods are short (on the order of 17 ms for a liquid crystal display (LCD)). In conventional systems it is not uncommon to have on-screen response to inputs lag by several frames (refresh periods).
In summary, one aspect provides a method, comprising: providing an indication of display screen refresh timing derived from a display system; associating, using the indication of the display screen refresh timing, a set of input data derived from an input surface with a display screen refresh interval; and synchronizing, using one or more processors, the set of input data derived from the input surface with a refresh of a display screen.
Another aspect provides an information handling device, comprising: an input surface; a display system; one or more processors; a memory device assessable to the one or more processors and storing code executable by the one or more processors to: provide an indication of display screen refresh timing derived from a display system; associate, using the indication of the display screen refresh timing, a set of input data derived from an input surface with a display screen refresh interval; and synchronize, using one or more processors, the set of input data derived from the input surface with a refresh of a display screen.
A further aspect provides a program product, comprising: a storage device having computer readable program code stored therewith, the computer readable program code comprising: computer readable program code configured to provide an indication of display screen refresh timing derived from a display system; computer readable program code configured to associate, using the indication of the display screen refresh timing, a set of input data derived from an input surface with a display screen refresh interval; and computer readable program code configured to synchronize, using one or more processors, the set of input data derived from the input surface with a refresh of a display screen.
The foregoing is a summary and thus may contain simplifications, generalizations, and omissions of detail; consequently, those skilled in the art will appreciate that the summary is illustrative only and is not intended to be in any way limiting.
For a better understanding of the embodiments, together with other and further features and advantages thereof, reference is made to the following description, taken in conjunction with the accompanying drawings. The scope of the invention will be pointed out in the appended claims.
It will be readily understood that the components of the embodiments, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations in addition to the described example embodiments. Thus, the following more detailed description of the example embodiments, as represented in the figures, is not intended to limit the scope of the embodiments, as claimed, but is merely representative of example embodiments.
Reference throughout this specification to “one embodiment” or “an embodiment” (or the like) means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearance of the phrases “in one embodiment” or “in an embodiment” or the like in various places throughout this specification are not necessarily all referring to the same embodiment.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments. One skilled in the relevant art will recognize, however, that the various embodiments can be practiced without one or more of the specific details, or with other methods, components, materials, et cetera. In other instances, well known structures, materials, or operations are not shown or described in detail to avoid obfuscation.
Many input surfaces (e.g., digitizer, touch screen, etc.) function as a sensor that delivers data at one point in time, i.e., as input data is sensed it is streamed or reported to another component or system, e.g., an operating system (OS). This minimizes delay latency in the input data delivery but also incurs a high expense of having the input surface provide many interrupts, each transferring only a small amount of data. One possible result is greater end-to-end latency as the system processor/CPU receives each data point and adds it to a buffer to be processed when the OS is ready for the data.
I/O architecture (e.g., USB, I2C, etc.) is evolving to adopt a batch-processing methodology. Thus, input surfaces fill an internal buffer and release data on-demand as a batch or group of data points that have been collected during an interval. This is generally more efficient in terms of interrupt handling but introduces a new problem, i.e., the data in the buffer(s) is likely to straddle two display frames (refresh periods), part from one frame and part from another. The system (OS) simply requests/receives a batch of data points collected since the last request and no attempt is made to take into account the relationship between the location data points and the display screen functioning (e.g., frame or refresh rate). This leads to difficulties in certain contexts. For example, if the user is providing input rapidly (e.g., moving a stylus around quickly, such as when providing handwriting input), the resultant visual display may be a “jumpy” drawing characteristic rendered by the display screen. For example, a line drawn on screen by a user may be rendered such that it falls behind the stylus tip and then catches up abruptly.
Accordingly, an embodiment provides a solution wherein input surface data (e.g., derived from an input to a digitizer or touch screen) is synchronized with a screen refresh timing. An embodiment utilizes an indication of the display screen refresh timing, e.g., the vsync signal signal available from a graphics sub-system. This provides data from the input surface to the system (e.g., OS) and applications thereof in a timely fashion such that on screen renderings are improved by virtue of including in the overall synchronization the data of the input sub-system.
The illustrated example embodiments will be best understood by reference to the figures. The following description is intended only by way of example, and simply illustrates certain example embodiments.
Referring to
There are power management chip(s) 230, e.g., a battery management unit, BMU, which manage power as supplied for example via a rechargeable battery 240, which may be recharged by a connection to a power source (not shown). In at least one design, a single chip, such as 210, is used to supply BIOS like functionality and DRAM memory.
System 200 typically includes one or more of a WWAN transceiver 250 and a WLAN transceiver 260 for connecting to various networks, such as telecommunications networks and wireless base stations. Commonly, system 200 will include a touch screen 270 for data input and display. System 200 also typically includes various memory devices, for example flash memory 280 and SDRAM 290.
The example of
In
In
The system, upon power on, may be configured to execute boot code 190 for the BIOS 168, as stored within the SPI Flash 166, and thereafter processes data under the control of one or more operating systems and application software (for example, stored in system memory 140). An operating system may be stored in any of a variety of locations and accessed, for example, according to instructions of the BIOS 168. As described herein, a device may include fewer or more features than shown in the system of
Information handling devices, as for example outlined in
Referring to
Thus, at a predetermined point in time, a determination is made 302, e.g., a determination that a top of a next display frame (such as 2nd frame) is detected. This causes the digitizer to buffer the remaining input data for the current display frame 303 and to sequester the current buffer 304 until the system (e.g., OS) requests the data from the digitizer sub-system. Also, the digitizer will make available another buffer 304 continue to buffer the input data (storing the input data into another buffer), e.g., selected from a pool of available buffers. An embodiment proceeds in this manner such that when the top of an nth frame is detected 305, an nth buffer is created 306 and sequestration/availing a new buffer continue 307 in like fashion. This permits sequestering input data into buffers, and subsequent release thereof to an OS, utilizing timing information of the display screen's refresh. The buffer pool or storage space needs to contain enough space to buffer input data to cover a worst-case scenario, i.e., input data corresponding to a number of frames the OS may (temporarily) fall behind such that this data is available when the OS is capable of handling it.
Other mechanisms for leveraging the indication of display screen refresh rate or timing are possible. For example, in addition to such buffering, or as an alternative thereto, an embodiment may provide timing information along with the input data derived form the input sub-system. Thus, another component, e.g., an OS of the overall system, may be able to sort through the input data and utilize appropriately synchronized input data based on knowledge of the display screen refresh rate. Thus, an input sub-system need not be explicitly notified or made aware of the display screen refresh timing. Moreover, an OS may be modified to appropriately time requests such that input data buffered by an input sub-system is appropriately synchronized with the display screen refresh timing.
Referring to
A controller of the input sub-system, including e.g., including a processor 402, may provide input data to a processor 403 of system 400, e.g., for use in an OS 404 operating a display 405 (noting that display 405 may include its own sub-system, e.g., graphics sub-system). Likewise, as further described herein, OS 404 may avail input sub-system processor 402 with information or indication regarding the timing of display screen 405 refresh/frame rate. For example, processor 403 may communicate this information to processor 402, which in turn manages the input data buffering in buffers 401 such that it is appropriately synchronized with the display device 405 timing.
A digitizer sub-system (as a non-limiting example of an input sub-system) may detect or be apprised of the beginning of a new display frame of a display device 405 through several mechanisms. For example, a graphics sub-system generally makes available or provides a “vsync” (vertical synchronization) interrupt to the OS 404 at the bottom or end of a display frame. In reaction to this, the OS 404 may explicitly notify the processor 402 of the digitizer or input sub-system in question of the end of or impending beginning of a display frame.
As another example, an additional vsync signal line (not illustrated) may be routed directly to a new start of frame input on the input sub-system to inform, e.g., a processor 403 of a digitizer, of the start or top of a new display frame. Therefore, the vsync signal may be utilized to indicate the synchronization timing between the display screen 405 frame refresh and collected input data stored in buffers 401.
In an example case where the input sub-system is closely integrated with the display screen 405 (e.g., a touch screen sub-system), the existing vsync signal utilized by the touch screen control may be borrowed from the display screen 405 and routed to the digitizer or touch screen sub-system. This is akin to having the OS 404 notify the digitizer or touch screen sub-system, but takes advantage of the locality of the components of the touch screen sub-system. For example, as all components of the touch screen/digitizer may be located in the same functional block, such an approach may be particularly appropriate for in-cell touch input device designs.
Other possible mechanisms of obtaining synchronization information are possible. For example, current digitizer and touch screen implementations attempt to cancel out interference between display scanning and digitizer scanning In order to do this (e.g., off-set the display scan and the digitizer scan), the sub-system is aware of the display refresh or frame beginning point or timing (e.g., vsync signal interval). In an embodiment, the detected vsync signal interval or timing may be used, in addition to preventing scan interference, to indicate when the display begins a new frame in order to appropriately buffer and provide input data to the display for refresh.
A benefit of determining the precise timing of the display scan position allows an input sub-system to more efficiently cancel out interference that display scanning creates. For example, an input sub-system may scan its own array slightly ahead of or behind the display scan, etc., because the display scan position is known. This would permit off-set between the two scans (display and input) and consequently avoidance of interference there-between.
Processing of the input data may be appropriately scaled or tailored using such timing information regarding display screen refresh or scanning During the time that the input sub-system controller (including processor 402) is accumulating input samples in buffers 401 and, e.g., in between vsync boundaries, the input sub-system controller may apply additional processing or filtering of the input data. In contrast to conventional filtering processes that may not be completed prior to the next request, and thus delay delivery of data, e.g., to OS 404, an embodiment, having timing information regarding display refresh rate available (e.g., by virtue of knowing the vsync signal interval), may appropriately scale processing so as to not delay delivery of buffered input data. For example, the input sub-system controller sub-system may use the collection of samples to filter out errant data points or to apply signal processing to improve the accuracy or quality of the collection of samples during the buffering interval. Such processing may include but not necessarily be limited to improved line drawing routines such as smoothing and straightening, improved character formation, assisted handwriting recognition pre-processing and shape or region drawing assistance.
The input sub-system controller may alter its sampling frequency from one vsync period to the next. In this fashion, the amount of activity within the current vsync period can be used to predict the appropriate sampling frequency of the next period. The per-vsync period frequency adjustment would allow the input sub-system controller to trade off sampling resolution for power consumption based on the content of the previous interval or period.
By combining increased sample frequency and additional signal processing within the input sub-system controller, the accuracy of the input device can be improved. This may be accomplished using samples for the same data input position and then averaging them together to register an (x, y) point with greater accuracy. This concept may be extended to a line segment, where each (x, y) point may use the previous series of points to more accurately register the current position.
Accordingly, an embodiment provides synchronization between input data provisioning, e.g., via appropriate buffering/delivery of input data within a data input sub-system, and display screen refresh/frame rate. Such appropriate synchronization will help a system avoid unfortunate visual artifacts (e.g., delayed rendering, tearing, etc.) from occurring due to out-of-synch input data and display screen data.
As will be appreciated by one skilled in the art, various aspects may be embodied as a system, method or device program product. Accordingly, aspects may take the form of an entirely hardware embodiment or an embodiment including software that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects may take the form of a device program product embodied in one or more device readable medium(s) having device readable program code embodied therewith.
Any combination of one or more non-signal device readable medium(s) may be utilized. The non-signal medium may be a storage medium. A storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a storage medium would include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, et cetera, or any suitable combination of the foregoing.
Program code for carrying out operations may be written in any combination of one or more programming languages. The program code may execute entirely on a single device, partly on a single device, as a stand-alone software package, partly on single device and partly on another device, or entirely on the other device. In some cases, the devices may be connected through any type of connection or network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made through other devices (for example, through the Internet using an Internet Service Provider) or through a hard wire connection, such as over a USB connection.
Aspects are described herein with reference to the figures, which illustrate example methods, devices and program products according to various example embodiments. It will be understood that the actions and functionality may be implemented at least in part by program instructions. These program instructions may be provided to a processor of a general purpose information handling device, a special purpose information handling device, or other programmable data processing device or information handling device to produce a machine, such that the instructions, which execute via a processor of the device implement the functions/acts specified.
This disclosure has been presented for purposes of illustration and description but is not intended to be exhaustive or limiting. Many modifications and variations will be apparent to those of ordinary skill in the art. The example embodiments were chosen and described in order to explain principles and practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.
Thus, although illustrative example embodiments have been described herein with reference to the accompanying figures, it is to be understood that this description is not limiting and that various other changes and modifications may be affected therein by one skilled in the art without departing from the scope or spirit of the disclosure.