koreader / koreader

An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices
http://koreader.rocks/
GNU Affero General Public License v3.0
16.33k stars 1.24k forks source link

edit screen size that koreader runs. #12400

Closed konos93 closed 5 days ago

konos93 commented 2 weeks ago

can i edit any config file to reduce the screen where the entire koreader runs?

my device is pocketbook inkpad 3 and the screen is broken.

however the blue part still working and i thought if koreader could run in this part of the screen.

viber_image_2024-08-24_18-17-25-462

hius07 commented 2 weeks ago

https://github.com/koreader/koreader/issues/4810

NiLuJe commented 2 weeks ago

FWIW, this would be clunky to user-patch, because the viewport affects the touch translation.

(But it would technically be feasible, Android does something like it to toggle the native status bar).

konos93 commented 1 week ago

@hius07 @NiLuJe is there any way to check any logs? i can't restart and can't use the backup based on this https://github.com/koreader/koreader/issues/4810#issuecomment-473582136 i made some changes. the result is the image below. if i restart the device or koreader the image is the new screen size remain the same.

did something like

cd koreader/frontend/device/kindle/ cp device.lua backup.device.lua.backup nano device.lua

image

thank you

NiLuJe commented 1 week ago

Looks like you reduced the height without moving the origin? (i.e., any amount subtracted from height should be added to top/y).

konos93 commented 5 days ago

koreader/frontend/device/pocketbook

-- PocketBook InkPad Color 3 (743K3)
local PocketBook743K3 = PocketBook:extend{
    model = "PBInkPadColor3",
    display_dpi = 300,
    viewport = Geom:new{x=3, y=2, w=1395, h=1864},
    hasColorScreen = yes,
    canHWDither = yes, -- Adjust color saturation with inkview
    canUseCBB = no, -- 24bpp
    isAlwaysPortrait = yes,
    usingForcedRotation = landscape_ccw,
    hasNaturalLight = yes,
}
hius07 commented 5 days ago
viewport = Geom:new{x=3, y=2, w=1395, h=1864},

Original screen size 1404x1872. So you need smth about y=350, h=1520.

konos93 commented 5 days ago

F:\applications\koreader\frontend\device\pocketbook

}

-- PocketBook InkPad 3 (740)
--here we are
--    viewport = Geom:new{x=3, y=2, w=350, h=1520},
-- w =1404 which is the same
-- x=0
-- y=350
-- h=1520.
-- so a 1872 >= y+h
--i got an error with y=400 and h = 1500

local PocketBook740 = PocketBook:extend{
    model = "PBInkPad3",
    display_dpi = 300,
    isAlwaysPortrait = yes,
    usingForcedRotation = landscape_ccw,
    hasNaturalLight = yes,
    viewport = Geom:new{x=0, y=560, w=1404, h=1304},
}

0-02-05-7bcbe440d483fc752cfaf6c7671ad0a067d5c6fe789bc0e042d2a82ff73e2530_e461a9b407f7f0e8

i love the internet and the fact that i could edit it

thank you