Auto open realdash on 2.2.8 linux w pi 4B

Hello,
New to linux. Want to be able to have real dash open when pi is booted up. Thanks.

You can configure a GUI program to start automatically on boot in Raspberry Pi OS using one of several methods.

Method 1: LXDE Autostart

If you are using the desktop environment LXDE (Lightweight X11 Desktop Environment), which is used by Raspberry Pi OS, you can put a .desktop file in the autostart directory. Hereā€™s how to do that:

  1. Open Terminal.

  2. Type this command and hit enter:

    nano ~/.config/lxsession/LXDE-pi/autostart
    
  3. Add the command to execute your program at the end of this file. It might look like this:

    @/usr/bin/realdash
    
  4. Save the file and exit nano (Ctrl+X, then Y, then Enter).

  5. Reboot to see the changes.

Method 2: systemd

If the first method doesnā€™t work, or you want a more powerful and flexible solution, you can use systemd, a system and service manager for Linux. Hereā€™s how:

  1. Create a new systemd service file:

    sudo nano /etc/systemd/system/realdash.service
    
  2. Add the following to this file:

    [Unit]
    Description=RealDash
    
    [Service]
    ExecStart=/usr/bin/realdash
    Restart=always
    User=pi
    Environment=DISPLAY=:0
    Environment=XAUTHORITY=/home/pi/.Xauthority
    
    [Install]
    WantedBy=multi-user.target
    
  3. Save the file and exit nano (Ctrl+X, then Y, then Enter).

  4. Enable the service so that it starts on boot:

    sudo systemctl enable realdash.service
    
  5. Start the service immediately:

    sudo systemctl start realdash.service
    
  6. Check the status of the service:

    sudo systemctl status realdash.service
    

Remember that GUI applications usually require a display to connect to, which is why weā€™ve set the DISPLAY environment variable in the systemd service.

These instructions should help you automatically start a GUI application when your Raspberry Pi boots.

1 Like

Tried both options and was unable to get it to work.

Unfortunately those are the only ways I know of :frowning:

Im abble to autostart realdash by the first method, but i cant run it 100% fullscreen, i always have a bar on the top of the screen

running a 1920x720 12.3 inches touchscreen

It could be that you need to add some delay to the startup in order for the windowing system start completely? Maybe here are some Linux gurus that can help more.

how can i do that? im running with lxde autostart

You can use more configurable window manager, for example i3. Then in the configuration (~/.config/i3/config) put following rule:

for_window [title="RealDash"] fullscreen enable

Of Course there is much more you can do with it :slightly_smiling_face:

I changed xsession to boot straight into realdash through the pi user. Doing that will keep you from getting back to the desktop. To get around this I created a second user. With that, you can hit esc and it will take you to the login window.

All the details are on Github.

1 Like

i give it up and i give it to a friend better than me in programation, i will show it soon, the setup will be nice.

want to run it with a TheOneGauge connected on my terminator X max

will be in a 05 wide body mustang with a turbocharged 4V 4.6

1 Like

Hi, is there any way you could tell me how to make i3 my default terminal after installation and how to remove lxterminalā€¦ i tried xterm but didnt work.
I have run the instillation pavkage but dont know what to do after that. The tutorials arectoo vague.

Any help would be very appreciated. Thanks

The ā€˜standardā€™ way that i know to do this is by using ā€œupdate-alternativesā€, sth like:

sudo update-alternatives --config x-session-manager
1 Like

thanks i appreciate the reply.
I still dont understand, is x-session-manager the comand for i3? or i have to know that somehow?