this post was submitted on 02 Feb 2024
20 points (91.7% liked)

Linux

48323 readers
637 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by AlpΓ‘r-Etele MΓ©der, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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 🌻

top 11 comments
sorted by: hot top controversial new old
[–] lupec@lemm.ee 10 points 9 months ago* (last edited 9 months ago) (1 children)

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.

[–] LunchEnjoyer@lemmy.world 2 points 9 months ago (1 children)

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 1 points 9 months ago (1 children)

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?

[–] LunchEnjoyer@lemmy.world 1 points 9 months ago (1 children)

Using the dedicated app yes πŸ‘

[–] lupec@lemm.ee 2 points 9 months ago (1 children)

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!

[–] LunchEnjoyer@lemmy.world 2 points 9 months ago (1 children)
[–] lupec@lemm.ee 2 points 9 months ago (1 children)

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. πŸ€”

[–] LunchEnjoyer@lemmy.world 2 points 9 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.

[–] kittykittycatboys@lemmy.blahaj.zone 5 points 9 months ago (1 children)

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

[–] LunchEnjoyer@lemmy.world 0 points 9 months ago

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

[–] Scio@kbin.social 2 points 9 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.