Announcement

Collapse
No announcement yet.

Log-In Sound Not working Issue back in this release

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [RESOLVED] Log-In Sound Not working Issue back in this release

    This is just an FYI post for those who may have run across this as I have.

    It is no big deal, just bummed that I don't get to hear my cheery sound at log in.

    I know not everyone even thinks of that now, but I do and maybe others do too and would like to know the issue.

    So, the bug report is below. It is a loooong one, but towards the end it is noted the issue is back again on this particular Plasma version.


    https://bugs.kde.org/show_bug.cgi?id=422948

    #2
    I don't rely on this mechanism for the login sound. I have two startup bash scripts in my home/Programs folder that I run through system settings autostart. The first one I call startupwav.sh. The contents are like so:
    Code:
    #!/bin/bash
    sleep 6 && cvlc /home/rab/Music/KDE_Startup_1.wav
    The c in cvlc is necessary as it uses the dummy interace (no gui) to play the sound.
    Then I run a second script timed to wait until the startup sound is played to kill clvc so that it exits cleanly, otherwise I have problems with vlc opening correctly to play files later as I have "allow only one instance" as a vlc option:
    Code:
    #!/bin/bash
    sleep 14 && killall vlc
    I named this one killvlcstart.sh. This may not be necessary in your situation but is required for me.
    You can adjust the sleep times to suit your needs. I have the first script sleep a few seconds so that pulseaudio is fully operational before it plays the logon sound. Otherwise it will not play. It also gives the desktop time to fully load before sound is played. I then have the second script timed to wait for sound to finish playing before killing the vlc process. This works for my setup but you could tweak and adjust the times and audio file names to suit your needs.
    Last edited by rab0171610; Jun 07, 2022, 07:45 PM.

    Comment


      #3
      Thank you. For now I'm waiting to see if they fix it by update 1. I might use yours if not.

      On a side note, I found something similar for OGG files.

      Code:
      #!/bin/bash
      MYSOUNDSDIR=${MYSOUNDSDIR:-"/usr/share/sounds"}
      cd $MYSOUNDSDIR
      
      /usr/bin/sleep 3
      /usr/bin/ogg123 ./Oxygen-Sys-Log-In-Long.ogg

      Comment


        #4
        I just convert the ogg files to wav in the console with ffmpeg . . . but good to know!

        Comment


          #5
          Yes, I have notice a problem with the login sound feature as well.

          The issue that I noticed is that some of the beginning sound is missing and it starts up with a low volume.

          This seems to effects Kubuntu 22.04 and previous versions as well.

          I have not reported this bug.

          Comment


            #6
            I was not aware this was still an issue as I have always had problems with it in Plasma, so I have my own scripts to run that play a login sound after 6 or so seconds, as detailed above. The volume is the last volume VLC played at before logging out, so it is usually something pleasant to the ears and audible. Just FYI, for future reference to anyone who plans to use a login script to play a sound, the Autostart features changed in Plasma 5.25. Systemd-boot will now be enabled on Plasma by default. This caused a bug in my autostart apps, specifically login/logout scripts, thunderbird, pulseaudio-equalizer, and kdocker to dock thunderbird & pulseaudio-equalizer to system tray. After some research, I was able to get them working by disabling systemd-boot:
            Code:
            kwriteconfig5 --file startkderc --group General --key systemdBoot false
            It may be fixed in 5.25.2 as I know the devs were aware of it but I do not know.

            Comment


              #7
              Well as of this point in time, at least for 22.04.1, this is still and issue and I've noted other Notifications sounds are not working either, like Empty Trash sound. I know trivial to some but I notice things like that.

              Comment


                #8
                I've made note of the following, which for me, worked when I lost sound:

                sudo alsa force-reload then rebooted. Sound returned.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  No effect.

                  Just to note though, it is only Notification sounds, some, not all. Any other sound/audio needs are fine and work fine.

                  Comment


                    #10
                    Originally posted by MoonRise View Post
                    it is only Notification sounds, some, not all.
                    That would make me think a "Theme" issue.
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      I'll try all the Kubuntu defaults when I can and let you all know.

                      Comment


                        #12
                        Sadly, no, same issue. Tried all the defaults global themes.

                        Affects 3 different systems, even my KDE Neon system does the same. So it's either this bug report which below was posted on that bug about 2 months back:

                        No, it's just that the systemd boot feature (which was turned on by default in Plasma 5.25) introduces a race condition that causes a bug with the existing functionality to play the startup sound. So people who opted in before 5.25 experienced this bug, then we failed to fix it in time, now everyone whose distro uses systemd and who hasn't explicitly opted out is experiencing it.

                        Or something that I just can't determine.

                        Comment


                          #13
                          Hmm. I have systemd installed (Kubuntu 22.10). As far as I know, I don't have issues with sound notifications. Which ones do you have issues with?
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Log In and Empty Trash. At least those are the ones I've always used.

                            Comment


                              #15
                              Originally posted by MoonRise View Post
                              Log In and Empty Trash.
                              What sound file is specified for Login and for Empty Trash in System Settings > Notifications > Configure > Plasma Workspace > Configure Events...
                              Windows no longer obstructs my view.
                              Using Kubuntu Linux since March 23, 2007.
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X