View Single Post
Old 09-01-2022, 01:30 PM   #896
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Wow, I didn't know that Mel-kior figured out the issue with fw 4.25. Good work!

Pre-pandemic, I was trying to unify all the disparate KSM09 versions into a single file (leaving out backwards compatibility with older firmware versions if need be). I had the Forma version working with Night Mode on my Glo HD, and it was all working quite well. Then 4.25 hit, I couldn't figure out what was wrong, and I moved on to using NickelMenu as my main launcher.

Anyway, for anyone interested, I've got two versions here for people to play with, untested, so make sure you have a way to roll back if something goes wrong (ex. separate SD card reader and maybe a system image backup), ESPECIALLY if you lose touch.

KBStartMenu_09_fw4.25_test.zip takes that unified branch I was working on back in the day and adds Mel-kior's changes. I also updated the QT bits using the 2022.5.19 version of pbchess. I haven't tested it, but since the current vlasovsoft launcher works on my Glo HD, I assume its QT touch bits will still work in KSM09 too. I could be wrong, though.

Spoiler:
KBStartMenu_09_fw4.33_test.zip is my attempt to update the rc.S and usb scripts to use those in fw 4.33. Unless I made some typos, I think it should work, but I haven't tested it myself so this version is definitely not for the faint of heart. Obviously, make sure you're running 4.33 first if you want to try it.
<-- 4.33 version temporarily pulled due to a report that it wasn't working correctly.

I believe these will work for every Kobo up to Nia. The three devices that may not work are Sage, Elipsa, and Libra 2.

There is actually a Libra 2 driver in the pbchess package, so I set KSM09 to use it, but I have no idea what'll happen if you try to run it. Sage and Elipsa don't have entries in pbchess, so I'm not sure if they'll work with one of the existing four drivers or if it'll need something new (clearly out of my skill set to figure out, and obviously, I don't have access to those devices to test things).

For now, Sage and Elipsa will use the Libra 2 driver if people to try to install it there, but if people want to experiment, they can change the *) entry in this case statement in the rcS file:

Code:
case $MODEL_NUMBER in
  310|320|330|340|350|360|381)
    export mousedriver=libKoboTS.so
    export QWS_MOUSE_PROTO=KoboTS
    ;;
  370|371|372|373|375|379)
    export mousedriver=libKoboTS_h2o.so
    export QWS_MOUSE_PROTO=KoboTS_h2o
  374|376|377|378|382|384)
    export mousedriver=libKoboTS_h2o2.so
    export QWS_MOUSE_PROTO=KoboTS_h2o2
    ;;
  388)
    export mousedriver=libKoboTS_libra2.so
    export QWS_MOUSE_PROTO=KoboTS_libra2:mirrorx # copied from pbchess
    ;;
  *) # Change this entry for new devices
    export mousedriver=libKoboTS_libra2.so
    export QWS_MOUSE_PROTO=KoboTS_libra2
    ;;
esac
to use one of the other three drivers instead of libra2. Also, no idea if the rotation values for those devices will need to be tweaked either.

As a fallback option, these two versions are set to alternate between launching KSM and nickel, just in case you need to revert. If it works well, you can edit .adds/kbmenu_user/runsettings.txt to always have KSM launch by default.

If people want to inspect the work, I've got up to the fw 4.33 changes up on GitHub on this branch:
https://github.com/rtiangha/kobo-sta.../updatedrivers
Attached Files
File Type: zip KBStartMenu_09_fw4.25_test.zip (8.02 MB, 231 views)

Last edited by rtiangha; 09-16-2022 at 12:40 PM. Reason: Pull buggy 4.33 version
rtiangha is offline   Reply With Quote