How to play sounds in lightdm greeter?Static sounds every 20-30 seconds when playing HDMIhow do I remove the last connected users from the lightdm greeter listlightdm: cannot type password on login screenVNC over lightdm results in blank screenLightdm greeter - theming of option-buttonlightdm login screen almost unusable with NVidia driversHow to determine which lightdm greeter is in use?

How are unbalanced coaxial cables used for broadcasting TV signals without any problems?

Does my opponent need to prove his creature has morph?

"Literally" Vs "In the true sense of the word"

Telling my mother that I have anorexia without panicking her

What is and what isn't ullage in rocket science?

Do ibuprofen or paracetamol cause hearing loss?

Is the Dodge action perceptible to other characters?

Newly created XFS filesystem shows 78 GB used

The Planck constant for mathematicians

How do I say "quirky" in German without sounding derogatory?

Why does the speed of sound decrease at high altitudes although the air density decreases?

What explanation do proponents of a Scotland-NI bridge give for it breaking Brexit impasse?

Cannot find Database Mail feature in SQL Server Express 2012 SP1

Does an oscilloscope subtract voltages as phasors?

How to remove a secondary database from an availability group and rejoin it?

Writing a love interest for my hero

Why is the Digital 0 not 0V in computer systems?

Resume: How to quantify my contributions as a software engineer?

Confirm the ending of a string

Finding the number of digits of a given integer.

DMPfold: is it suitable to get 5000 models to compare with rosetta

Maintenance tips to prolong engine lifespan for short trips

Relocation error involving libgnutls.so.30, error code (127) after last updates

A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?



How to play sounds in lightdm greeter?


Static sounds every 20-30 seconds when playing HDMIhow do I remove the last connected users from the lightdm greeter listlightdm: cannot type password on login screenVNC over lightdm results in blank screenLightdm greeter - theming of option-buttonlightdm login screen almost unusable with NVidia driversHow to determine which lightdm greeter is in use?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am writing my own greeter for lightdm based on https://github.com/surlykke/qt-lightdm-greeter.



I wanna to play sounds to notify user if the password is not right for authentication.



I use alsa to play sounds and this works fine when I have already logged in, but on the system login screen I can not play the sounds and get this error:



Can't open audio default: No such file or directory.



I use snd_pcm_open to open the audio device and pass "default" as the device name.
It seems like the audio device does not load if I am not log in.










share|improve this question






























    2















    I am writing my own greeter for lightdm based on https://github.com/surlykke/qt-lightdm-greeter.



    I wanna to play sounds to notify user if the password is not right for authentication.



    I use alsa to play sounds and this works fine when I have already logged in, but on the system login screen I can not play the sounds and get this error:



    Can't open audio default: No such file or directory.



    I use snd_pcm_open to open the audio device and pass "default" as the device name.
    It seems like the audio device does not load if I am not log in.










    share|improve this question


























      2












      2








      2








      I am writing my own greeter for lightdm based on https://github.com/surlykke/qt-lightdm-greeter.



      I wanna to play sounds to notify user if the password is not right for authentication.



      I use alsa to play sounds and this works fine when I have already logged in, but on the system login screen I can not play the sounds and get this error:



      Can't open audio default: No such file or directory.



      I use snd_pcm_open to open the audio device and pass "default" as the device name.
      It seems like the audio device does not load if I am not log in.










      share|improve this question














      I am writing my own greeter for lightdm based on https://github.com/surlykke/qt-lightdm-greeter.



      I wanna to play sounds to notify user if the password is not right for authentication.



      I use alsa to play sounds and this works fine when I have already logged in, but on the system login screen I can not play the sounds and get this error:



      Can't open audio default: No such file or directory.



      I use snd_pcm_open to open the audio device and pass "default" as the device name.
      It seems like the audio device does not load if I am not log in.







      pulseaudio alsa lightdm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 15 at 9:39









      Andy MatosAndy Matos

      111 bronze badge




      111 bronze badge























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134013%2fhow-to-play-sounds-in-lightdm-greeter%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134013%2fhow-to-play-sounds-in-lightdm-greeter%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?