View Single Post
Old 10-01-2016, 06:11 AM   #63
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
Quote:
Originally Posted by lucida View Post
KOReader should work. Don't know what's wrong with KL code, but if you get my fakeinput samples, put faketouch to kindle and run from ssh with KOReader open, KOReader will respond accordingly. Same for my original mouseturn.

Also in KL all input/touchscreen devices are hardcoded which is wrong. KV has one more extra input device than PW3, the side buttons, so it will be event0 for power btn, event1 for touchscreen and event2 for the side button. USB OTG devices start from event3....that's why brightness not working in KV even he got same adapter as yours.
Yep I thought that was the reason KV was not changing brightness, since the inputs were just 'bumped' up by one. The touch screen seems to be the same, event1. But it's not good to rely on.

And yeah, of course I would like to read the input devices dynamically but I'm not sure the best way to do it.
I have no idea about udev stuff. If this could support hotplugging that would be great.

I was thinking I could be cheap and just use the output from 'ls /dev/input/'...
There was some place, maybe in /proc/, where I could get a list of all the devices attached, see their names, the 'bus' they are connected to etc.

The native devices, things like the touch screen, power button, they were on bus '0', and my usb inputs were on bus 3.

Maybe that would be a way to do this, just ignore all inputs on bus 0?

And very strange about your code working fine with KOreader...
I will have to test again... all I can say is that for me KindleLazy didn't work with KOReader.

Yeah I was using your fakeinput samples to help me, they were very useful, thank you!

Last edited by zxczxc; 10-01-2016 at 06:14 AM.
zxczxc is offline   Reply With Quote