08-26-2016, 04:44 AM | #61 | |
Connoisseur
Posts: 54
Karma: 60222
Join Date: Aug 2016
Device: PW3, Kobo Aura H2O
|
Quote:
What I am trying to do is get the keyboard to function as a keyboard, ideally in xterm (though elsewhere would be fine as well.) I initially attempted to change my /etc/xorg.conf Code:
#mount -o bind /mnt/us/Projects/Xorg.conf /etc/xorg.conf Code:
#killall -s KILL Xorg I'll keep poking around, but I can understand why the Orcs are more important. ;-) |
|
08-26-2016, 07:29 AM | #62 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Yes, /mnt/us (the visible USB storage) is a fuse file system.
Your bind mount will fail when the system is exported. Put the file you are binding in the other, always available, user area /var/local |
Advert | |
|
08-27-2016, 01:08 AM | #63 | |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
Quote:
https://www.mobileread.com/forums/sho...3&postcount=35 Grab the bolded sections for the keyboard, they will need to go into the next part. Then grab my download here: https://www.mobileread.com/forums/sho...4&postcount=52 ( cursor2.zip ) in mouse.sh I have the bind mount --bind /mnt/us/cursor/makexconfig /etc/upstart/makexconfig And my example makexconfig that has a mouse section in it. Thats the file you need to edit, and bind, just change the mouse section I put in there into the keyboard section from my earlier post. And change the 'ServerLayout' to have "InputDevice keyboard", instead of "InputDevice mouse" Then you can use `restart x` instead of killing x This way you only have to bind 1 file, instead of binding Xorg.conf, and making sure this makexconfig process doesnt muck it up. The 'upstart' process is what sets this off, you can opten up /etc/[upstart/x.something ] to see it all kick off the makexconfig program. This worked in the search boxes in the store, but I didnt try it in x-term. Can anyone link me the package for xterm for PW3? Last edited by coplate; 08-27-2016 at 01:23 AM. |
|
08-27-2016, 04:30 AM | #64 | |
Connoisseur
Posts: 54
Karma: 60222
Join Date: Aug 2016
Device: PW3, Kobo Aura H2O
|
Quote:
xterm upstream source: http://www.fabiszewski.net/kindle-terminal/ Lemme get this up and running and I'll report back! |
|
08-27-2016, 03:21 PM | #65 |
Connoisseur
Posts: 54
Karma: 60222
Join Date: Aug 2016
Device: PW3, Kobo Aura H2O
|
@coplate,
I miswrote - by xterm, I meant kterm. And even when I use the original /etc/upstart/makexconfig file, X crashes when I use your script and my keyboard (no mouse). I'll have to play with this more. |
Advert | |
|
08-27-2016, 04:55 PM | #66 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Didn't make any difference, you got the link to kTerm anyway.
|
09-15-2016, 01:59 PM | #67 | |
Addict
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
Quote:
Although why do this every minute? lipc-set-prop com.lab126.powerd -i touchScreenSaverTimeout 1 Any reason why not every button press, like what would happen every real screen touch? (In the spoiler are my mistakes, feel free to ignore, I this understand this stuff more now!) Spoiler:
After rmmod mousedev, the keys are being read properly now, no problems there, before it was intermittent at best. My volume buttons are being recognized fine as codes 114-115 as they should. But they are only recognized on event3, whilst all the other keys are being recognized on event2... ha. - lucida, your mouseturn executable is just a altered version of kindle-evdev? or something much different? I imagine it is very similar, but I can't see the source code of mouseturn, so I'm asking Thanks for all the information in here everyone, soon it will start to get much colder and remote page turning will be appreciated even more! (hands under the blanket etc) Last edited by zxczxc; 09-16-2016 at 03:15 PM. |
|
09-20-2016, 12:01 PM | #68 |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
I do this in every one minute because I wasn't sure about the load of the command at that time(seems minimal though). Should have no problem to run it on every touch.
and mouseturn is different from evdev as it relies on /dev/input/mice so it's plug&play, sth. like this. And if you have multiple devices you can run multiple instances of kindle-evdev or try this updated version. it goes like kindle-evdev2 -f /dev/input/eventX /dev/input/eventY ... -c key1:x,y key2:x,y..... |
09-20-2016, 05:12 PM | #69 | |
Addict
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
Quote:
I am in the process of changing kindle-evdev to make it check all /dev/input/eventX devices for the keys specified in a config file. Do you think it is 'bad' for the battery to be constantly checking /dev/input/event0 /dev/input/event1 /dev/input/event2 etc? Plus I want the user to be able to remove the usb device and insert without problems, so the list of input event devices will be checked and repopulated every 10 seconds/30 seconds/1 minute. I am happy to code this myself, but do you see any problems? I'm just worried that this constant checking will impact the device somehow, I wouldn't want that. Thanks for your work! Last edited by zxczxc; 09-20-2016 at 05:22 PM. |
|
09-20-2016, 06:48 PM | #70 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I do not think that event numbering is dynamic, not in the way device number is.
(After all, its an event source, not a device. ) I have not look but I expect they are assigned in u-dev rules. You could look there, or just play with some test code and plug/un-plug to see what is needed. And I would suggest a "wait event" type of approach rather than any kind of looping test. Keep in mind your Kindle only has a few hours of battery run time (the marketing pitch of weeks or months includes the time the device is asleep). Also keep in mind that 'hack' is just a four letter word. |
09-20-2016, 11:01 PM | #71 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
For hotplug, I think the best way to do so is using udev rules, however this requires modifying rootfs -- one thing I'm reluctant to do. The daemon service itself use very little power/cpu if coding properly, the OTG device itself can be a power hog though. |
|
09-21-2016, 12:32 AM | #72 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
(Its hard to beat: "off" for power savings. ) |
|
09-21-2016, 01:02 AM | #73 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
Stop reading to maximize your power saving. |
|
09-21-2016, 10:09 AM | #74 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I was tired but not bd when I suggested an event-driven rather than test-loop driven solution. |
|
09-21-2016, 12:25 PM | #75 |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
|
Tags |
otg, usb |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tools Software Jailbreak for PW2, PW3, PW3W, KT2, KV, KOA and KT3 | knc1 | Kindle Developer's Corner | 3376 | 05-31-2023 10:43 AM |
USB device to turn the page | arnicas | Kindle Developer's Corner | 23 | 02-20-2017 02:20 PM |
CC and USB/OTG support | GEB | Calibre Companion | 2 | 05-30-2015 01:24 PM |
ebook android readers and usb host - otg support | sasimako | Which one should I buy? | 4 | 02-18-2015 07:26 AM |
USB OTG | Mythic | Bookeen | 7 | 11-11-2007 01:39 PM |