New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Koreader doesn't work on Pocketbook Inkpad 3 / 740 #3687
Comments
I believe the dpi is 300. It is indeed very similar, i think there is an added color temperature control but that's it. |
I don't have an Inkpad 3, but I would suspect issues similar to Touch HD rather #2276 |
In this case the program is just exiting prematurely because the device is not explicitly defined. At the bottom, add something like this before the final else. elseif codename == "PocketBook 740" then
return PocketBook740 Somewhere above it (doesn't really matter where for testing), add: -- PocketBook InkPad 3
local PocketBook740 = PocketBook:new{
isTouchDevice = yes,
hasKeys = yes,
hasFrontlight = yes,
display_dpi = 300,
emu_events_dev = "/var/dev/shm/emu_events",
} @Vaanen Would it be possible to test if those modifications work? |
Just tried, doesn't work |
My bad, the codename is of course elseif codename == "PB740" then
return PocketBook740 PS Of course in the sense that the error message says |
Hey, just tried i : it does work. However... xD Well, the interface is all upside down. like a 180° rotation. Wouldn't be dealbreaker at first, but then the issue is that the touch seems to not be rotated, so that makes for a really weird issue, meaning if i want to touch the panel showing on top, i have to blindly touch it at the bottom... yeah kinda weird to explain |
We have a function to help with that, not used anywhere I think: koreader/frontend/device/input.lua Lines 230 to 235 in 40ff967
You'd need to call For testing just adding it below this line should do:
Although I just noticed this disclaimer so it might not work: koreader/frontend/device/pocketbook/device.lua Lines 82 to 86 in ca6a486
Only changing the visuals would be better but I don't think there are any existing ways of easily doing that (even if it shouldn't be too hard). I don't see anything about rotation in any of the existing Pocketbook stuff, weird. |
I tried it, now the app doesnt work anymore |
What if you place it directly after the definition of self.input instead? (Line 81) koreader/frontend/device/pocketbook/device.lua Lines 62 to 81 in ca6a486
|
Still doesnt work |
Just to be clear, that results from adding this line? self.input:registerEventAdjustHook(self.input.adjustTouchMirrorY) |
sorry, i completely misunderstood the directions. I was adding the function Input:adjustTouchMirrorY(ev, height) function. I tried to add self.input:registerEventAdjustHook(self.input.adjustTouchMirrorY) as you explained. It makes it worse to without, meaning it is still upside down but now any touch just makes me go back to the menu |
Sorry, that was intended to clarify what was going on but I guess I made it harder to understand. ;-) I forgot the height argument: self.input:registerEventAdjustHook(self.input.adjustTouchMirrorY, self.screen:getHeight()) You can also play around with something like: self.screen:setRotationMode(2) -- reverse portrait I'm not sure if that needs to be combined with the touch thing. Note that switching to landscape and back will mess things up with that one without writing some extra code in the backend. |
Adding the height argument changes nothing, still returns to menu
the setortation makes the initial loading dialog show up in the proper
rotation( it was in landscape before), but when entering the app the exact
same issue remains, meaning everything is upside down and the touch is also
weirdly reversed
2018-02-24 16:59 GMT+01:00 Frans de Jonge <notifications@github.com>:
… Sorry, that was intended to clarify what was going on but I guess I made
it harder to understand. ;-)
I forgot the height argument:
self.input:registerEventAdjustHook(self.input.adjustTouchMirrorY, self.screen:getHeight())
You can also play around with something like:
self.screen:setRotationMode(2) -- reverse portrait
I'm not sure if that needs to be combined with the touch thing. Note that
switching to portrait and back will mess things up with that one without
writing extra code in the backend.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3687 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96J4x9xBB677aSiWOQVslqI2_a1smks5tYDHTgaJpZM4SL1Iu>
.
|
Yes, that's more or less what I was referring to with the portrait/landscape thing, although I forgot it'd also happen when entering the reader. I'm a little confused about the touch vertical mirroring not working as expected though. I figured we could just do that and leave the visual aspect for later since it's less severe. |
Yeah, i thought it would fix ittoo but it seems not
2018-02-24 17:29 GMT+01:00 Frans de Jonge <notifications@github.com>:
… the touch is also weirdly reversed
Yes, that's more or less what I was referring to with the
portrait/landscape thing, although I forgot it'd also happen when entering
the reader.
I'm a little confused about the touch vertical mirroring not working as
expected though. I figured we could just do that and leave the visual
aspect for later since it's less severe.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3687 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96EMNIFhPncF23tuu0I1t7WwfSbNwks5tYDkEgaJpZM4SL1Iu>
.
|
Sorry to bother you guys but any update on this issue ? |
Not on my end. @mk-f Do you know if this would be best solved from Lua (possibly calling something in inkview) or maybe something in the launch script? |
Not without knowing what to underlying cause is. As you said, Vertical mirroring should have done the trick. I am afraid somebody with the device in question needs to debug this. |
Hi again. On a german blog, papierlos-lesen, which has been very useful for the installation and use of coolreader on PB devices, there is an interesting point which I am pasting below. It refers to the same problem we seem to have with KOReader on the inkpad 3. I don't know if this is of any help for you (as I have no idea at all about programming, I am just a dumb user) but in doubt, here it is (I left it in German in order to not lose any sense in translation) " Hinweis: Ein weiteres Problem ist, dass der Cool Reader — warum auch immer — die Icons im Kontextmenü des PocketBook-Readers entfernt. Dadurch sind die dahinterliegenden Funktionen nicht mehr nutzbar. " |
@aceflor You could also play around with the stuff I mentioned, like |
I did, but without success.. (as mentioned, I am just a user, not an ounce of talent nor knowledge of programming). |
The first message-box, which tells you about the book loading, is rotated 90° to the right, the text of the book itself is rotated 180°. Very weird ... |
As in the german article talks about the Inkpad 3 auto-rotate function: Does the behavior change, if this function is disabled in the native PB config-menu? |
Auto-rotate has been disabled. |
I always disable the auto-rotate because I never use it, so yep, even with the auto rotate function disabled, KOReader does not work properly. As trekk2810 points it, KOReader starts in landscape format (the message saying it is opening the book) and then the book opens upside down. but the functions are still in their original place, if this makes any sense.. |
Is there any concrete solution to this one? |
@Maradar It would help if you could try the things I already wrote down to continue from there. |
@Frenzie --PocketBook InkPad 3
local PocketBook740 = PocketBook:new{
isTouchDevice = yes,
hasKeys = yes,
hasFrontlight = yes,
display_dpi = 300,
emu_events_dev = "/var/dev/shm/emu_events",
}
elseif codename == "PB740" then
return PocketBook740 As for showing book correctly I tried: after adding: I added those two lines bollow |
Well yes, it's an input adjust. The idea being that it's a lot simpler to simply reverse touch input than to figure out why it's upside down in the first place. ;-) What direction is the input wrong in? That is, is you tap an edge, what makes the top menu pop up?
What if you just open the file manager? This is intended for debugging (i.e., figuring if it's a route to pursue further). The reader messes with this stuff. What about other values? (like 0 for regular portrait, 1 for landscape, 3 for reverse landscape) |
@Frenzie As for the level of touch calibration check the screenshot bello: |
Is it 90° turned then? Please try tapping the Music folder on the very left of the screen and the very right of the screen. Not somewhere in the middle. If it is then you can use |
Could you please first tell me what's going on without any adjustments? The other stuff is just some stepping stones that you can play around with and look up in the source to see what they do. If there's something wrong about the adjustment it completely obscures what's going on. It looks like the device is confused about width and height. Is that normal on Pocketbook?
You could try -- PocketBook InkPad 3
local PocketBook740 = PocketBook:new{
isTouchDevice = yes,
hasKeys = yes,
hasFrontlight = yes,
isAlwaysPortrait = yes,
display_dpi = 300,
emu_events_dev = "/var/dev/shm/emu_events",
} Also try sticking getWidth() in the adjustment instead of getHeight. Note that we can add as many adjustments as we want (if desired). self.input:registerEventAdjustHook(self.input.adjustTouchMirrorY, self.screen:getWidth())
self.input:registerEventAdjustHook(self.input.adjustTouchSwitchXY)
-- for example |
ok -- PocketBook InkPad 3
local PocketBook740 = PocketBook:new{
isTouchDevice = yes,
hasKeys = yes,
hasFrontlight = yes,
isAlwaysPortrait = yes,
display_dpi = 300,
emu_events_dev = "/var/dev/shm/emu_events",
} solved the whole issue nothing else is required (check the attached file) |
Excellent! Do you want to stick it in a PR? |
No you solved it you do it :-D I am just glad that it works |
Many many many thanks guys (did I say Thanks.. ?) |
Kudos to you both! 👍 |
Yessss, many zillion of thanks for solve this!!!
… El 4 abr 2018, a las 18:10, aceflor ***@***.***> escribió:
Many many many thanks guys (did I say Thanks.. ?)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#3687 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB3g8zAVwhNdFKcJ1iRDLekaFSDEO00jks5tlPCNgaJpZM4SL1Iu>.
|
Fixes #3687 Thanks to @Maradar for testing, see #3687 (comment)
Fixes #3687 Thanks to @Maradar for testing, see #3687 (comment)
Issue
I tried to install koreader but it just doesnt open anything on my new pocketbook Inkpad 3. It seems the issue is similar to this one #3312, meaning it' because the device is not recognized. I tried to replace with the files provided though but it doesnt work unfortunately
Steps to reproduce
try to use the app
crash.log
The text was updated successfully, but these errors were encountered: