Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1009864: xscreensaver: firefox stops (inhibits) xscreensaver from firing. Needs option to ignore firefox

59 views
Skip to first unread message

Tim Connors

unread,
Apr 19, 2022, 9:50:03 AM4/19/22
to
Package: xscreensaver
Version: 5.45+dfsg1-2
Severity: normal

All the search results on the internet are for doing the opposite of
what I want - people want firefox, when playing a video, to inhibit
xscreensaver.

It already does that for me. xscreensaver -verbose:


xscreensaver-systemd: 23:28:03: uninhibited by "firefox-esr" with cookie DEB56E99
xscreensaver-systemd: 23:28:03: inhibit: unable to get pid of "firefox-esr": No data available
xscreensaver-systemd: 23:28:03: inhibited by "firefox-esr" with "video-playing" -> cookie ADCA6C0D
xscreensaver-systemd: 23:28:16: uninhibited by "firefox-esr" with cookie ADCA6C0D
xscreensaver-systemd: 23:28:16: inhibit: unable to get pid of "firefox-esr": No data available
xscreensaver-systemd: 23:28:16: inhibited by "firefox-esr" with "video-playing" -> cookie 57431273
xscreensaver-systemd: 23:28:28: uninhibited by "firefox-esr" with cookie 57431273
xscreensaver-systemd: 23:28:28: inhibit: unable to get pid of "firefox-esr": No data available
xscreensaver-systemd: 23:28:28: inhibited by "firefox-esr" with "video-playing" -> cookie B8F2311F
xscreensaver-systemd: 23:28:41: uninhibited by "firefox-esr" with cookie B8F2311F
xscreensaver-systemd: 23:28:41: inhibit: unable to get pid of "firefox-esr": No data available

Only problem is I'm not playing a video. Unfortunately, the net is
full of ads, so pretty much every page claims to be "playing a video".
I just want to be able to tell xscreensaver to ignore any calls from
this list of programs:

1) firefox-esr

Oh look at that, end of list.

Yes, I know the proper fix is to tell firefox to give me an option to
not inhibit the screensaver, but we all know how likely that feature
request is to ever be actioned without "CLOSED WONTFIX".

In the meantime, you're trusting every application not to be abusive.
In this case, firefox is being abusing, and there should be an
override to tell the system to ignore it.


-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (5, 'testing'), (2, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-12-amd64 (SMP w/20 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xscreensaver depends on:
ii init-system-helpers 1.60
ii libatk1.0-0 2.36.0-2
ii libc6 2.31-13+deb11u3
ii libcrypt1 1:4.4.18-4
ii libglib2.0-0 2.66.8-1
ii libgtk2.0-0 2.24.33-2
ii libpam0g 1.4.0-9+deb11u1
ii libpango-1.0-0 1.46.2-3
ii libsystemd0 247.3-7
ii libx11-6 2:1.7.2-1
ii libxext6 2:1.3.3-1.1
ii libxi6 2:1.7.10-1
ii libxinerama1 2:1.1.4-2
ii libxml2 2.9.10+dfsg-6.7+deb11u1
ii libxmu6 2:1.1.2-2+b3
ii libxrandr2 2:1.5.1-1
ii libxt6 1:1.2.0-1
ii libxxf86vm1 1:1.1.4-1+b2
ii xscreensaver-data 5.45+dfsg1-2

Versions of packages xscreensaver recommends:
ii libjpeg-turbo-progs 1:2.0.6-4
ii perl 5.32.1-4+deb11u2
ii wbritish [wordlist] 2019.10.06-1
ii wbritish-huge [wordlist] 2019.10.06-1
ii wbritish-insane [wordlist] 2019.10.06-1
ii wbritish-large [wordlist] 2019.10.06-1
ii wbritish-small [wordlist] 2019.10.06-1
ii xfonts-100dpi 1:1.0.4+nmu1.1

Versions of packages xscreensaver suggests:
ii chromium [www-browser] 100.0.4896.127-1~deb11u1
ii dillo [www-browser] 3.0.5-7
ii falkon [www-browser] 3.1.0+dfsg1-11
ii firefox-esr [www-browser] 91.8.0esr-1~deb11u1
ii fortune-mod [fortune] 1:1.99.1-7.1
pn gdm3 | kdm-gdmcompat <none>
ii google-chrome-stable [www-browser] 100.0.4896.127-1
ic google-chrome-unstable [www-browser] 84.0.4115.5-1
ii konqueror [www-browser] 4:20.12.0-4
ii links [www-browser] 2.21-1+b1
ii lynx [www-browser] 2.9.0dev.6-3~deb11u1
pn qcam | streamer <none>
ii vivaldi-stable [www-browser] 5.2.2623.39-1
ii w3m [www-browser] 0.5.3+git20210102-6
pn xdaliclock <none>
pn xfishtank <none>
ii xscreensaver-data-extra 5.45+dfsg1-2
ii xscreensaver-gl 5.45+dfsg1-2
ii xscreensaver-gl-extra 5.45+dfsg1-2

-- no debconf information

Jamie Zawinski

unread,
Apr 19, 2022, 1:10:03 PM4/19/22
to
> people want firefox, when playing a video, to inhibit xscreensaver.

"Monkey paw curls."

> Only problem is I'm not playing a video. Unfortunately, the net is full of ads, so pretty much every page claims to be "playing a video".

Yeah, that's awesome, isn't it? I had been under the impression that the bug you are describing only happened with Chromium, not with Firefox. Here's an excerpt from the tragically-long comment at the top of xscreensaver-systemd.c:

* Twitter (and many other sites) auto-convert GIFs to looping MP4s to
* save bandwidth. Chromium inhibits the screen saver any time a Twitter
* GIF is on screen (either in the browser or in Tweetdeck).
*
* The proper way for Chrome to fix this would be to stop inhibiting once
* the video loops. That way your multi-hour movie inhibits properly, but
* your looping GIF only inhibits for the first few seconds.

Firefox, Chrome and Chromium also all will leave the screen permanently inhibiited if they crash, too, which is great.

And Firefox, Chromium and MPV inhibit screen blanking when only *audio* is playing, which makes no damned sense at all.

So, if someone could report bugs against those applications, that would be great.

Also, so that I'm clear on exactly what is happening, can you do a test with Firefox and see if what is going on is, in fact, that it treats any 2-second looping MP4 thumbnail as "playing a movie"? Finding any looping GIF on Twitter is a good way to test it. Then navigate away from that page and see if it uninhibits.

I believe that Firefox didn't used to do this, so it would be interesting to know when they started.

> I just want to be able to tell xscreensaver to ignore any calls from this list of programs:
>
> 1) firefox-esr
>
> Oh look at that, end of list.

Oh ho ho ho, the list of other programs that fuck this up is so much longer than that. It's basically all of them.

Your best bet is probably just "rm xscreensaver-systemd". This will unfortunately have the side effect that your screen will not auto-lock when you close the laptop lid.

> Yes, I know the proper fix is to tell firefox to give me an option to not inhibit the screensaver

That's not actually the fix, it's just that they are inhibiting it in the stupidest possible way. Maybe "be less stupid" will get more traction than "stop". We can dare to dream.

--
Jamie Zawinski • jwz.orgdnalounge.com
0 new messages