Automatic Cycling will wake the screen
Compositor
- [x] niri
- [ ] Hyprland
- [ ] dwl (MangoWC)
- [ ] sway
- [ ] Other (specify)
Distribution
Fedora 43
dms version
v1.0.2
Description
When the computer is locked, suspended, and the screen is turned off, the automatic wallpaper switching feature will wake the screen.
Expected Behavior
I hope the screen won't wake up due to automatic wallpaper changes when it's off, or that automatic wallpaper changes won't occur.
Steps to Reproduce
- Suspended, locked, and screen turned off
- Waiting for Automatic Cycling to execute
- After Automatic Cycling is executed, the screen will wake up instead of remaining off.
Error Messages/Logs
Paste error messages or logs here
Screenshots/Recordings
Suspended I can't imagine that it changes any behavior since the userspace code cant run anymore, and screen blanking is not something that can be reliably determined in a compositor-agnostic way (unfortunately). Disabling while locked would be simple though, is that sufficient for the use case?
Disabling Automatic Cycling while the screen is locked is also acceptable. I only want the screen to remain off when it's locked and turned off. Additionally, I've noticed that switching the Automatic Cycling Mode or Interval causes the feature to turn off automatically. After re-enabling it, this functionality becomes unavailable.
ea205ebd1256eacfa657c0ccb0cf9c81e292b286 may handle both issues
I'm not sure if there's an issue with my testing steps, but the problem persists: 1. The wallpaper still automatically changes when the screen is locked. If the screen is turned off, it still lights up during wallpaper transitions. 2. Switching the Mode or Interval in Automatic Cycling still causes the feature to automatically turn off. After re-enabling it, the Interval time remains set to 5 minutes even if changed. My testing steps are as follows: First, I cloned the code locally and switched to branch ea205eb. Then I entered the core/ directory to build the source code. Next, I temporarily changed the dms path to ./core/bin/dms and ran quickshell -p quickshell/.
I'm not able to reproduce anymore, it was accounted for when locked but not when monitor is off (and not locked)
The interval or time based is one or the other (not both at the same time) and also I flipped it and had it continue cycling
The screen may have woken up due to a suspension failure caused by the NVIDIA driver. This is the screen recording for the second question. https://github.com/user-attachments/assets/35cea00a-e8b8-4097-b3a5-a249fc8facc9
I'm not sure if there's an issue with my testing steps, but the problem persists: 1. The wallpaper still automatically changes when the screen is locked. If the screen is turned off, it still lights up during wallpaper transitions. 2. Switching the Mode or Interval in Automatic Cycling still causes the feature to automatically turn off. After re-enabling it, the Interval time remains set to 5 minutes even if changed. My testing steps are as follows: First, I cloned the code locally and switched to branch ea205eb. Then I entered the core/ directory to build the source code. Next, I temporarily changed the dms path to
./core/bin/dmsand ranquickshell -p quickshell/.
On the second issue, i have the same problem, I have modified my dank material shell installation to allow me to modify my files.
TO BE ABLE TO USE MY OWN DMS INSTALLATION I cloned
/usr/share/quickshell/dms/
to my local folder
~/.config/quickshell/dms/
following the instructions shown when updating the package with yay dms-shell-git
and I started it at startup in Niri with spawn-at-startup "dms" "run"
after disabling the service with systemctl --user disable dms and systemctl --user mask dms
I'm not sure if all of this is necessary, but it's working for me this way.
Now I can modify the file
~/.config/quickshell/dms/quickshell/Common/SessionData.qml
I created a commit with the changes: https://github.com/AvengeMedia/DankMaterialShell/commit/37ef3e8e1165e22ff7d3ffd928bc8aa65976c6f2
I can now change the time interval for each monitor correctly. I don't know if there's a simpler solution.
Let me know if it works for you
@homebobhomebob Thank you. Your code effectively controls the interval for changes, but switching modes will still disable the automatic cycling.
@homebobhomebob Thank you. Your code effectively controls the interval for changes, but switching modes will still disable the automatic cycling.
yeah, i'm fighting with that now. By default i don't touch modes only select interval per monitor (i have dual monitors). This is other step more.
I believe this is now solved. I've kept a specific logic in case you want to maintain a different configuration for each monitor. If you want the same logic for each monitor, you must repeat the parameter selection for each one.
As a side note, you can have one monitor in time mode and the other in interval mode (therefore, if you want both monitors to display the same settings, you must select the same parameters for each monitor).
My commits ce07d31dfefc6e7cc359b49b3782cae19be581db and c8fc84eb014d7f40d1b3565301f182a26b5ecfba
Funny
@homebobhomebob You're a genius! Your code fixed the issue. I can close this bug.