Repository navigation
graphics/input: Add monkey long-press exit and update Kconfig dependencies - #4035
Merged
Merged
Conversation
Replace the separate monitor thread with a single-threaded poll-based event loop using signalfd and timerfd. Signed-off-by: rongyichang <[email protected]>
change kconfig from select to depends on for monkey Signed-off-by: rongyichang <[email protected]>
LIBC_PRINT_EXTENSION has no prompt, so it cannot be turned on from a defconfig and a board has no way to satisfy it as a dependency. Monkey needs it: monkey_log_printf() packs the va_list into a struct va_format and hands it to syslog() with "%pV", which is only expanded when the extension is enabled, otherwise every log line degrades to a raw pointer value followed by a literal 'V'. Select it instead so enabling monkey pulls in the extension it actually uses. Signed-off-by: liuchan3 <[email protected]> Signed-off-by: rongyichang <[email protected]>
xiaoxiang781216
approved these changes
Nov 12, 2026
GUIDINGLI
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-eoption(default:
/dev/input0, threshold: 2500ms).event scheduling.
generator configuration, and retain automatic selection of
LIBC_PRINT_EXTENSION for monkey logging.
Impact
The exit-monitor device is grabbed exclusively until monkey exits.
SIGTERM exits through normal cleanup; SIGTSTP/SIGCONT pause and resume
input generation.
Board configurations must explicitly enable the required dependencies.
A corresponding NuttX qemu-armv7a:full defconfig update is needed to
keep the input tool enabled. (apache/nuttx#21771)
Testing
monkey C implementation, covering signals, multiple instances,
pause/resume, short/long presses, grab release and restart.
signal/timer readiness remains unverified.