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
phoronix-test-suite benchmark
disables lock screen and screen blanking, and doesn't enable them back
#291
Comments
PTS does set it back, at least I haven't had any issues on my number of GNOME2/GNOME3 systems.... The only time it wouldn't be setting it back is if you interrupt the PTS process so it's not able to complete its shutdown tasks. The Dbus screensaver inhibit isn't used since AFAIK isn't a way to nicely handle it from PHP programs. Or does there happen to be some nicely way to handle it? Thanks. |
Yes, after further testing I can confirm that it only happens if I interrupt the benchmark (Ctrl+C, sigint). But is it impossible to run these shutdown tasks when the program is interrupted too? I've googled a bit and found these D-Bus bindings for PHP: https://github.com/derickr/pecl-dbus Though I'm not sure whether they will work or not. Another option is writing a small module in C |
Suppose one does end up interrupting the benchmark, as it took too long and they wanted to go home. |
Ah,
did the trick. |
You can solve this without tampering with dconf variables by running phoronix with the |
For some reason
didn't work for me. I had to use
to restore my lock screen. |
I've spent over half a year trying to figure out why my desktop and laptop kept disabling my lock screen at seemingly random intervals. Changing dconf settings is not the way to accomplish this. Please reconsider. |
I propose a signal trap such that when ctrl+c is used to stop the test, you re-enable lock. And/or throw a large error to warn about this. The first time I used the PTS it didn't finish before I had to leave for class and my laptop was left in class (lid down) multiple time without locking. |
I've noticed that after I ran
phoronix-test-suite benchmark
screen locking and blanking are disabled in Gnome (and to reenable the lock screen I have to edit gnome settings in dconf). This isn't very convenient :)Wouldn't it be better to inhibit the "screensaver" through org.freedesktop.ScreenSaver D-bus interface (which is supported by at least Gnome, KDE and Cinnamon) while the benchmark is running?
It could work like this:
The text was updated successfully, but these errors were encountered: