Author Topic: Restart attactmode via bash command line (or reload attract.cfg)  (Read 1874 times)

superdan

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
    • cdlab
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
« Last Edit: January 17, 2023, 07:55:23 AM by superdan »
If you want, contact me with the form @ cdlab