Page 1 of 1

P2APP where / how is it started at boot?

Posted: Thu Dec 26, 2024 12:25 pm
by W1SWL
Recently, my G2 (Black Face) has not been recognized by Thetis. I recalled that the G2 needs the P2APP running for the G2 to be "found" over Ethernet by Thetis. So I signed into my Pi on the G2 and double clicked the P2APP on the GUI. It ran. And then when I turned on Thetis all was well. However....

Apparently, in the past P2APP seems to always have been running perhaps in a "STARTUP" when the G2 was powered on.
How is the P2APP invoked at Startup on the G2 black face?
Somehow, I need to check that so that the P2APP is auto started.

All ears... thanks. Art W1SWL

Re: P2APP where / how is it started at boot?

Posted: Thu Dec 26, 2024 2:24 pm
by laurencebarker
There are lots of ways to autostart linux code, but the mechanism used by the factory images is covered in the manual section 4.6.

There should be a file /etc/xdg/lxsession/LXDE-pi/autostart

Its content should be:

With display:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@/home/pi/github/pihpsdr/pihpsdr



No display:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@/home/pi/github/Saturn/sw_projects/P2_app/p2app



You can edit the file with a normal test editor eg sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Re: P2APP where / how is it started at boot?

Posted: Fri Dec 27, 2024 10:56 am
by W1SWL
Excellent, thank you Lawrence. Happy Holidays to All! Art W1SWL