arbtt icon indicating copy to clipboard operation
arbtt copied to clipboard

arbtt-capture.desktop[PID]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0".

Open Ileca opened this issue 2 years ago • 15 comments

My journal gets spammed with that entry every 30 secondes (time I set the sample rate). Kinda drive me crazy.

Ileca avatar Mar 14 '22 21:03 Ileca

I don’t have that. Are you using wayland? Or is anything possibly ~odd~ different about your setup? What’s your distribution and desktop system?

nomeata avatar Mar 14 '22 22:03 nomeata

Oh yeah, sorry, I forgot to add basic information.

Ubuntu 21.10 Gnome 40.4.0 Wayland arbtt 0.10.2-0.2build1.1 from APT

Yes, Wayland. Wayland tends to break a lot of things.

Ileca avatar Mar 14 '22 22:03 Ileca

Ok, thanks. I guess someone (you?) can try to find out if there is a way to probe extensions before using them that does not print the warning.

nomeata avatar Mar 14 '22 23:03 nomeata

Sorry, I am just a beggar with no programming skill other than web related stuff. I don't even understand what's a screensaver thing is doing here. I found an funny bit while searching, from what appears to be xscreensaver's manpage:

The MIT-SCREEN-SAVER extension is junk. Don't use it. [...] It sure would be nice if someone would implement the SGI SCREEN_SAVER extension in XFree86; it's dead simple, and works far better than the overengineered and broken MIT-SCREEN-SAVER extension.

Ileca avatar Mar 15 '22 22:03 Ileca

Heh, the author of xscreensaver tends to have very explicit opinions about many things (not necessarily a bad thing).

arbtt uses this interface to find out how long the user has been idle.

Guess we'll have to wait until someone is itched by this enough to scratch it.

As a work around you could wrap arbtt-capture in a shell script with | grep -v MIT-SCREEN-SAVER to filter out these messages.

Does it otherwise work fine with Wayland?

nomeata avatar Mar 16 '22 05:03 nomeata

No, the log keeps getting corrupted like in https://github.com/nomeata/arbtt/issues/148#issuecomment-1033001806. I get a ton of

Failed to read value at position 1461465: Unsupported TimeLogEntry version tag 0 CallStack (from HasCallStack): error, called at src/Data.hs:90:15 in main:Data

I have to use arbtt-recover for it to work again. I log my game times so I rarely check arbtt and let it runs in the background like it doesn't exist. I must have checked twice and it was corrupted. It's a minor hindrance in the end. No idea why it does that. I thought, maybe this is related to this MIT-SCREEN-SAVER thing.

Ileca avatar Mar 16 '22 06:03 Ileca

No, these corruptions occur if it couldn't finish writing the log, I believe, and are not related to Wayland (I think). Youthful sin of mine… but the recovery process should give you back almost all data just fine.

nomeata avatar Mar 16 '22 07:03 nomeata

so on wayland arbtt cannot capture idle time?

bukajsytlos avatar Nov 24 '22 14:11 bukajsytlos

I have so far ignored wayland (and reading blog posts like https://anarc.at/software/desktop/wayland/ sounds like I better still wait for a few years until it is a seamless transition), so I am not sure. But maybe someone who knows wayland can contribute patches?

nomeata avatar Nov 24 '22 14:11 nomeata

so far so good

15:19 - 3 min(s) - IDLE
15:22 - 6 min(s) - arbtt-capture.desktop[PID]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0". · Issue #153 · nomeata/arbtt  Mozilla Firefox
15:28 - 35 min(s) - IDLE

bukajsytlos avatar Nov 24 '22 15:11 bukajsytlos

I have so far ignored wayland (and reading blog posts like https://anarc.at/software/desktop/wayland/ sounds like I better still wait for a few years until it is a seamless transition), so I am not sure

author here: kind of sorry my post comes out that way! switching to wayland is not only worth it, it's kind of become mandatory. i explain "why switch" at the top of the article, and i was hoping that would be sufficient to convert people over, but it seems like my convoluted setup scared the living hell out of anyone who reads that piece. :p

point is: i did it, it's done, and it works. before i migrated to wayland, xorg would just crash randomly, so it's a huge win for me, and i encourage you to give it a shot. :)

anarcat avatar Jan 11 '24 16:01 anarcat

Thanks and sorry for the misrepresentation!

nomeata avatar Jan 11 '24 17:01 nomeata

so far so good

15:19 - 3 min(s) - IDLE
15:22 - 6 min(s) - arbtt-capture.desktop[PID]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0". · Issue #153 · nomeata/arbtt  Mozilla Firefox
15:28 - 35 min(s) - IDLE

Are you saying that arbtt works fine on Wayland out of the box?

nomeata avatar Jan 11 '24 17:01 nomeata

Thanks and sorry for the misrepresentation!

hey don't worry about it :) i'm quite rant-y on good day, so it's normal it transpires as "wayland is crap" :)

anarcat avatar Jan 11 '24 19:01 anarcat

so far so good

15:19 - 3 min(s) - IDLE
15:22 - 6 min(s) - arbtt-capture.desktop[PID]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0". · Issue #153 · nomeata/arbtt  Mozilla Firefox
15:28 - 35 min(s) - IDLE

Are you saying that arbtt works fine on Wayland out of the box?

for over half year, I am using wayland and no problems so far

bukajsytlos avatar Jan 11 '24 19:01 bukajsytlos