hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
20.34k stars 862 forks source link

Can't move cursor to another monitor + monitors shows no windows #6099

Open mora-unie-youer opened 4 months ago

mora-unie-youer commented 4 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch at commit de9798fcf9494eb082bd168175390c0d47b8478b (). Date: 2024-05-15 Tag: , commits: flags: (if any) System Information: System name: Linux Node name: sapphire Release: 6.8.6-zen1 Version: #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 GPU information: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] [1002:6fdf] (rev ef) (prog-if 00 [VGA controller]) 07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c8) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240512.2057814" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.05 (Uakari)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" plugins: ```

Bug or Regression?

Regression

Description

I have three monitors. One of them is connected to RX 580 GPU, two of them connected to Ryzen 5700G GPU. (maybe this will be helpful).

When Hyprland starts it has focus on the primary monitor (RX 580 one) and when I try to cross the borders of the monitor - cursor disappears (like there's empty space between monitors, but there's no).

Also when I try to switch to workspace on the monitor using hyprctl dispatch workspace, cursor also disappears, and no opened windows appear on the secondary monitor.

There's also my hyprctl monitors dump:

Monitor DVI-D-1 (ID 0):
    1920x1080@60.00000 at 1920x0
    description: Acer Technologies Acer H236HL LX1EE0064200
    make: Acer Technologies
    model: Acer H236HL
    serial: LX1EE0064200
    active workspace: 3 (3)
    special workspace: 0 ()
    reserved: 0 20 0 0
    scale: 1.00
    transform: 0
    focused: yes
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XRGB8888
    availableModes: 1920x1080@60.00Hz 1680x1050@59.88Hz 1280x1024@60.02Hz 1440x900@59.90Hz 1280x800@59.91Hz 1152x864@75.00Hz 1280x720@60.00Hz 1024x768@70.07Hz 1024x768@60.00Hz 800x600@60.32Hz 800x600@56.25Hz 640x480@66.67Hz 640x480@59.94Hz 720x400@70.08Hz

Monitor HDMI-A-2 (ID 1):
    1920x1080@60.00000 at 0x0
    description: BNQ BenQ G2255A B4C02350019
    make: BNQ
    model: BenQ G2255A
    serial: B4C02350019
    active workspace: 11 (11)
    special workspace: 0 ()
    reserved: 0 20 0 0
    scale: 1.00
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XRGB8888
    availableModes: 1920x1080@60.00Hz 1920x1080@60.00Hz 1920x1080@59.94Hz 1680x1050@59.88Hz 1600x900@60.00Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@60.00Hz 1280x800@59.91Hz 1152x864@75.00Hz 1280x720@60.00Hz 1280x720@60.00Hz 1280x720@59.94Hz 1024x768@75.03Hz 1024x768@60.00Hz 832x624@74.55Hz 800x600@75.00Hz 800x600@60.32Hz 720x480@60.00Hz 720x480@59.94Hz 720x480@59.94Hz 640x480@75.00Hz 640x480@60.00Hz 640x480@59.94Hz 720x400@70.08Hz

Monitor HDMI-A-3 (ID 2):
    1920x1080@60.00000 at 3840x0
    description: LG Electronics IPS224 210RAMM6K819
    make: LG Electronics
    model: IPS224
    serial: 210RAMM6K819
    active workspace: 21 (21)
    special workspace: 0 ()
    reserved: 0 20 0 0
    scale: 1.00
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false
    disabled: false
    currentFormat: XRGB8888
    availableModes: 1920x1080@60.00Hz 1680x1050@59.88Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@60.00Hz 1280x800@60.00Hz 1152x864@75.00Hz 1280x720@60.00Hz 1024x768@75.03Hz 1024x768@60.00Hz 800x600@75.00Hz 800x600@60.32Hz 640x480@75.00Hz 640x480@59.94Hz 720x400@70.08Hz

How to reproduce

a) Try to move cursor to the border b) Try to use hyprctl dispatch workspace or hyprsome workspace to change workspace

Crash reports, logs, images, videos

No response

vaxerski commented 4 months ago

you say this is a regression, bisect then please https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue

mora-unie-youer commented 4 months ago

Currently bisecting and found better explanation of what happens: when I hold mouse on the secondary monitors, they just freeze, and when I return cursor to primary monitor - they unfreeze and show updated screen

mora-unie-youer commented 4 months ago

Result of bisecting:

There are only 'skip'ped commits left to test.
The first bad commit could be any of:
8afdb8403bf71daf7e25bffbbdd87e0e3e61913c
448e3208cae4f19d48021572d50b9d29efc1d74b
f041d763ae1d5ec58682e3ff1fe3159ba9c95a49
019d4900cb132f2ff43fea49334712a12c282a14
f587c3e0ba92109302032f89321d94b5d0f89236
87173bd09daa4b56adabcfc72a29aec957cb8a13
a4f38a07d7578f0b06c09de7d04682e0aaddb12a
cbed4fa5ec1c7e5b383964ce5783eba6bbed7736
We cannot bisect more!

(I had to skip as commits built with an error, while I was using nix build, which is somewhat of perfect environment)

vaxerski commented 4 months ago

would somehow suggest https://github.com/hyprwm/Hyprland/commit/448e3208cae4f19d48021572d50b9d29efc1d74b

can you remove the wlr patch and try that?

mora-unie-youer commented 4 months ago

Tried to remove patch - it didn't fix the issue :^(

mora-unie-youer commented 4 months ago

Sorry for disinformation - removing the patch fixed the issue. It seems I forgot to reset the repo after building with the patch

vaxerski commented 4 months ago

can you try setting cursor:no_hardware_cursors to true then?

mora-unie-youer commented 4 months ago

It seems to fix the issue too

vaxerski commented 4 months ago

well, maybe before the patch wlroots would automatically revert to sw cursors then... Dunno what to say tbh, odd issue.

mora-unie-youer commented 4 months ago

Also I have some weird graphics glitches with my cursor - when cursor changes (for example I drag it between text and empty space a lot) it leaves small part of it as a trail. Tried to screenshot, but it seems that when there's another event, such as keyboard, glitches just go away.

mora-unie-youer commented 4 months ago

Glitches do not go away without that Nvidia patch, so I have no clue what's the reason

mora-unie-youer commented 4 months ago

https://github.com/hyprwm/Hyprland/assets/96782282/5700a5f4-9177-4e3d-bbbb-d7fb229b4e4a

vaxerski commented 4 months ago

looks like a thing we call a bug