Skip to content

1/4 of monitor problem #1526

@abrikos2

Description

@abrikos2

I encountered an identical error as in #978 , but reinstalling the drivers of both the integrated intel graphics card and the nvidia nm discrete graphics card did not happen. I also tried different bspwm launch configurations, but the only way that worked was to launch bspwm twice, after that everything works as with 2 monitors, but previously opened applications freeze as a background. Polybar and rofi work properly
$HOME/.config/autorandr/postswitch*

LOCK="/tmp/autorandr.lock"
# Ожидаем инициализации мониторов
#sleep 1

# Перезагружаем рабочие столы
if autorandr | grep "^docked (detected)"; then
    bspc monitor HDMI-0 -d 1 2 3 4 5 6 7
    bspc monitor eDP-1-1 -d 8
    bspc wm -O HDMI-0 eDP-1-1
elif autorandr | grep "^undocked (detected)"; then
    xrandr --output eDP-1-1 --mode 1920x1080 --rate 60 --primary --output HDMI-0 --off
	bspc monitor eDP-1-1 -d 1 2 3 4 5 6 7 8
    if [[ -f "$LOCK" ]]; then
	    echo "exist"
		rm "$LOCK"
		exit 0
    fi
	touch "$LOCK"
	echo "not exist"
	bspc wm -r
	#autorandr --load undocked
	bspc monitor -d 1 2 3 4 5 6 7 8
	bspc desktop -f 2
fi

# Перезапускаем полибар
#~/.config/polybar/launch.sh

# Обновляем об1ои
#~/.config/bspwm/scripts/launch.sh

$HOME/.config/bspwm/bspwmrc


# Логирование
exec > ~/.bspwm.log 2>&1

# Запуск базовых сервисов
pgrep -x sxhkd > /dev/null || sxhkd &
xrdb merge ~/.Xresources
xsetroot -cursor_name left_ptr

if xrandr | grep 'HDMI-0 connected' >/dev/null; then
		echo "docked"
		autorandr --load docked
else
		echo "undocked"
		autorandr --load undocked 
fi

# Настройки bspwm
bspc config focus_follows_pointer true
#bspc config window_animation_duration 0
bspc config border_width 0
bspc config borderless_monocle true
bspc config gapless_monocle false
bspc config window_gap 10
bspc config pointer_modifier mod4
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner

# Правила для окон
bspc rule -a Eww sticky=on layer=above manage=off
bspc rule -a PlayerWindow state=floating sticky=on layer=above manage=off
bspc rule -a feh state=floating

# Автозапуск приложений
~/.config/bspwm/scripts/launch.sh &
~/.config/polybar/launch.sh
dunst -config $HOME/.config/bspwm/dunstrc &
pkill battery-alert; ~/bin/battery-alert &
#pgrep -x redshift > /dev/null || redshift 
picom --config $HOME/.config/bspwm/picom_configurations/1.conf &
flameshot &
# Запуск autorandr при старте
#autorandr --change

Everything works with this configuration and there are no errors, but I don't like this approach, but I couldn't find a better solution. Also here are my specifications

   ====================================    OS: Arch Linux x86_64
   ⣿⣿⣿⣿⣿⣿⣿⠿⢛⢛⡛⡻⢿⣿⣿⣿⣿⠟⠛⢛⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿   Kernel: 6.14.7-arch2-1
   ⣿⣿⣿⣿⢟⢱⡔⡝⣜⣜⢜⢜⡲⡬⡉⢕⢆⢏⢎⢇⢇⣧⡉⠿⣿⣿⣿⣿⣿⣿   Uptime: 11 mins
   ⣿⣿⡟⡱⣸⠸⢝⢅⢆⢖⣜⣲⣵⣴⣱⣈⡣⣋⢣⠭⣢⣒⣬⣕⣄⣝⡻⢿⣿⣿   Packages: 1975 (pacman), 18 (f
   ⣿⠟⡜⣎⢎⢇⢇⣵⣷⣿⣿⡿⠛⠉⠉⠛⢿⣦⢵⣷⣿⣿⣿⠟⠛⠋⠓⢲⡝⣿   Shell: fish 4.0.2
   ⢏⢰⢱⣞⢜⢵⣿⣿⣿⣿⣿⠁⠐⠄⠄⠄⠄⢹⣻⣿⣿⣿⠡⠄⠄⠄⠄⠄⠹⣺   Resolution: 1920x1080
   ⢕⢜⢕⢕⢵⠹⢿⣿⣿⣿⣿⡀⠸⠗⣀⠄⠄⣼⣻⣿⣿⣿⡀⢾⠆⣀⠄⠄⣰⢳   WM: bspwm
   ⡕⣝⢜⡕⣕⢝⣜⢙⢿⣿⣿⣷⣦⣤⣥⣤⣾⢟⠸⢿⣿⣿⣿⣦⣄⣉⣤⡴⢫⣾   Theme: Dracula-pink-accent [GT
   ⡪⡪⣪⢪⢎⢮⢪⡪⡲⢬⢩⢩⢩⠩⢍⡪⢔⢆⢏⡒⠮⠭⡙⡙⠭⢝⣨⣶⣿⣿   Icons: Papirus [GTK2], dracula
   ⡪⡪⡎⡮⡪⡎⡮⡪⣪⢣⢳⢱⢪⢝⢜⢜⢕⢝⢜⢎⢧⢸⢱⡹⡍⡆⢿⣿⣿⣿   Terminal: alacritty
   ⡪⡺⡸⡪⡺⣸⠪⠚⡘⠊⠓⠕⢧⢳⢹⡸⣱⢹⡸⡱⡱⡕⡵⡱⡕⣝⠜⢿⣿⣿   CPU: Intel i5-9300H (8) @ 4.10
   ⡪⡺⡸⡪⡺⢐⢪⢑⢈⢁⢋⢊⠆⠲⠰⠬⡨⡡⣁⣉⠨⡈⡌⢥⢱⠐⢕⣼⣿⣿   GPU: NVIDIA GeForce GTX 1650 M
   ⡪⣪⢣⢫⠪⢢⢅⢥⢡⢅⢅⣑⡨⡑⠅⠕⠔⠔⠄⠤⢨⠠⡰⠠⡂⣎⣼⣿⣿⣿   GPU: Intel CoffeeLake-H GT2 [U
   ⠪⣪⡪⡣⡫⡢⡣⡣⡣⡣⡣⣣⢪⡪⡣⡣⡲⣑⡒⡎⡖⢒⣢⣥⣶⣿⣿⣿⣿⣿   Memory: 2360MiB / 15857MiB
   ⢁⢂⠲⠬⠩⣁⣙⢊⡓⠝⠎⠮⠮⠚⢎⡣⡳⠕⡉⣬⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿   CPU Usage: 10%
   ⢐⠐⢌⠐⠅⡂⠄⠄⢌⢉⠩⠡⡉⠍⠄⢄⠢⡁⡢⠠⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿   Disk (/): 68G / 108G (67%)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions