Re: meta/xfce and xfce4-screensaver
On Wed, May 10, 2023 at 08:52:41AM +0200, Landry Breuil wrote: Hello Landry, > When it's enabled/disabled, is there a > ~/.config/autostart/xfce4-screensaver.desktop file with Hidden=true ? > supposedly, that's what should "prevent" it to start, ie this desktop file > "overrides" /etc/xdg/autostart/xfce4-screensaver.desktop I installed xfce4-screensaver, logged out and back in, and yes there is an xfce4-screensaver process. I do also have the file you mention: $ cat .config/autostart/xfce4-screensaver.desktop [Desktop Entry] Hidden=true And now I've uninstalled xfce4-screensaver again ;) That file is still present so, presumably, it was created at some point in the past when the screensaver was enabled and now it hasn't been disabled. I might be wrong, though! Laurie
Re: meta/xfce and xfce4-screensaver
Le Tue, May 09, 2023 at 07:33:40PM +0100, Laurence Tratt a écrit : > On Tue, May 09, 2023 at 08:46:39AM +0200, Landry Breuil wrote: > > Hello Landry, > > > can you check whether it's "saved in the session" if you use session > > saving ? grep screensa .cache/sessions/* > > I tried the following: > > 1. `pkg_add xfce4-scrensaver`. Enable screen saving. There is no > xfce4-screensaver process at this point. > 2. Log out and back in. There is now an xfce4-screensaver process. > 3. Disable Screen saver and lock screen in Settings > Screensaver. > 4. Log out of XFCE. Check in console: there is no longer an > xfce4-screensaver process. > 5. Log back in. There is an xfce4-screensaver process. > 6. Disable screensaver from Settings > Session & Startup. > 7. Log out and back in. There is an xfce4-screensaver process. > 8. `kill` the xfce4-screensaver process. > 9. Log out and back in. There is an xfce4-screensaver process. > > At none of these stages did "screensa" appear in the sessions dir. I > assume XFCE is always starting it, somehow, but I don't know why. > > Apparently, xfce4-screensaver really doesn't recognise when it's not > wanted ;) I have `pkg_delete`d it again! When it's enabled/disabled, is there a ~/.config/autostart/xfce4-screensaver.desktop file with Hidden=true ? supposedly, that's what should "prevent" it to start, ie this desktop file "overrides" /etc/xdg/autostart/xfce4-screensaver.desktop next interesting thing would be to put XFSM_VERBOSE=1 in your .xsession and figure out what starts the screensaver (debug log ends up in ~/.xfce4-session.verbose-log) i still think there's some kind of conflicting behaviour with xflock4 .. i'll eventually look at that someday. Landry
Re: meta/xfce and xfce4-screensaver
On Tue, May 09, 2023 at 08:46:39AM +0200, Landry Breuil wrote: Hello Landry, > can you check whether it's "saved in the session" if you use session > saving ? grep screensa .cache/sessions/* I tried the following: 1. `pkg_add xfce4-scrensaver`. Enable screen saving. There is no xfce4-screensaver process at this point. 2. Log out and back in. There is now an xfce4-screensaver process. 3. Disable Screen saver and lock screen in Settings > Screensaver. 4. Log out of XFCE. Check in console: there is no longer an xfce4-screensaver process. 5. Log back in. There is an xfce4-screensaver process. 6. Disable screensaver from Settings > Session & Startup. 7. Log out and back in. There is an xfce4-screensaver process. 8. `kill` the xfce4-screensaver process. 9. Log out and back in. There is an xfce4-screensaver process. At none of these stages did "screensa" appear in the sessions dir. I assume XFCE is always starting it, somehow, but I don't know why. Apparently, xfce4-screensaver really doesn't recognise when it's not wanted ;) I have `pkg_delete`d it again! Laurie
Re: meta/xfce and xfce4-screensaver
Le Tue, May 09, 2023 at 08:46:39AM +0200, Landry Breuil a écrit : > Le Mon, May 08, 2023 at 11:22:28PM +0100, Laurence Tratt a écrit : > > On Mon, May 08, 2023 at 07:04:10PM +0200, Landry Breuil wrote: > > > > Hello Landry, > > > > >> Installing meta/xfce installs xfce4-screensaver. However, > > >> xfce4-screensaver seems to have the unfortunate behaviour of messing with > > >> the user's X screensaver settings, even when the screensaver is disabled > > >> in XFCE. This caused me a certain amount of head-scratching when my > > >> `.xsession` loaded `xidle` but no matter what idle times I used, another > > >> timeout was used -- which, AFAICS, is the timeout set by > > >> xfce4-screensaver. In other words, `xidle -timeout ` did not respect > > >> `n`, although `xidle` did still run its sub-command (just at a timeout > > >> other than `n`). > > > what do you mean by "screensaver is disabled in XFCE" ? process not > > > running, process running, disabled how/where ? > > > > The screensaver is (was...) not enabled in Settings > Screensaver and I also > > disabled it in Settings > Session & Startup -- yet, I eventually realised, > > there always seemed to be an xfce4-screensaver process running. I can't rule > > out that I did something stupid in some way, but I don't tend to do a great > > deal of configuration with XFCE. > > can you check whether it's "saved in the session" if you use session > saving ? grep screensa .cache/sessions/* other things to check: - is the screensaver process running at the start of the session, or only after suspend/resume ? - is there smth in xfconf-query -c xfce4-session -p /general/LockCommand ? What if you try running whatever xlock program you want there ? in the session code, there's something that might try to lock the screen when suspending (cf https://gitlab.xfce.org/xfce/xfce4-session/-/blob/xfce4-session-4.17.1/xfce4-session/xfsm-shutdown-fallback.c#L334) (but only if /shutdown/LockScreen xfconf property is true ? it doesnt seem to exist/be set by default here) which might call xflock4 by default, which in turns might spawn the screensaver by default. cf https://gitlab.xfce.org/xfce/xfce4-session/-/blob/xfce4-session-4.17.1/xfce4-session/xfce-screensaver.c#L495 as https://gitlab.xfce.org/xfce/xfce4-session/-/issues/149 says, yes it's a mess :) Landry
Re: meta/xfce and xfce4-screensaver
Le Mon, May 08, 2023 at 11:22:28PM +0100, Laurence Tratt a écrit : > On Mon, May 08, 2023 at 07:04:10PM +0200, Landry Breuil wrote: > > Hello Landry, > > >> Installing meta/xfce installs xfce4-screensaver. However, > >> xfce4-screensaver seems to have the unfortunate behaviour of messing with > >> the user's X screensaver settings, even when the screensaver is disabled > >> in XFCE. This caused me a certain amount of head-scratching when my > >> `.xsession` loaded `xidle` but no matter what idle times I used, another > >> timeout was used -- which, AFAICS, is the timeout set by > >> xfce4-screensaver. In other words, `xidle -timeout ` did not respect > >> `n`, although `xidle` did still run its sub-command (just at a timeout > >> other than `n`). > > what do you mean by "screensaver is disabled in XFCE" ? process not > > running, process running, disabled how/where ? > > The screensaver is (was...) not enabled in Settings > Screensaver and I also > disabled it in Settings > Session & Startup -- yet, I eventually realised, > there always seemed to be an xfce4-screensaver process running. I can't rule > out that I did something stupid in some way, but I don't tend to do a great > deal of configuration with XFCE. can you check whether it's "saved in the session" if you use session saving ? grep screensa .cache/sessions/* Landry
Re: meta/xfce and xfce4-screensaver
On Mon, May 08, 2023 at 05:17:11PM +0200, Antoine Jacoutot wrote: Hello Antoine, >> As part of this, I tried using xfce4-screensaver as a screensaver, but it >> doesn't notice suspend, and after resume you can often see the full >> contents of the desktop for several seconds (and, I think, you might even >> be able to get a mouse click / keyboard event in there if you're quick, >> though I haven't tried). > Are you suspending using a desktop button or by running zzz? > Just curious. That's with the `zzz` command. On the Framework laptop I have, at least in the past, closing the lid didn't seem to suspend properly. [I haven't tried it for some time, because I assumed it might be a BIOS bug/quirk -- over 9 months after purchase, there still hasn't been a BIOS update... But that's another story.] Laurie
Re: meta/xfce and xfce4-screensaver
On Mon, May 08, 2023 at 07:04:10PM +0200, Landry Breuil wrote: Hello Landry, >> Installing meta/xfce installs xfce4-screensaver. However, >> xfce4-screensaver seems to have the unfortunate behaviour of messing with >> the user's X screensaver settings, even when the screensaver is disabled >> in XFCE. This caused me a certain amount of head-scratching when my >> `.xsession` loaded `xidle` but no matter what idle times I used, another >> timeout was used -- which, AFAICS, is the timeout set by >> xfce4-screensaver. In other words, `xidle -timeout ` did not respect >> `n`, although `xidle` did still run its sub-command (just at a timeout >> other than `n`). > what do you mean by "screensaver is disabled in XFCE" ? process not > running, process running, disabled how/where ? The screensaver is (was...) not enabled in Settings > Screensaver and I also disabled it in Settings > Session & Startup -- yet, I eventually realised, there always seemed to be an xfce4-screensaver process running. I can't rule out that I did something stupid in some way, but I don't tend to do a great deal of configuration with XFCE. Laurie
Re: meta/xfce and xfce4-screensaver
Le Mon, May 08, 2023 at 08:58:24AM +0100, Laurence Tratt a écrit : > Installing meta/xfce installs xfce4-screensaver. However, xfce4-screensaver > seems to have the unfortunate behaviour of messing with the user's X > screensaver settings, even when the screensaver is disabled in XFCE. This > caused me a certain amount of head-scratching when my `.xsession` loaded > `xidle` but no matter what idle times I used, another timeout was used -- > which, AFAICS, is the timeout set by xfce4-screensaver. In other words, > `xidle -timeout ` did not respect `n`, although `xidle` did still run its > sub-command (just at a timeout other than `n`). what do you mean by "screensaver is disabled in XFCE" ? process not running, process running, disabled how/where ? Fwiw, you can disable xfce4-screensaver by unticking it in "autostarted applications" in xfce4-session-settings. that should prevent it from autostarting with the session, allowing you to use whatever you like from .xsession. if it's not the case, then yes there might be a bug somewhere. > As part of this, I tried using xfce4-screensaver as a screensaver, but it > doesn't notice suspend, and after resume you can often see the full contents > of the desktop for several seconds (and, I think, you might even be able to > get a mouse click / keyboard event in there if you're quick, though I haven't > tried). > > I ended up deinstalling xfce4-screensaver because of this, which also means I > had to uninstall meta/xfce. That's made me wonder whether, given that it > doesn't seem to play well with OpenBSD, installing xfce4-screensaver as part > of meta/xfce is the right thing to do or not? In a sense, the packages > installed as part of a meta-package are "recommended", but I ended up unsure > that xfce4-screensaver is something that we want to recommend to users on > OpenBSD at the moment. If it has bugs on OpenBSD, don't hesitate to report them upstream ;) there's a *lot* of code shared with (now removed) gnome-screensaver and mate-screensaver, so might be a good idea to compare behaviour. xfce4-power-manager might also come into play, if you're on a laptop and running it. Landry
Re: meta/xfce and xfce4-screensaver
On Mon, May 08, 2023 at 08:58:24AM +0100, Laurence Tratt wrote: > Installing meta/xfce installs xfce4-screensaver. However, xfce4-screensaver > seems to have the unfortunate behaviour of messing with the user's X > screensaver settings, even when the screensaver is disabled in XFCE. This > caused me a certain amount of head-scratching when my `.xsession` loaded > `xidle` but no matter what idle times I used, another timeout was used -- > which, AFAICS, is the timeout set by xfce4-screensaver. In other words, > `xidle -timeout ` did not respect `n`, although `xidle` did still run its > sub-command (just at a timeout other than `n`). > > As part of this, I tried using xfce4-screensaver as a screensaver, but it > doesn't notice suspend, and after resume you can often see the full contents > of the desktop for several seconds (and, I think, you might even be able to > get a mouse click / keyboard event in there if you're quick, though I haven't > tried). Are you suspending using a desktop button or by running zzz? Just curious. -- Antoine
meta/xfce and xfce4-screensaver
Installing meta/xfce installs xfce4-screensaver. However, xfce4-screensaver seems to have the unfortunate behaviour of messing with the user's X screensaver settings, even when the screensaver is disabled in XFCE. This caused me a certain amount of head-scratching when my `.xsession` loaded `xidle` but no matter what idle times I used, another timeout was used -- which, AFAICS, is the timeout set by xfce4-screensaver. In other words, `xidle -timeout ` did not respect `n`, although `xidle` did still run its sub-command (just at a timeout other than `n`). As part of this, I tried using xfce4-screensaver as a screensaver, but it doesn't notice suspend, and after resume you can often see the full contents of the desktop for several seconds (and, I think, you might even be able to get a mouse click / keyboard event in there if you're quick, though I haven't tried). I ended up deinstalling xfce4-screensaver because of this, which also means I had to uninstall meta/xfce. That's made me wonder whether, given that it doesn't seem to play well with OpenBSD, installing xfce4-screensaver as part of meta/xfce is the right thing to do or not? In a sense, the packages installed as part of a meta-package are "recommended", but I ended up unsure that xfce4-screensaver is something that we want to recommend to users on OpenBSD at the moment. Laurie