Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2012, 11:40 AM   #16
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Finally, something that does almost touch on my limited knowledge of *nix graphics.

In the normal course of events (no pun intended), X does not use the raw keyboard codes.
There is a "keybrd.something" or a "keymap.something" running/used that does the raw-to-X conversion of raw byte strings into the expected X11 byte strings.

Sorry I can't be more specific, I don't know this subject in any more detail than given above.

NOTE:
It may be hard to find in the Kindle because it may not be there (or may be built into the kernel).
For instance, you will note in geekmaster examples he is almost always reading the "raw" keyboard stream, not a "cooked" translation.
My guess is because the "cooked" translation wasn't available for use (by either geekmaster or by X11).
knc1 is offline   Reply With Quote
Old 11-04-2012, 12:05 PM   #17
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
oooooh!

Code:
com.lab126.framework
        rw      Has     transfer_status
        w       Int     insertKeystroke
        r       Str     xfsn
        rw      Str     logMask
        w       Int     logContent
        rw      Str     logLevel
        r       Int     wirelessSwitch
        w       Int     read
        r       Int     isRegistered
        r       Int     wanSwitch
        w       Int     dismissDialog
hmmmm

Code:
# lipc-set-prop -s com.lab126.framework insertKeystroke 194
com.lab126.framework failed to set value for property insertKeystroke (0x8 lipcErrNoSuchProperty)
Any idea?

Last edited by pepijndevos; 11-04-2012 at 12:10 PM.
pepijndevos is offline   Reply With Quote
Old 11-04-2012, 12:07 PM   #18
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
(after opening browser once and minimising)

lsof:
Spoiler:

Quote:
1 /sbin/init.sysvinit /dev/initctl
373 /sbin/udevd /dev/null
373 /sbin/udevd /dev/null
373 /sbin/udevd /dev/null
373 /sbin/udevd inotify
373 /sbin/udevd socket:[262]
373 /sbin/udevd socket:[263]
373 /sbin/udevd pipe:[264]
373 /sbin/udevd pipe:[264]
964 /usr/sbin/syslog-ng /dev/null
964 /usr/sbin/syslog-ng /dev/null
964 /usr/sbin/syslog-ng /dev/null
964 /usr/sbin/syslog-ng socket:[44289]
964 /usr/sbin/syslog-ng /proc/kmsg
964 /usr/sbin/syslog-ng socket:[44290]
964 /usr/sbin/syslog-ng socket:[20927]
964 /usr/sbin/syslog-ng socket:[21028]
964 /usr/sbin/syslog-ng socket:[21150]
964 /usr/sbin/syslog-ng socket:[21229]
964 /usr/sbin/syslog-ng socket:[21254]
964 /usr/sbin/syslog-ng socket:[21404]
964 /usr/sbin/syslog-ng socket:[21739]
964 /usr/sbin/syslog-ng socket:[21935]
964 /usr/sbin/syslog-ng socket:[21957]
964 /usr/sbin/syslog-ng socket:[21979]
964 /usr/sbin/syslog-ng socket:[21982]
964 /usr/sbin/syslog-ng socket:[22073]
964 /usr/sbin/syslog-ng socket:[22496]
964 /usr/sbin/syslog-ng socket:[22578]
964 /usr/sbin/syslog-ng socket:[22825]
964 /usr/sbin/syslog-ng socket:[22899]
964 /usr/sbin/syslog-ng socket:[22956]
964 /usr/sbin/syslog-ng socket:[23020]
964 /usr/sbin/syslog-ng /var/log/messages
1407 /sbin/fsp /dev/null
1407 /sbin/fsp /dev/null
1407 /sbin/fsp /dev/null
1407 /sbin/fsp /dev/fuse
1479 /mnt/us/launchpad/launchpad /dev/null
1479 /mnt/us/launchpad/launchpad /dev/console
1479 /mnt/us/launchpad/launchpad /dev/null
1479 /mnt/us/launchpad/launchpad /dev/input/event0
1479 /mnt/us/launchpad/launchpad /dev/fb/0
1479 /mnt/us/launchpad/launchpad /dev/input/event1
1479 /mnt/us/launchpad/launchpad /dev/input/event2
1479 /mnt/us/launchpad/launchpad socket:[19917]
1479 /mnt/us/launchpad/launchpad /proc/keypad
1479 /mnt/us/launchpad/launchpad /proc/fiveway
1549 /bin/busybox /dev/null
1549 /bin/busybox /dev/null
1549 /bin/busybox /dev/console
1549 /bin/busybox /opt/eink/scripts/lifeguard
1549 /bin/busybox /dev/console
1596 /bin/busybox /dev/null
1596 /bin/busybox /dev/null
1596 /bin/busybox /dev/console
2037 /usr/bin/recEvent /dev/null
2037 /usr/bin/recEvent /dev/console
2037 /usr/bin/recEvent /dev/console
2037 /usr/bin/recEvent /var/tmp/dbglog.out
2037 /usr/bin/recEvent socket:[20488]
2092 /usr/bin/wpa_supplicant /dev/null
2092 /usr/bin/wpa_supplicant /dev/null
2092 /usr/bin/wpa_supplicant /dev/null
2092 /usr/bin/wpa_supplicant /var/log/wpa_supplicant.wlan0.log
2092 /usr/bin/wpa_supplicant socket:[20634]
2092 /usr/bin/wpa_supplicant socket:[20635]
2092 /usr/bin/wpa_supplicant socket:[20644]
2092 /usr/bin/wpa_supplicant socket:[20645]
2092 /usr/bin/wpa_supplicant socket:[20651]
2295 /usr/bin/dbus-daemon /dev/null
2295 /usr/bin/dbus-daemon /dev/null
2295 /usr/bin/dbus-daemon /dev/null
2295 /usr/bin/dbus-daemon socket:[20765]
2295 /usr/bin/dbus-daemon /dev/null
2295 /usr/bin/dbus-daemon socket:[20780]
2295 /usr/bin/dbus-daemon socket:[20781]
2295 /usr/bin/dbus-daemon socket:[20930]
2295 /usr/bin/dbus-daemon socket:[21023]
2295 /usr/bin/dbus-daemon socket:[21177]
2295 /usr/bin/dbus-daemon socket:[21247]
2295 /usr/bin/dbus-daemon socket:[21249]
2295 /usr/bin/dbus-daemon socket:[21333]
2295 /usr/bin/dbus-daemon socket:[21456]
2295 /usr/bin/dbus-daemon socket:[21521]
2295 /usr/bin/dbus-daemon socket:[21717]
2295 /usr/bin/dbus-daemon socket:[21898]
2295 /usr/bin/dbus-daemon socket:[21947]
2295 /usr/bin/dbus-daemon socket:[21952]
2295 /usr/bin/dbus-daemon socket:[21972]
2295 /usr/bin/dbus-daemon socket:[23949]
2295 /usr/bin/dbus-daemon socket:[22537]
2295 /usr/bin/dbus-daemon socket:[22888]
2295 /usr/bin/dbus-daemon socket:[22902]
2295 /usr/bin/dbus-daemon socket:[23951]
2295 /usr/bin/dbus-daemon socket:[45453]
2416 /usr/bin/pmond /dev/null
2416 /usr/bin/pmond /dev/null
2416 /usr/bin/pmond /dev/null
2416 /usr/bin/pmond /var/run/pmond.pid
2416 /usr/bin/pmond socket:[20926]
2416 /usr/bin/pmond pipe:[20928]
2416 /usr/bin/pmond pipe:[20928]
2416 /usr/bin/pmond socket:[20929]
2466 /usr/bin/powerd /dev/null
2466 /usr/bin/powerd /dev/null
2466 /usr/bin/powerd /dev/null
2466 /usr/bin/powerd /var/run/powerd.pid
2466 /usr/bin/powerd /dev/fb/0
2466 /usr/bin/powerd pipe:[21021]
2466 /usr/bin/powerd pipe:[21021]
2466 /usr/bin/powerd socket:[21022]
2466 /usr/bin/powerd pipe:[21031]
2466 /usr/bin/powerd socket:[21027]
2466 /usr/bin/powerd pipe:[21031]
2466 /usr/bin/powerd socket:[21032]
2466 /usr/bin/powerd /dev/i2c/0
2612 /usr/sbin/wifid /dev/null
2612 /usr/sbin/wifid /dev/null
2612 /usr/sbin/wifid /dev/null
2612 /usr/sbin/wifid socket:[21214]
2612 /usr/sbin/wifid socket:[21228]
2612 /usr/sbin/wifid /var/run/wifid.pid
2612 /usr/sbin/wifid pipe:[21244]
2612 /usr/sbin/wifid pipe:[21244]
2612 /usr/sbin/wifid socket:[21248]
2612 /usr/sbin/wifid socket:[21258]
2612 /usr/sbin/wifid socket:[21260]
2623 /usr/sbin/cmd /dev/null
2623 /usr/sbin/cmd /dev/null
2623 /usr/sbin/cmd /dev/null
2623 /usr/sbin/cmd socket:[21148]
2623 /usr/sbin/cmd /var/run/cmd.pid
2623 /usr/sbin/cmd pipe:[21175]
2623 /usr/sbin/cmd pipe:[21175]
2623 /usr/sbin/cmd socket:[21176]
2669 /usr/sbin/wand /dev/null
2669 /usr/sbin/wand /dev/null
2669 /usr/sbin/wand /dev/null
2669 /usr/sbin/wand /var/run/wand.pid
2669 /usr/sbin/wand pipe:[21245]
2669 /usr/sbin/wand pipe:[21245]
2669 /usr/sbin/wand socket:[21246]
2669 /usr/sbin/wand socket:[21253]
2669 /usr/sbin/wand /dev/tts/USB1
2669 /usr/sbin/wand socket:[23118]
2752 /usr/sbin/phd /dev/null
2752 /usr/sbin/phd /dev/null
2752 /usr/sbin/phd /dev/null
2752 /usr/sbin/phd /var/run/phd.pid
2752 /usr/sbin/phd pipe:[21331]
2752 /usr/sbin/phd pipe:[21331]
2752 /usr/sbin/phd socket:[21332]
2752 /usr/sbin/phd socket:[21403]
2752 /usr/sbin/phd socket:[21408]
2752 /usr/sbin/phd pipe:[21409]
2752 /usr/sbin/phd pipe:[21409]
2752 /usr/sbin/phd socket:[22290]
2831 /usr/sbin/mcsd /dev/null
2831 /usr/sbin/mcsd /dev/null
2831 /usr/sbin/mcsd /dev/null
2831 /usr/sbin/mcsd /var/run/mcsd.pid
2831 /usr/sbin/mcsd pipe:[21454]
2831 /usr/sbin/mcsd pipe:[21454]
2831 /usr/sbin/mcsd socket:[21455]
2831 /usr/sbin/mcsd socket:[23019]
2887 /usr/sbin/volumd /dev/null
2887 /usr/sbin/volumd /dev/null
2887 /usr/sbin/volumd /dev/null
2887 /usr/sbin/volumd /var/run/volumd.pid
2887 /usr/sbin/volumd pipe:[21519]
2887 /usr/sbin/volumd pipe:[21519]
2887 /usr/sbin/volumd socket:[21520]
3033 /usr/bin/audioServer /dev/null
3033 /usr/bin/audioServer /dev/null
3033 /usr/bin/audioServer /dev/null
3033 /usr/bin/audioServer /var/run/audio.pid
3033 /usr/bin/audioServer pipe:[21715]
3033 /usr/bin/audioServer pipe:[21715]
3033 /usr/bin/audioServer socket:[21716]
3033 /usr/bin/audioServer pipe:[21955]
3033 /usr/bin/audioServer pipe:[21955]
3033 /usr/bin/audioServer socket:[21978]
3082 /usr/sbin/ttsd /dev/null
3082 /usr/sbin/ttsd /dev/null
3082 /usr/sbin/ttsd /dev/null
3082 /usr/sbin/ttsd socket:[21738]
3082 /usr/sbin/ttsd /usr/share/tts/dict
3082 /usr/sbin/ttsd /usr/share/tts
3082 /usr/sbin/ttsd /usr/share/tts/dict/0000.bdc
3082 /usr/sbin/ttsd /usr/share/tts/dict/1005.bdc
3082 /usr/sbin/ttsd /usr/share/tts/dict/1005.rst
3082 /usr/sbin/ttsd /usr/share/tts/dict/1010.bdc
3082 /usr/sbin/ttsd /usr/share/tts/dict/1010.rst
3082 /usr/sbin/ttsd /usr/share/nuance/data/sysdct_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/sysdct_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/depes_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/depes_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/pp.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/pp.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/tokentn_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/tokentn_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/synth_tom_full_155mrf22_270_06.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/synth_tom_full_155mrf22_270_06.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/sysdct_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/sysdct_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/depes_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/depes_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/phonmap_enu_tom.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/pp.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/pp.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/tokentn_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/tokentn_enu_cfg3.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/uselect_tom_full.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/synth_tom_full_155mrf22_270_06.dat
3082 /usr/sbin/ttsd /usr/share/nuance/data/synth_tom_full_155mrf22_270_06.dat
3082 /usr/sbin/ttsd pipe:[21945]
3082 /usr/sbin/ttsd pipe:[21945]
3082 /usr/sbin/ttsd socket:[21946]
3082 /usr/sbin/ttsd pipe:[21950]
3082 /usr/sbin/ttsd pipe:[21950]
3082 /usr/sbin/ttsd socket:[21951]
3082 /usr/sbin/ttsd pipe:[21958]
3082 /usr/sbin/ttsd pipe:[21958]
3082 /usr/sbin/ttsd /var/tmp/ttsUSFifo
3219 /usr/bin/lipc-daemon /dev/null
3219 /usr/bin/lipc-daemon /dev/null
3219 /usr/bin/lipc-daemon /dev/null
3219 /usr/bin/lipc-daemon pipe:[21896]
3219 /usr/bin/lipc-daemon pipe:[21896]
3219 /usr/bin/lipc-daemon socket:[21897]
3219 /usr/bin/lipc-daemon /etc/lipc-daemon-events.conf
3219 /usr/bin/lipc-daemon socket:[21934]
3239 /usr/sbin/tmd /dev/null
3239 /usr/sbin/tmd /dev/null
3239 /usr/sbin/tmd /dev/null
3239 /usr/sbin/tmd /var/run/tmd.pid
3239 /usr/sbin/tmd inotify
3239 /usr/sbin/tmd pipe:[21970]
3239 /usr/sbin/tmd pipe:[21970]
3239 /usr/sbin/tmd socket:[21971]
3239 /usr/sbin/tmd socket:[21981]
3245 /bin/busybox /dev/null
3245 /bin/busybox /dev/null
3245 /bin/busybox /dev/null
3245 /bin/busybox socket:[21956]
3343 /usr/bin/webreader /dev/null
3343 /usr/bin/webreader /var/log/messages.0 (deleted)
3343 /usr/bin/webreader /var/log/messages.0 (deleted)
3343 /usr/bin/webreader /dev/fb/0
3343 /usr/bin/webreader /dev/input/event0
3343 /usr/bin/webreader /dev/input/event1
3343 /usr/bin/webreader /dev/input/event2
3343 /usr/bin/webreader socket:[22820]
3343 /usr/bin/webreader socket:[22821]
3343 /usr/bin/webreader pipe:[22822]
3343 /usr/bin/webreader pipe:[22822]
3343 /usr/bin/webreader socket:[22824]
3343 /usr/bin/webreader /mnt/us/home/root/.local/share/webkit/icondatabase/WebpageIcons.db
3343 /usr/bin/webreader socket:[22884]
3343 /usr/bin/webreader pipe:[22886]
3343 /usr/bin/webreader pipe:[22886]
3343 /usr/bin/webreader socket:[22887]
3385 /usr/bin/browserd /dev/null
3385 /usr/bin/browserd /dev/null
3385 /usr/bin/browserd /dev/null
3385 /usr/bin/browserd socket:[22577]
3385 /usr/bin/browserd pipe:[22604]
3385 /usr/bin/browserd pipe:[22661]
3385 /usr/bin/browserd pipe:[22661]
3385 /usr/bin/browserd /dev/fb/0
3385 /usr/bin/browserd /dev/input/event0
3385 /usr/bin/browserd /dev/input/event1
3385 /usr/bin/browserd /dev/input/event2
3385 /usr/bin/browserd socket:[22818]
3385 /usr/bin/browserd socket:[22819]
3385 /usr/bin/browserd socket:[22880]
3385 /usr/bin/browserd pipe:[45451]
3385 /usr/bin/browserd pipe:[45451]
3385 /usr/bin/browserd socket:[45452]
3385 /usr/bin/browserd /var/local/java/prefs/cookies
3385 /usr/bin/browserd pipe:[45454]
3385 /usr/bin/browserd pipe:[45583]
3385 /usr/bin/browserd pipe:[45697]
3385 /usr/bin/browserd /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3385 /usr/bin/browserd /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3385 /usr/bin/browserd /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3385 /usr/bin/browserd /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3427 /bin/busybox /dev/null
3427 /bin/busybox /dev/null
3427 /bin/busybox /dev/null
3427 /bin/busybox socket:[21214]
3427 /bin/busybox pipe:[22045]
3427 /bin/busybox /var/run/wifid.pid
3427 /bin/busybox pipe:[21244]
3427 /bin/busybox pipe:[21244]
3427 /bin/busybox pipe:[22045]
3427 /bin/busybox socket:[21258]
3427 /bin/busybox socket:[21260]
3427 /bin/busybox socket:[22071]
3464 /bin/busybox /dev/null
3464 /bin/busybox /dev/console
3464 /bin/busybox /dev/console
3464 /bin/busybox /opt/amazon/ebook/bin/start.sh
3667 /bin/busybox /dev/null
3667 /bin/busybox pipe:[22469]
3667 /bin/busybox pipe:[22469]
3667 /bin/busybox /dev/console
3671 /bin/busybox pipe:[22469]
3671 /bin/busybox /dev/console
3671 /bin/busybox /dev/console
3671 /bin/busybox socket:[22495]
3690 /usr/java/bin/cvm /dev/null
3690 /usr/java/bin/cvm pipe:[22469]
3690 /usr/java/bin/cvm pipe:[22469]
3690 /usr/java/bin/cvm pipe:[22535]
3690 /usr/java/bin/cvm pipe:[22535]
3690 /usr/java/bin/cvm socket:[22536]
3690 /usr/java/bin/cvm /usr/java/lib/basis.jar
3690 /usr/java/bin/cvm /usr/java/lib/jsse-cdc.jar
3690 /usr/java/bin/cvm /usr/java/lib/jce.jar
3690 /usr/java/bin/cvm /usr/java/lib/sunrsasign.jar
3690 /usr/java/bin/cvm /usr/java/lib/jaas.jar
3690 /usr/java/bin/cvm /usr/java/lib/localedata.jar
3690 /usr/java/bin/cvm /usr/java/lib/charsets.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/HTMLReader-impl.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/JFEP-0.1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/Journal-update.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindleDeviceServicesAbstraction-1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindleDeviceServicesShasta-1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindleGUIAbstraction-1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindleGUIShasta-1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/Kindlet-1.2.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindletBookletDRM-1.0.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/KindletImplementation-1.2.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/MobiCore-impl.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/MobipocketCoreReader.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/PDFReader-impl.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/ReaderSDK.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/SearchSDK.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/backport-util-concurrent-3.1.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/booklet.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/framework-api.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/framework-impl.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/icu4j.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/jdbm.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/json.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/json_simple-1.1.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/kindlePageNumbersDeviceReader.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/kxml2.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/lucene-analyzers-2.4.1.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/lucene-core-2.4.1.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/lucene-snowball-2.4.1.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/mobi8sdk.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/portability-impl.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/portability.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/utilities.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/lib/xyml.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/AudiblePlayer.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/AudioPlayer.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/Browser.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/Home.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/KindletBooklet-1.2.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/MobiReader.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/PictureViewer.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/Search.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/XymlBooklet.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/language.jar
3690 /usr/java/bin/cvm /opt/amazon/ebook/booklet/msp.jar
3690 /usr/java/bin/cvm /usr/java/lib/ext/sunjce_provider.jar
3690 /usr/java/bin/cvm socket:[22898]
3690 /usr/java/bin/cvm pipe:[22900]
3690 /usr/java/bin/cvm pipe:[22900]
3690 /usr/java/bin/cvm socket:[22901]
3690 /usr/java/bin/cvm /dev/fb/0
3690 /usr/java/bin/cvm /dev/input/event0
3690 /usr/java/bin/cvm /dev/input/event1
3690 /usr/java/bin/cvm /dev/input/event2
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm socket:[23121]
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_66_Medium_Italic.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_66_Medium_Italic.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /dev/random
3690 /usr/java/bin/cvm /dev/random
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_76_Bold_Italic.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_76_Bold_Italic.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_65_Medium.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Caecilia_LT_75_Bold.ttf
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_76_Bold_Italic.ttf
3690 /usr/java/bin/cvm socket:[45702]
3690 /usr/java/bin/cvm /usr/java/lib/fonts/Helvetica_LT_76_Bold_Italic.ttf
3690 /usr/java/bin/cvm pipe:[46094]
3690 /usr/java/bin/cvm pipe:[46095]
3690 /usr/java/bin/cvm pipe:[46096]
3723 /bin/busybox /dev/ttymxc/0
3723 /bin/busybox /dev/ttymxc/0
3723 /bin/busybox /dev/ttymxc/0
4031 /usr/sbin/pppd /dev/null
4031 /usr/sbin/pppd /dev/null
4031 /usr/sbin/pppd /dev/null
4031 /usr/sbin/pppd socket:[22955]
4031 /usr/sbin/pppd /dev/null
4031 /usr/sbin/pppd socket:[22970]
4031 /usr/sbin/pppd /var/run/pppd2.tdb
4031 /usr/sbin/pppd /dev/tts/USB0
4031 /usr/sbin/pppd /dev/ppp
4031 /usr/sbin/pppd /dev/ppp
4646 /mnt/us/opt/kaffeine/kaffeine /dev/null
4646 /mnt/us/opt/kaffeine/kaffeine /dev/null
4646 /mnt/us/opt/kaffeine/kaffeine /dev/null
4646 /mnt/us/opt/kaffeine/kaffeine /dev/fb/0
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event0
4646 /mnt/us/opt/kaffeine/kaffeine /dev/fb/0
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event1
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event2
4646 /mnt/us/opt/kaffeine/kaffeine socket:[19917]
4646 /mnt/us/opt/kaffeine/kaffeine /proc/keypad
4646 /mnt/us/opt/kaffeine/kaffeine /proc/fiveway
4646 /mnt/us/opt/kaffeine/kaffeine /dev/fb/0
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event0
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event1
4646 /mnt/us/opt/kaffeine/kaffeine /dev/input/event2
4646 /mnt/us/opt/kaffeine/kaffeine pipe:[23947]
4646 /mnt/us/opt/kaffeine/kaffeine socket:[23950]
4646 /mnt/us/opt/kaffeine/kaffeine /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
4646 /mnt/us/opt/kaffeine/kaffeine /usr/java/lib/fonts/Helvetica_LT_75_Bold.ttf
4647 /dev/shm/.4646-dbus-sigd (deleted) pipe:[23947]
4647 /dev/shm/.4646-dbus-sigd (deleted) socket:[23948]
4656 /mnt/us/myts/myts /dev/null
4656 /mnt/us/myts/myts /dev/console
4656 /mnt/us/myts/myts /dev/null
4656 /mnt/us/myts/myts /dev/input/event0
4656 /mnt/us/myts/myts /dev/input/event0
4656 /mnt/us/myts/myts /dev/fb/0
4656 /mnt/us/myts/myts /dev/input/event1
4656 /mnt/us/myts/myts /dev/input/event2
4656 /mnt/us/myts/myts socket:[19917]
4656 /mnt/us/myts/myts /proc/keypad
4656 /mnt/us/myts/myts /proc/fiveway
4656 /mnt/us/myts/myts /dev/input/event1
4656 /mnt/us/myts/myts /dev/input/event2
4656 /mnt/us/myts/myts /var/tmp/myts.special
4656 /mnt/us/myts/myts /proc/keypad
4656 /mnt/us/myts/myts /proc/fiveway
4656 /mnt/us/myts/myts /proc/volume
4656 /mnt/us/myts/myts /mnt/us/myts/12x24.hex
4656 /mnt/us/myts/myts /dev/ptmx
4661 /bin/busybox /dev/pts/0
4661 /bin/busybox /dev/pts/0
4661 /bin/busybox /dev/pts/0
4661 /bin/busybox /dev/input/event0
4661 /bin/busybox /dev/input/event0
4661 /bin/busybox /dev/fb/0
4661 /bin/busybox /dev/input/event1
4661 /bin/busybox /dev/input/event2
4661 /bin/busybox socket:[19917]
4661 /bin/busybox /proc/keypad
4661 /bin/busybox /proc/fiveway
4661 /bin/busybox /dev/input/event1
4661 /bin/busybox /dev/input/event2
4661 /bin/busybox /var/tmp/myts.special
4661 /bin/busybox /proc/keypad
4661 /bin/busybox /proc/fiveway
4661 /bin/busybox /proc/volume
4661 /bin/busybox /mnt/us/myts/12x24.hex
4661 /bin/busybox /dev/fb/0
4661 /bin/busybox /dev/tty
4858 /mnt/us/usbnet/bin/busybox /dev/null
4858 /mnt/us/usbnet/bin/busybox /dev/null
4858 /mnt/us/usbnet/bin/busybox /dev/null
4858 /mnt/us/usbnet/bin/busybox /dev/input/event0
4858 /mnt/us/usbnet/bin/busybox /dev/input/event0
4858 /mnt/us/usbnet/bin/busybox /dev/fb/0
4858 /mnt/us/usbnet/bin/busybox /dev/input/event1
4858 /mnt/us/usbnet/bin/busybox /dev/input/event2
4858 /mnt/us/usbnet/bin/busybox socket:[19917]
4858 /mnt/us/usbnet/bin/busybox /proc/keypad
4858 /mnt/us/usbnet/bin/busybox /proc/fiveway
4858 /mnt/us/usbnet/bin/busybox /dev/input/event1
4858 /mnt/us/usbnet/bin/busybox /dev/input/event2
4858 /mnt/us/usbnet/bin/busybox /var/tmp/myts.special
4858 /mnt/us/usbnet/bin/busybox /proc/keypad
4858 /mnt/us/usbnet/bin/busybox /proc/fiveway
4858 /mnt/us/usbnet/bin/busybox /proc/volume
4858 /mnt/us/usbnet/bin/busybox /mnt/us/myts/12x24.hex
4858 /mnt/us/usbnet/bin/busybox /dev/fb/0
4858 /mnt/us/usbnet/bin/busybox socket:[24282]
4876 /mnt/us/usbnet/bin/sshd /dev/null
4876 /mnt/us/usbnet/bin/sshd /dev/null
4876 /mnt/us/usbnet/bin/sshd /dev/null
4876 /mnt/us/usbnet/bin/sshd socket:[24331]
4885 /mnt/us/usbnet/bin/sshd /dev/null
4885 /mnt/us/usbnet/bin/sshd /dev/null
4885 /mnt/us/usbnet/bin/sshd /dev/null
4885 /mnt/us/usbnet/bin/sshd socket:[24346]
4885 /mnt/us/usbnet/bin/sshd pipe:[24381]
4885 /mnt/us/usbnet/bin/sshd pipe:[24381]
4885 /mnt/us/usbnet/bin/sshd /dev/ptmx
4885 /mnt/us/usbnet/bin/sshd /dev/ptmx
4885 /mnt/us/usbnet/bin/sshd /dev/ptmx
4889 /bin/busybox /dev/pts/1
4889 /bin/busybox /dev/pts/1
4889 /bin/busybox /dev/pts/1
4889 /bin/busybox /dev/tty


[root@kindle root]# /usr/bin/browserd /var/local/java/prefs/cookies
/usr/bin/browserd: symbol lookup error: /usr/bin/browserd: undefined symbol: kindle_stats

hmmm now I noticed something launch during the URL selection phase... in htop. That may account for that error. perhaps browserd needs invoking via java (well, with some params anyways)

let me try that again.

Last edited by twobob; 11-04-2012 at 12:18 PM.
twobob is offline   Reply With Quote
Old 11-04-2012, 12:24 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by pepijndevos View Post
oooooh!

Code:
com.lab126.framework
        rw      Has     transfer_status
        w       Int     insertKeystroke
        r       Str     xfsn
        rw      Str     logMask
        w       Int     logContent
        rw      Str     logLevel
        r       Int     wirelessSwitch
        w       Int     read
        r       Int     isRegistered
        r       Int     wanSwitch
        w       Int     dismissDialog
hmmmm

Code:
# lipc-set-prop -s com.lab126.framework insertKeystroke 194
com.lab126.framework failed to set value for property insertKeystroke (0x8 lipcErrNoSuchProperty)
Any idea?
Honestly no. Eureaka and Ixtab are the lipc heavyweights near as I can tell from recent posts.

Usage:
Quote:
lipc-send-event [-r <retry_count> -d <retry_delay>] <source> <event-name> [-is <value> ...]
might be helpful. I'm trying to russle up some use-cases.

I personally suspect that cvm "injects" something at time of launch. working out a way to put strace in the middle of that right now.

EDIT: My Lipc-probe keeps segfaulting beggar, not helpful
Attached Thumbnails
Click image for larger version

Name:	Selection_323.png
Views:	210
Size:	7.0 KB
ID:	95431  

Last edited by twobob; 11-04-2012 at 12:28 PM.
twobob is offline   Reply With Quote
Old 11-04-2012, 12:35 PM   #20
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
It seems to me that elevating the logging level of lipc (somewhere?) would be a Good thing ™
twobob is offline   Reply With Quote
Old 11-04-2012, 12:46 PM   #21
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
Some more thought and experiments:

Works:
Code:
# lipc-send-event -r 3 com.lab126.hal orientationUp
Does not work:
Code:
# lipc-send-event -r 3 com.lab126.framework insertKeystroke -is 194
Failed to open LIPC
Retrying in 1 secs...
Failed to open LIPC
Retrying in 1 secs...
Failed to open LIPC
Retrying in 1 secs...
Failed to open LIPC
com.lab126.framework failed to send event insertKeystroke
I also tried waitforkey with the virtual keyboard, which does not work. This confirms my suspicion this is a pure Java thing.

Wild imagination:

Code:
while true
do
waitforkey | cut -d " " -f 1 | xargs lipc-send-event -r 3 com.lab126.framework insertKeystroke -is
done
Maybe disassemble the framework and hack the source. Has this been done before? With extkeyboard, it does register arrow keys and lsof reveals cvm is opening event 3 and 4.
pepijndevos is offline   Reply With Quote
Old 11-04-2012, 02:26 PM   #22
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
another viewpoint for process hierarchy
Attached Thumbnails
Click image for larger version

Name:	Selection_325.png
Views:	240
Size:	76.9 KB
ID:	95439  
twobob is offline   Reply With Quote
Old 11-04-2012, 02:27 PM   #23
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
cant we just attach the debugger?

I recall something about this??
twobob is offline   Reply With Quote
Old 11-04-2012, 07:45 PM   #24
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
okay. to get more of an idea of WHAT is actually happening: This actually sounds like a job for the new JBPATCH for the 3. Why not add some OUTPUT to the classes. something visual.

Also there was some mention of a nice tool for unrolling script in there.
https://www.mobileread.com/forums/sho....php?p=2096039 might need updating but yeah, helpful.

That would cut through the veils quite a bit.
twobob is offline   Reply With Quote
Old 11-08-2012, 04:17 AM   #25
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
I messed around with the jars and a decompiler a bit, but I can't tell what's going on.

I grepped for extkeyboard, which turned up nothing. Weird. Is this handled by the JVM?

But since the arrow keys on the external keyboard work, there should be some KeyEvent coming into the JVM. Grepping for that gave me a huge list of classes, some of which are in the KDK which are IMO unlikely to contain the actual action. I also found a bunch of a/b/c.class files. Nothing promising so far.

Somewhere, I suspect the keycodes are filtered, but I can't think of a reliable way to grep for those keycodes.

There is also VirtualKeyboardEvent, but that seems to be mostly about showing and hiding it. Haven't found where the actual virtual events go.
pepijndevos is offline   Reply With Quote
Old 11-09-2012, 01:02 PM   #26
choff
Member
choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.
 
Posts: 12
Karma: 152738
Join Date: Jul 2010
Device: Kindle DXG
Using LIPC insertKeystroke property

Hello,

after reading though this thread, I decided to get familiar with this topic myself. The insertKeystroke thing seemed promising, so I decided to give it a try.

And indeed it does work now!

Why is this?

The problem is that insertKeystroke is not an event, but a property. This thought occured to me after reading the help output of lipc-probe, where it says:
Quote:
lipc-probe [OPTIONS] [<service_name>] [<service_name>] ...
With no options, it probes the service. It prints a list of properties offered by that service
So in order to insert a keystroke into the framework, lipc-set-prop has to be invoked.

In order to inject a keystroke into the framework, lipc-set-prop has to be called with the following parameters:

Quote:
lipc-set-prop -i -- com.lab126.framework insertKeystroke [keycode]
, where keycode is the ASCII keycode of the key that you want to inject.

E.g. to inject the letter "g" into the framework, try the following command:

Quote:
lipc-set-prop -i -- com.lab126.framework insertKeystroke 103
This should print the letter "g" into the active text field.

Some other thing that I noticed:

In some cases, the Java keyboard has to be opened before you can insert any keystrokes.

This is especially true for the browser. Here, the Java keyboard has to be opened before you can type texts into text boxes.

Now that the insertFramework stuff has been done, we still need a way to pass keystrokes from the keyboard into the insertKeystroke property of the framework.

Probably some sort of C program is required to accomplish this. I will investigate tomorrow.

Regards,

Chris
choff is offline   Reply With Quote
Old 11-09-2012, 01:09 PM   #27
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by choff View Post
...
In order to inject a keystroke into the framework, lipc-set-prop has to be called with the following parameters:
Quote:
lipc-set-prop -i -- com.lab126.framework insertKeystroke [keycode]
, where keycode is the ASCII keycode of the key that you want to inject.
...
Probably some sort of C program is required to accomplish this. I will investigate tomorrow.

Regards,

Chris
I like this! I plan to use it. Thanks! Keep up the great work.
geekmaster is offline   Reply With Quote
Old 11-10-2012, 05:14 AM   #28
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
Yay!

I tried the above snippet in a waitforkey loop, and it works! Only... key code != character code, so it just displays question marks and crazy characters.

I'll try to find out how to send things from C code. I think I remember reading this all works over dbus, but I might be wrong.

[edit]

Code:
signal sender=org.freedesktop.DBus -> dest=(null destination) pat
h=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=N
ameOwnerChanged
   string ":1.239"
   string ""
   string ":1.239"
signal sender=org.freedesktop.DBus -> dest=(null destination) pat
h=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=N
ameOwnerChanged
   string ":1.239"
   string ":1.239"
   string ""
dbus-monitor of the set-prop snippet. Doe not make any sens to me, but at least some dbus stuff is sent.

The strings appear to be name, old owner, new owner: http://dbus.freedesktop.org/doc/dbus...erChanged.html

Still makes no sense. I think this is just a side-effect. The real action is happening somewhere else.

Maybe a strace on lipc will reveal something?

Last edited by pepijndevos; 11-10-2012 at 05:33 AM.
pepijndevos is offline   Reply With Quote
Old 11-10-2012, 06:16 AM   #29
choff
Member
choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.
 
Posts: 12
Karma: 152738
Join Date: Jul 2010
Device: Kindle DXG
Hello,

I just e-mailed with Pepijn and he said that he would take it on from here.

Just some thoughts of mine on what remains to be done, in case someone else also wants to start working on this:

The major part of the work required is probably to convert the output of /dev/input/event* to ASCII, for further processing by the insertKeystroke property.

I already did some searches on that, and it seems like this is not going to be an easy thing.

First of all, what is read from /dev/input/event* is a "struct input_event". This struct contains various members, among them the actual keycode of the key that was pressed/released.

The challenge is then to convert that keyboard-layout dependent keycode into ASCII. In order to accomplish this, you will need to construct a mapping table from keycode to ASCII.

Unfortunately the layout of the mapping table depends on your keyboard layout.

So, for a generic application, you will need to also implement support for the various keyboard layouts. Normally keyboard layouts are handled by your GUI frontend, e.g. by the X11-Server or an embedded toolkit, such as QT embedded.

Unfortunately, on the Kindle, there is no such frontend installed. Thus, you will have to take of the keyboard support for yourself.

I already did some searches and to see if there are some apps that can be used as a string point and it seems like there are several that can be used as a starting point:
  • evtest - http://cgit.freedesktop.org/evtest/

    Very basic, no support for keyboard layouts or anything. But maybe a good strating point.
  • QT for embedded Linux - http://qt-project.org/

    Since version 4.6, QT embedded has decent USB keyboard support. Multiple keyboard layouts are also supported.

    Documentation is here: http://doc.qt.nokia.com/4.7/qt-embedded-charinput.html.

    For a decent, generic solution, one should probably create a standalone application from the relevant parts of the QT framework.

    Some files that might be of interest(all located in src/gui/embedded in the QT source tree):

    * qkbdlinuxinput_qws.cpp: Contains the low-level part of USB keyboard support
    * qkbd_qws.cpp: Handles the keycode->ASCII mapping and supports multiple keyboard layouts
    * qkbddriverfactory_qws.cpp: Factory class for USB keyboards

Regarding the time required to code that application, I think it varies on the level of complexity of your solution.

In one day, you can probably code a simple app without support for multiple keyboard layouts.

In one week, one can make a full-fledged application with keyboard layout support, custom actions for the function keys(F1-F12) etc.

If you are heading for a simple app, you would probably fork from evtest. If you want something more complex, you can use QT Embedded as a starting point.

Hope this helps!

Regards,

Chris
choff is offline   Reply With Quote
Old 11-10-2012, 11:47 AM   #30
choff
Member
choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.
 
Posts: 12
Karma: 152738
Join Date: Jul 2010
Device: Kindle DXG
Quote:
Originally Posted by pepijndevos View Post
I'll try to find out how to send things from C code. I think I remember reading this all works over dbus, but I might be wrong.
The best way is probably to invoke lipc-set-prop directly from your C code.

I have attached acode snippet to do this.

Hope this helps to get you started!

EDIT: I have now tested the code snippet and found a bug. Now it should compile & work just fine.

Regards,

Chris
Attached Files
File Type: bz2 main.c.bz2 (1.2 KB, 145 views)

Last edited by choff; 11-12-2012 at 02:24 PM.
choff is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Input Plugin] DOCX Input SauliusP. Plugins 42 06-05-2013 04:01 AM
Touch how to enable third-party input method in rooted nook touch tigerszheng Barnes & Noble NOOK 5 10-24-2011 08:30 PM
Select all function megrose0222 Library Management 3 08-31-2011 07:31 PM
select all alansplace Calibre 4 08-03-2011 06:46 PM
Android Penpower Input Method on Edge? ricco enTourage Archive 0 04-26-2010 12:11 AM


All times are GMT -4. The time now is 07:00 PM.


MobileRead.com is a privately owned, operated and funded community.