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
19.71k stars 836 forks source link

Touchscreen not working after updating to 0.42.0 #7231

Closed DeckedSpring67 closed 1 month ago

DeckedSpring67 commented 1 month ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259 (props: bump version to 0.42.0). Date: Wed Aug 7 21:17:10 2024 Tag: v0.42.0, commits: 5069 flags: (if any) System Information: System name: Linux Node name: marco-x1g4 Release: 6.8.7-2-cachyos-echo Version: #1 SMP PREEMPT_DYNAMIC Sat, 20 Apr 2024 15:01:20 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02) (prog-if 00 [VGA controller]) os-release: NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/" SUPPORT_URL="https://www.gentoo.org/support/" BUG_REPORT_URL="https://bugs.gentoo.org/" VERSION_ID="2.15" plugins: hyprgrass by horriblename ver 0.7 ======Config-Start====== Config File: /home/marco/.config/hypr/hyprland.conf: Read Succeeded # # Please note not all available settings / options are set here. # For a full list, see the wiki # # Devices $touch = true $trans = 0 monitor=eDP-1,preferred,auto,1,transform,$trans monitor=DP-2,1920x1080@144.001007,0x1080,1, monitor=DP-1,1920x1080@144.001007,0x1080,1, #monitor=DP-2,1920x1080@144,0x1080,1, #monitor=DP-1,3840x2160@30,1920x0,1, #monitor=,preferred,auto,1,mirror,eDP-1 #monitor=eDP-1,disabled #monitor=DP-2,disabled $browser = brave $editor = kitty vim $explorer = dolphin $launcher = ~/.config/wofi/wofi.sh $launcher_alt = wofi --show=drun --allow-images $mod = SUPER $mod_shift = SUPER_SHIFT #$discord = discord debug:disable_logs = false exec-once = hyprctl setcursor 'Phinger Cursor Hypr' 24 #exec-once = hyprpm update && hyprpm reload -n exec-once = hyprpaper & exec-once = hyprctl plugin load /usr/lib64/libhyprgrass.so #PLUGIN #chromakey_enable = fullscreen:0 #source ~/.config/hypr/touch.conf env = QT_QPA_PLATFORMTHEME,kde env = bitdepth,10 # Slow app launch fix exec-once = dbus-update-activation-environment DISPLAY & exec-once = sleep 2 && gentoo-pipewire-launcher & exec-once = /usr/lib64/libexec/polkit-kde-authentication-agent-1 & exec-once = iio-hyprland & #exec-once = kwalletd5 & #exec-once = xdg-desktop-portal-hyprland & # Hyprgrass plugin:touch_gestures { # The default sensitivity is probably too low on tablet screens, # I recommend turning it up to 4.0 sensitivity = 4.0 # must be >= 3 workspace_swipe_fingers = 3 # switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers # and can be used at the same time # possible values: l, r, u, or d # to disable it set it to anything else # in milliseconds long_press_delay = 400 experimental { # send proper cancel events to windows instead of hacky touch_up events, # NOT recommended as it crashed a few times, once it's stabilized I'll make it the default send_cancel = 0 } } # Hyprgrass keybinds # swipe left from right edge #bind = , edge:r:l, workspace, +1 # swipe up from bottom edge bind = , edge:d:u, exec, ~/.config/waybar/toggle_keyboard.sh # swipe down with 4 fingers # NOTE: swipe events only trigger for finger count of >= 3 bind = , swipe:4:d, killactive bind = , swipe:4:u, fullscreen, # swipe diagonally left and down with 3 fingers # l (or r) must come before d and u #bind = , swipe:3:ld, exec, foot # tap with 3 fingers # NOTE: tap events only trigger for finger count of >= 3 bind = , tap:3, exec, $launcher bind = , tap:2, exec, ydotool click 0xC1 # longpress can trigger mouse binds: bindm = , longpress:2, movewindow bindm = , longpress:3, resizewindow # Idle configuration # #exec-once = swayidle -w timeout 300 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000' # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Input configuration # $accel = false input { kb_layout = eu kb_variant = kb_model = #kb_options = grp:caps_toggle,grp_led:caps,altwin:swap_alt_win,ctrl:rctrl_ralt kb_options = kb_rules = follow_mouse = 1 # 0|1|2|3 float_switch_override_focus = 2 force_no_accel=$accel touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } general { gaps_in = 3 gaps_out = 5 # border_size = 3 border_size = 3 col.active_border = rgba(ff5e81ac) #col.inactive_border = rgba(66333333) col.inactive_border = rgba(595959aa) layout = dwindle # master|dwindle apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse) } decoration { rounding = 20 dim_inactive = false drop_shadow = false } device { name = wacom-pen-and-multitouch-sensor-pen output = eDP-1 transform = $trans enabled = $touch } device { name = wacom-pen-and-multitouch-sensor-finger #output = eDP-1 transform = $trans enabled = $touch } gestures { workspace_swipe = true workspace_swipe_touch = false workspace_swipe_fingers = 3 workspace_swipe_create_new = true workspace_swipe_forever = true } # Blur for waybar #blurls = waybar animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more #bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = overshot, 0.13, 0.99, 0.29, 1.1 bezier = overshot, 0.13, 0.99, 0.29, 1.1 animation = windows, 1, 4, overshot, slide animation = windowsOut, 1, 5, default, popin 80% animation = border, 1, 5, default animation = fade, 1, 8, default animation = workspaces, 1, 6, overshot, slide #animation = windows, 1, 7, myBezier #animation = windowsOut, 1, 7, default, popin 80% #animation = fade, 1, 7, default #animation = border, 1, 10, default #animation = workspaces, 1, 6, default } # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more dwindle { no_gaps_when_only = false force_split = 0 special_scale_factor = 0.8 split_width_multiplier = 1.0 use_active_for_splits = true pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes } # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more master { no_gaps_when_only = false special_scale_factor = 0.8 } misc { #disable_autoreload = true disable_hyprland_logo = true always_follow_on_dnd = true layers_hog_keyboard_focus = true animate_manual_resizes = false enable_swallow = true swallow_regex = focus_on_activate = true vfr = true } #device:epic mouse V1 { # sensitivity = -0.5 #} binds { workspace_back_and_forth = 1 allow_workspace_cycles = 1 binde=,XF86AudioLowerVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ -5% binde=,XF86AudioRaiseVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ +5% # mute sound bind=,XF86AudioMute,exec,pactl set-sink-mute @DEFAULT_SINK@ toggle bind=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle binde=,XF86MonBrightnessUp, exec, light -A 5 binde=,XF86MonBrightnessDown, exec, light -U 5 # Screenshot a monitor bind = $mod, PRINT, exec, hyprshot -m output --clipboard-only # Screenshot a region bind = , PRINT, exec, hyprshot -m region --clipboard-only bindm = $mod, mouse:272, movewindow bindm = $mod, mouse:273, resizewindow bind = $mod, mouse_down, workspace, e-1 bind = $mod, mouse_up, workspace, e+1 # Kitty binds bind = $mod, RETURN, exec, kitty bind = $mod, T, exec, $term # Application binds bind = $mod, Q, killactive, bind = SUPER_SHIFT, Q, exec, hyprctl kill bind = $mod, E, exec, $explorer # Wofi and notification binds # bind = $mod, V, exec, pkill wofi || cliphist list | wofi --dmenu -p clippick -l top_right -x -15 -y 10 -n | cliphist decode | wl-copy bind = $mod, V, exec, pkill tofi || cliphist list | gamemoderun tofi -c ~/.config/tofi/tofi.clip.conf | cliphist decode | wl-copy bind = $mod, N, exec, swaync-client -t -sw bind = $mod, D, exec, pkill wofi || $launcher_alt #Resize binde=$mod,right,resizeactive,25 0 binde=$mod,left,resizeactive,-25 0 binde=$mod,up,resizeactive,0 -25 binde=$mod,down,resizeactive,0 25 # Other dispatchers bind = ALT, Tab, cyclenext bind = $mod_shift, F, fullscreen, bind = $mod, C, exec, hyprctl dispatch centerwindow none bind = $mod, P, pseudo, bind = $mod, f, togglefloating, bind = $mod_shift, G, togglegroup, bind = $mod, tab, changegroupactive, # Reload waybar bind = $mod_shift, R, exec, ~/.config/waybar/waybar.sh & # Logout screen, lock, exit bind = $mod, escape, exec, wlogout # Move window with $mod+ Shift + arrow keys # [↑] # [←] [↓] [→] bind = $mod_shift, h, movewindow, l bind = $mod_shift, l, movewindow, r bind = $mod_shift, k, movewindow, u bind = $mod_shift, j, movewindow, d # Move window focus with $mod+ arrow keys # [↑] # [←] [↓] [→] bind = $mod, h, movefocus, l bind = $mod, l, movefocus, r bind = $mod, k, movefocus, u bind = $mod, j, movefocus, d # Move To a workspaces bind = $mod, 1, workspace, 1 bind = $mod, 2, workspace, 2 bind = $mod, 3, workspace, 3 bind = $mod, 4, workspace, 4 bind = $mod, 5, workspace, 5 bind = $mod, 6, workspace, 6 bind = $mod, 7, workspace, 7 bind = $mod, 8, workspace, 8 bind = $mod, 9, workspace, 9 # Move windows between workspaces bind = $mod_shift, 1, movetoworkspacesilent, 1 bind = $mod_shift, 2, movetoworkspacesilent, 2 bind = $mod_shift, 3, movetoworkspacesilent, 3 bind = $mod_shift, 4, movetoworkspacesilent, 4 bind = $mod_shift, 5, movetoworkspacesilent, 5 bind = $mod_shift, 6, movetoworkspacesilent, 6 bind = $mod_shift, 7, movetoworkspacesilent, 7 bind = $mod_shift, 8, movetoworkspacesilent, 8 bind = $mod_shift, 9, movetoworkspacesilent, 9 # Special windows bind = $mod,Home,submap,passthru submap = passthru bind = $mod_shift,Home,submap,reset submap = reset bind = $mod,space,exec,~/.config/hypr/toggle_accel.sh bind = $mod,space, exec, ~/.config/hypr/touch.sh } #------------# exec-once = ~/.config/waybar/waybar.sh & exec-once = mako & exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" & # Float Necessary Windows windowrule=float,wofi windowrule=float,pavucontrol windowrulev2 = float,class:^()$,title:^(Picture in picture)$ windowrulev2 = float,class:^(brave)$,title:^(Save File)$ windowrulev2 = float,class:^(brave)$,title:^(Open File)$ windowrulev2 = float,class:^(LibreWolf)$,title:^(Picture-in-Picture)$ windowrulev2 = float,class:^(blueman-manager)$ windowrulev2 = float,class:^(xdg-desktop-portal-gtk)$ windowrulev2 = float,class:^(xdg-desktop-portal-kde)$ windowrulev2 = float,class:^(xdg-desktop-portal-hyprland)$ windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$ windowrulev2 = float,class:^(cachyos-hello)$ windowrulev2 = float,class:^(zenity)$ windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ # Increase the opacity windowrule=opacity 0.92,Thunar windowrule=opacity 0.92,Nautilus windowrule=opacity 0.96,discord windowrule=opacity 0.96,armcord windowrule=opacity 0.96,webcord #---------------# # windows rules # #---------------# #`hyprctl clients` get class、title... windowrule=float,title:^(Picture-in-Picture)$ windowrule=size 960 540,title:^(Picture-in-Picture)$ windowrule=move 25%-,title:^(Picture-in-Picture)$ windowrule=float,imv windowrule=move 25%-,imv windowrule=size 960 540,imv windowrule=float,mpv windowrule=move 25%-,mpv windowrule=size 960 540,mpv windowrule=float,danmufloat windowrule=move 25%-,danmufloat windowrule=pin,danmufloat windowrule=rounding 5,danmufloat windowrule=size 960 540,danmufloat windowrule=float,termfloat windowrule=move 25%-,termfloat windowrule=size 960 540,termfloat windowrule=rounding 5,termfloat windowrule=float,nemo windowrule=move 25%-,nemo windowrule=size 960 540,nemo windowrule=opacity 0.95,title:Telegram windowrule=opacity 0.95,title:QQ windowrule=opacity 0.95,title:NetEase Cloud Music Gtk4 windowrule=animation slide right,kitty windowrule=animation slide right,alacritty windowrule=float,ncmpcpp windowrule=move 25%-,ncmpcpp windowrule=size 960 540,ncmpcpp windowrule=noblur,^(firefox)$ windowrule=noblur,^(waybar)$ ======Config-End======== ```

Description

Updated from 0.41.2 to 0.42.0 and touchscreen is not working anymore, it looks like the input is being shoved to the top left of the screen instead of the actual position of the finger. Tablet works fine.

How to reproduce

Touch the screen, the input is incorrect

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/6ba31edd-cf97-4b07-8005-41109caeda23

vaxerski commented 1 month ago

update aquamarine