From 7fd45c6cd3c6c9930e026ac3e963b03ac9a3ec6d Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 27 Apr 2015 01:59:50 +0200 Subject: [PATCH] And even more Kobo startup script tweaks. Good news: restarting nickel doesn't deadlock anymore. Yay. --- platform/kobo/koreader.sh | 9 +++------ platform/kobo/nickel.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index 9b8918fd2..2d60d50e9 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -84,15 +84,12 @@ fi if [ "${from_nickel}" == "true" ] ; then # start kobo software because it was running before koreader - #./nickel.sh & - - # FIXME: This appears to be horribly broken: nickel restarts, but deadlocks instantly (requiring a paperclip to reboot...). - # So, eff it, and just reboot instead, that barely takes more time anyway. - # NOTE: H2O, 3.12.1 - reboot + ./nickel.sh & else # if we were called from advboot then we must reboot to go to the menu if ! pkill -0 ksmhome.sh ; then reboot fi fi + +return 0 diff --git a/platform/kobo/nickel.sh b/platform/kobo/nickel.sh index d5efe2367..024607631 100644 --- a/platform/kobo/nickel.sh +++ b/platform/kobo/nickel.sh @@ -45,7 +45,6 @@ export LANG="en_US.UTF-8" ) & if [ ! -e "/usr/local/Kobo/platforms/libkobo.so" ] ; then - # FIXME: Should we really bother with the QWS_* stuff? export QWS_KEYBOARD="imx508kbd:/dev/input/event0" export QT_PLUGIN_PATH="/usr/local/Kobo/plugins" if [ -e "/usr/local/Kobo/plugins/gfxdrivers/libimxepd.so" ] ; then @@ -54,18 +53,19 @@ if [ ! -e "/usr/local/Kobo/platforms/libkobo.so" ] ; then export QWS_DISPLAY="Transformed:imx508:Rot90" export QWS_MOUSE_PROTO="tslib_nocal:/dev/input/event1" fi - /usr/local/Kobo/hindenburg & - /usr/local/Kobo/nickel -qws -skipFontLoad + /usr/local/Kobo/hindenburg > /dev/null 2>&1 & + /usr/local/Kobo/nickel -qws -skipFontLoad > /dev/null 2>&1 & else - /usr/local/Kobo/hindenburg & + /usr/local/Kobo/hindenburg > /dev/null 2>&1 & lsmod | grep -q lowmem || insmod "/drivers/${PLATFORM}/misc/lowmem.ko" & if grep -q "dhcpcd=true" "/mnt/onboard/.kobo/Kobo/Kobo eReader.conf" ; then dhcpcd -d -t 10 & fi - /usr/local/Kobo/nickel -platform kobo -skipFontLoad + /usr/local/Kobo/nickel -platform kobo -skipFontLoad > /dev/null 2>&1 & fi -# FIXME: Is this even reachable? (i.e., does nickel fork in the bg?) # Rotation weirdness, part II echo "${cur_rotate}" > "/sys/class/graphics/fb0/rotate" cat "/sys/class/graphics/fb0/rotate" > "/sys/class/graphics/fb0/rotate" + +return 0