Oneshot wallpaper change12/16/2023 ![]() ![]() QUERY_ENVIRON="$(tr '\0' '\n' < /proc/$"Įcho "Could not find dbus session ID in user environment."įinally let's create a service file located in /etc/systemd/system named, for example, change_rvice ĭescription=Change background when waking up from suspend, by Edmundo. # (they are run as the current user and have the DBUS session variable set)ĬompatiblePrograms=( nautilus kdeinit kded4 pulseaudio trackerd )Įcho "Could not detect active login session" # Search these processes for the session variable # Remember to run this script using the command "source. change_background.sh sources the file in order to set the DBUS_SESSION_BUS_ADDRESS environment variable. We also need to create /usr/bin/discover_session_bus_address.sh and paste the following code courtesy of Adam Ryczkowski. Gsettings set picture-uri 'file:///usr/share/backgrounds/your_pick.jpeg' Source /usr/bin/discover_session_bus_address.shĮxport GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/ ![]() Let's first create the file change_background.sh in /usr/bin: #!/bin/bash I did not find a proper solution but hacked a way to set the proper background running a service when the computer wakes from suspend. The background showed a noisy image after waking the computer from suspend. I also had the same problem in Ubuntu 18.04.3 using NVIDIA 390.129. The login screen works perfectly here.Īny ideas how to solve this issue and where it comes from? I think it is worth to mention that I do NOT have any graphical glitches on the login screen (it was sometimes a problem on Ubuntu 16.04). My problem is that every time I am waking my computer from suspend mode my background turns to this noise pattern (I have solid color set): Ii xserver-xorg-video-nvidia-390 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary Xorg driver Ii nvidia-utils-390 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA driver support binaries ![]() Ii nvidia-settings 396.24-0ubuntu0~gpu18.04.1 amd64 Tool for configuring the NVIDIA graphics driver ![]() Ii nvidia-prime 0.8.8 all Tools to enable NVIDIA's Prime Ii nvidia-kernel-source-390 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA kernel source package Ii nvidia-kernel-common-390 390.59-0ubuntu0~gpu18.04.1 amd64 Shared files used with the kernel module Ii nvidia-driver-390 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA driver metapackage Ii nvidia-compute-utils-390 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA compute utilities Ii libnvidia-ifr1-390:i386 390.59-0ubuntu0~gpu18.04.1 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library Ii libnvidia-ifr1-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library Ii libnvidia-gl-390:i386 390.59-0ubuntu0~gpu18.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD Ii libnvidia-gl-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD Ii libnvidia-fbc1-390:i386 390.59-0ubuntu0~gpu18.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library Ii libnvidia-fbc1-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library Ii libnvidia-encode-390:i386 390.59-0ubuntu0~gpu18.04.1 i386 NVENC Video Encoding runtime library Ii libnvidia-encode-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVENC Video Encoding runtime library Ii libnvidia-decode-390:i386 390.59-0ubuntu0~gpu18.04.1 i386 NVIDIA Video Decoding runtime libraries Ii libnvidia-decode-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA Video Decoding runtime libraries Ii libnvidia-compute-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA libcompute package Ii libnvidia-common-390 390.59-0ubuntu0~gpu18.04.1 all Shared files used by the NVIDIA libraries Ii libnvidia-cfg1-390:amd64 390.59-0ubuntu0~gpu18.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library Furthermore, I have a clean installation of Ubuntu 18.04 and the latest nvidia-390 drivers installed, using apt: ~$ sudo dpkg -l | grep nvidia I have the Nvidia 1080ti graphics card, which is just a few days old. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |