Thread: Sketch
View Single Post
Old 10-21-2018, 02:15 PM   #38
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Clouds View Post
I installed Sketch on my Kobo Aura One.
Fmon installation failed, so I added Sketch as a user script to KSM 9 that I already had installed.
KSM bypasses on-animator.sh. Therefore, your Fmon installation does not work (as long as KSM is enabled), and KFMon would not work for the same reason.

As for the script to start sketch from KSM, I would try the following:

Spoiler:
Code:
#! /bin/sh

cd "/mnt/onboard/.adds/sketch" || exit 1

case $PRODUCT in
  dragon|dahlia|snow ) platoRotate="1";;
  * ) platoRotate="3";;
esac

if [ "${platoRotate}" != "$(cat /sys/class/graphics/fb0/rotate)" ]; then
  echo "${platoRotate}" > /sys/class/graphics/fb0/rotate
  if [ "${platoRotate}" != "$(cat /sys/class/graphics/fb0/rotate)" ]; then
    echo "$((platoRotate ^ 2))" > /sys/class/graphics/fb0/rotate
  fi
fi

# If the touch feedback doesn't match the position of your fingers, add the following:
# export SKETCH_UNSWAP_XY=1
# export SKETCH_UNMIRROR_X=1

./sketch > crash.log 2>&1
tshering is offline   Reply With Quote