You are not logged in.

#1 2024-03-12 11:35:10

cMard
Member
Registered: 2024-03-12
Posts: 5

Laggy monitors on hyprland

I want to use TV as my second monitor to my laptop (main monitor is still laptop's original). So i wrote a basic configuration for that and connected TV using HDMI:

monitor=eDP-1,1920x1080@144,0x0,1.0
monitor=HDMI-A-1,3840x2160@30,3840x2160,1.0

It works ok, except both monitors are laggy. TV is always lagging and laptop monitor is lagging when opening and changing between windows.

Here's system info:

OS: Arch Linux x86_64 
Host: ASUS TUF Dash F15 FX516PE_FX516PE 1.0 
Kernel: 6.7.6-arch1-1 
Resolution: 1920x1080(eDP-1), 3840x2160(HDMI-A-1) 
DE: Hyprland 
WM: sway 
CPU: 11th Gen Intel i5-11300H (8) @ 4.400GHz 
GPU: NVIDIA GeForce RTX 3050 Ti Mobile (primary)
GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]  (secondary)
Memory: 7638MiB 

output of `hyprctl monitors all`:

Monitor eDP-1 (ID 0):
        1920x1080@144.00101 at 0x0
        description: BOE 0x090F (eDP-1)
        make: BOE
        model: 0x090F
        serial: 
        active workspace: 1 (1)
        special workspace: 0 ()
        reserved: 0 68 0 0
        scale: 1.00
        transform: 0
        focused: yes
        dpmsStatus: 1
        vrr: 0
        activelyTearing: false

Monitor HDMI-A-1 (ID 1):
        3840x2160@30.00000 at 3840x2160
        description: Samsung Electric Company SAMSUNG 0x01000E00 (HDMI-A-1)
        make: Samsung Electric Company
        model: SAMSUNG
        serial: 0x01000E00
        active workspace: 3 (3)
        special workspace: 0 ()
        reserved: 0 68 0 0
        scale: 1.00
        transform: 0
        focused: no
        dpmsStatus: 1
        vrr: 0
        activelyTearing: false

env variables on hyprland config:

# Some default env vars.
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct

# For nvidia gpu
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1

Last edited by cMard (2024-03-12 11:36:52)

Offline

#2 2024-03-12 15:54:07

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Laggy monitors on hyprland

for OUT in /sys/class/drm/card*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

But this is probably a reverse prime sync issue (ie. the eDP is on the intel chip and HDMI on the nvidia one)?
How does it behave if you run hyprland on the intel chip?

Offline

#3 2024-03-13 10:33:51

cMard
Member
Registered: 2024-03-12
Posts: 5

Re: Laggy monitors on hyprland

seth wrote:
for OUT in /sys/class/drm/card*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

But this is probably a reverse prime sync issue (ie. the eDP is on the intel chip and HDMI on the nvidia one)?
How does it behave if you run hyprland on the intel chip?

Here's the output of the program you gave to me:

/sys/class/drm/card1
/sys/class/drm/card1/edid: No such file or directory
=================
/sys/class/drm/card1-HDMI-A-1
edid-decode (hex):

00 ff ff ff ff ff ff 00 4c 2d b4 71 00 0e 00 01
01 1f 01 03 80 5f 36 78 0a a8 33 ab 50 45 a5 27
0d 48 48 bd ef 80 71 4f 81 c0 81 00 81 80 95 00
a9 c0 b3 00 d1 c0 04 74 00 30 f2 70 5a 80 b0 58
8a 00 50 1d 74 00 00 1e 56 5e 00 a0 a0 a0 29 50
30 20 35 00 50 1d 74 00 00 1a 00 00 00 fd 00 18
4b 0f 51 1e 00 0a 20 20 20 20 20 20 00 00 00 fc
00 53 41 4d 53 55 4e 47 0a 20 20 20 20 20 01 ba

02 03 51 f0 52 5f 10 1f 04 13 05 14 20 21 22 5d
5e 62 64 07 16 03 12 2f 0f 57 07 15 07 50 57 07
00 67 54 00 09 07 07 83 2f 00 00 e2 00 4f e3 05
03 01 6e 03 0c 00 20 00 b8 3c 20 00 80 01 02 03
04 e3 06 0d 01 e5 0e 60 61 65 66 e5 01 8b 84 90
01 02 3a 80 18 71 38 2d 40 58 2c 45 00 50 1d 74
00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a4

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: SAM
    Model: 29108
    Serial Number: 16780800 (0x01000e00)
    Made in: week 1 of 2021
  Basic Display Parameters & Features:
    Digital display
    Maximum image size: 95 cm x 54 cm
    Gamma: 2.20
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.6699, 0.3144
    Green: 0.2714, 0.6445
    Blue : 0.1523, 0.0537
    White: 0.2812, 0.2841
  Established Timings I & II:
    IBM     :   720x400    70.081663 Hz   9:5     31.467 kHz     28.320000 MHz
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    Apple   :   640x480    66.666667 Hz   4:3     35.000 kHz     30.240000 MHz
    DMT 0x05:   640x480    72.808802 Hz   4:3     37.861 kHz     31.500000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0a:   800x600    72.187572 Hz   4:3     48.077 kHz     50.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    Apple   :   832x624    74.551266 Hz   4:3     49.726 kHz     57.284000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x11:  1024x768    70.069359 Hz   4:3     56.476 kHz     75.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
    DMT 0x24:  1280x1024   75.024675 Hz   5:4     79.976 kHz    135.000000 MHz
    Apple   :  1152x870    75.061550 Hz 192:145   68.681 kHz    100.000000 MHz
  Standard Timings:
    DMT 0x15:  1152x864    75.000000 Hz   4:3     67.500 kHz    108.000000 MHz
    DMT 0x55:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    DMT 0x1c:  1280x800    59.810326 Hz  16:10    49.702 kHz     83.500000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    DMT 0x53:  1600x900    60.000000 Hz  16:9     60.000 kHz    108.000000 MHz (RB)
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
    DMT 0x52:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
  Detailed Timing Descriptors:
    DTD 1:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz (1872 mm x 1053 mm)
                 Hfront  176 Hsync  88 Hback  296 Hpol P
                 Vfront    8 Vsync  10 Vback   72 Vpol P
    DTD 2:  2560x1440   59.950550 Hz  16:9     88.787 kHz    241.500000 MHz (1872 mm x 1053 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   33 Vpol N
    Display Range Limits:
      Monitor ranges (GTF): 24-75 Hz V, 15-81 kHz H, max dotclock 300 MHz
    Display Product Name: 'SAMSUNG'
  Extension blocks: 1
Checksum: 0xba

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Underscans IT Video Formats by default
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 0
  Video Data Block:
    VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
    VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz
    VIC   4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    VIC  19:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz
    VIC   5:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC  20:  1920x1080i  50.000000 Hz  16:9     28.125 kHz     74.250000 MHz
    VIC  32:  1920x1080   24.000000 Hz  16:9     27.000 kHz     74.250000 MHz
    VIC  33:  1920x1080   25.000000 Hz  16:9     28.125 kHz     74.250000 MHz
    VIC  34:  1920x1080   30.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC  93:  3840x2160   24.000000 Hz  16:9     54.000 kHz    297.000000 MHz
    VIC  94:  3840x2160   25.000000 Hz  16:9     56.250 kHz    297.000000 MHz
    VIC  98:  4096x2160   24.000000 Hz 256:135   54.000 kHz    297.000000 MHz
    VIC 100:  4096x2160   30.000000 Hz 256:135   67.500 kHz    297.000000 MHz
    VIC   7:  1440x480i   59.940060 Hz  16:9     15.734 kHz     27.000000 MHz
    VIC  22:  1440x576i   50.000000 Hz  16:9     15.625 kHz     27.000000 MHz
    VIC   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
  Audio Data Block:
    Linear PCM:
      Max channels: 8
      Supported sample rates (kHz): 192 96 48 44.1 32
      Supported sample sizes (bits): 24 20 16
    AC-3:
      Max channels: 6
      Supported sample rates (kHz): 48 44.1 32
      Maximum bit rate: 640 kb/s
    Enhanced AC-3 (DD+):
      Max channels: 8
      Supported sample rates (kHz): 48 44.1 32
    MAT (MLP):
      Max channels: 8
      Supported sample rates (kHz): 192 96 48
      Supports only Dolby TrueHD
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
    LFE1 - Low Frequency Effects 1
    FC - Front Center
    BL/BR - Back Left/Right
    FLc/FRc - Front Left/Right of Center
  Video Capability Data Block:
    YCbCr quantization: No Data
    RGB quantization: Selectable (via AVI Q)
    PT scan behavior: No Data
    IT scan behavior: Supports both over- and underscan
    CE scan behavior: Supports both over- and underscan
  Colorimetry Data Block:
    xvYCC601
    xvYCC709
    Gamut Boundary Description Metadata Profile P0
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 2.0.0.0
    Supports_AI
    DC_36bit
    DC_30bit
    DC_Y444
    Maximum TMDS clock: 300 MHz
    Extended HDMI video details:
      HDMI VICs:
        HDMI VIC 1:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
        HDMI VIC 2:  3840x2160   25.000000 Hz  16:9     56.250 kHz    297.000000 MHz
        HDMI VIC 3:  3840x2160   24.000000 Hz  16:9     54.000 kHz    297.000000 MHz
        HDMI VIC 4:  4096x2160   24.000000 Hz 256:135   54.000 kHz    297.000000 MHz
  HDR Static Metadata Data Block:
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      SMPTE ST2084
      Hybrid Log-Gamma
    Supported static metadata descriptors:
      Static metadata type 1
  YCbCr 4:2:0 Video Data Block:
    VIC  96:  3840x2160   50.000000 Hz  16:9    112.500 kHz    594.000000 MHz
    VIC  97:  3840x2160   60.000000 Hz  16:9    135.000 kHz    594.000000 MHz
    VIC 101:  4096x2160   50.000000 Hz 256:135  112.500 kHz    594.000000 MHz
    VIC 102:  4096x2160   60.000000 Hz 256:135  135.000 kHz    594.000000 MHz
  Vendor-Specific Video Data Block (HDR10+), OUI 90-84-8B:
    Application Version: 1
    Full Frame Peak Luminance Index: 0
    Peak Luminance Index: 0
  Detailed Timing Descriptors:
    DTD 3:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1872 mm x 1053 mm)
                 Hfront   88 Hsync  44 Hback  148 Hpol P
                 Vfront    4 Vsync   5 Vback   36 Vpol P
Checksum: 0xa4  Unused space in Extension Block: 28 bytes
=================
/sys/class/drm/card2
/sys/class/drm/card2/edid: No such file or directory
=================
/sys/class/drm/card2-DP-1
EDID of '/sys/class/drm/card2-DP-1/edid' was empty.
=================
/sys/class/drm/card2-DP-2
EDID of '/sys/class/drm/card2-DP-2/edid' was empty.
=================
/sys/class/drm/card2-eDP-1
edid-decode (hex):

00 ff ff ff ff ff ff 00 09 e5 0f 09 00 00 00 00
02 1e 01 04 a5 22 13 78 03 95 b5 96 5d 5a 92 29
1e 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 88 91 80 18 71 38 60 40 30 20
36 00 58 c2 10 00 00 1a a4 3c 80 18 71 38 60 40
30 20 36 00 58 c2 10 00 00 1a 00 00 00 fd 00 30
90 a9 a9 26 01 0a 20 20 20 20 20 20 00 00 00 fe
00 4e 56 31 35 36 46 48 4d 2d 4e 58 33 0a 00 ea

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: BOE
    Model: 2319
    Made in: week 2 of 2020
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 8
    DisplayPort interface
    Maximum image size: 34 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
    Display supports continuous frequencies
  Color Characteristics:
    Red  : 0.5878, 0.3642
    Green: 0.3525, 0.5712
    Blue : 0.1621, 0.1201
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  1920x1080  144.001237 Hz  16:9    169.345 kHz    372.560000 MHz (344 mm x 194 mm)
                 Hfront   48 Hsync  32 Hback  200 Hpol P
                 Vfront    3 Vsync   6 Vback   87 Vpol N
    DTD 2:  1920x1080   60.003092 Hz  16:9     70.564 kHz    155.240000 MHz (344 mm x 194 mm)
                 Hfront   48 Hsync  32 Hback  200 Hpol P
                 Vfront    3 Vsync   6 Vback   87 Vpol N
    Display Range Limits:
      Monitor ranges (Range Limits Only): 48-144 Hz V, 169-169 kHz H, max dotclock 380 MHz
    Alphanumeric Data String: 'NV156FHM-NX3'
Checksum: 0xea
=================
/sys/class/drm/card2-HDMI-A-2
EDID of '/sys/class/drm/card2-HDMI-A-2/edid' was empty.
=================

I think both monitors are using NVIDIA Gpu:

$ glxinfo|grep -E "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2

Last edited by cMard (2024-03-13 11:04:13)

Offline

#4 2024-03-13 13:17:29

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Laggy monitors on hyprland

/sys/class/drm/card2-eDP-1 has the BOE internal display
/sys/class/drm/card1-HDMI-A-1 has the SAM(sung) HDMI attached output

You're running on nvidia, the internal display is attached to the intel chip on on to of the there's probably the simpledrm device.
Get rid of the latter, T enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter (modprobe.conf won't do!) and test

seth wrote:

How does it behave if you run hyprland on the intel chip?

Offline

#5 2024-03-14 10:25:04

cMard
Member
Registered: 2024-03-12
Posts: 5

Re: Laggy monitors on hyprland

seth wrote:

/sys/class/drm/card2-eDP-1 has the BOE internal display
/sys/class/drm/card1-HDMI-A-1 has the SAM(sung) HDMI attached output

You're running on nvidia, the internal display is attached to the intel chip on on to of the there's probably the simpledrm device.
Get rid of the latter, T enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter (modprobe.conf won't do!) and test

seth wrote:

How does it behave if you run hyprland on the intel chip?

Looks like it's already enabled

$ sudo cat /sys/module/nvidia_drm/parameters/modeset
[sudo] password for cmard: 
Y

`fbdev=1` option does not change anything.
Glitch remains when ran with intel cpu.

Last edited by cMard (2024-03-14 10:30:50)

Offline

#6 2024-03-14 17:00:29

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: Laggy monitors on hyprland

That's insignifcant itr, you /have/ to use the kernel parameter to get rid of the simpledrm device.
fbdev=1 would be rather nvidia_drm.fbdev=1 on the kernel commandline.

Do you have the same issues when using only one (the internal) monitor on the intel chip?
What if you run the samsung output at 1920x1080@60Hz (currently it's on 30Hz what might drag everything down)

Offline

Board footer

Powered by FluxBB