[11:20] <alexboly> hi! I have a weird issue with Ubuntu 22.04 on my laptop. The GUI freezes randomly, with the mouse cursor still active. I can't restart the gnome session, can't restart X with ctrl-alt-backspace (I activated it), I can't switch to another session. Where to start reporting the bug?
[11:21] <alexboly> also, I couldn't find anything useful in journalctl
[11:23] <guiverc> if the mouse still moves; to me the GUI is still functioning.  I'd likely `ubuntu-bug gnome-shell` ; ie. report against GNOME-Shell itself... Does it recover?
[11:23] <alexboly> it doesn't recover by itself, I have to power down from the button and restart
[11:24] <alexboly> I can't run any command when this happens, or at least I don't see anything changing
[11:24] <alexboly> I tried alt+f2 -> r to restart gnome but it didn't work
[11:25] <guiverc> If mouse moves; kernel is still up thus SysRq commands could be given direct to kernel (ie. they work even with a STUCK GUI & no mouse movement; also confirm it's not kernel panic as that's when SysRq commands won't work)
[11:25] <guiverc> If you can switch to text terminal ; you can also safe shutdown/reboot & not unclean/unsafe shutdown with power button.
[11:25] <alexboly> where would I find a kernel panic in log files? does journalctl or dmesg show them?
[11:26] <guiverc> You can look for clues in /var/crash/ ; if a program crashes; you can find .crash files there; those can be submitted using `ubuntu-bug`
[11:26] <alexboly> ah, cool
[11:27] <alexboly> yeah, I can't switch to a terminal unfortunately because everything's frozen when this happens
[11:27] <guiverc> If the kernel panics; nothing exists -- that's the only time when power button should be used; but you'll get no mouse movement at all; nothing will work.. 
[11:27] <alexboly> oh, I see, so gnome shell it is
[11:27] <alexboly> thank you
[11:28] <guiverc> Grab a phone or another device & search "magic sysrq" ... You'll find the wikipedia page on SysRq at or near top; it can remind you how to safely shutdown any Linux system (not just Ubuntu; but it needs a real keyboard thus not android phones etc)
[11:28] <alexboly> I know shutdown from command line :), if I can get to a terminal
[11:29] <alexboly> interesting, didn't know about magic sysrq, thank you for the tip
[11:29] <guiverc> SysRq REISUB is a safe shutdown; REISUO is the same for safe off (last B = boot; or O=OFF... wikipedia page I mentioned can remind you of keys if you forget)
[11:40] <alexboly> just tested it, I know how to use it now