Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: superdan on January 16, 2023, 03:48:49 AM

Title: Restart attactmode via bash command line (or reload attract.cfg)
Post by: superdan on January 16, 2023, 03:48:49 AM
Hi,
how can i restart attractmode and only attractmode (so without rebooting my raspberry) via ssh prompt commandline?
Just restart.
in autostart.sh the command is startx and no more 'attract'
when i try
Code: [Select]
pi@retropieSalottoPi4:~ $ pkill attract
pi@retropieSalottoPi4:~ $ attract

gives me the error

Code: [Select]
Failed to open X11 display; make sure the DISPLAY environment variable is set correctlyalso, if i run

Code: [Select]
./runattract
it gives me

Code: [Select]
Error: Couldn't connect to XServer passing null display
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
Xorg: no process found

I can also avoid to restart attractmode if there is a way to reload attract.cfg after I edit it via script

Thanks