Kiosk slow to boot

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
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
ajd
White ninja
White ninja
Posts: 4
Joined: 27 Feb 2023, 07:05
Distribution: Porteus Kiosk 5.4

Kiosk slow to boot

Post#1 by ajd » 27 Feb 2023, 07:24

Hi all

I've recently set up porteus kiosk 5.4 on a laptop for my elderly mother (to keep things simple). It's been working great for the most part. However, I have a couple of issues:

1. I would like to disable the touchpad so she doesn't keep accidently touching it - is that possible? I don't want to disable the mouse so I don't think I can use the disable_input_devices parameter. Is there any other way to disable one device? I can't find an option to do it in the BIOS.

2. The kiosk is quite slow to boot up (approx 30 seconds longer than I would expect). I've run a debug and attached the log. It looks like it might be getting stuck in a couple of places but I can't work out how to fix it.

e.g. Between these lines there seems to be a long delay if I'm reading the log correctly (I'm a bit of a noob though)

[ 21.044] (II) RADEON(0): Modeline "1366x768"x0.0 69.30 1366 1398 1430 1486 768 770 774 782 -hsync -vsync (46.6 kHz eP)
[ 44.962] (II) RADEON(0): EDID vendor "LGD", prod id 614

There also seems to be a 5 second delay getting the wifi connection but that may be normal?

kiosk 2023 Feb 27 16:54:59 dhcpcd[1315]: wlan0: probing address 192.168.68.105/24
kiosk 2023 Feb 27 16:55:04 dhcpcd[1315]: wlan0: leased 192.168.68.105 for 7200 seconds

I have tried to search the forums but the search keeps timing out. Not sure if that's me or the forum.

Anyway - I would appreciate any help.

Thanks
AJD

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

Kiosk slow to boot

Post#2 by fanthom » 27 Feb 2023, 13:33

Hello AJD,

1) You could use 'run_command=' parameter to disable only the input device of your choice.

Sample for disabling Ilitek mouse:

Code: Select all

run_command=xinput | grep 'ILITEK ILITEK-TP Mouse' | cut -d= -f2 | cut -d[ -f1 | while read line; do xinput --disable $line; done
2) 5 secs for wifi connection is normal.

Your debug log is missing. You may upload it to pastebin.com and link here (remove sensitive data like MACs, wifi scans, etc).

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

ajd
White ninja
White ninja
Posts: 4
Joined: 27 Feb 2023, 07:05
Distribution: Porteus Kiosk 5.4

Kiosk slow to boot

Post#3 by ajd » 27 Feb 2023, 14:13

Hi

Yes sorry - I realised as I hit submit that I'd forgotten to attach the debug. See below.

That's awesome re the run_command - thanks! I'll look into it.

The debug log should be here:
https://pastebin.com/Gtjp9d8n
Password: f5zEe98yaA

Thanks
AJD

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

Kiosk slow to boot

Post#4 by fanthom » 27 Feb 2023, 16:34

Your system booted within 20 seconds which is pretty OK result.

However - kernel reported unstable clocksource:

Code: Select all

kiosk 2023 Feb 27 16:54:52 kernel:[    0.897747] clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc-early' as unstable because the skew is too large:
kiosk 2023 Feb 27 16:54:52 kernel:[    0.897758] clocksource:                       'hpet' wd_nsec: 495950986 wd_now: fb1c76 wd_last: 8ec1bb mask: ffffffff
kiosk 2023 Feb 27 16:54:52 kernel:[    0.897764] clocksource:                       'tsc-early' cs_nsec: 341081020 cs_now: 7dc4ed272 cs_last: 7afb212bf mask: ffffffffffffffff
kiosk 2023 Feb 27 16:54:52 kernel:[    0.897770] clocksource:                       'tsc-early' is current clocksource.
kiosk 2023 Feb 27 16:54:52 kernel:[    0.897776] tsc: Marking TSC unstable due to clocksource watchdog
kiosk 2023 Feb 27 16:54:52 kernel:[    0.897786] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
and it may slow down the system after a while.

Google lists many potential solution:
https://www.google.com/search?client=fi ... +too+large

Please try this parameter:

Code: Select all

kernel_parameters=tsc=unstable
or this one to disable HPET:

Code: Select all

kernel_parameters=hpet=disable
or this one to disable idle states:

Code: Select all

kernel_parameters=intel_idle.max_cstate=7
I have no off hand solution so you need to experiment with kernel flags.

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

ajd
White ninja
White ninja
Posts: 4
Joined: 27 Feb 2023, 07:05
Distribution: Porteus Kiosk 5.4

Kiosk slow to boot

Post#5 by ajd » 28 Feb 2023, 00:10

Thanks - I'll give the kernel parameters a go.

It takes over a minute from switching on the laptop to the browser appearing. I've had other distros on there that have booted much faster than that. I'm not saying one minute is unusable - It would just be nice if I could make it a bit quicker.

Don't these two lines suggest it's stuck for about 24 seconds? Or am I reading that incorrectly?

[ 21.044] (II) RADEON(0): Modeline "1366x768"x0.0 69.30 1366 1398 1430 1486 768 770 774 782 -hsync -vsync (46.6 kHz eP)
[ 44.962] (II) RADEON(0): EDID vendor "LGD", prod id 614

Thanks!
AJD

ajd
White ninja
White ninja
Posts: 4
Joined: 27 Feb 2023, 07:05
Distribution: Porteus Kiosk 5.4

Kiosk slow to boot

Post#6 by ajd » 28 Feb 2023, 00:47

Hey

The disabling of the touchpad worked perfectly! Cheers

I tried each of the kernel parameters but unfortunately none of them improved the boot time.

I'll keep digging.

Thanks
AJD

Locked