slide_duration does not works

Post bug reports related to either the kiosk ISO or the kiosk wizard here.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
polarix
White ninja
White ninja
Posts: 5
Joined: 14 Sep 2016, 09:34
Distribution: porteus kiosk
Location: Italy

slide_duration does not works

Post#1 by polarix » 14 Sep 2016, 09:39

The paratemeter:

slide_duration=30

should decide how many time an image would stay before skip to next.

But if i set this parameter i cannot view changes and the image dalay is always 5seconds.

Somethig wrong ?
Thank you.

Code: Select all

connection=wifi
network_interface=wlan0
dhcp=yes
wifi_encryption=wpa
ssid_name=****************
wpa_password=****************
browser=firefox
homepage=http://www.diretta.it|http://www.xscores.com|http://www.futbol24.com/Live/?__igp=1&LiveDate=&o=0
allow_icmp_protocol=yes
browser_idle=10
primary_keyboard_layout=it
allow_popup_windows=yes
whitelist=http://www.xscores.com http://www.diretta.it http://www.futbol24.com
additional_components=uefi.zip 
screensaver_idle=2
screensaver_archive=http://****************/zip/***********.zip
screensaver_archive_update=10
slide_duration=30

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: slide_duration does not works

Post#2 by fanthom » 14 Sep 2016, 10:25

Hello polarix,

I cant recreate your issue. Are you using Kiosk 4.1.0? Please login to kiosk through SSH and check if you have this line in /opt/scripts/screensaver-idle-watcher:

Code: Select all

feh -FZr -D30 -S filename /usr/share/screensaver &
"-D30" parameter sets the delay (in seconds) between loading new image.

Thanks.
Please add [Solved] to your thread title if the solution was found.

polarix
White ninja
White ninja
Posts: 5
Joined: 14 Sep 2016, 09:34
Distribution: porteus kiosk
Location: Italy

Re: slide_duration does not works

Post#3 by polarix » 14 Sep 2016, 10:40

Hello Fanthom,

No. I'm using the 32bit version (3.7.0) :(

Now i have understood that this feature is not implemented in this version, as well as the auto-download of zip images.

Have i a solution to use this two features on 32bit system?

Thank you very much.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: slide_duration does not works

Post#4 by fanthom » 14 Sep 2016, 10:54

32bit Kiosk is not developed anymore.

Please upgrade the hardware - BayTrail devices are getting ridiculously cheap now:
https://www.aliexpress.com/item/Portabl ... 3fdca67e64

If you cant do hw upgrade then i could create a custom build based on 3.7.0 release and implement these two features in it:
http://porteus-kiosk.org/builds.html

Thank you.
Please add [Solved] to your thread title if the solution was found.

polarix
White ninja
White ninja
Posts: 5
Joined: 14 Sep 2016, 09:34
Distribution: porteus kiosk
Location: Italy

Re: slide_duration does not works

Post#5 by polarix » 15 Sep 2016, 13:43

Hi fanthom, hi all.
To enable a automatic download of a fresh copy of screensaver images, I have edited the /opt/porteus-scripts/screensaver-slideshow in the 003-settings.xzm module :

Code: Select all

 # Variables:
wget="wget --no-http-keep-alive --no-cache --no-check-certificate"
dlpath="$*"
(
#####################  added by polarix #####################
while [ 1 ]; do
#########################################################
# Wait:
sleep 5

# Setup proxy:
. /etc/profile.d/proxy.sh
if [ -e /opt/porteus-scripts/proxy.pac ]; then
    proxyc=`pactester -p /opt/porteus-scripts/proxy.pac -u $dlpath | cut -d" " -f2-`
    [ "$proxyc" = DIRECT ] && unset http_proxy https_proxy ftp_proxy || export http_proxy="http://$proxyc" https_proxy="http://$proxyc" ftp_proxy="http://$proxyc"
fi

# Download and unpack archive:
dlarch() {
$wget -q -T20 -O /tmp/1.zip $dlpath
unzip -o /tmp/1.zip -d /usr/share/screensaver >/dev/null 2>&1
}
dlarch
[ `ls -1 /usr/share/screensaver | wc -l` -lt 1 ] && dlarch
[ `ls -1 /usr/share/screensaver | wc -l` -lt 1 ] && dlarch
# Fallback to wallpaper:
[ `ls -1 /usr/share/screensaver | wc -l` -lt 1 ] && cp -a /usr/share/wallpapers/* /usr/share/screensaver

# Cleanup:
rm -f /tmp/1.zip
#####################  added by polarix #####################
sleep 300  # <--- set auto-download to 5 minutes 
done
#########################################################
) &
All works fine and avery five minutes the kiosk donwload the new zip file ! :)
Than i tried the same strategy for the delay between slides.
But at startup the file opt/porteus-scripts/screensaver-idle-watcher is overwritten, so i have again -D5 :O:
What process changes the delay value to 5 seconds ?
Than you.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: slide_duration does not works

Post#6 by fanthom » 15 Sep 2016, 14:04

Hello polarix,

There is no such process. Please make sure you have correct path, permissions and that your custom module is activated as very last:
- copy only modified files to a module
- name it as 99-custom.xzm

Should work.
Please add [Solved] to your thread title if the solution was found.

polarix
White ninja
White ninja
Posts: 5
Joined: 14 Sep 2016, 09:34
Distribution: porteus kiosk
Location: Italy

Re: slide_duration does not works

Post#7 by polarix » 15 Sep 2016, 15:27

My script is like yours with only one change: "-D15"

It has the same name, is in the same folder and has the same permissions:
opt/porteus-scripts/screensaver-idle-watcher

But after boot i can see that the original script is edited by something:

This is the code if i look without booting the kioks:

Code: Select all

#!/bin/bash
#
# Screensaver idle watcher.
# Author: T.Jokiel <http://porteus-kiosk.org>

SSIDLE=`grep SSIDLE= /etc/xdg/openbox/autostart | cut -d= -f2`

while [ 1 ]; do
    idle=$(echo `xprintidle` | sed s/...$//); [ "$idle" ] || idle=1
    if [ $idle -gt $SSIDLE ]; then
        if [ -z "`pidof ripples`" ]; then
            killall ripples imlib2_view 2>/dev/null
            imlib2_grab /root/screen.png
            imlib2_view /root/screen.png &
            sleep 1
            ripples -root &
        fi
        sleep 2
    else
        [ "`pidof ripples`" ] && killall ripples imlib2_view 2>/dev/null
        sleep $(($SSIDLE-$idle))
    fi
done
This is the code if I boot the kiosks:

Code: Select all

SSIDLE=`grep SSIDLE= /etc/xdg/openbox/autostart | cut -d= -f2`

while [ 1 ]; do
    idle=$(echo `xprintidle` | sed s/...$//); [ "$idle" ] || idle=1
    if [ $idle -gt $SSIDLE ]; then
        if [ -z "`pidof feh`" ]; then
            hhpc &
            feh -FZr -D5 /usr/share/screensaver &
        fi
        sleep 2
    else
        [ "`pidof feh`" ] && { killall feh hhpc; sleep 1; killall -9 feh hhpc 2>/dev/null; eval `grep hhpc /etc/xdg/openbox/autostart`; }
        sleep $(($SSIDLE-$idle))
    fi
done

When booted its permission are changed:
Image

Why ?
Thank you.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: slide_duration does not works

Post#8 by fanthom » 15 Sep 2016, 17:42

Ok - i get it.

You should edit /opt/porteus-scripts/files/slideshow as this is the file which gets copied to /opt/porteus-scripts/screensaver-idle-watcher during kiosk boot.
If 'screensaver video' is enabled during installation then /opt/porteus-scripts/files/videoshow is copied to /opt/porteus-scripts/screensaver-idle-watcher.

Thanks.
Please add [Solved] to your thread title if the solution was found.

polarix
White ninja
White ninja
Posts: 5
Joined: 14 Sep 2016, 09:34
Distribution: porteus kiosk
Location: Italy

Re: slide_duration does not works

Post#9 by polarix » 16 Sep 2016, 13:42

Very well, Fanthom. All works fine.

Just an other little query: how to pass a settings parameter to my script ?


Thank you very much.

Locked