kvm/internal/native
Alex P aa0fe18b4a Merge branch 'dev' into feat/audio-support
Integrate latest dev branch changes including:
- HID RPC handshake improvements
- Video sleep mode functionality
- IPv6 address sorting fixes
- OTA update flow improvements
- Video stream lifecycle management

All audio functionality preserved and tested.
2025-11-24 23:30:49 +02:00
..
cgo Merge branch 'dev' into feat/audio-support 2025-11-24 23:30:49 +02:00
eez feat: refactoring network stack (#878) 2025-10-15 18:32:58 +02:00
proto feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
README.md feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
cgo_linux.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
cgo_notlinux.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
chan.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
ctrl.h feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
display.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
empty.go feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
grpc_client.go feat: handle grpc events (#986) 2025-11-20 16:07:50 +01:00
grpc_clientmethods.go feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
grpc_server.go feat: handle grpc events (#986) 2025-11-20 16:07:50 +01:00
grpc_servermethods.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
interface.go feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
log.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
native.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
proxy.go feat: add failsafe reason for video max restart attempts reached (#991) 2025-11-20 17:32:54 +01:00
server.go fix: stop video stream before enabling sleep mode (#999) 2025-11-21 14:37:51 +01:00
single.go feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
video.go Merge branch 'dev' into feat/audio-support 2025-11-24 23:30:49 +02:00

README.md

jetkvm-native

This component (internal/native/) acts as a bridge between Golang and native (C/C++) code. It manages spawning and communicating with a native process via sockets (gRPC and Unix stream).

For performance-critical operations such as video frame, a dedicated Unix socket should be used to avoid the overhead of gRPC and ensure low-latency communication.

Debugging

To enable debug mode, create a file called .native-debug-mode in the /userdata/jetkvm directory.

touch /userdata/jetkvm/.native-debug-mode

This will cause the native process to listen for SIGHUP signal and crash the process.

pgrep native | xargs kill -SIGHUP