You are not logged in.

#1 2025-07-16 12:40:32

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

[XMonad] Can freeze when window is closed

Hello guys, I'm from NixOS, but the issue isn't of it. In XMonad, when I close a window (generally the browser when I was playing a video, but also can occur with other apps) exists the chance it get freezed, the window was closed but I can just move the cursor, no click nothing, no keyboard shortcuts, not even XMonad defaults or Ctrl+Alt+FX to switch into a tty, neither Ctrl+Alt+Fn+FX, the only one works is Fn+F2 to suspend my laptop. If I'm "lucky", waiting it can switch into the tty, but rarely occurs. I was downgrade the kernel version to 6.6.96 (I was using a newer linux-zen in a government laptop) Is like XMonad works more fluid, the freezing still hapening but less frequently.

I got these logs from dmesg. The last ones caught my attention:

// ...other logs
[   11.168805] wlo2: associated
[   11.239678] wlo2: Limiting TX power to 20 (20 - 0) dBm as advertised by 08:2f:e9:be:df:20
[   22.735105] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[ 1144.403138] perf: interrupt took too long (2520 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
[ 1695.366816] perf: interrupt took too long (3165 > 3150), lowering kernel.perf_event_max_sample_rate to 63000
[ 2954.453496] perf: interrupt took too long (3958 > 3956), lowering kernel.perf_event_max_sample_rate to 50000
[ 4228.834623] perf: interrupt took too long (4955 > 4947), lowering kernel.perf_event_max_sample_rate to 40000
[ 6309.086143] perf: interrupt took too long (6261 > 6193), lowering kernel.perf_event_max_sample_rate to 31000

If you want the entire log tell me

Offline

#2 2025-07-16 12:56:01

seth
Member
Registered: 2012-09-03
Posts: 66,258

Re: [XMonad] Can freeze when window is closed

ctrl+alt+fx is a server shortcut, so you'd want to inspect your X11 log since "Fn+F2" some sort of suspend shortcut seems still interpreted by something.
Also try to ssh into the system (might be just the framebuffer froze in which case the system journal becomes interesting)

For clarification

'm from NixOS, but the issue isn't of it

Is this NixOS or Arch?

Offline

#3 2025-07-16 14:32:24

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [XMonad] Can freeze when window is closed

seth wrote:

For clarification

'm from NixOS, but the issue isn't of it

Is this NixOS or Arch?

I'm having this issue in NixOS, but I posted it there because its shouldn't be a problem own of it, more of X11 itself, right?.

Offline

#4 2025-07-16 14:35:57

seth
Member
Registered: 2012-09-03
Posts: 66,258

Re: [XMonad] Can freeze when window is closed

https://bbs.archlinux.org/misc.php?action=rules
The problem is that nobody here (incl. possibly yourself) has any idea what and what configuration you're running there.
Prepare for the thread to be closed the moment a mod sees it.

If this is intel, make sure xf86-video-intel (or whatever the nixos equivalent is) isn't installed.

Offline

#5 2025-07-16 14:52:48

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [XMonad] Can freeze when window is closed

seth wrote:

If this is intel, make sure xf86-video-intel (or whatever the nixos equivalent is) isn't installed.

No, NixOS by default don't uses it, and I don't have it.

Offline

#6 2025-07-16 18:08:32

seth
Member
Registered: 2012-09-03
Posts: 66,258

Re: [XMonad] Can freeze when window is closed

Ok, still you want to look at Xorg log and journal and ideally ssh into the frozen system.
And under no circumstances reboot w/ the power button (you'll lose the journal) - since you can still suspend (and wake up?) you should also be able to reboot by frenetically pressing ctrl+alt+del.

Offline

#7 2025-07-16 21:29:47

FrancisArcher_60
Member
Registered: 2024-09-05
Posts: 58

Re: [XMonad] Can freeze when window is closed

For now all quite, I noticed that occurs with qutebrowser most times, if I get caution with it I'll be fine. Also if I log into a tty with the user is running X11, outputs interrupt its prompt undefinedly with this:

xset: Unable to open display "" (Or something like this)

Offline

#8 2025-07-17 06:16:01

seth
Member
Registered: 2012-09-03
Posts: 66,258

Re: [XMonad] Can freeze when window is closed

Or something like this

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
http://www.catb.org/~esr/faqs/smart-questions.html
Post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and your complete system journal after this happens:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

If ouy *have* to reboot, do not start X11 in that boot, post the previous journal (…-b -1…) and don't reboot by holding the power button.

Offline

#9 2025-07-17 07:28:29

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,994

Re: [XMonad] Can freeze when window is closed

Motherator Note
As stated NixOS is not supported on this forum, please use the NixoS support channels.

Since there is useful info for Xmonad users in this thread that will help with troubleshooting, this thread won't be deleted.

Closing this thread.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB