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

Hyprland crashes when connected to hdmi on laptop #7929

Open
1 task done
Sarthak950 opened this issue Sep 27, 2024 · 1 comment
Open
1 task done

Hyprland crashes when connected to hdmi on laptop #7929

Sarthak950 opened this issue Sep 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Sarthak950
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

Hyprland, built from branch at commit 0f59473 (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)

System Information:
System name: Linux
Node name: archlinux
Release: 6.6.51-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 11:23:10 +0000

GPU information:
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (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

plugins:

======Config-Start======

Config File: /home/sarthak/.config/hypr/hyprland.conf: Read Succeeded

Setup monitorshypr

See https://wiki.hyprland.org/Configuring/Monitors/

monitor=,preferred,auto,auto

monitor=eDP-1, 1920x1080@60, 2560x360, 1,bitdepth, 12
monitor=HDMI-A-1, 2560x1440@144, 0x0, 1,bitdepth, 12

See https://wiki.hyprland.org/Configuring/Keywords/ for more

Execute your favorite apps at launch

exec-once = hyprctl setcursor Bibata-Modern-Classic 3
exec-once = ~/.config/hypr/xdg-portal-hyprland
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = waybar
exec-once = hypridle

exec-once = mpv --no-video ~/audio/12_3.mp3

exec-once = firefox-developer-edition

exec-once = ./scripts/pokemon.sh

exec-once = nmcli device wifi connect JioFiber_5G

exec = killall -q hyprpaper

exec = hyprpaper
exec = hyprshade on vibrance
exec-once = bluetoothctl power off

debug {
disable_logs = false
}

Source a file (multi-file configs)

source = ~/.config/hypr/myColors.conf

For all categories, see https://wiki.hyprland.org/Configuring/Variables/

input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =

scroll_factor = 1
follow_mouse = 1

touchpad {
  natural_scroll = yes
}

sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {

See https://wiki.hyprland.org/Configuring/Variables/ for more

gaps_in = 5
gaps_out = 10
border_size = 0

col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg

col.active_border=rgb(cdd6f4)

col.inactive_border = rgba(595959aa)

resize_on_border = true

col.active_border = rgb(44475a) rgb(bd93f9) 90deg

col.inactive_border = rgba(44475aaa)

col.group_border = rgba(282a36dd)

# col.group_border_active = rgb(bd93f9) rgb(44475a) 90deg

layout = dwindle

}

misc {
disable_hyprland_logo = no
}

decoration {

See https://wiki.hyprland.org/Configuring/Variables/ for more

blur {
enabled = true
size = 5
passes = 2
new_optimizations = on
}

rounding = 8
blurls = lockscreen

drop_shadow = yes
shadow_range = 4
shadow_render_power = 3

col.shadow = rgba(1a1a1aee)

col.shadow = rgba(1E202966)

}

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

animation = windows, 1, 5, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = fade, 1, 5, default
animation = workspaces, 1, 4, default

}

dwindle {

See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more

pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # you probably want this

smart_split =true

}

master {

See https://wiki.hyprland.org/Configuring/Master-Layout/ for more

new_is_master = true

}

gestures {

See https://wiki.hyprland.org/Configuring/Variables/ for more

workspace_swipe = on
}

Example per-device config

See https://wiki.hyprland.org/Configuring/Keywords/#executing for more

#device:epic mouse V1 {

sensitivity = -1.0

#}

Example windowrule v1

windowrule = float, ^(kitty)$

Example windowrule v2

windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

See https://wiki.hyprland.org/Configuring/Window-Rules/ for more

rules below would make the specific app transparent

windowrulev2 = opacity 1.0 1.0,class:^(neovide)$
windowrulev2 = opacity 0.8 0.8,class:^(kitty)$
windowrulev2 = opacity 0.8 0.8,class:^(Alacritty)$

windowrulev2 = opacity 0.8 0.8,class:^(chromium)$

                                                                                                                 windowrulev2 = opacity 0.95 0.95,class:^(Code)$
                                                                                                                                                          windowrulev2 = opacity 0.95 0.95,class:^(discord)$

windowrulev2 = opacity 0.95 0.95,class:^(Brave-browser)$

                                                                                                                                                                                                   windowrulev2 = opacity 0.9 0.9,class:^(whatsapp-for-linux)$
                                                                                                                                                                                                                                          windowrulev2 = opacity 0.98 0.98,class:^(org.telegram.desktop)$

make the apps to open on a specific window

                                                                                                                                                                                                                                                                                   windowrulev2 = workspaces 10, class:^(org.telegram.desktop)$
                                                                                                                                                                                                                                                                                                                         windowrulev2 = workspaces 10, class:^(discord)$

See https://wiki.hyprland.org/Configuring/Keywords/ for more

                                                                                                                                                                                                                                                                                                                                                               $mainMod = SUPER

Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more

bind = $mainMod, Return,exec , termite

bind = $mainMod, Return, exec, kitty -o font.size=2 #open the terminal

                                                                                                                                                                                                                                                                                                                                                               bind = $mainMod, Return, exec, alacritty #open the terminal
                                                                                                                                                                                                                                                                                                                                                               bind = $mainMod, Q, killactive, # close the active window

bind = $mainMod, L, exec, hyprlock # Lock the screen

bind = $mainMod, M, exec, wlogout --protocol layer-shell # show the logout window
bind = $mainMod SHIFT, E, exit, # Exit Hyprland all together no (force quit Hyprland)
bind = $mainMod, N, exec, neovide # Open the neovim gui
bind = $mainMod, E, exec, nemo # Show the graphical file browser
bind = $mainMod, V, togglefloating, # Allow a window to float
bind = $mainMod, Space, exec, wofi # Show the graphicall app launcher
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, T, togglesplit, # dwindle

bind = $mainMod, C, exec, hyprpicker -a | wl-copy # Show the color picker

Screenshot a window

bind = $mainMod, PRINT, exec, hyprshot -m window -o ~/Pictures/ScreenShots/ -f $(date "+%Y-%m-%d_%H-%M-%S%3N").png -zs

Screenshot a region

bind = , PRINT, exec, hyprshot -m region -o ~/Pictures/ScreenShots/ -f $(date "+%Y-%m-%d_%H-%M-%S%3N").png -zs

bind = $mainMod, S, exec, grim -g "$(slurp)" "$HOME/Pictures/ScreenShots/$(date '+%y%m%d_%H-%M-%S').png"

screen shot whiole screen

bind = $mainMod SHIFT, S, exec, grim "$HOME/Pictures/ScreenShots/$(date '+%y%m%d_%H-%M-%S').png"

bind = $mainMod, F, fullscreen

ROG G15 Strix (2021) Specific binds

bind = ,156, exec, rog-control-center # ASUS Armory crate key
bind = ,211, exec, asusctl profile -n; pkill -SIGRTMIN+8 waybar # Fan Profile key switch between power profiles
bind = ,121, exec, pamixer -t # Speaker Mute FN+F1
bind = ,122, exec, pamixer --allow-boost -d 5 # Volume lower key
bind = ,123, exec, pamixer --allow-boost --set-limit 150 -i 5 # Volume Higher key
bind = ,256, exec, pamixer --default-source -t # Mic mute key
bind = ,232, exec, brightnessctl set 1%- # Screen brightness down FN+F7
bind = ,233, exec, brightnessctl set 1%+ # Screen brightness up FN+F8
bind = ,237, exec, brightnessctl -d asus::kbd_backlight set 33%- # Keyboard brightness down FN+F2
bind = ,238, exec, brightnessctl -d asus::kbd_backlight set 33%+ # Keyboard brightnes up FN+F3
bind = ,210, exec, asusctl led-mode -n # Switch keyboard RGB profile FN+F4

bind = $mainMod, B, exec, killall waybar && waybar

#wallpaper change
bind = $mainMod, R, exec, killall hyprpaper && hyprpaper || hyprpaper

Move focus with mainMod + arrow keys

bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

bind = $mainMod , H, movefocus, l
bind = $mainMod , L, movefocus, r
bind = $mainMod , K, movefocus, u
bind = $mainMod , J, movefocus, d

Switch workspaces with mainMod + [0-9]

bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

Move active window to a workspace with mainMod + SHIFT + [0-9]

bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

Scroll through existing workspaces with mainMod + scroll

bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

form the secondary monitor

bind = alt, 1, workspace, 6
bind = alt, 2, workspace, 7
bind = alt, 3, workspace, 8
bind = alt, 4, workspace, 9
bind = alt, 5, workspace, 10

bind = alt SHIFT, 1, movetoworkspace, 6
bind = alt SHIFT, 2, movetoworkspace, 7
bind = alt SHIFT, 3, movetoworkspace, 8
bind = alt SHIFT, 4, movetoworkspace, 9
bind = alt SHIFT, 5, movetoworkspace, 10

bind = alt, mouse_down, workspace, e+1
bind = alt, mouse_up, workspace, e-1

make the 5 workspace to be the default workspace

workspace = 6, HDMI-A-1
workspace = 7, HDMI-A-1
workspace = 8, HDMI-A-1
workspace = 9, HDMI-A-1
workspace = 10, HDMI-A-1

Move/resize windows with mainMod + LMB/RMB and dragging

bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

======Config-End========

Description

when i connect my laptop to HDMI
the hyprland crashes

How to reproduce

boot into the system with or without connect to external monitor
( if monitor is connected remove the HDMI )
then connect to the monitor

Crash reports, logs, images, videos

https://github.com/Sarthak950/logs/blob/main/log.txt

@Sarthak950 Sarthak950 added the bug Something isn't working label Sep 27, 2024
@vaxerski
Copy link
Member

where crash report

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