Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Disable Screensaver" does not work since update v24.5.0-1 #1056

Open
initd0 opened this issue Sep 29, 2024 · 11 comments
Open

"Disable Screensaver" does not work since update v24.5.0-1 #1056

initd0 opened this issue Sep 29, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@initd0
Copy link

initd0 commented Sep 29, 2024

Describe the bug
Since update v24.5.0-1 in May 2024, the option for "Disable Screensaver" no longer works.
I was on version 23.12.0-1 on Jammy, and i never had an issue until this update. I also have no issue like this with VLC.

I tried to downgrade with apt-get install smplayer=23.12.0 and it says it cant find the version.
I then removed the ppa from rvm completely and im now using the default ubuntu version smplayer: Installed: 21.10.0~ds0-1 without any issues.

Any idea why this is happening, what has changed and why no-one else has picked this issue up since May? I havent been able to find any issues related to this.

Expected behavior
I want the Disable screensaver to work like it used to, so that it doesnt auto-lock the screen when watching a video.

Your Enviroment

  • SMPlayer version: 24.5.0-1
  • OS: Ubuntu 22.04
  • Multimedia engine you're using with SMPlayer (preferences -> general):
    [x] MPlayer
    [ ] MPV
@initd0 initd0 added the bug Something isn't working label Sep 29, 2024
@smplayer-dev
Copy link
Owner

Could you test if the problem is still present in the development version?
https://github.com/smplayer-dev/smplayer/releases/tag/v24.5.0.10283

@hnsteyding
Copy link
Contributor

SMplayer Version v24.5.0.10283 works for me.

But latest version from git repo not:
grafik
smplayer.log
mplayer.log

Your Enviroment:

SMPlayer Version 24.5.0 (Revision 10309) (32-bit)
OS: Windows 7 and Windows 10
Multimedia engine you're using with SMPlayer (preferences -> general):
[x] MPlayer
[ ] MPV

@initd0
Copy link
Author

initd0 commented Oct 5, 2024

Could you test if the problem is still present in the development version? https://github.com/smplayer-dev/smplayer/releases/tag/v24.5.0.10283

I tried again SMPlayer-24.5.0-x86_64.AppImage & also SMPlayer-24.5.0.10283-x86_64.AppImage as you requested.

As predicted, the "Disable screensaver" setting is not honored in SMPlayer-24.5.0-x86_64.AppImage.

But it is working in the dev version SMPlayer-24.5.0.10283-x86_64.AppImage, thank you. When is the next release coming out?

@hnsteyding
Copy link
Contributor

I found out that the problem exists since the following commit (changes to USE_POWERSAVING):
https://github.com/smplayer-dev/smplayer/tree/4d2edc7f494e01bd34bbae14cc4db1aea6d39c22

@Fat-Zer
Copy link

Fat-Zer commented Oct 29, 2024

A can confirm, according to journal --no-stop-screensaver is passed to the mpv regardless of the smplayer's option. Also I can confirm that the problem persists in master.

@Fat-Zer
Copy link

Fat-Zer commented Oct 29, 2024

I've investigated a bit and it looks like in my case the problem is that my DE doesn't provide org.freedesktop.ScreenSaver DBus service, so the smplayer's PowerSaving stuff doesn't work.

It would be nice to add a runtime check if PowerSaving is operational and if it isn't, let mpv/mplayer manage it, rather use a compilation-time-only check.

Gentoo Linux / X11 / mpv

Fat-Zer added a commit to Fat-Zer/smplayer that referenced this issue Oct 29, 2024
Bug: smplayer-dev#1056
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
@smplayer-dev
Copy link
Owner

I think this should be fixed in version 10337. Now you can enable the use of the stop-screesaver option in preferences -> advanced.

https://github.com/smplayer-dev/smplayer/releases/tag/v24.5.0.10337

@Fat-Zer
Copy link

Fat-Zer commented Nov 6, 2024

I think this should be fixed in version 10337. Now you can enable the use of the stop-screesaver option in preferences -> advanced.

https://github.com/smplayer-dev/smplayer/releases/tag/v24.5.0.10337

It would be nice to have automatic fallback or at least a warning if the smplayer's screensaver controller is non-functional. Besides that this option probably should be available generally for unix platforms, not just linux; and with mpv the option might be usable on non-unix as well.

I may update my PR if you wish.

PS: as for now it still will prevent using mplayer on windows as it can't handle -stop-xscreensaver, see @hnsteyding's reports in #1085

@hnsteyding
Copy link
Contributor

@smplayer-dev:
Releases 24.5.0.10337 doesn't work either - same error:

Unknown option on the command line: -nostop-xscreensaver

@hnsteyding
Copy link
Contributor

Seems to be fixed now in cb6084f

@Fat-Zer
Copy link

Fat-Zer commented Nov 8, 2024

Now it doesn't pass --no-stop-screensaver to mpv (on win), so mpv will always disable screensaver by default regardless off smplayer's configuration.

Also as for now use_stopscreensaver doesn't stop smplayer from trying to control the screensaver.

And what about automatic apply of it? Having a checkbox is nice, but when the setting is buried in the advanced section it's hard to determine why it doesn't work in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants