Re: Playing a sound when GDM is "ready"



Glenn J. Mason wrote:
A simple explanation as to what gdm does to play a sound would help
greatly! Thanks very much


My understanding is that it uses a script:

/usr/lib/gdmplay

This in turn calls aplay, the ALSA player.

Maybe have a play with aplay and read the manpage for it? Perhaps, as someone
suggested, the ALSA mixer levels aren't reset until after you login? Or aplay
doesn't know which device to use?

HTH
--
Glenn J. Mason (glennji)




Thanks! This actually helps a lot. Although I cannot find
/usr/lib/gdmplay, it prompted me to look at what files are associated
with the gdm package on my system. I found some commented lines in
/usr/share/gdm/defaults.conf that read:

# GDM Configuration file.
#
...
# If SoundOnLogin is true, then the greeter will beep when login is
ready for
# user input. If SoundOnLogin is a file and the greeter finds the 'play'
# executable (see daemon/SoundProgram) it will play that file instead of
just
# beeping.
#SoundOnLogin=true

It seems that the greeter looks for the 'play' command (from sox) which
I had not installed yet. When I installed sox (actually to try to play
the sound files as the first replier suggested), sound from gdm began to
work just fine. Thanks to both replies, they were very helpful.

--
Sincerely
Jose Alburquerque


_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list



Relevant Pages

  • Re: Playing a sound when GDM is "ready"
    ... My understanding is that it uses a script: ... This in turn calls aplay, the ALSA player. ... Maybe have a play with aplay and read the manpage for it? ...
    (GNOME)
  • Re: [alsa-devel] [regression] 2.6.25-rc4 snd-es18xx broken on Alpha
    ... On the PWS600au it shows the same problems that Bob describes! ... When I play it with aplay I get the last "pal" repeated at the end. ... When I play it with sox I get the words "current event" repeated at the end. ... But using aplay through the CM8738 only results in silence and aplay hangs. ...
    (Linux-Kernel)
  • Re: THE GINGERBREAD LADY
    ... Was it Marsha Mason? ... subplot about a former lover writing a play about their ... It is still my favorite role in any Neil Simon play. ... The scenes with the former lover are still some of my favorite scenes. ...
    (rec.arts.theatre.musicals)
  • Cannot get aplay to work when aRTs sound server (artsd) is running
    ... .wav file with aplay it just hangs ... ... Once I disable aRTs server then aplay ... will play the sound. ...
    (alt.os.linux.suse)
  • Re: Ignore Details - Leap to Fallacy
    ... Mason, I did not IGNORE your post or reference to the article. ... Unfortunately, results for 1,000 players, and results over "long term ... play" for billions of rolls, even millions of rolls, should not sway the ... play for an individual. ...
    (rec.gambling.craps)