P2APP where / how is it started at boot?

G2 operating system and special app's (e.g. p2app) discussion only--post Thetis and piHPSDR questions in their own sub-forums
W1SWL
Posts: 25
Joined: Wed Feb 08, 2023 6:46 pm

P2APP where / how is it started at boot?

Postby W1SWL » Thu Dec 26, 2024 12:25 pm

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
laurencebarker
Posts: 304
Joined: Mon Nov 11, 2019 7:39 pm

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

Postby laurencebarker » Thu Dec 26, 2024 2:24 pm

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
Laurence Barker G8NJJ
W1SWL
Posts: 25
Joined: Wed Feb 08, 2023 6:46 pm

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

Postby W1SWL » Fri Dec 27, 2024 10:56 am

Excellent, thank you Lawrence. Happy Holidays to All! Art W1SWL

Return to “G2 Operating System & Applications”