![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Content-ID:
On Mon, 4 Apr 2016 20:55, Carlos E. R.
wrote: On 04/04/2016 20:45, Yamaban wrote:
Yeah, that's more or less a mess of debugging code that should be cleaned up, but hey, it works with very little changes since OSS 12.3 and a box ago.
That's a lot of debugging info and code indeed... :-o
You run it under a particular user? why? Maybe the same one as has the desktop?
Well, my system is (discounting test-users and guest-user) a single user system, and this is mostly to show that it can work.
I forgot that I did the same to my script, for the same reason.
Given that the old box did not want to work with alsa mixer, and system-wide pulseaudio is discuraged, this was the most easy way to get it working without extra hoops.
So, yes, the same user as my desktop user.
Same reasoning as mine, a year or two ago... I forgot the details. I also have a script playing a sound on boot, that one runs as root before there is any session: cat /root/ThingsNeededForBoot/hal9.au > /dev/audio 2> /dev/null & Sometimes it has failed, but I can't track it, being intermitent. Similar to the clock cron job, it is also working.
When the new box came, I just moved the script and the sound files, and changed as little as possible to get it working again.
Non the less, the "magic" is in setting up the needed environment to satisfy paplay / pulseaudio.
yes... I'll have to study your script more carefully.
The thing with detecting a blanked / switched monitor was a extra, that was needed at one time (extra sound with own power-supply), later I got the buildin speaker in the screen working via hdmi, but then the monitor would activate and switch on just to play the sound.
So that stayed in, and it works.
Ah. I will look at that, too. Sometimes I go for a nap and leave the computer running, only to awake to the "clock"! - -- Cheers, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlcDnaIACgkQtTMYHG2NR9Xf5ACdHnGu8LuXWIXB40Ra+das8Wy7 MTwAn0uQYZss/4q1mX1k9hiv7RyofxlI =btvx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org