mlb-led-scoreboard icon indicating copy to clipboard operation
mlb-led-scoreboard copied to clipboard

Start the Scoreboard on Autostart does't work

Open PHI34Halladay opened this issue 1 year ago • 10 comments

This issue is a

  • [x] Bug Report
  • [ ] Feature Request

Hardware Configuration

  • Raspberry Pi Revision 3B+
  • Operating System: Rasbpian
  • Matrix size: 128x64
  • Display adapter (HAT/Bonnet/etc.): HAT
    • Additional information: -
  • Power source(s): -

Software Configuration

  • MLB LED Scoreboard Version: 6.0.0
  • Commands/arguments used to start the scoreboard: sudo python3 main.py --led-rows=32 --led-cols=64 --led-chain=4 --led-gpio-mapping=adafruit-hat-pwm --led-pixel-mapper=U-mapper --led-brightness=30

Expected behavior

The Scoreboard should load on startup after executing all of the steps the wiki page.

Actual behavior

Nothing happens.

Additional Information

I went through step by step in this wiki page (https://github.com/MLB-LED-Scoreboard/mlb-led-scoreboard/wiki/Creating-a-systemd-startup-script) but can't seem to even get the test command (sudo service mlb-led-scoreboard start) going. How can you help me? image

PHI34Halladay avatar Mar 14 '23 21:03 PHI34Halladay

have you tried to check and see if everything stuck. Check and see if the .service file was actually moved to /lib/systemd/system.

pjockey avatar Mar 14 '23 22:03 pjockey

It is moved to /lib/systemd/system.

PHI34Halladay avatar Mar 15 '23 07:03 PHI34Halladay

post screenshot of your script

mike2me avatar Mar 18 '23 12:03 mike2me

This is how it looks like: image

PHI34Halladay avatar Mar 20 '23 09:03 PHI34Halladay

Do you have more than one board connected together?

This is my program start: sudo python3 main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=60 --led-slowdown-gpio=2 --led-cols=64 --led-rows=32 --led-rgb-sequence=BGR --led-row-addr-type=3

Try running your program start from the command line and see what error are produced. Or try mine and see what happens. I'm acutally running a 128x64 board, but I changed the above to the 64x32.

pjockey avatar Mar 20 '23 19:03 pjockey

Thanks for the response. I'm running 4 panels (2x2) at once.

I will try our command tomorrow.

It works when I'm going like this:

  1. Command: cd mlb-led-scoreboard
  2. Command: sudo python3 main.py --[......]

But not when I'm doing this:

sudo python3 home/pi/mlb-led-scoreboard/main.py --[......]

Could this be connected with the autostart function?

PHI34Halladay avatar Mar 20 '23 21:03 PHI34Halladay

This doesn't have anything to do with the scoreboard itself

You're bumping into issues with systemd to set up the service. I would recommend triple checking that the service is copied to lib/systemd/system and re-enabling the scoreboard service:

sudo systemctl enable mlb-led-scoreboard

Beyond that there's limited ability for us to troubleshoot for you.

ty-porter avatar Mar 20 '23 21:03 ty-porter

Just saw that the file is owned by the user "pi". Could that me the mistake?

image

EDIT: Changed it to root, but that didn't solve my problem.

PHI34Halladay avatar Mar 21 '23 09:03 PHI34Halladay

Newest error message:

image

PHI34Halladay avatar Mar 21 '23 09:03 PHI34Halladay

I had that same issue today. I had not used the scoreboard this year yet. I only had 2 panels last year. I added 2 more panels this year and did a new reinstall of the software. I could get the board to work if I ran sudo py from the mlb-led-scoreboard but could never get it to run from the /lib/systemd/system/ directory. I used the "sudo service mlb-led-scoreboard status" command to see if the board was actually running. It turned out that my directory structure was wrong. In the mlb-led-scoreboard.service file. I chased this for a couple hours. When you make changes to the file you need to run the "systemctl daemon-reload" command and then "sudo systemctl enable mlb-led-scoreboard" command. Then reboot...at least that is what worked for me.

bierbarrel avatar Apr 21 '23 08:04 bierbarrel