How to reset lv_disp_get_inactive_time without touching the screen

How to reset lv_disp_get_inactive_time without touching the screen

What LVGL version are you using?

8.2

What do you want to achieve?

I would like to reset lv_disp_get_inactive_time without touching the screen.
To better explain my problem:
my machine provides two states, moving or stopped.
At the time when the machine is moving I would like to reset lv_disp_get_inactive_time, so that when the machine switches to stopped it starts counting from 0 lv_disp_get_inactive_time.
Assume that I to turn off the screen I want lv_disp_get_inactive_time to be >= 10 sec, if the screen is not touched for 60 sec, but the machine from second 5 to second 50 was moving,
I would like lv_disp_get_inactive_time to start counting time from 0 to second 50, even though it has been 50 sec that the screen is not touched. Thank you in advance.

use lv_disp_trig_activity. See Inactivity.