08-01-2016, 09:38 PM | #16 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Maybe a mouse will get me past issues I have when my PW3 touchscreen is not working. I need to try this after I recharge my PW3. I wonder how hard it would be to make it act like a mouse rather than just page tuen buttons...
Last edited by geekmaster; 08-01-2016 at 09:41 PM. |
08-02-2016, 01:11 AM | #17 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
Code:
Section "InputDevice" Identifier "Mouse" Driver "mouse" Option "SendCoreEvents" "true" Option "AllowMouseOpenFail" "true" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "Emulate3Buttons" "true" Option "ZAxisMapping" "4 5" EndSection |
|
Advert | |
|
08-02-2016, 01:37 AM | #18 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
You will, at a minimum, have to re-start X, since otherwise it is self-configuring and can't self-configure for what is not connected (kernel modules, otg cable, mouse).
|
08-02-2016, 04:03 PM | #19 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
There is no mouse driver in /usr/lib/xorg/modules/input/, does have an evdev driver and kernel has evdev support though. To restart X, just run "restart x" from ssh or kterm, however even with mouse plugged in it was not detected/added to xorg.conf. Last edited by lucida; 08-02-2016 at 04:07 PM. |
|
08-02-2016, 04:07 PM | #20 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
That actually makes it sound like it would be easier to get full mouse support.
Just have to dig a little deeper into the system than change a configuration file is all. |
Advert | |
|
08-03-2016, 05:13 PM | #21 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
This is great, I'm super excited by this.
I don't know what kind of HID device this is for sure, but something like this would be great ( Presentation remote ) http://targus.com/ca/targus-presentation-remote https://ubuntuincident.wordpress.com...orks-on-linux/ http://www.shallowsky.com/linux/remote-presenter.html |
08-03-2016, 05:28 PM | #22 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
also, zxczxc found that just changing the pages wasn't necessarily enough to keep the screen awake in this thread:
https://www.mobileread.com/forums/sho...d.php?t=220810 But I'm actually looking at the strings in your 'mouseturn' program, and see you already had that covered "lipc-set-prop com.lab126.powerd -i touchScreenSaverTimeout 1". I cant be bothered to discard this comment, if other people work on things like this. |
08-03-2016, 06:36 PM | #23 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
I don't have any of these but looks like these remotes are HID keyboard devices -- and additional HID mice if they have cursor control. To get buttons work, load hid modules, get key code with "evtest" utility and respond accordingly. The code should be very much like the one in "wifiremote" android side and it's fairly straightforward. Current "mouseturn" relies on mousedev and /dev/input/mice interface so it requires little extra work for end users, however, it wouldn't work with evdev. |
|
08-05-2016, 02:44 AM | #24 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2016
Device: PW2-6g-Japan
|
@lucida, would this code be good to start from in order to turn pages automatically at regular intervals (without monitoring any mouse/usb data)?
i want to turn the kindle into picture-frame like display, that rotates through pages (preferable pages of a pdf). then i want to change the page selection to be random, and finally change the duration between changes to be random (from a few minutes to a few days). and it sounds like i still need a solution to keep the kindle from sleeping, right? Last edited by gnormal; 08-08-2016 at 12:48 PM. Reason: spoonerized ludica :o |
08-05-2016, 06:25 AM | #25 | |
Addict
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
Quote:
because I have decided on this item. https://www.amazon.co.uk/dp/B01GHEP1TM (this, like many other presentation devices use page up/page down for navigation, simply a keyboard) |
|
08-06-2016, 04:12 PM | #26 | |
Enthusiast
Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
Code:
kindle-evdev /dev/input/eventX btn1:x1,y1 btn2:x2,y2.... Code:
kindle-evdev /dev/input/eventX 1:1,1 |
|
08-08-2016, 12:55 PM | #27 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
lucida, thanks.
I'm looking at the source of this, and I noticed something all of us should keep in mind, that I noticed with my version: If we use simple clicks, we could click links on the table of contents and the like. I don't know if other people are using the bottom pixel or something else. So I feel like we need to really do a 'swipe' effect if its possible with the x11. Also: To compile this, did you need to get any particular x11 libraries, or can you otherwise talk about your build environment? |
08-08-2016, 04:36 PM | #28 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
I have tested out both your mouseturn and the kindle-edev you provide with this:
https://www.amazon.com/Rii-Wireless-.../dp/B006WAJ1IE And both the mouse and keyboard parts work. The keyboard device only seems to show up if I also insmod mousedev.ko, and I'm not sure if thats expected right now. Its nice that I can use this for both mouse and keyboard in event2 and event3 if we wanted to. |
08-08-2016, 06:26 PM | #29 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Too bad it isn't an Amazon product, that would probably have really jacked their jaws. |
|
08-11-2016, 02:55 PM | #30 |
Guru
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
|
@lucida
How is your system set up to link against libXtst. I have been trying to compile using hte cross-compiler I have, and have not been having luck. do you have the armel setup instead, or can you give any makefiles or anything that you can share? |
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 09:43 AM |
USB device to turn the page | arnicas | Kindle Developer's Corner | 23 | 02-20-2017 01:20 PM |
CC and USB/OTG support | GEB | Calibre Companion | 2 | 05-30-2015 12:24 PM |
ebook android readers and usb host - otg support | sasimako | Which one should I buy? | 4 | 02-18-2015 06:26 AM |
USB OTG | Mythic | Bookeen | 7 | 11-11-2007 12:39 PM |