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
Not working on new Kobo Clara B/W #11731
Comments
I have the same problem. Also on Kobo Clara |
I have the same issue with my Kobo Clara Colour, with the difference in the crash.log file being I edited the elseif codename == "condor" then
return KoboCondor
elseif codename == "spaColour" then
return KoboGoldfinch -- same as Clara 2E
else
error("unrecognized Kobo model ".. codename .. " with device id " .. product_id)
end However, this gives a new error:
I'll try to define a new device and find the right settings. |
I don't have the device yet, but I'm assuming the Kobo Libra Colour will also need to be added for it to be supported. |
Same issue with Clara Colour |
OK, some progress. -- Kobo Clara Colour:
local KoboSpaColour = Kobo:extend{
model = "Kobo_spa_colour",
isMk7 = yes,
hasEclipseWfm = yes,
canToggleChargingLED = yes,
led_uses_channel_3 = true,
hasFrontlight = yes,
display_dpi = 300,
hasNaturalLight = yes,
frontlight_settings = {
frontlight_white = "/sys/class/backlight/mxc_msp430.0/brightness",
frontlight_mixer = "/sys/class/backlight/lm3630a_led/color",
nl_min = 0,
nl_max = 10,
nl_inverted = true,
},
battery_sysfs = "/sys/class/power_supply/battery",
power_dev = "/dev/input/by-path/platform-bd71828-pwrkey.6.auto-event",
-- Board is eerily similar to the Libra 2, so, it inherits the same quirks...
-- c.f., https://github.com/koreader/koreader/issues/9552#issuecomment-1293000313
hasReliableMxcWaitFor = no,
isSMP = yes,
} It's a copy of the Kobo Clara 2E (goldfinch) definition, where I changed The crash.log is now:
KOReader seems to have stopped crashing, and I can use the power button, but the screen is unresponsive and simply shows the normal Kobo home screen. From what I understand, the issue now lies with FBInk, and I really don't know how to handle that. |
2024.04 dropped a few hours ago, but the issue will probably be the same. |
Yeah, it is |
These new Kobos probably have new board design and kernels. Ask @NiLuJe ? In the meantime, maybe search for when other new Kobos were added? I remember Kobo Lcara 2E, but maybe something else. I mean, look for things you need to report: logs, file locations, etc. |
FBInk is merely the last thing in your log, unless you mean something else. What's missing is likely something like koreader/koreader-base#1642 but I don't think the kernel sources are available yet. |
And here I bought it hoping they just soldered the new Carta 1300 display to an old board :.> |
I thought that may have been FBInk because of that message:
You are right.
After seeing that I added the line I looked at the commit you referenced, but it gets a bit too complex for me. EDIT: can't talk about the input events and not share a bit of the log, just in case:
|
@c0eos That's for Clara Colour, right? They have dual-core cpus, I wonder if for BW they changed as well. Can you point me to an ssh build you use to get shell access on kobo without koreader? Or another method you had at hand ;) Also, it might be worth to update the issue title to avoid confusion among new Clara versions |
If |
|
@ptrm Yep, I have the Clara Colour. The processor isn't the same as the B/W, it's dual core. I didn't use ssh, but followed this telnet access. I added a
and mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
/bin/busybox telnetd & Hacky, but I didn't want to spend the time for anything more complex. EDIT: don't bother with that, I tried the link that @Frenzie gave, and it works perfectly fine. Now I have ssh. |
Here's a quick dump of Clara BW. Listed paths mentioned in
|
Some simple things to try would be touch_snow_protocol and touch_phoenix_protocol even if that seems unlikely. There's also touch_mirrored_x and touch_mirrored_y (not relevant to touch being interpreted as hold but relevant to location). |
@Frenzie I'll be damned, but -- Kobo Clara Colour:
local KoboSpaColour = Kobo:extend{
model = "Kobo_spa_colour",
isMk7 = yes,
hasEclipseWfm = yes,
canToggleChargingLED = yes,
led_uses_channel_3 = true,
hasFrontlight = yes,
display_dpi = 300,
hasNaturalLight = yes,
frontlight_settings = {
frontlight_white = "/sys/class/backlight/mxc_msp430.0/brightness",
frontlight_mixer = "/sys/class/backlight/lm3630a_led/color",
nl_min = 0,
nl_max = 10,
nl_inverted = true,
},
battery_sysfs = "/sys/class/power_supply/bd71827_bat",
power_dev = "/dev/input/by-path/platform-bd71828-pwrkey.6.auto-event",
isSMP = yes,
hasColorScreen = yes,
isMTK = yes,
touch_snow_protocol = true,
} EDIT: almost everything seems fine so far. I can change the fonts, the brightness, the color temperature. I can open books, it's in colour. The cover as screensaver is slightly broken though, the colors are wrong, they are blueish, or maybe inverted? EDIT2: it's more than just the screensaver. While I'm reading, the colours are rendered correctly, but not in KOReader itself. All the covers in mosaic mode for example are wrong, but I think it's simply a RGB vs BGR order or something somewhere. |
Confirming Wifi toggle, warmth, night mode, frontlight, sleepcover, power button sleep, simple multiswipes (two finger frontlight) tested so far EDIT: Updates:
|
Here's the file for Clara BW for anyone interested: device.lua.zip (copy to |
Some more progress, the colours are now (temporarily) fixed! The issue was as I thought, with BGR instead of RGB. I commented out if self.screen.fb_bpp == 32 then
-- Ensure we decode images properly, as our framebuffer is BGRA...
logger.info("Enabling Kobo @ 32bpp BGR tweaks")
-- self.hasBGRFrameBuffer = yes
end If anyone with a Libra Colour can fill the device definition, I can then submit a preliminary pull request? |
I have two problems:
|
@c0eos fix for RGB also works on Libra Color, but it's necessary to refresh cache about books to fix wrong covers.
Edit: Edit 2: Edit 3:
in |
Very good, then with any luck nothing more needs to be done there. ;-) |
Keys are working, but reversed. To scroll down you press up, to scroll up you press down |
nvm, all good :) |
FWIW, for people with shell access, I posted a few more specific requests for logs/tests in #11737 (comment) ;). |
I'd love to help, but I cannot build koreader on my pc for some reason. Is there a downloadable koreader kobo package with your fix included, so I can install it and get the logs? |
You don't need to build anything, run a recent nightly and apply the PR any way you see fit (i.e., apply the GH diff via patch or just replace the affected files with the ones from the PR). |
Managed to run with the patch. I am having libra color, so didn't collect the log files. (Please let me know if you want logs from another libra color) The rotation wasn't right, but @tymmej 's fix worked. The physical buttons are still swaped. |
There’s option to swap buttons in GUI so I left it as is. |
hey, is this still does not work? I've tried Im just got the reader so I may missing something, what I've done so far:
[FeatureSettings]
ExcludeSyncFolders=(\\.(?!kobo|adobe).+|([^.][^/]*/)+\\..+)
anything else is missing? ps: I'm not sure how to read logs from the device UPD: seems like I've missed installation of the nickel menu and kfmon... after that instalation reader still does not go to update state, log: [START] [2024-05-11 @ 11:05:32] [INFO] [PID: 302] Starting KFMon . . .
[START] [2024-05-11 @ 11:05:32] [INFO] [PID: 302] Launched KFMon! (Initial PID: 312)
[KFMon] [2024-05-11 @ 11:05:32] [INFO] [PID: 319] Initializing KFMon v1.4.6-66-ga63e9af (2024-04-26 21:50:02 +0200) | Using SQLite 3.45.3 (built against 3.45.3) | With FBInk v1.25.0-229-g5fa7b9f
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Trying to load config file '/mnt/onboard/.adds/kfmon/config/kfmon-log.ini' . . .
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Watch config @ index 0 loaded from 'kfmon-log.ini': filename=/mnt/onboard/kfmon.png, action=/mnt/onboard/.adds/kfmon/bin/kfmon-printlog.sh, label=Show KFMon log, hidden=true, block_spawns=false, do_db_update=false, db_title=KFMon Log, db_author=NiLuJe, db_comment=Print the last few lines of KFMon's log
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Trying to load config file '/mnt/onboard/.adds/kfmon/config/kfmon.ini' . . .
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Daemon config loaded from 'kfmon.ini': db_timeout=500, use_syslog=false, with_notifications=true
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Trying to load config file '/mnt/onboard/.adds/kfmon/config/koreader.ini' . . .
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Watch config @ index 1 loaded from 'koreader.ini': filename=/mnt/onboard/koreader.png, action=/mnt/onboard/.adds/koreader/koreader.sh, label=KOReader, hidden=false, block_spawns=true, do_db_update=false, db_title=KOReader, db_author=KOReader Devs, db_comment=An eBook reader application
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Trying to load config file '/mnt/onboard/.adds/kfmon/config/plato.ini' . . .
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Watch config @ index 2 loaded from 'plato.ini': filename=/mnt/onboard/icons/plato.png, action=/mnt/onboard/.adds/plato/plato.sh, label=Plato, hidden=false, block_spawns=true, do_db_update=false, db_title=Plato, db_author=Baskerville, db_comment=A document reader
[FBInk] Detected a Kobo Clara B&W (391 => Spa BW @ Mark 12)
[FBInk] This device does not support HW inversion
[FBInk] Enabled MediaTek quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 300 dpi
[FBInk] Variable fb info: 1072x1448, 32bpp @ rotation: 1 (Clockwise, 90°)
[FBInk] Fixed fb info: ID is "hwtcon", length of fb mem: 6243328 bytes & line length: 4288 bytes
[FBInk] Canonical rotation: 0 (Upright, 0°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Vertical fit isn't perfect, shifting rows down by 4 pixels
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Beginning the main loop.
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Checking watch config file '/mnt/onboard/.adds/kfmon/config/kfmon-log.ini' for changes . . .
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Checking watch config file '/mnt/onboard/.adds/kfmon/config/koreader.ini' for changes . . .
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Checking watch config file '/mnt/onboard/.adds/kfmon/config/plato.ini' for changes . . .
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Initializing inotify.
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Setup an inotify watch for '/mnt/onboard/kfmon.png' @ index 0.
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Setup an inotify watch for '/mnt/onboard/koreader.png' @ index 1.
[KFMon] [2024-05-11 @ 11:05:32] [NOTE] Setup an inotify watch for '/mnt/onboard/icons/plato.png' @ index 2.
[KFMon] [2024-05-11 @ 11:05:32] [INFO] Listening for events.
[FBInk] Detected a change in framebuffer rotation (1 -> 3)
[FBInk] Reinitializing...
[FBInk] Variable fb info: 1072x1448, 32bpp @ rotation: 3 (Counter Clockwise, 270°)
[FBInk] Fixed fb info: ID is "hwtcon", length of fb mem: 6243328 bytes & line length: 4288 bytes
[FBInk] Canonical rotation: 2 (Upside Down, 180°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Vertical fit isn't perfect, shifting rows down by 4 pixels
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
[KFMon] [2024-05-11 @ 11:05:41] [NOTE] Tripped IN_OPEN for /mnt/onboard/icons/plato.png
[KFMon] [2024-05-11 @ 11:05:41] [INFO] Full-size screensaver hasn't been parsed yet!
[KFMon] [2024-05-11 @ 11:05:41] [INFO] Homescreen tile hasn't been parsed yet!
[KFMon] [2024-05-11 @ 11:05:41] [INFO] Library thumbnail hasn't been parsed yet!
[KFMon] [2024-05-11 @ 11:05:41] [INFO] Flagged target icon '/mnt/onboard/icons/plato.png' as pending processing ...
[KFMon] [2024-05-11 @ 11:05:41] [NOTE] Tripped IN_CLOSE for /mnt/onboard/icons/plato.png
[KFMon] [2024-05-11 @ 11:05:41] [NOTE] Target icon '/mnt/onboard/icons/plato.png' might not have been fully processed by Nickel yet, don't launch anything.
[KFMon] [2024-05-11 @ 11:05:42] [NOTE] Tripped IN_OPEN for /mnt/onboard/kfmon.png
[KFMon] [2024-05-11 @ 11:05:42] [INFO] Homescreen tile hasn't been parsed yet!
[KFMon] [2024-05-11 @ 11:05:42] [INFO] Library thumbnail hasn't been parsed yet!
[KFMon] [2024-05-11 @ 11:05:42] [INFO] Flagged target icon '/mnt/onboard/kfmon.png' as pending processing ...
[KFMon] [2024-05-11 @ 11:05:42] [NOTE] Tripped IN_CLOSE for /mnt/onboard/kfmon.png
[KFMon] [2024-05-11 @ 11:05:42] [NOTE] Target icon '/mnt/onboard/kfmon.png' might not have been fully processed by Nickel yet, don't launch anything.
[KFMon] [2024-05-11 @ 11:06:06] [NOTE] Tripped IN_OPEN for /mnt/onboard/kfmon.png
[KFMon] [2024-05-11 @ 11:06:06] [NOTE] Tripped IN_CLOSE for /mnt/onboard/kfmon.png
[KFMon] [2024-05-11 @ 11:06:06] [NOTE] Target icon '/mnt/onboard/kfmon.png' should be properly processed by now :)
[KFMon] [2024-05-11 @ 11:06:06] [INFO] Preparing to spawn /mnt/onboard/.adds/kfmon/bin/kfmon-printlog.sh for watch idx 0 . . .
[KFMon] [2024-05-11 @ 11:06:06] [NOTE] Spawned process 1059 (/mnt/onboard/kfmon.png -> /mnt/onboard/.adds/kfmon/bin/kfmon-printlog.sh @ watch idx 0) . . .
[KFMon] [2024-05-11 @ 11:06:06] [INFO] [TID: 1060] Waiting to reap process 1059 (from watch idx 0) . . .
**** Log dumped on 2024-05-11 @ 11:06:08 ****
**** FW 4.39.22861 on Linux 4.9.77 (#1 SMP PREEMPT 69bc51802-20240419T134452-B0419142243) ****
**** PRODUCT 'spaBW' on PLATFORM 'mt8113t-ntx' **** |
I have koreader into the .adds folder, not the root as per the guide: The one that goes on the root is KFmon |
oh yeah.... different manuals say diff folders... after multiple re-installs it start to work! thanks! |
While the fixes from @tymmej are fixing the rotation when triggering it (meaning rotating the device), the default rotation is still 180 degrees of, meaning when I start KOReader or when I exit from a book to the library the view it is upside down and I have to tilt the device to get the correct orientation. |
@Bapf my fixes are no longer needed, it was fixed in fbink. You can try |
Issue : It does not start.
Steps to reproduce
crash.log
(if applicable)The text was updated successfully, but these errors were encountered: