muness : can you make a screenshot on how your Kobo looks like after adding my changes? (and you have the bottom menu activated). My guess is that is something with res , aurahd have 1080x1440
We could ajust the mod based on device_model
As for changing data/cr3.ini I would guess that koreader needs some restart after thats replaced (and you can do that if you do a killall reader.lua and from koreader_kobo.sh you have a while loop like this:
while :; do
LD_PRELOAD=/root/screenInv.so ./reader.lua /mnt/onboard
# ./reader.lua /mnt/onboard
sleep 1
done
notice: I use /root/screenInv.so , so if I echo t into /tmp/invertScreen then that will switch the nightmode
BTW here is my koreader-debug_cmd.sh:
#!/bin/sh
echo requested debug command $1
if test :$1 == :w_on ; then
/mnt/onboard/.kobo/KoboLauncher/usbnet/start-wireless.sh
elif test :$1 == :reboot ; then
reboot
elif test :$1 == :w_off ; then
/mnt/onboard/.kobo/KoboLauncher/usbnet/stop-wireless.sh
elif test :$1 == :inv ; then
echo t > /tmp/invertScreen
fi
and in ./frontend/ui/data/koptoptions.lua (relevant lines toggle and args) :
{
icon = "resources/info-bug.png",
options = {
{
name = "debug_cmd",
name_text = "debug cmd",
toggle = {"test","w_on","w_off","other_cmd",},
args = {"test","w_on","w_off","other_cmd",},
current_func = function() return "xxxxx" end,
default_arg = "a",
event = "debug_cmd",
}
},
},
so for reboot I use the debug_cmd from this menu .