this post was submitted on 30 Apr 2025
51 points (96.4% liked)

Linux

53879 readers
1455 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 6 years ago
MODERATORS
 

Currently running Nobara 41, and if Firefox is playing a video, or even just has a paused video on it, my computer will not go to sleep until I exit Firefox entirely. If I try to shut down instead, it will seemingly close all open apps, and the displays will go black but the mouse cursor remains on screen and does not respond.

If I start Firefox from the CLI, it shows nothing when I try to suspend.

This only happens with Firefox, and as far as I can tell, doesn't happen when playing a video elsewhere.

I don't have any power savings settings that I'm aware of that should be preventing anything, so I don't know what's going on. This is a recent issue, starting maybe 2 weeks ago. I haven't installed any new software besides updates in that time.

Does anybody have any idea what is going on here?

top 8 comments
sorted by: hot top controversial new old
[–] amphy@lemmy.ca 6 points 4 days ago* (last edited 4 days ago) (1 children)

I had this issue on my desktop in Windows. Haven't tested to see if it's an issue on Linux (I just recently set up dual-booting with Kubuntu). I know your request is for Nobara but this may be helpful for troubleshooting.

The fix for me on Windows was always to power off my audio interface. Using powercfg /requests would show Firefox kept the audio device active once a YouTube video started playing. The software fix was arbitrary... sometimes closing the YouTube tab would work, sometimes I had to close the window, and sometimes none of those would work. What *always" worked was physically powering off my interface, waiting about 2 seconds, and turning it back on.

[–] moody 1 points 4 days ago (1 children)

That's not a fix though, it's a hoop to jump through every time. Regardless of OS, it's incorrect behavior.

[–] Cyber@feddit.uk 1 points 3 days ago

True, but they've answered your question.

Maybe raise a bug report with Firefox (Mozilla) and see if they can look into it further and that might help others too

[–] jeremias@social.jears.at 1 points 3 days ago (1 children)

Do you see anything in dmesg when you try to suspend?

[–] moody 1 points 3 days ago

I will check when I get a chance. Nothing jumped out at me after, but I didn't think to check in the moment.

[–] ReversalHatchery@beehaw.org 1 points 4 days ago (1 children)

did you check it with VLC, or another player that uses hardware accelerated decoding?

[–] moody 1 points 4 days ago (1 children)

Yes, I tried with VLC as well. It works as intended there. Video pauses, and the PC suspends or shuts down normally.

Firefox seems to be the only thing that prevents it, and only if there's a video loaded. Doesn't have to be the active window, and it doesn't matter which display it's on. If there's a video playing or paused, it prevents suspend and shutdown.

[–] ReversalHatchery@beehaw.org 1 points 2 days ago

what happens exactly when you try to sleep it?

what does systemd-inhibit --list say when you can't sleep it?

also, recently I learned that the system can't sleep if a FUSE file system (like NTFS on linux) has file activity right when going down (e.g. a large file was being copied or written).
how did you install firefox, to where (which filesystem), and what ff version?