Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

wayvnc normal key input not working

Open roodkcab opened this issue 10 months ago • 6 comments

Hyprland Version

System/Version info
Hyprland, built from branch  at commit fe7b748eb668136dd0558b7c8279bfcd7ab4d759 dirty (props: bump version to 0.39.1).
Date: Wed Apr 17 00:01:03 2024
Tag: v0.39.1, commits: 4460

flags: (if any)


System Information:
System name: Linux
Node name: nas
Release: 6.6.25-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 14:16:56 +0000


GPU information:
04:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41) (prog-if 00 [VGA controller])
17:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Bug or Regression?

Bug

Description

I'm using wayvnc, everything works fine except when press normal keys in kitty, it didn't work. video here. I tried to log keycode in CInputManager::onKeyboardKey, and noticed it indeed works fine. Tried to figureout why nothing got output on screen.

as you can see in this gif, I input 1,2,3 and log keycode.

WindowsTerminal_INxx8Snj5t

How to reproduce

I use such command to run Hyprland and wayvnc

WLR_BACKENDS=headless WLR_LIBINPUT_NO_DEVICES=1 /usr/local/bin/Hyprland
WAYLAND_DISPLAY=wayland-1 wayvnc -S /tmp/1.sock 0.0.0.0 5901

then launch vnc by VNCViewer

Crash reports, logs, images, videos

No response

roodkcab avatar Apr 25 '24 09:04 roodkcab

I open chromium with hyprctl and noticed mouse does't work neither. so I think the root cause of this problem is lack of focus object.

roodkcab avatar Apr 25 '24 14:04 roodkcab

maybe dup #1497

roodkcab avatar Apr 25 '24 14:04 roodkcab

maybe same #5482

roodkcab avatar Apr 25 '24 14:04 roodkcab

I think I'm seeing the same issue. Seems to be present on master as of two days ago.

Key combinations for launching kitty or exiting work and the highlight for window focus can follow the mouse but no events seem to reach applications.

Yarn avatar Apr 30 '24 19:04 Yarn

currently I use moonlight+sunshine with a launched hyprland with tty. Such approach use hardware attached to pc itself to solve the problem. I'll have a check on virtual device focus problem later.

roodkcab avatar May 03 '24 01:05 roodkcab

it looks like calling wlr_seat_set_capabilities(g_pCompositor->m_sSeat.seat, WL_SEAT_CAPABILITY_KEYBOARD | WL_SEAT_CAPABILITY_POINTER); gets things working (i just made it call this when the a key is pressed)

it looks like CInputManager::updateCapabilities() is never called in my setup

Yarn avatar May 04 '24 06:05 Yarn

The same thing happened to me. It looks like the device is created, but the keyboard can only pass shortcuts via wayvnc. I mean, if I press a key combination such as mod+return, it opens the terminal normally. But then I can't type any characters in the terminal.

# hyprctl devices
mice:
        Mouse at 57e8ccdd0fb0:
                cvirtualpointerv1resource
                        default speed: 0.00000


Keyboards:
        Keyboard at 57e8ccda52d0:
                cvirtualkeyboard
                        rules: r "", m "", l "us", v "", o ""
                        active keymap: English (US)
                        main: yes

Here is my system info.

Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).
Date: Sat May 4 15:42:32 2024
Tag: v0.40.0, commits: 4606

flags: (if any)


System Information:
System name: Linux
Node name: void0red-pc
Release: 6.9.3-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000


GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-S GT2 [UHD Graphics 630] [8086:9bc8] (rev 03) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

void0red avatar Jun 08 '24 12:06 void0red

can this be closed now?

vaxerski avatar Jun 08 '24 21:06 vaxerski

can this be closed now?

lgtm.

void0red avatar Jun 09 '24 02:06 void0red