Hi there, I’m new to Nix - but i’m not sure if this is a Nix or a KDE specific issue or not. So basically I just opened my laptop this morning, and whilst typing in my password, the audio from the movie I was watching (via Jellyfin) started to play before I had actually logged in. I assume this is the system getting things ready and loaded for a better/faster user experience. But personally don’t want this to happen, or to at least have all sound muted when starting up the computer.

Does anyone know how to go around this “issue”? Or could explain to my why it happens?

Appreciate you 🌻

  • Lupec@lemm.ee
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    11 months ago

    Some quick research on my end seems to suggest there’s a setting for that scenario in advanced power settings called “Pause media players when suspending”, I’d try that before anything else

    Edit: As for why it happens, assuming it woke up from suspension/hibernation, for the most part programs are going to pick up exactly where they left off unless the system goes out of its way to tell them to perform some action (in this case, pausing). Since your lock screen is pretty much “on top” of the entire running system, so to speak, it results in the behavior you’re experiencing.

    • Mr. Forager@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      Thanks for the info! The check box for this settings was infact already checked. So maybe if I change what happens when I close the lid, from sleeping to hibernation or something else this could fix this maybe?

      • Lupec@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        No worries!

        The check box for this settings was infact already checked. So maybe if I change what happens when I close the lid, from sleeping to hibernation or something else this could fix this maybe?

        Ah, I see. Guess you may as well give that a go. I’m guessing what might be going on here is KDE doesn’t count it as a media player for whatever reason. Are you using Jellyfin in a browser or with the dedicated Jellyfin Media Player app?

          • Lupec@lemm.ee
            link
            fedilink
            arrow-up
            2
            ·
            11 months ago

            Right. I’m a fellow Jellyfin + NixOS user so I’ll try and investigate if I manage to find some time over the next few days. I’ll report back if I find anything of note!

              • Lupec@lemm.ee
                link
                fedilink
                arrow-up
                2
                ·
                11 months ago

                I just came across this GitHub issue and sure enough, it seems to confirm my theory. Since it doesn’t show on KDE’s media center, it probably doesn’t know to pause it before going to sleep.

                I saw at least one person with your exact issue, and a few suggested workarounds but not sure how easy it’d be to apply them to an actual Nix derivation. I’ll keep looking into it. 🤔

                • Mr. Forager@lemmy.worldOP
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  11 months ago

                  Neat find! I’ll read up too.

                  I also believe I did pause the video before closing the lid, I could try recreate the issue later and report over at the GH issue.

  • max@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    5
    ·
    11 months ago

    if youre opening ur laptop from suspend or hibernate id look there first, i dont think itd be a nix specific issue, though there may be an option in kde to pause media when thd lock screen is visible idk >w<

    you could also check if ur webbrowser has an option like that too (if ur on jellyfin via a browser)

    yay a flower :3

    • Mr. Forager@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      11 months ago

      Jellyfin application actually :P Thanks for the suggestion, I’ll have a closer look around the settings.

  • Scio@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    I get this a lot in my Steam Deck (desktop mode). But the most infuriating thing of all is when a podcast I already finished starts from the beginning after a wake the device up.