Author Topic: Play sound on wake up  (Read 164 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Play sound on wake up
« on: April 10, 2019, 01:33:41 AM »
Hi! I don’t know if this is a pi thing or even an attract mode thing but in the tab menu under screen saver you can specify a command or script to run when the screen turns back on. I put a Python script in there that issues two system.os commands. The first turns on the display and the second plays an mp3 file. It turns on the display but it does not play the mp3 file. However, if I run the script from commandline it does play The mp3 file.

Does anyone know how to get the mp3 file to play when the attract mode comes back from screen blanking?

system.os (‘mpg123 pathtosound’)