Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shadowgun1102

Pages: [1]
1
General / 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’)

Pages: [1]