![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 3790
Join Date: Jan 2024
Device: Kobo
|
Koreader crashes if Kobo eReader.conf is missing
* My environment is completely custom
* It does not have nickel * It does not have the file /mnt/onboard/.kobo/Kobo/Kobo eReader.conf After starting KOReader, it drops back to the shell with the following error: ./luajit: frontend/device/kobo/nickel_conf.lua:155: /mnt/onboard/.kobo/Kobo/Kobo eReader.conf: No such file or directory Spoiler:
Creating the file solves the problem, however I figured this might also affect regular users. Some sort of disk or file corruption could cause the same issue and would prevent them from starting their favorite app. ![]() Last edited by bitfreak; 03-08-2024 at 03:08 PM. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 3790
Join Date: Jan 2024
Device: Kobo
|
Right, that figures..its used to identify a KOBO device. I keep forgetting that you guys support hundreds of devices.
However for my situation it was a problem and I figured that the boot loader space was identical for at least bunch of KOBO's (maybe all of them). So instead of testing for /bin/kobo_config.sh I tested on the presence of the hardware configuration hwcfg= in /proc/cmdline. Code:
local handle = io.popen("grep -o hwcfg= /proc/cmdline") local kobo_test_stat = handle:read("*line") handle:close() -- local kobo_test_stat = lfs.attributes("/bin/kobo_config.sh") if kobo_test_stat then util.noSDL() return require("device/kobo/device") end |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
They are actually two different things.
Kobo eReader.conf is used by nickel to store frontlight values kobo_config.sh is used by the device probe. Those files work, even if empty. "touch" them once and leave the program as is (and enjoy updates ![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Book crashes Koreader on android but opens fine on Kobo | jlynton | KOReader | 14 | 03-02-2022 12:56 PM |
Kobo.conf template? | Uncle Robin | Kobo Reader | 8 | 08-18-2020 10:08 AM |
Aura ONE Can't save changes in KOBO ereader.conf | Vetchy | Kobo Reader | 8 | 05-06-2020 09:33 PM |
Adding comments in Kobo eReader.conf file | Mrs_Often | Kobo Reader | 3 | 08-01-2018 09:50 AM |
Kobo Reader.conf corrupted? | chrisridd | Devices | 2 | 03-15-2014 06:59 AM |