Skip to content
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

Window shadow disappears after resuming from suspend/sleep #924

Open
OriginCode opened this issue Nov 16, 2022 · 6 comments
Open

Window shadow disappears after resuming from suspend/sleep #924

OriginCode opened this issue Nov 16, 2022 · 6 comments

Comments

@OriginCode
Copy link

Platform

AOSC OS 9.1.4 amd64

GPU, drivers, and screen setup

NVIDIA GeForce RTX 2060 Mobile, nvidia driver 515.65.01.

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 6144 MB
    Total available memory: 6144 MB
    Currently available dedicated video memory: 5309 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.65.01
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 515.65.01
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.65.01
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

i3-gaps

picom version

v10

Diagnostics

Version: v10

Extensions:

  • Shape: Yes
  • XRandR: Yes
  • Present: Present

Misc:

  • Use Overlay: No
    (Another compositor is already running)
  • Config file used: /home/origincode/.config/picom.conf

Drivers (inaccurate):

NVIDIA

Backend: glx

  • Driver vendors:
  • GLX: NVIDIA Corporation
  • GL: NVIDIA Corporation
  • GL renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2

Backend: egl

  • Driver vendors:
  • EGL: NVIDIA
  • GL: NVIDIA Corporation
  • GL renderer: NVIDIA GeForce RTX 2060/PCIe/SSE2

Configuration:

Configuration file
backend = "glx";
use-damage = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
unredir-if-possible = true;
xrender-sync-fence = true;

fading = true;
fade-delta = 2;
#inactive-opacity = 0.75;

shadow = true                  # Enabled client-side shadows on windows
shadow-radius = 10;                # The blur radius for shadows (default 12)
shadow-offset-x = -10;               # The left offset for shadows (default -15)
shadow-offset-y = -10;               # The top offset for shadows (default -15)

corner-radius = 10;

#blur:
#{
#    method = "gaussian";
#    size = 50;
#    deviation = 15.0;
#};

blur-background-exclude = [
    "window_type = 'desktop'",
    "window_type = 'popup_menu'",
    "_GTK_FRAME_EXTENTS@:c"
];

shadow-exclude = [
#    "!I3_FLOATING_WINDOW@:c",
#    "class_g ?= 'polybar'",
#    "class_g ?= 'rofi'",
]

rounded-corners-exclude = [
    "!I3_FLOATING_WINDOW@:c",
#    "class_g ?= 'polybar'",
]

opacity-rule = [
	"90:class_g = 'i3bar'",
];
    
wintypes:
{
    notify = { full-shadow = true };
#    dock = { shadow = false };
    dnd = { shadow = true };
    menu = { shadow = true };
	dropdown_menu = { shadow = false };
	popup_menu = { shadow = false };
	utility = { shadow = false };
};

Steps of reproduction

  1. Enable window shadow
  2. systemctl suspend and resume from suspension.

Expected behavior

The window border has a shadow around it.

Current Behavior

The shadow disappears

Stack trace

OpenGL trace

Other details

@yshui
Copy link
Owner

yshui commented Nov 16, 2022

Maybe picom crashed after resuming from sleep? Did you check if picom is still running?

@OriginCode
Copy link
Author

Maybe picom crashed after resuming from sleep? Did you check if picom is still running?

Yep, picom is still running. And after I resize or move the window, the shadow would come back

@OopsYao
Copy link

OopsYao commented Dec 11, 2022

Can confirm. Resaving the config file or sending USR1 signal to picom also brings the shadow back.

@absolutelynothelix
Copy link
Collaborator

i have a theory that this may be fixed with 37ecb4b, but i’m not sure. would be good if you can test it and report if the issue is gone.

@OriginCode
Copy link
Author

OriginCode commented Sep 21, 2023

i have a theory that this may be fixed with 37ecb4b, but i’m not sure. would be good if you can test it and report if the issue is gone.

Nope, the issue still persists, and I got a lot of

GLX error at line 479: GL_INVALID_OPERATION

error when resuming from systemctl suspend.

@tcapd
Copy link

tcapd commented Aug 24, 2024

Problem is still or again occuring in Picom v12rc2 (vgit-bc455e), with Nvidia driver 550.107.02.
The following workaround works for me.

sudo vi /usr/bin/nvidia-sleep.sh

# In section "resume)", just above "exit 0", add:

/usr/bin/touch PATH/picom.conf

Change PATH according to where your picom.conf is, in my case the line reads:
/usr/bin/touch /home/tc/.config/picom.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants