Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 05-08-2024, 09:19 AM   #1
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,459
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Exclamation Make the most of Your E-Reader - pop-up message

On my Pocketbook 632 after upgrading to the latest firmware (6.8.2102) I noticed I would periodically receive a pop-up message asking me to:

Connect to Wi-Fi
Make the most of Your E-Reader!


It seems to appear every 14 days and even though it's just one-click to dismiss, it really bothers me there's no obvious way of preventing its reappearance.

As a workaround I've written a startup script (needs ezdiy root) to prevent its appearance. You could also add the code to a launcher for a frequently used userapp (e.g. koreader) if you can't/won't root. Reply if you have a better solution.

For info, it seems to be triggered by the value ask_connect_ts within:
/mnt/ext1/system/config/global.cfg

As soon as the unix timestamp value for ask_connect_ts drops 14 days behind the current date the message is triggered.
Attached Thumbnails
Click image for larger version

Name:	make_most.jpg
Views:	62
Size:	89.6 KB
ID:	208126  

Last edited by neil_swann80; 05-11-2024 at 01:42 AM.
neil_swann80 is offline   Reply With Quote
Old 05-11-2024, 01:08 AM   #2
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,459
Karma: 11226897
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
If your device is ezdiy rooted, you can create a .sh startup script in:
/mnt/ext1/system/init.d

If not rooted you could add this to a launcher .app file for a frequently used app.

By default it creates a new global.cfg file as soon as the ask_connect_ts timestamp crosses 12 days.

Code:
#!/bin/sh

# Threshold to run - days x seconds_in_24hrs (needs to be less than 14 days)
daySecs=$((12*86400))
# current unix timestamp
utime=$(date +%s)
# current unix timestamp minus threshold
u2time=$(($utime-$daySecs))

# read ask_connect_ts timestamp from config file
eval $(grep "^ask_connect_ts=" /mnt/ext1/system/config/global.cfg)
# If timestamp is not yet 12 days old script exits
if [ $ask_connect_ts -gt $u2time ]; then
  exit
fi

# sleep only needed if running as startup script
# allow startup process to finish with file before editing 
sleep 15

# create new global.cfg file with new ask_connect_ts value
rm -f /mnt/ext1/system/config/global.cfg.back
mv /mnt/ext1/system/config/global.cfg /mnt/ext1/system/config/global.cfg.old
echo "" > /mnt/ext1/system/config/global.cfg
IFS=''; cat "/mnt/ext1/system/config/global.cfg.old" |
while read data; do
   if echo "$data" | grep -q "ask_connect_ts"; then 
	echo "ask_connect_ts=$utime" >> "/mnt/ext1/system/config/global.cfg"
   else echo "${data}" >> "/mnt/ext1/system/config/global.cfg"; fi
done
cp /mnt/ext1/system/config/global.cfg /mnt/ext1/system/config/global.cfg.back
rm -f /mnt/ext1/system/config/global.cfg.old

exit

Last edited by neil_swann80; 06-07-2024 at 04:58 AM.
neil_swann80 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Job errors don't trigger error message pop-up modified Calibre 2 07-27-2023 04:59 AM
How to highlight in Moon+Reader without pop up menu? anoukaimee Android Devices 3 01-26-2022 03:03 PM
Make everyone curious message Nate the great Alternative Devices 11 07-16-2008 05:49 AM
iLiad Nice little "make people curious" message! Aenea iRex Developer's Corner 49 01-30-2008 03:50 AM
Make: HOW TO - Make PDFs for the Sony Reader (Ebook e-ink device) kalivoodoo Sony Reader 6 02-01-2007 11:56 AM


All times are GMT -4. The time now is 10:09 AM.


MobileRead.com is a privately owned, operated and funded community.