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

Not Screenshots #807

Open
rediskap opened this issue Nov 15, 2024 · 33 comments
Open

Not Screenshots #807

rediskap opened this issue Nov 15, 2024 · 33 comments
Labels
bug Something isn't working

Comments

@rediskap
Copy link

System Information

  • niri version: 0.1.10.1-1
  • Distro: ArchLinux
  • GPU: Intel Mobile 4 Series Chipset Integrated G]
  • CPU: Intel(R) Celeron(R) 900 @ 2.19 GHz
  • Screenshots are not created at all! When you try to create a screenshot, the screenshot folder is not created. When created in the home directory, according to /.config/niri/config.kdl (screenshot-path "/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"). Log: https://pastebin.c yuom/AbS2sd16.
@rediskap rediskap added the bug Something isn't working label Nov 15, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Nov 15, 2024

ноя 15 19:37:13 dn7 niri[508]: 2024-11-15T19:37:13.717921Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_ENUM in glBufferData(invalid usage: GL_STREAM_READ)
ноя 15 19:37:13 dn7 niri[508]: 2024-11-15T19:37:13.718971Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access)
ноя 15 19:37:13 dn7 niri[508]: 2024-11-15T19:37:13.719081Z  WARN niri::input: error capturing screenshot: error copying texture
ноя 15 19:37:13 dn7 niri[508]: Caused by:
ноя 15 19:37:13 dn7 niri[508]:     Unsupported pixel format: DrmFourcc(AB24)
ноя 15 19:37:17 dn7 niri[508]: 2024-11-15T19:37:17.534903Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_ENUM in glBufferData(invalid usage: GL_STREAM_READ)
ноя 15 19:37:17 dn7 niri[508]: 2024-11-15T19:37:17.534963Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access)
ноя 15 19:37:17 dn7 niri[508]: 2024-11-15T19:37:17.534982Z  WARN niri::input: error taking screenshot: error rendering
ноя 15 19:37:17 dn7 niri[508]: Caused by:
ноя 15 19:37:17 dn7 niri[508]:     0: error copying framebuffer
ноя 15 19:37:17 dn7 niri[508]:     1: Unsupported pixel format: DrmFourcc(AB24)
ноя 15 19:37:20 dn7 niri[508]: 2024-11-15T19:37:20.300862Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_ENUM in glBufferData(invalid usage: GL_STREAM_READ)
ноя 15 19:37:20 dn7 niri[508]: 2024-11-15T19:37:20.300922Z ERROR smithay::backend::renderer::gles: [GL] GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access)
ноя 15 19:37:20 dn7 niri[508]: 2024-11-15T19:37:20.300949Z  WARN niri::input: error taking screenshot: error rendering
ноя 15 19:37:20 dn7 niri[508]: Caused by:
ноя 15 19:37:20 dn7 niri[508]:     0: error copying framebuffer
ноя 15 19:37:20 dn7 niri[508]:     1: Unsupported pixel format: DrmFourcc(AB24)

Uhh, huh, not sure what this could be caused by. Looks like something on the Smithay side maybe.

@rediskap
Copy link
Author

So install this smithay?

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 15, 2024

Smithay is the library that niri uses. You don't need to do anything, I'm just saying the problem is likely in Smithay and not in niri itself.

@rediskap
Copy link
Author

How to fix? Do you have any thoughts? Or is my iron too old?

@rediskap
Copy link
Author

I tried to take a screenshot via grim+slurp, but it says "failed to copy output LVDS-1"On sway, it worked fine for me, but through the sway.conf settings. Please provide for this in the next release

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

I don't know how to fix this. Needs investigation from people who know about this part of the code.

I tried to take a screenshot via grim+slurp, but it says "failed to copy output LVDS-1"

Could you post niri output when you do it?

On sway, it worked fine for me, but through the sway.conf settings.

Which settings?

Also, finally, could you post the output of drm_info for both niri and sway?

@rediskap
Copy link
Author

Could you post niri output when you do it?

[redis@dn7 ~]$ grim -g "$(slurp)" failed to copy output LVDS-1

Also, finally, could you post the output of drm_info for both niri and sway?
niri:
[redis@dn7 ~]$ drm_info Node: /dev/dri/card0 ├───Driver: i915 (Intel Graphics) version 1.6.0 │ ├───DRM_CLIENT_CAP_STEREO_3D supported │ ├───DRM_CLIENT_CAP_UNIVERSAL_PLANES supported │ ├───DRM_CLIENT_CAP_ATOMIC supported │ ├───DRM_CLIENT_CAP_ASPECT_RATIO supported │ ├───DRM_CLIENT_CAP_WRITEBACK_CONNECTORS supported │ ├───DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT not supported │ ├───DRM_CAP_DUMB_BUFFER = 1 │ ├───DRM_CAP_VBLANK_HIGH_CRTC = 1 │ ├───DRM_CAP_DUMB_PREFERRED_DEPTH = 24 │ ├───DRM_CAP_DUMB_PREFER_SHADOW = 1 │ ├───DRM_CAP_PRIME = 3 │ ├───DRM_CAP_TIMESTAMP_MONOTONIC = 1 │ ├───DRM_CAP_ASYNC_PAGE_FLIP = 0 │ ├───DRM_CAP_CURSOR_WIDTH = 256 │ ├───DRM_CAP_CURSOR_HEIGHT = 256 │ ├───DRM_CAP_ADDFB2_MODIFIERS = 1 │ ├───DRM_CAP_PAGE_FLIP_TARGET = 0 │ ├───DRM_CAP_CRTC_IN_VBLANK_EVENT = 1 │ ├───DRM_CAP_SYNCOBJ = 1 │ ├───DRM_CAP_SYNCOBJ_TIMELINE = 1 │ └───DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP = 0 ├───Device: PCI 8086:2a42 Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller │ └───Available nodes: primary, render ├───Framebuffer size │ ├───Width: [0, 8192] │ └───Height: [0, 8192] ├───Connectors │ ├───Connector 0 │ │ ├───Object ID: 64 │ │ ├───Type: LVDS │ │ ├───Status: connected │ │ ├───Physical size: 340×190 mm │ │ ├───Subpixel: horizontal RGB │ │ ├───Encoders: {0} │ │ ├───Modes │ │ │ └───1366×[email protected] preferred driver nhsync nvsync │ │ └───Properties │ │ ├───"EDID" (immutable): blob = 86 │ │ ├───"DPMS": enum {On, Standby, Suspend, Off} = On │ │ ├───"link-status": enum {Good, Bad} = Good │ │ ├───"non-desktop" (immutable): range [0, 1] = 0 │ │ ├───"TILE" (immutable): blob = 0 │ │ ├───"CRTC_ID" (atomic): object CRTC = 47 │ │ └───"scaling mode": enum {Full, Center, Full aspect} = Full aspect │ ├───Connector 1 │ │ ├───Object ID: 68 │ │ ├───Type: VGA │ │ ├───Status: disconnected │ │ ├───Encoders: {1} │ │ └───Properties │ │ ├───"EDID" (immutable): blob = 0 │ │ ├───"DPMS": enum {On, Standby, Suspend, Off} = Off │ │ ├───"link-status": enum {Good, Bad} = Good │ │ ├───"non-desktop" (immutable): range [0, 1] = 0 │ │ ├───"TILE" (immutable): blob = 0 │ │ └───"CRTC_ID" (atomic): object CRTC = 0 │ ├───Connector 2 │ │ ├───Object ID: 71 │ │ ├───Type: HDMI-A │ │ ├───Status: disconnected │ │ ├───Encoders: {2} │ │ └───Properties │ │ ├───"EDID" (immutable): blob = 0 │ │ ├───"DPMS": enum {On, Standby, Suspend, Off} = Off │ │ ├───"link-status": enum {Good, Bad} = Good │ │ ├───"non-desktop" (immutable): range [0, 1] = 0 │ │ ├───"TILE" (immutable): blob = 0 │ │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ │ ├───"audio": enum {force-dvi, off, auto, on} = auto │ │ ├───"Broadcast RGB": enum {Automatic, Full, Limited 16:235} = Automatic │ │ ├───"aspect ratio": enum {Automatic, 4:3, 16:9} = Automatic │ │ ├───"Colorspace": enum {Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater} = Default │ │ └───"content type": enum {No Data, Graphics, Photo, Cinema, Game} = No Data │ ├───Connector 3 │ │ ├───Object ID: 78 │ │ ├───Type: DisplayPort │ │ ├───Status: disconnected │ │ ├───Encoders: {3} │ │ └───Properties │ │ ├───"EDID" (immutable): blob = 0 │ │ ├───"DPMS": enum {On, Standby, Suspend, Off} = Off │ │ ├───"link-status": enum {Good, Bad} = Good │ │ ├───"non-desktop" (immutable): range [0, 1] = 0 │ │ ├───"TILE" (immutable): blob = 0 │ │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ │ ├───"subconnector" (immutable): enum {Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native} = Unknown │ │ ├───"Broadcast RGB": enum {Automatic, Full, Limited 16:235} = Automatic │ │ ├───"max bpc": range [6, 10] = 10 │ │ └───"Colorspace": enum {Default, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, RGB_WIDE_FIXED, RGB_WIDE_FLOAT, BT601_YCC} = Default │ └───Connector 4 │ ├───Object ID: 83 │ ├───Type: DisplayPort │ ├───Status: disconnected │ ├───Encoders: {4} │ └───Properties │ ├───"EDID" (immutable): blob = 0 │ ├───"DPMS": enum {On, Standby, Suspend, Off} = Off │ ├───"link-status": enum {Good, Bad} = Good │ ├───"non-desktop" (immutable): range [0, 1] = 0 │ ├───"TILE" (immutable): blob = 0 │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ ├───"subconnector" (immutable): enum {Unknown, VGA, DVI-D, HDMI, DP, Wireless, Native} = Unknown │ ├───"Broadcast RGB": enum {Automatic, Full, Limited 16:235} = Automatic │ ├───"max bpc": range [6, 10] = 10 │ └───"Colorspace": enum {Default, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, RGB_WIDE_FIXED, RGB_WIDE_FLOAT, BT601_YCC} = Default ├───Encoders │ ├───Encoder 0 │ │ ├───Object ID: 65 │ │ ├───Type: LVDS │ │ ├───CRTCS: {0, 1} │ │ └───Clones: {0} │ ├───Encoder 1 │ │ ├───Object ID: 69 │ │ ├───Type: DAC │ │ ├───CRTCS: {0, 1} │ │ └───Clones: {1, 2} │ ├───Encoder 2 │ │ ├───Object ID: 70 │ │ ├───Type: TMDS │ │ ├───CRTCS: {0, 1} │ │ └───Clones: {1, 2} │ ├───Encoder 3 │ │ ├───Object ID: 77 │ │ ├───Type: TMDS │ │ ├───CRTCS: {0, 1} │ │ └───Clones: {3} │ └───Encoder 4 │ ├───Object ID: 82 │ ├───Type: TMDS │ ├───CRTCS: {0, 1} │ └───Clones: {4} ├───CRTCs │ ├───CRTC 0 │ │ ├───Object ID: 47 │ │ ├───Legacy info │ │ │ ├───Mode: 1366×[email protected] preferred driver nhsync nvsync │ │ │ └───Gamma size: 256 │ │ └───Properties │ │ ├───"ACTIVE" (atomic): range [0, 1] = 1 │ │ ├───"MODE_ID" (atomic): blob = 87 │ │ │ └───1366×[email protected] preferred driver nhsync nvsync │ │ ├───"OUT_FENCE_PTR" (atomic): range [0, UINT64_MAX] = 0 │ │ ├───"VRR_ENABLED": range [0, 1] = 0 │ │ ├───"GAMMA_LUT": blob = 0 │ │ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 129 │ └───CRTC 1 │ ├───Object ID: 63 │ ├───Legacy info │ │ └───Gamma size: 256 │ └───Properties │ ├───"ACTIVE" (atomic): range [0, 1] = 0 │ ├───"MODE_ID" (atomic): blob = 0 │ ├───"OUT_FENCE_PTR" (atomic): range [0, UINT64_MAX] = 0 │ ├───"VRR_ENABLED": range [0, 1] = 0 │ ├───"GAMMA_LUT": blob = 0 │ └───"GAMMA_LUT_SIZE" (immutable): range [0, UINT32_MAX] = 129 └───Planes ├───Plane 0 │ ├───Object ID: 32 │ ├───CRTCs: {0} │ ├───Legacy info │ │ ├───FB ID: 88 │ │ │ ├───Object ID: 88 │ │ │ ├───Size: 1366×768 │ │ │ ├───Format: XRGB8888 (0x34325258) │ │ │ ├───Modifier: I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ │ └───Planes: │ │ │ └───Plane 0: offset = 0, pitch = 5632 bytes │ │ └───Formats: │ │ ├───C8 (0x20203843) │ │ ├───RGB565 (0x36314752) │ │ ├───XRGB8888 (0x34325258) │ │ ├───XBGR8888 (0x34324258) │ │ ├───XRGB2101010 (0x30335258) │ │ ├───XBGR2101010 (0x30334258) │ │ └───XBGR16161616F (0x48344258) │ └───Properties │ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Primary │ ├───"FB_ID" (atomic): object framebuffer = 88 │ │ ├───Object ID: 88 │ │ ├───Size: 1366×768 │ │ ├───Format: XRGB8888 (0x34325258) │ │ ├───Modifier: I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ └───Planes: │ │ └───Plane 0: offset = 0, pitch = 5632 bytes │ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 │ ├───"CRTC_ID" (atomic): object CRTC = 47 │ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 1366 │ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 768 │ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 1366 │ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 768 │ ├───"IN_FORMATS" (immutable): blob = 33 │ │ ├───I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ │ ├───C8 (0x20203843) │ │ │ ├───RGB565 (0x36314752) │ │ │ ├───XRGB8888 (0x34325258) │ │ │ ├───XBGR8888 (0x34324258) │ │ │ ├───XRGB2101010 (0x30335258) │ │ │ ├───XBGR2101010 (0x30334258) │ │ │ └───XBGR16161616F (0x48344258) │ │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ ├───C8 (0x20203843) │ │ ├───RGB565 (0x36314752) │ │ ├───XRGB8888 (0x34325258) │ │ ├───XBGR8888 (0x34324258) │ │ ├───XRGB2101010 (0x30335258) │ │ ├───XBGR2101010 (0x30334258) │ │ └───XBGR16161616F (0x48344258) │ ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) │ └───"zpos" (immutable): range [0, 0] = 0 ├───Plane 1 │ ├───Object ID: 36 │ ├───CRTCs: {0} │ ├───Legacy info │ │ ├───FB ID: 0 │ │ └───Formats: │ │ ├───XRGB8888 (0x34325258) │ │ ├───YUYV (0x56595559) │ │ ├───YVYU (0x55595659) │ │ ├───UYVY (0x59565955) │ │ └───VYUY (0x59555956) │ └───Properties │ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Overlay │ ├───"FB_ID" (atomic): object framebuffer = 0 │ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0 │ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0 │ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0 │ ├───"IN_FORMATS" (immutable): blob = 37 │ │ ├───I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ │ ├───XRGB8888 (0x34325258) │ │ │ ├───YUYV (0x56595559) │ │ │ ├───YVYU (0x55595659) │ │ │ ├───UYVY (0x59565955) │ │ │ └───VYUY (0x59555956) │ │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ ├───XRGB8888 (0x34325258) │ │ ├───YUYV (0x56595559) │ │ ├───YVYU (0x55595659) │ │ ├───UYVY (0x59565955) │ │ └───VYUY (0x59555956) │ ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) │ ├───"COLOR_ENCODING": enum {ITU-R BT.601 YCbCr, ITU-R BT.709 YCbCr} = ITU-R BT.709 YCbCr │ ├───"COLOR_RANGE": enum {YCbCr limited range, YCbCr full range} = YCbCr limited range │ └───"zpos" (immutable): range [1, 1] = 1 ├───Plane 2 │ ├───Object ID: 42 │ ├───CRTCs: {0} │ ├───Legacy info │ │ ├───FB ID: 91 │ │ │ ├───Object ID: 91 │ │ │ ├───Size: 64×64 │ │ │ ├───Format: ARGB8888 (0x34325241) │ │ │ ├───Modifier: DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ │ └───Planes: │ │ │ └───Plane 0: offset = 0, pitch = 256 bytes │ │ └───Formats: │ │ └───ARGB8888 (0x34325241) │ └───Properties │ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Cursor │ ├───"FB_ID" (atomic): object framebuffer = 91 │ │ ├───Object ID: 91 │ │ ├───Size: 64×64 │ │ ├───Format: ARGB8888 (0x34325241) │ │ ├───Modifier: DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ └───Planes: │ │ └───Plane 0: offset = 0, pitch = 256 bytes │ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 │ ├───"CRTC_ID" (atomic): object CRTC = 47 │ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 517 │ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 554 │ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 64 │ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 64 │ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 64 │ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 64 │ ├───"IN_FORMATS" (immutable): blob = 43 │ │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ └───ARGB8888 (0x34325241) │ ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) │ ├───"SIZE_HINTS" (immutable): blob = 45 │ │ ├───64×64 │ │ ├───128×128 │ │ └───256×256 │ └───"zpos" (immutable): range [2, 2] = 2 ├───Plane 3 │ ├───Object ID: 48 │ ├───CRTCs: {1} │ ├───Legacy info │ │ ├───FB ID: 0 │ │ └───Formats: │ │ ├───C8 (0x20203843) │ │ ├───RGB565 (0x36314752) │ │ ├───XRGB8888 (0x34325258) │ │ ├───XBGR8888 (0x34324258) │ │ ├───XRGB2101010 (0x30335258) │ │ ├───XBGR2101010 (0x30334258) │ │ └───XBGR16161616F (0x48344258) │ └───Properties │ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Primary │ ├───"FB_ID" (atomic): object framebuffer = 0 │ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0 │ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0 │ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0 │ ├───"IN_FORMATS" (immutable): blob = 49 │ │ ├───I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ │ ├───C8 (0x20203843) │ │ │ ├───RGB565 (0x36314752) │ │ │ ├───XRGB8888 (0x34325258) │ │ │ ├───XBGR8888 (0x34324258) │ │ │ ├───XRGB2101010 (0x30335258) │ │ │ ├───XBGR2101010 (0x30334258) │ │ │ └───XBGR16161616F (0x48344258) │ │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ ├───C8 (0x20203843) │ │ ├───RGB565 (0x36314752) │ │ ├───XRGB8888 (0x34325258) │ │ ├───XBGR8888 (0x34324258) │ │ ├───XRGB2101010 (0x30335258) │ │ ├───XBGR2101010 (0x30334258) │ │ └───XBGR16161616F (0x48344258) │ ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) │ └───"zpos" (immutable): range [0, 0] = 0 ├───Plane 4 │ ├───Object ID: 52 │ ├───CRTCs: {1} │ ├───Legacy info │ │ ├───FB ID: 0 │ │ └───Formats: │ │ ├───XRGB8888 (0x34325258) │ │ ├───YUYV (0x56595559) │ │ ├───YVYU (0x55595659) │ │ ├───UYVY (0x59565955) │ │ └───VYUY (0x59555956) │ └───Properties │ ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Overlay │ ├───"FB_ID" (atomic): object framebuffer = 0 │ ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 │ ├───"CRTC_ID" (atomic): object CRTC = 0 │ ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0 │ ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0 │ ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0 │ ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0 │ ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0 │ ├───"IN_FORMATS" (immutable): blob = 53 │ │ ├───I915_FORMAT_MOD_X_TILED (0x0100000000000001) │ │ │ ├───XRGB8888 (0x34325258) │ │ │ ├───YUYV (0x56595559) │ │ │ ├───YVYU (0x55595659) │ │ │ ├───UYVY (0x59565955) │ │ │ └───VYUY (0x59555956) │ │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ │ ├───XRGB8888 (0x34325258) │ │ ├───YUYV (0x56595559) │ │ ├───YVYU (0x55595659) │ │ ├───UYVY (0x59565955) │ │ └───VYUY (0x59555956) │ ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) │ ├───"COLOR_ENCODING": enum {ITU-R BT.601 YCbCr, ITU-R BT.709 YCbCr} = ITU-R BT.709 YCbCr │ ├───"COLOR_RANGE": enum {YCbCr limited range, YCbCr full range} = YCbCr limited range │ └───"zpos" (immutable): range [1, 1] = 1 └───Plane 5 ├───Object ID: 58 ├───CRTCs: {1} ├───Legacy info │ ├───FB ID: 0 │ └───Formats: │ └───ARGB8888 (0x34325241) └───Properties ├───"type" (immutable): enum {Overlay, Primary, Cursor} = Cursor ├───"FB_ID" (atomic): object framebuffer = 0 ├───"IN_FENCE_FD" (atomic): srange [-1, INT32_MAX] = -1 ├───"CRTC_ID" (atomic): object CRTC = 0 ├───"CRTC_X" (atomic): srange [INT32_MIN, INT32_MAX] = 0 ├───"CRTC_Y" (atomic): srange [INT32_MIN, INT32_MAX] = 0 ├───"CRTC_W" (atomic): range [0, INT32_MAX] = 0 ├───"CRTC_H" (atomic): range [0, INT32_MAX] = 0 ├───"SRC_X" (atomic): range [0, UINT32_MAX] = 0 ├───"SRC_Y" (atomic): range [0, UINT32_MAX] = 0 ├───"SRC_W" (atomic): range [0, UINT32_MAX] = 0 ├───"SRC_H" (atomic): range [0, UINT32_MAX] = 0 ├───"IN_FORMATS" (immutable): blob = 59 │ └───DRM_FORMAT_MOD_LINEAR (0x0000000000000000) │ └───ARGB8888 (0x34325241) ├───"rotation": bitmask {rotate-0, rotate-180} = (rotate-0) ├───"SIZE_HINTS" (immutable): blob = 61 │ ├───64×64 │ ├───128×128 │ └───256×256 └───"zpos" (immutable): range [2, 2] = 2

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Please attach as files not like this

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Also, niri output, not grim output. The journalctl --user-unit=niri -eb

@rediskap
Copy link
Author

Пожалуйста, прикрепите файлы, отличные от этого.
drm_info.txt

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Это файл от niri или от sway? Нужны оба, чтобы я мог сравнить. Ну и другая инфа, про которую писал выше. Не обещаю, что смогу извлечь из этого что-то полезное, но лишним не будет.

@rediskap
Copy link
Author

Кроме того, выход нири, а не мрачный выход. journalctl --user-unit=niri -eb

ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.147145Z ERROR smithay::backend::renderer ::gles: [GL] GL_INVALID_ENUM in glBufferData(invalid usage: GL_STREAM_READ) ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.148043Z ERROR smithay::backend::renderer ::gles: [GL] GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access) ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.148125Z WARN niri::handlers: error rend ering for screencopy: error rendering to screencopy shm buffer ноя 18 08:55:26 dn7 niri[520]: Caused by: ноя 18 08:55:26 dn7 niri[520]: 0: error copying framebuffer ноя 18 08:55:26 dn7 niri[520]: 1: Unsupported pixel format: DrmFourcc(XR24)

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Многострочный вывод на гитхабе надо в тройной апостроф:
```
здесь вывод
```

@rediskap
Copy link
Author

Это файл от niri или от sway?

niri
About the sway: It was last six months ago, now the sway is not installed. I can try to install and send it to you. 20-30 minutes

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Можно писать по-русски, чтобы не коверкать переводчиком, я понимаю.

About the sway: It was last six months ago, now the sway is not installed. I can try to install and send it to you. 20-30 minutes

Ок

@rediskap
Copy link
Author

Многострочный вывод на гитхабе надо в тройной апостроф:

ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.147145Z ERROR smithay::backend::renderer
::gles: [GL] GL_INVALID_ENUM in glBufferData(invalid usage: GL_STREAM_READ)
ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.148043Z ERROR smithay::backend::renderer
::gles: [GL] GL_INVALID_OPERATION in glReadPixels(out of bounds PBO access)
ноя 18 08:55:26 dn7 niri[520]: 2024-11-18T08:55:26.148125Z  WARN niri::handlers: error rend
ering for screencopy: error rendering to screencopy shm buffer
ноя 18 08:55:26 dn7 niri[520]: Caused by:
ноя 18 08:55:26 dn7 niri[520]:     0: error copying framebuffer
ноя 18 08:55:26 dn7 niri[520]:     1: Unsupported pixel format: DrmFourcc(XR24)

@rediskap
Copy link
Author

Можно писать по-русски, чтобы не коверкать переводчиком, я понимаю.

o!!! )))

@rediskap
Copy link
Author

Это файл от niri или от sway?

вот от свай
drm_infosway.txt

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Хм, ну вроде не сильно отличается. На sway работает grim?

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 18, 2024

Можно ещё файлом прицепить вывод eglinfo под niri?

@rediskap
Copy link
Author

Хм, ну вроде не сильно отличается. На sway работает grim?

работает. Может я в конфиге чо та не то прописал? я щас заодно и конфиг перешлю

@rediskap
Copy link
Author

Можно ещё файлом прицепить вывод eglinfo под niri?

egl.txt
config.txt

@rediskap
Copy link
Author

А не связаны ли мои мучения с Интеловской видео картой? Например в Hyprland у меня совсем не работает. Может какой то умный и другой драйвер нужен. Вот в Генту вики есть немного обэтой проблеме: https://wiki.gentoo.org/wiki/Hyprland#:~:text=authentication%2Dagent%2D1-,Using%20Vulkan,-Warning%0ASince%20the

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 20, 2024

Вот это даже не знаю. Должен смотреть кто-то, кто разбирается

@rediskap
Copy link
Author

rediskap commented Nov 20, 2024

ну капец ) скрины работают везде!!! Sway, i3, xfce, gnome, KDE как на иксах , так и на вайланде! В niri не работают! Программы и механизмы одинаковые, результаты разные! Где то недоработка , именно в niri!!

@rediskap
Copy link
Author

20241119_15h30m55s_grim
20241120_17h40m43s_grim
20241120_17h40m48s_grim

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 20, 2024

Увы и ах. Я всё же подозреваю, что проблема в Smithay (библиотека, которую использует niri, в том числе для компирования кадра с GPU на CPU). Но нужно, чтобы кто-то посмотрел, кто шарит.

@rediskap
Copy link
Author

Но нужно, чтобы кто-то посмотрел, кто шарит.

Вы уж пожалуйста там напишите или скажите , кто там этим занимается, пусть они проработают этот баг!

@rediskap
Copy link
Author

а вообще какая команда или пакет для создания скриншота?

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 23, 2024

В смысле?

@rediskap
Copy link
Author

В смысле?

ну какой пакет отвечает за создание скрина? или какая команда? чтобы вывод посмотреть

@YaLTeR
Copy link
Owner

YaLTeR commented Nov 23, 2024

Каждый композитор сам реализует, там нет специальной команды. Когда в niri делаешь скриншот встроенным интерфейсом, это почти тот же самый код, как когда запускаешь grim в niri. Так что можно делать любым образом и смотреть лог niri.

@rediskap
Copy link
Author

Пока в свае настроил плаванье окон по дефалту, но буду следить и ждать , когда исправят баги на нири )
20241125_19h58m40s_grim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants