Re: [beagleboard] Mouse/touchscreen polling affects CPU load?

2018-02-13 Thread Robert Nelson
On Tue, Feb 13, 2018 at 3:13 AM,   wrote:
>
> Hello,
>
> We are trying to run a web app on BBB via a browser in kiosk mode, and have
> ran into a significant CPU load (20% with plain xterm on X11) when using
> touchscreen or mouse. Situation gets worse if we actually run a web browser.
>
> Then we have found using different mice produced different CPU loads, so we
> ran evhz which showed 133 Hz for one mouse, 1000 Hz for another, and
> 500-1000 Hz for touchscreen.
>
> For the mice, usbhid.mousepoll option configures the polling interval used
> by the usbhid driver/kernel module, and we had successfully set the
> intervals for USB mice.
>
> However, for the TI touchscreen driver, no such configurable option has been
> found.
>
> Is there any way to lower the polling interval, perhaps with a compile time
> option?

You could try monkey-ing with the clock dividers:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/mfd/ti_am335x_tscadc.c#n213

Regards

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYgSmeF5HNv%2BYizP%3Dh9GPt4ZiShO5Tb35NzZinOpUA_6Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Mouse/touchscreen polling affects CPU load?

2018-02-13 Thread admin

Hello,

We are trying to run a web app on BBB via a browser in kiosk mode, and have 
ran into a significant CPU load (20% with plain xterm on X11) when using 
touchscreen or mouse. Situation gets worse if we actually run a web browser.

Then we have found using different mice produced different CPU loads, so we 
ran evhz which showed 133 Hz for one mouse, 1000 Hz for another, and 
500-1000 Hz for touchscreen.

For the mice, usbhid.mousepoll option configures the polling interval used 
by the usbhid driver/kernel module, and we had successfully set the 
intervals for USB mice.

However, for the TI touchscreen driver, no such configurable option has 
been found.

Is there any way to lower the polling interval, perhaps with a compile time 
option?

With best regards,
Boris.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3d3fc420-af81-4581-80ce-9cd25b13a677%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.