Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.75k stars 61 forks source link

[BGFIX] Issue assigning wallpaper to a display #226

Open BugZappa opened 5 months ago

BugZappa commented 5 months ago

Wallpaper Engine Background(s)

Backgrounds i've tried; 3052905511 2991628385 1311534675 2980088441 1373816444

Console output

When a background cannot be loaded, it's usually due to some unexpected error that is logged into the terminal. Please attach the program's output so we can properly debug it if needed.

user@debian12:~/Downloads/wallpaper-eng/linux-wallpaperengine/build/build$ ./linux-wallpaperengine --screen-root eDP-1-0 3052905511
[0611/165836.776542:WARNING:resource_util.cc(94)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
No "scene.pkg" file found at "/home/user/.steam/steam/steamapps/workshop/content/431960/3052905511/scene.pkg". Defaulting to normal folder storage
No "gifscene.pkg" file found at "/home/user/.steam/steam/steamapps/workshop/content/431960/3052905511/gifscene.pkg". Defaulting to normal folder storage
WARNING: Shader patches directory cannot be found, this might make some backgrounds not work properly
Found requested screen: eDP-1-0 -> 0x0:1920x1080
[cplayer] mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.28.100
[cplayer]    libavcodec      59.37.100
[cplayer]    libavformat     59.27.100
[cplayer]    libswscale      6.7.100
[cplayer]    libavfilter     8.44.100
[cplayer]    libswresample   4.7.100
[cplayer] FFmpeg version: 5.1.4-0+deb12u1
[cplayer] 
[cplayer] Configuration: meson configure build -Dprefix=/usr -Dbuildtype=plain -Doptimization=plain
[cplayer] List of enabled features: alsa av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo libplacebo-next librt linux-fstatfs lua52 manpage-build memfd_create noexecstack pipewire plain-gl posix pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland_protocols_1_24 x11 xv zimg zlib
[cplayer] Waiting for scripts...
[libmpv_render] GL_VERSION='3.3.0 NVIDIA 525.147.05'
[libmpv_render] Detected desktop OpenGL 3.3.
[libmpv_render] GL_VENDOR='NVIDIA Corporation'
[libmpv_render] GL_RENDERER='NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2'
[libmpv_render] GL_SHADING_LANGUAGE_VERSION='3.30 NVIDIA via Cg compiler'
[libmpv_render] Loaded extension GL_ARB_invalidate_subdata.
[libmpv_render] Loaded extension GL_ARB_get_program_binary.
[libmpv_render] Loaded extension GL_ARB_buffer_storage.
[libmpv_render] Loaded extension GL_ARB_shader_image_load_store.
[libmpv_render] Loaded extension GL_ARB_shader_storage_buffer_object.
[libmpv_render] Loaded extension GL_ARB_compute_shader.
[libmpv_render] Loaded extension GL_ARB_arrays_of_arrays.
[libmpv_render] Loaded extension GL_NV_vdpau_interop.
[libmpv_render] Loaded extension GL_ARB_debug_output.
[libmpv_render] Loaded extension GL_KHR_debug.
[libmpv_render] GL_*_swap_control extension missing.
[libmpv_render] Testing FBO format rgba8
[libmpv_render] Using FBO format rgba8.
[libmpv_render] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=1).
[libmpv_render] No advanced processing required. Enabling dumb mode.
[libmpv_render] Loading hwdec driver 'vaapi'
[libmpv_render/vaapi] VAAPI hwdec only works with OpenGL or Vulkan backends.
[libmpv_render] Loading failed.
[libmpv_render] Loading hwdec driver 'cuda'
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 6.0.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Done loading scripts.
[libmpv_render/cuda] cu->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
[libmpv_render] Loading failed.
[libmpv_render] Loading hwdec driver 'drmprime-overlay'
[libmpv_render/drmprime-overlay] Failed to retrieve DRM fd from native display.
[libmpv_render] Loading failed.
[libmpv_render] Loading hwdec driver 'drmprime'
[libmpv_render/drmprime] drmprime hwdec requires at least one dmabuf interop backend.
[libmpv_render] Loading failed.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo_dvdnav] Opening /home/justin/.steam/steam/steamapps/workshop/content/431960/3052905511/Computer Chip Walking To Stayin Alive.mp4
[bdmv/bluray] Opening /home/justin/.steam/steam/steamapps/workshop/content/431960/3052905511/Computer Chip Walking To Stayin Alive.mp4
[file] Opening /home/justin/.steam/steam/steamapps/workshop/content/431960/3052905511/Computer Chip Walking To Stayin Alive.mp4
Shutting down CEF
[demux] Trying demuxers for level=normal.
[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[file] stream level seek from 131072 to 99371135
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[cplayer] Opening done: /home/justin/.steam/steam/steamapps/workshop/content/431960/3052905511/Computer Chip Walking To Stayin Alive.mp4
[find_files] Loading external files in /home/justin/.steam/steam/steamapps/workshop/content/431960/3052905511/
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
 (+) Video --vid=1 (*) (h264 1920x1080 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[vd] Container reported FPS: 30.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] Looking at hwdec h264-nvdec...
[vd] Could not create device.
[vd] Looking at hwdec h264-vaapi...
[vd] Could not create device.
[vd] Looking at hwdec h264-vdpau...
[vd] Could not create device.
[vd] Looking at hwdec h264-nvdec-copy...
[libmpv_render] Window size: 16x16 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 0x0 (0:0)
[libmpv_render] Video display: (0, 0) 1x1 -> (0, 0) 16x16
[libmpv_render] Video scale: 16.000000/16.000000
[libmpv_render] OSD borders: l=-1073741824 t=0 r=-1073741808 b=0
[libmpv_render] Video borders: l=0 t=0 r=0 b=0
[ffmpeg] AVHWDeviceContext: cu->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vd] Could not create device.
[vd] Looking at hwdec h264-vaapi-copy...
[vaapi] Initialized VAAPI: version 1.17
[vd] Trying hardware decoding via h264-vaapi-copy.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[file] stream level seek from 99651589 to 48
[vd] Pixel formats supported by decoder: vdpau cuda vaapi yuv420p
[vd] Codec profile: Main (0x4d)
[vd] Requesting pixfmt 'vaapi' from decoder.
Using hardware decoding (vaapi-copy).
[vd] Decoder format: 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[ao/pipewire] Headers version: 0.3.65
[ao/pipewire] Library version: 0.3.65
[ao/pipewire] Core user: justin
[ao/pipewire] Core host: debian12
[ao/pipewire] Core version: 0.3.65
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] device buffer: 960 samples.
[ao/pipewire] using soft-buffer of 9600 samples.
AO: [pipewire] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch floatp
VO: [libmpv] 1920x1080 nv12
[cplayer] VO: Description: render API for libmpv
[vo/libmpv] reconfig to 1920x1080 nv12 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/libmpv] mpv_render_context_render() not being called or stuck.
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] delaying audio start 0.000000 vs. 0.000000, diff=0.000000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[libmpv_render] Window size: 1920x1080 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 1920x1080 (1:1)
[libmpv_render] Video display: (0, 0) 1920x1080 -> (0, 0) 1920x1080
[libmpv_render] Video scale: 1.000000/1.000000
[libmpv_render] OSD borders: l=0 t=0 r=0 b=0
[libmpv_render] Video borders: l=0 t=0 r=0 b=0
[libmpv_render] Texture for plane 0: 1920x1080
[libmpv_render] Texture for plane 1: 960x540
[libmpv_render] Testing FBO format rgba8
[libmpv_render] Using FBO format rgba8.
[libmpv_render] No advanced processing required. Enabling dumb mode.
AV: 00:00:00 / 00:04:06 (0%) A-V:  0.000 Dropped: 1
[cplayer] starting audio playback
^CStop requested0:04:06 (5%) A-V:  0.000 Dropped: 5

[vo/libmpv] mpv_render_context_render() not being called or stuck.
user@debian12:~/Downloads/wallpaper-eng/linux-wallpaperengine/build/build$ 

Screenshots

If you have any screenshot of it working on Windows that'll help so we can compare both outputs

N/A -- Currently don't have screenshots of the Windows variants at the time of writing this.

Desktop (please complete the following information):

Additional context

Running ./linux-wallpaperengine [Workshop ID] does work and opens an external window of the wallpaper as intended. my issue is assigning the wallpaper to a display with the ./linux-wallpaperengine --screen-root eDP-1-0 --screen-root HDMI-0 [Workshop ID} command, the terminal will claim that the GPU is rendering it however, nothing changes with my desktop.

Nova1545 commented 4 months ago

The compositor or GNOME/Nautilus draw over top of the root window. SO it is rendering it but i've never found a way to be able to see it :/

BugZappa commented 4 months ago

The compositor or GNOME/Nautilus draw over top of the root window. SO it is rendering it but i've never found a way to be able to see it :/

Thats a shame, thank you for trying to get it to work on GNOME!

CatPetrova commented 3 months ago

i have the same issue with ubuntu 22.04 and GNOME.The README mentions this:

IMPORTANT: Right now this doesn't work if there is anything drawing to the background (like a compositor, gnome, kde, nautilus, etc)

See #8