Keyboard Shortcuts
Likes
Search
Start sBitx app at boot.
The sound sub systems barfs in startup. An alternative is to wait for 10 seconds ane start? On Thu, Dec 28, 2023, 1:41 PM <davidmanning592@...> wrote: I know this must have been asked before but i cannot seem to find an answer. I would like to have my radio start-up straight into the sbitx application at boot.? |
On Thu, Dec 28, 2023 at 03:11 AM, <davidmanning592@...> wrote:
I know this must have been asked before but i cannot seem to find an answer. I would like to have my radio start-up straight into the sbitx application at boot.? ?Is there an easy way to do this?On Thu, Dec 28, 2023 at 04:45 AM, Ashhar Farhan wrote: The sound sub systems barfs in startup. An alternative is to wait for 10 seconds and start? There is a way I've used on other projects, but not exactly easy unless you already have some Linux skills. In some rare cases you may need to add a delay before starting your script to give the Desktop more time to complete the booting process before your app starts. This can be done with a bash sleep command. Do not attempt to add the sleep command directly in autostart, it won’t work. Use the sleep command in a bash script instead. So you would want to use the system or user method described in the linked text, and use a text editor to append a line to the chosen autostart file that starts a bash script, kind of like: @bash /home/pi/start-sbitx.sh $ chmod +x /home/pi/start-sbitx.sh |
rdg
Dave I have not tested your example code, but a quick review says “good to go”. Personally I start other processes before the radio but for those that want auto start this should work.? Sent from for iOS On Thu, Dec 28, 2023 at 11:39, Dave, N1AI via groups.io <n1ai@...> wrote:
On Thu, Dec 28, 2023 at 03:11 AM, <davidmanning592@...> wrote: |
On Thu, Dec 28, 2023 at 04:03 PM, <davidmanning592@...> wrote:
Your writeup was excellent and the start-up works perfectly for my radio with V3 software.? That's great news, thanks for testing it! ? |
Hi Dave,
While at it, you might want to include the DSI touchscreen mapping for those using a second or VNC-like connected screen. Here is a copy of the startup that I use: cd /home/pi/sbitx
sudo xinput map-to-output "raspberrypi-ts" "DSI-1"
./sbitx &> errlog.txt
The two changes are the xinput map command and the redirect of the error messages to errlog.txt. I have also tried forcing the sBitx program to start in the DSI-1 window without a repeatable process.? I tried the --window-settings=0,0, and that did not work.? This was in a desktop launcher property.? I am open to suggestions. 73 Evan AC9TU |