[iwd] Switching between saved Wi-Fi networks shows a false failure toast
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, linux
- Área
- networking
Línea de trabajo
Start with core/internal/server/network/backend_iwd_signals.go around the cited v2.1.2 lines 311–425, and trace how the iwd disconnect and connected events affect a pending network attempt. Reproduce the reported event ordering with the private D-Bus setup described in the issue. Done means switching between saved networks does not show a failure toast when the target connects, while genuine connection failures still do.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Compositor
Niri
Distribution
Arch Linux
Select your Installation Method
Distro Packaging (dux-shell 2.1.2-1)
dms doctor -vC
Click to expand
System
● Operating System ····· Arch Linux
└─ ID: arch, Version: rolling, Arch: amd64
● Architecture ········· amd64
● Display Server ······· Wayland
└─ WAYLAND_DISPLAY=wayland-1
Versions
● DMS CLI ·············· dms v2.1.2
└─ /usr/bin/dms
● Quickshell ··········· Quickshell 0.3.2 (revision , distributed by Arch Linux)
└─ /usr/bin/qs
● DMS Shell ············ v2.1.2
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4
Installation
● DMS Configuration ···· Found
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4
● shell.qml ············ Present
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4/shell.qml
○ Install Type ········· Unknown
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4
Compositor
● niri ················· 26.04
└─ /usr/bin/niri
○ Active ··············· niri
● Background Blur ······ Supported
└─ Compositor supports ext-background-effect-v1
Quickshell Features
● Polkit ··············· Available
└─ Authentication prompts
● IdleMonitor ·········· Available
└─ Idle detection
● IdleInhibitor ········ Available
└─ Prevent idle/sleep
● ShortcutInhibitor ···· Available
└─ Allow shortcut management (niri)
● BackgroundBlur ······· Available
└─ Background blur API support in Quickshell
Optional Features
● accountsservice ······ Available
└─ User accounts
● power-profiles-daemon Available
└─ Power profile management
● logind ··············· Available
└─ Session management
● cups-pk-helper ······· Available
└─ Printer management
○ I2C/DDC ·············· No monitors detected
└─ External monitor brightness control
● qt6-imageformats ····· Installed (1 formats)
└─ Formats: GIF (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
● kimageformats ········ Installed (4 formats)
└─ Formats: AVIF, HEIF, JXL, EXR (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
● Terminal ············· ghostty, kitty, alacritty
● Network ·············· iwd + systemd-networkd
└─ iwd + systemd-networkd detected. Using iwd for Wi-Fi association and networkd for IP/DHCP.
● matugen ·············· Installed
└─ Dynamic theming
● cava ················· Installed
└─ Audio visualizer
○ khal ················· Not installed
└─ Calendar events
● dux-search ··········· Installed
└─ File search
● dux-calendar ········· Installed
└─ Calendar app
● dux-files ············ Installed
└─ File manager
○ fprintd ·············· Not installed
└─ Fingerprint auth
● adw-gtk3 ············· Installed
└─ GTK3 dynamic theming (user copy)
Config Files
● settings.json ········ Present
└─ ~/.config/dms/settings.json
● clsettings.json ······ Present
└─ ~/.config/dms/clsettings.json
● plugin_settings.json · Present
└─ ~/.config/dms/plugin_settings.json
● session.json ········· Present
└─ ~/.local/state/dms/session.json
● dms-colors.json ······ Present
└─ ~/.cache/dms/dms-colors.json
Services
● dms.service ·········· enabled, active
└─ Wanted by niri.service
● greetd ··············· enabled
● xdg-desktop-portal ··· Settings portal reachable
Environment
○ QT_QPA_PLATFORMTHEME · gtk3
● gtk3 plugin (Qt6) ···· Installed
└─ /usr/lib/qt6/plugins/platformthemes/libqgtk3.so
○ QT_QPA_PLATFORMTHEME… gtk3
○ QS_ICON_THEME ········ Not set
○ XDG_MENU_PREFIX ······ Not set
Fonts
● Normal Font ·········· Google Sans Flex
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4/DCommon/assets/fonts/google-sans-flex/GoogleSansFlex.ttf
● Monospace Font ······· Fira Code
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4/DCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf
● Display Font ········· DM Serif Display
└─ $XDG_RUNTIME_DIR/dms-shell/c1d9d6b0acd2e1e4/DCommon/assets/fonts/dm-serif-display/DMSerifDisplay-Regular.ttf
──────────────────────────────────────
✓ All checks passed!
Description
On DMS 2.1.2 with iwd 3.12 and systemd-networkd 262.2, switching between two saved Wi-Fi networks from Control Center can show a “Failed to connect” toast even though the target network connects and gets an IP address.
In a live reproduction, DMS reported assoc-timeout while iwd was still connecting to the target network. DMS reported the target as connected and cleared the error about 220 ms later. The interface acquired an IPv4 address less than a second after the error.
Expected Behavior
Keep the new connection pending while iwd disconnects from the previous network and connects to the target. Show a failure toast only if the target connection attempt fails.
Steps to Reproduce
- Use DMS 2.1.2 with the
iwd + systemd-networkdbackend and two saved Wi-Fi networks in range. - Connect to the first network.
- Open Control Center → Network and select the second saved network while the first is still connected.
- Watch for a failure toast, then check the active network and IP address. Repeat the switch if needed, since the result depends on event timing.
Error Messages/Logs
Excerpt combining iwd, DMS IPC, and systemd-networkd logs. The target SSID is anonymized.
11:22:05.115 iwd: old network disconnected; connecting to <target>
11:22:05.192 DMS: SSID=<target>, connected=false, lastError=assoc-timeout
11:22:05.337 iwd: <target> connected
11:22:05.410 DMS: SSID=<target>, connected=true, lastError=""
11:22:05.923 systemd-networkd: IPv4 address acquired
Likely cause: The iwd signal handler can process an earlier disconnected event and then query the live ConnectedNetwork property. If iwd has already advanced to the target network, DMS can attribute the old disconnect to the new attempt and finalize it as failed. Relevant code in v2.1.2
I replayed the same disconnect event against the unmodified v2.1.2 handler on a private D-Bus. When ConnectedNetwork still returned the old network, the new attempt stayed pending. When it returned the target network, the handler emitted assoc-timeout, then cleared it on the subsequent connected event. All three runs produced the same result.
- Lenguaje dominante
- QML
- Estrellas
- 8.4k
- Forks
- 549
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AvengeMedia/DankMaterialShell
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AvengeMedia/DankMaterialShell#4490 ·
-
Color Picker has blurAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
AvengeMedia/DankMaterialShell#4481 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
AvengeMedia/DankMaterialShell#4465 ·
-
Hide checkmark icon as wellAbiertoEnhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AvengeMedia/DankMaterialShell#4456 · 2 comentarios ·
-
Some options do not have a gapAbiertoEnhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AvengeMedia/DankMaterialShell#4452 ·
Todos los issues de AvengeMedia/DankMaterialShell
Issues similares
-
gax type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
googleapis/google-cloud-swift#1721 ·
Los mantenedores suelen responder en 1 día
-
automation backlog:smoke-tests testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
projectdiscovery/notify#597 ·
Los mantenedores suelen responder en 1 día
-
integration: wallbox
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
home-assistant/core#195864 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día