You are not logged in.

#1 2021-02-08 13:28:16

hoNExIWi
Member
Registered: 2021-02-08
Posts: 4

Black rectangles showing up when using scrot -s

As described by someone else in this post (Black rectangles showing up when using scrot -s) before I'm experiencing the same issues with the the black rectangles when taking a screenshot using scrot -s.

scrot version: 1.5-1

*-display
                description: VGA compatible controller
                product: GP106 [GeForce GTX 1060 6GB]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: vga_controller bus_master cap_list rom
                configuration: driver=nouveau latency=0
                resources: irq:140 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff

.zprofile:
if [ "$(tty)" = "/dev/tty1" ]; then
  exec startx ~/.config/xorg/xinitrc
fi

I'm also runing picom alongside bspwm. Any ideas why this might be happening?

Thank you

Last edited by hoNExIWi (2021-02-08 13:28:38)

Offline

#2 2021-02-08 14:29:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,595

Re: Black rectangles showing up when using scrot -s

And does it happen w/o picom as well?
If not, does it happen w/ xrender or glx backend or either?

Offline

#3 2021-02-09 16:34:15

hoNExIWi
Member
Registered: 2021-02-08
Posts: 4

Re: Black rectangles showing up when using scrot -s

It doesn't happen without picom, also doesn't happen with xrender. But then I experience some kind of screen tearing/flickering in FF.
It does happen with picom --experimental-backends as well as with glx backend though.

Offline

#4 2021-02-09 21:21:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,595

Re: Black rectangles showing up when using scrot -s

You're probably also using v'sync?
scrot will take the screenshot immediately, but the compositor will update the overlay or root window only a couple of ms later.
You could run "scrot -sd1" which will delay the actual screenhot by a second (unfortunately, scrot doesn't seem to do decimal seconds like 0.2) and give the compositor time to update and remove the rectangle.
Alternatively try "scrot -sk" (see scrot --help)

Offline

#5 2021-02-10 20:23:10

hoNExIWi
Member
Registered: 2021-02-08
Posts: 4

Re: Black rectangles showing up when using scrot -s

I switched to the proprietary nvidia driver using the full composition pipeline together with picom with the glx backend and vsync. Everything works as expected now. Thank you

Offline

Board footer

Powered by FluxBB