![]() |
#286 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,490
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Oh, perhaps more importantly: you might want to swap axes *before* mirroring, otherwise you end up mirroring the wrong axis
![]() |
![]() |
![]() |
![]() |
#287 | |||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28
Karma: 20342
Join Date: Jul 2023
Device: Kobo Glo, Kobo Sage
|
I don't think we've ever talked before - I don't use Discord.
Quote:
Quote:
I'm forcing the Glo into landscape by setting ForceAllowLandscape=true in Kobo eReader.conf and then selecting Landscape rotation in Nickel. I've attached the results of a devcap test. Quote:
![]() |
|||
![]() |
![]() |
![]() |
#288 | |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,490
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
(i.e., does this *actually* rotate the framebuffer in some way, or does Nickel handle rotation entirely in software on that device). If it actually rotates the framebuffer, I've got a wrong mapping in fbink; but if it's software rotated, it's working as intended ![]() Last edited by NiLuJe; Today at 01:11 PM. |
|
![]() |
![]() |
![]() |
#289 | |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,490
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
In which case... does this patch fix it? Code:
diff --git a/fbink_device_id.c b/fbink_device_id.c index c324c0c..9a10530 100644 --- a/fbink_device_id.c +++ b/fbink_device_id.c @@ -644,8 +644,14 @@ static void strtcpy(deviceQuirks.devicePlatform, "Mark 4", sizeof(deviceQuirks.devicePlatform)); break; case DEVICE_KOBO_GLO: // Glo (kraken) - deviceQuirks.isKoboNonMT = true; - deviceQuirks.screenDPI = 212U; + deviceQuirks.isKoboNonMT = true; + // {3, 2, 1, 0}, but no ioctl quirks + deviceQuirks.ntxRotaQuirk = NTX_ROTA_CCW_TOUCH; + deviceQuirks.rotationMap[FB_ROTATE_UR] = FB_ROTATE_CCW; + deviceQuirks.rotationMap[FB_ROTATE_CW] = FB_ROTATE_UD; + deviceQuirks.rotationMap[FB_ROTATE_UD] = FB_ROTATE_CW; + deviceQuirks.rotationMap[FB_ROTATE_CCW] = FB_ROTATE_UR; + deviceQuirks.screenDPI = 212U; strtcpy(deviceQuirks.deviceName, "Glo", sizeof(deviceQuirks.deviceName)); strtcpy(deviceQuirks.deviceCodename, "Kraken", sizeof(deviceQuirks.deviceCodename)); strtcpy(deviceQuirks.devicePlatform, "Mark 4", sizeof(deviceQuirks.devicePlatform)); Keep in mind it means rotating the *device* itself, not the buffer. e.g., what Nickel does for landscape for me is a CCW rotate. Last edited by NiLuJe; Today at 01:26 PM. |
|
![]() |
![]() |
![]() |
#290 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,490
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Oops, fixed the patch above
![]() ---- On that note, the sunxi devices (e.g., your Sage) do not support linuxfb hardware rotation at all, so they behave entirely differently (i.e., rotation is handled by the driver at blit-time). FBInk hides the mess away by returning potentially sensible rotate constants, but it's entirely fake ^^. That also means things gets wonky if FBInk is not the one that triggered the rotation, because the only thing we can do is query the accelerometer... and that can be finicky as hell ![]() Last edited by NiLuJe; Today at 01:47 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Small tool for filling book library in Kobo Aura | Paxerus | Kobo Developer's Corner | 2 | 12-31-2013 07:05 PM |
Small print | Broadback | Conversion | 12 | 12-12-2011 02:31 PM |
Small Tool to change book order (PRS-x50) | goaspy | Sony Reader | 113 | 10-14-2011 03:28 PM |
small print | breezeman | Introduce Yourself | 13 | 07-03-2011 09:02 AM |