[BUG] dual monitor after sleep restore same wallpaper for both screen
After leaving computer alone for a while, after unlocking, the wallpaper of the laptop screen is restored on both monitor. I use to have 2 different wallpapers.
I have the following variation config for monitor : monitor=,preferred,auto,1 monitor=eDP-1, [email protected],1920x0,1 monitor=HDMI-A-1, 1920x1080@100,0x0, 1
Hypridle/DPMS/suspend timeout are left the default values.
I'm on Fedora 41. My Laptop specs follow :
System:
Kernel: 6.11.10-300.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
v: 2.43.1-2.fc41 clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.11.10-300.fc41.x86_64
root=UUID=67f2e9a1-2f22-46e5-9f3f-70510d7ec878 ro rootflags=subvol=root
rd.luks.uuid=luks-36060d0c-9b05-49ce-a3b5-b55857282518 rhgb quiet
Desktop: Hyprland v: N/A with: waybar tools: avail: hyprlock,swaylock
dm: GDM v: 47.0 Distro: Fedora Linux 41 (Workstation Edition)
Machine:
Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X513UA_M513UA
v: 1.0 serial:
@PerfMonk Can you try to switch to swww? Then you can select for both screens an own wallpaper. This restore should work then.
I don't have swww installed. I can't find any swww in fedora but it is on github https://github.com/LGFae/swww I have built it, it's a rust program and put the executables in ~/.local/bin (sww and www-daemon). I will add the start of the daemon in the autostart config.
But I would like to know how to tell ML4W to use swww ? It never got install at first. I used hyprpaper on my previous install.
Then, I'm going to try to lock and come back to see if wallpapers are OK for each monitor. I will keep you informed of results.
Thanks, Bernard
Le lun. 2 déc. 2024 à 17:26, Stephan Raabe @.***> a écrit :
@PerfMonk https://github.com/PerfMonk Can you try to switch to swww? Then you can select for both screens an own wallpaper. This restore should work then.
— Reply to this email directly, view it on GitHub https://github.com/mylinuxforwork/dotfiles/issues/509#issuecomment-2513090446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFZAWMTNJUTAMCXQUUKIKL2DTNCZAVCNFSM6AAAAABS2DX6EWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJTGA4TANBUGY . You are receiving this because you were mentioned.Message ID: @.***>
--
Bernard Tremblay @.*** R: (418) 658-1411 C: (581) 988-1411
Le but de Linux est de gérer vos ressources et faire le travail, le but des OS propriétaire est de vous vendre d'autres licences...
Just did the test. It sets both monitor to the last wallpaper that was set before. If I change the left monitor wallpaper, log out and wait a few secs and login back, then I set both wallpaper to the last left wallpaper. But may be there is other config to setup in order to use swww ???
Also I see that in the ~/.cache there is only current_wallpaper that is kept. I see no traces of wallpaper of the other monitor. So may this case was forgotten in the script that restore the wallpaper ?
EDIT I have looked at swww and it gives me this info :
================= ❯ swww query eDP-1: 1920x1080, scale: 1, currently displaying: color: 000000 HDMI-A-1: 1920x1080, scale: 1, currently displaying: color: 000000
~ ❯ swww restore WARNING: failed to load cache for output eDP-1: cache file does not exist WARNING: failed to load cache for output HDMI-A-1: cache file does not exist
So it looks like the cache is not setup for swww. Wich make me think that there must be somewhere a place to specify what wallpaper to use ??? May be my newly compiled swww is not used at all by your scripts at the present state ???
Any idea ????
Le lun. 2 déc. 2024 à 23:31, Bernard Tremblay @.***> a écrit :
I don't have swww installed. I can't find any swww in fedora but it is on github https://github.com/LGFae/swww I have built it, it's a rust program and put the executables in ~/.local/bin (sww and www-daemon). I will add the start of the daemon in the autostart config.
But I would like to know how to tell ML4W to use www ? It never got install at first. I used hyprpaper on my previous install.
Then, I'm going to try to lock and come back to see if wallpapers are OK for each monitor. I will keep you informed of results.
Thanks, Bernard
Le lun. 2 déc. 2024 à 17:26, Stephan Raabe @.***> a écrit :
@PerfMonk https://github.com/PerfMonk Can you try to switch to swww? Then you can select for both screens an own wallpaper. This restore should work then.
— Reply to this email directly, view it on GitHub https://github.com/mylinuxforwork/dotfiles/issues/509#issuecomment-2513090446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFZAWMTNJUTAMCXQUUKIKL2DTNCZAVCNFSM6AAAAABS2DX6EWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJTGA4TANBUGY . You are receiving this because you were mentioned.Message ID: @.***>
--
Bernard Tremblay @.*** R: (418) 658-1411 C: (581) 988-1411
Le but de Linux est de gérer vos ressources et faire le travail, le but des OS propriétaire est de vous vendre d'autres licences...
--
Bernard Tremblay @.*** R: (418) 658-1411 C: (581) 988-1411
Le but de Linux est de gérer vos ressources et faire le travail, le but des OS propriétaire est de vous vendre d'autres licences...
I just found that the wallpaper settings had a place to switch from hyprpaper to swww. I selected swww but I still have same problem. If I log out and then log back, it set both monitors with same wallpaper (the last one I applied to any monitor). swww is buggy it sometime applies a transition with a growing circle with new wallpaper inside but it doesn't keep growing until the screen is totally filled with new wallpaper. So you can sometime get a small circle with a part of the new wallpaper at the bottom right of the screen. But other than that swww doesn't restore both wallpaper if you have two different wallpapers. I'm out of idea to correct the situation for tonight.
swww is too buggy, I switched back to hyprpaper. But when I logon I had time to see that my first wallpaper was applied on both monitors and then the second wallpaper is applied on both monitors. It seems the wallpaper script does know there is 2 different wallpapers but doesn't know how to applied it to the good monitor.
I noticed that when I go away and the screen lock, on unlocking, my external monitor has no wallpaper, just a black screen with waybar.
The wallpaper-restore.sh script has only one wallpaper in the cache ("$HOME/.config/ml4w/cache/current_wallpaper"). This exclude the possibility to have a different wallpaper for each screen. The cached wallpaper will always be the last wallpaper applied whatever the monitor used. This could be improved, the script should be modified and the script to change the wallpaper would be impacted too since we need a cached wallpaper for each screen. And by the way, waybar could also be linked to a screen and have different colors for different wallpapers. I guess one should think about it carefully before changing things...