After login i expected my autostart apps to immediately start, but they seem to only start after about 90s.
I tried googling but all i see is people who want to delay apps in startup... i was looking for the opposite.
I use guake (dropdown terminal) and sometimes want to hit that imediately after login, but i have to wait for autostart to kick in.
This has been like this a long time and im not even sure if its by design, but i wonder if there is a way to run it immediately (i tried with systemd but i guess for X11 apps that is not appropriate either). This behaves the same across my multiple machines... previous and current desktops and laptops and i never took the time to look into it because i can simply start the app on login and it does work immediately... but when i leave it to autostart its delayed. Today i tried figuring it out and i totally failed to even figure out how to debug this...
Also tried with diff app (gedit) just to see if it was something the app was doing but it behaves the same and looking at top you clearly see that they are not running... and then (90s later) they are started.
~ cat ~/.config/autostart/guake.desktop seg 20 dez 2021 11:35:40
[Desktop Entry]
Name=Guake Terminal
Comment=Use the command line in a Quake-like terminal
TryExec=guake
Exec=guake
Icon=guake
Type=Application
Categories=GNOME;GTK;System;Utility;TerminalEmulator;
StartupNotify=true
X-Desktop-File-Install-Version=0.22
X-GNOME-Autostart-Delay=0
~ cat /etc/*elease seg 20 dez 2021 11:38:38
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Does anyone have some insight into what is going on?
** edit **
~ free -h qui 30 dez 2021 19:07:54
total used free shared buff/cache available
Mem: 31Gi 2,6Gi 25Gi 30Mi 2,9Gi 28Gi
Swap: 2,0Gi 0B 2,0Gi
~ sysctl vm.swappiness qui 30 dez 2021 19:07:56
vm.swappiness = 60
top after login but before autostart apps are started
top - 19:12:55 up 10 min, 5 users, load average: 0,11, 0,32, 0,31
Tasks: 460 total, 1 running, 458 sleeping, 0 stopped, 1 zombie
%Cpu(s): 0,0 us, 0,4 sy, 0,0 ni, 99,6 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
MiB Mem : 32015,8 total, 27507,7 free, 1505,3 used, 3002,8 buff/cache
MiB Swap: 2048,0 total, 2048,0 free, 0,0 used. 30073,2 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
832 root 20 0 0 0 0 S 1,7 0,0 0:09.37 nvidia-modeset/
6604 root 20 0 24,2g 55624 35720 S 1,3 0,2 0:01.70 Xorg
7245 pguedes 20 0 816508 84356 49328 S 1,0 0,3 0:01.19 guake
200 root 20 0 0 0 0 I 0,3 0,0 0:00.08 kworker/15:1-events
1517 root -51 0 0 0 0 S 0,3 0,0 0:02.13 irq/110-nvidia
6747 pguedes 20 0 5041032 374532 112356 S 0,3 1,1 0:03.69 gnome-shell
6757 pguedes 20 0 153416 8964 7020 S 0,3 0,0 0:00.19 gesticled
7931 pguedes 20 0 12272 4156 3076 R 0,3 0,0 0:00.20 top
1 root 20 0 168648 12748 8436 S 0,0 0,0 0:01.21 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/0:0H-events_highpri
7 root 20 0 0 0 0 I 0,0 0,0 0:00.04 kworker/0:1-rcu_par_gp
9 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq
10 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_tasks_rude_
11 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_tasks_trace
12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 ksoftirqd/0
13 root 20 0 0 0 0 I 0,0 0,0 0:00.13 rcu_sched
14 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0
15 root -51 0 0 0 0 S 0,0 0,0 0:00.