|
|
#1 | ||
|
Enthusiast
![]() ![]() Posts: 32
Karma: 122
Join Date: Apr 2025
Location: Pennsylvania, USA
Device: Kindle Signature, 12th Gen.
|
How to send/receive custom events
I'm running Kindle OS 5.17.0 on a Kindle Signature 12th Generation and found that the following can be done to send/receive custom lipc events:
To send a custom event: Code:
lipc-send-event aaa.bbb.ccc event_name1 -s "somestring" lipc-send-event aaa.bbb.ccc event_name2 -i # Quote:
Quote:
Code:
lipc-wait-event -m com.mypackage.myapp myevent 2>/dev/null | while read event
do
# $event contains all of the event details in the form:
#
# source name data
#
# where:
#
# data will be enclosed in quotes if a string, and not if a numeric value
#
# We cannot use IFS substitution because the data
# may include spaces. Therefore, we just use cut.
source=$(echo "${event}" | cut -d ' ' -f1)
name=$(echo "${event}" | cut -d ' ' -f2)
data=$(echo "${event}" | cut -d ' ' -f3-)
case "${event}" in
"com.mypackage.myapp myevent"*)
echo "source = ${source}, name = ${name}, data = ${data}"
;;
esac
Last edited by hanginwithdaddo; 04-22-2025 at 03:54 PM. |
||
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sleep cover events - how to receive? | sergeyvl12 | Kobo Developer's Corner | 2 | 10-10-2013 04:41 PM |
| Touch uinput : send simulated touch/key events to Kobo ? | Rom1 | Kobo Reader | 0 | 06-08-2012 09:50 AM |
| Using the kindle to send/receive text messages (launchpad browser shortcut) | daxp | Amazon Kindle | 0 | 09-25-2011 04:49 PM |
| Send/Receive files WiFi then 3G? | jerrywojo | Amazon Kindle | 1 | 03-01-2011 10:57 PM |
| Send to device now supports custom paths | user_none | Calibre | 0 | 01-04-2010 07:13 AM |