![]() |
#16 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,296
Karma: 5300240
Join Date: Jun 2020
Location: Edmonton, AB
Device: Kobo Aura H2O Edition 2 (mark 7), Kobo Mini
|
Thanks for proving it safe to run on the H2O 2v2. I was afraid to brick it
![]() |
![]() |
![]() |
![]() |
#17 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
Glad to see you got it up and running. You should see the Landscape mode hack (search "forceallowlandscape kobo" in Google) and that will probably solve all of your problems. You'll get a new landscape mode switch in your tray and you'll just have to toggle the "Landscape" mode. Please let me know how it goes ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
|
![]() |
![]() |
![]() |
#20 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
I checked my Python file and I doubt that that's the problem. Can you try starting up KoBox and then telnet/SSH your Kobo and entering this command: Code:
echo 1 > /sys/class/graphics/fb0/rotate I hope it'll work for you! |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,296
Karma: 5300240
Join Date: Jun 2020
Location: Edmonton, AB
Device: Kobo Aura H2O Edition 2 (mark 7), Kobo Mini
|
I'll do it... Soon™
![]() |
![]() |
![]() |
![]() |
#22 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2019
Device: none
|
Writing 1 to /sys/class/graphics/fb0/rotate does nothing, as before. Strangely, it seems that writing 3 to it sets it to 1, and puts the display in normal portrait mode (though touch input is still rotated 90 degrees counterclockwise from the display). Writing 0.5 sets it to 0 and corrupts the display.
|
![]() |
![]() |
![]() |
#23 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
![]() |
![]() |
![]() |
#24 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
(I don't remember which one, but it is one of the two landscape modes) |
|
![]() |
![]() |
![]() |
#25 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
@Georgelemental : this might help:
Code:
#!/usr/bin/python3 import os # Touch mapper for Xorg/XDOTool >> Kobos file = open("evtest-log","r") coordinates = file.read() file.close() # Prevent other exit status than 0 if evtest log file is empty if len(coordinates) <= 10: exit() else: c1 = coordinates.split("\n") # Mapping x for item in c1: if "ABS_MT_POSITION_X" in item: c2 = item.split(" ") c3 = c2[-1] x = c3 print("registered native x " + x) # Mapping y for item in c1: if "ABS_MT_POSITION_Y" in item: c2 = item.split(" ") c3 = c2[-1] y = c3 print("registered native y " + y) # Dividing for lower resolutions # Originally made for Kobo Libra -> 1680x1264 / 2 = 840x632 x = float(x) y = float(y) # Nasty hack x2 = y y2 = x print("converted native x to %s" % x2) print("converted native y to %s" % y2) # Passing x + y to xdotool os.system("DISPLAY=:0 xdotool mousemove {0} {1}".format(x2, y2)) # Clicking mouse button os.system("DISPLAY=:0 xdotool click 1") # Done! Emptying the file os.system("> evtest-log") and start it in normal portrait mode |
![]() |
![]() |
![]() |
#26 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@NiMa: Correct for whom? ^^.
Correct for nickel is fbdepth -R UR. Correct for a 1:1 touch:fb mapping is... not always (if ever) possible ^^. |
![]() |
![]() |
![]() |
#27 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
Would it be possible to make a simple C/Python/Bash/whatever script to auto-determine the rotation for each device and set it so that my touch program won't be messed up? (it is in FBInk, isn't it?) |
|
![]() |
![]() |
![]() |
#28 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You're looking at it the wrong way around.
There's *always* a translation necessary, the touch layer *never* matches the fb. c.f., Plato's input code for an idea of how "fun" this is to handle, or my first answer on github when I hinted that this was liable to drive someone mad for some other examples). Last edited by NiLuJe; 01-18-2021 at 10:58 PM. |
![]() |
![]() |
![]() |
#29 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#30 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
|
Quote:
Do you still have inverted touch input? Like from when you tap the menu, it taps the desktop switcher? |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[HOWTO][WIP] Run Xorg on your Kobo + full-blown Firefox | NiMa | Kobo Developer's Corner | 57 | 07-27-2023 05:33 PM |
Archive.org book on Kobo question | cpl625 | Kobo Reader | 4 | 10-28-2011 06:41 AM |
Portable Firefox (Run it off a USB Drive) | Colin Dunstan | Lounge | 3 | 11-22-2004 07:42 PM |