Sample Header Ad - 728x90

BSPWM invalid descriptor not found

0 votes
0 answers
50 views
a few months ago there was a problem where the configuration with internet monitor only gives the error invalid descriptor found in "eDP-1-1", while with the connected HDMI-0 everything works fine. I'm trying different combinations, and I've found a working crutch. But it seems to me that it certainly shouldn't work that way. I use autorandr to configure the monitors, but just in case, I still recreate using xrandr. All the configs and scripts that may be required in my opinion are also provided. **$HOME/.config/autorandr/postswitch**
#!/bin/bash
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**
#!/bin/sh

# Логирование
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%)
Asked by abrikos 232 (1 rep)
Jun 2, 2025, 12:02 AM
Last activity: Jun 2, 2025, 06:44 AM