Score:2

Ubuntu 21.04 and 21.10 lock hard with basic GUI redrawing using standard intel graphics

mu flag

On a 4th generation X1 Carbon laptop, which generally runs Linux and Ubuntu really well, and which has been updated every six months, I am currently having hard locking issues on the default Ubuntu Gnome UI (Edit: my bad, I presume it is no longer called Unity these days but Ubuntu's Gnome variant and theming) of Ubuntu 21.04 "Hirsute".

This is an i5 with the usual Intel graphics baked in, I can procure version numbers if it helps. I can get the machine to lock via

  • Chrome (which I currently do not launch, hardware acceleration is turned off, still locks)
  • Slack simply by changing window size
  • Firefox too whereas a normal gnome-terminal is fine.

Needless to say, this is frustrating. I also opted back into xorg (instead of Wayland) for no apparent change. Any and all pointers welcome. I would be happy to run under debug or trace mode.

Edit: UI is the default Gnome3 in Ubuntu styling, no extra themes or tricks. All packages are current to 21.04, a few extra repos for Chrome, Slack, OBS, R, my own PPA -- none of which govern graphics driver. This machine first installed several releases ago.

Edit 2: Per Settings -> About:

  • i5-6300 with Mesa Intel HD Graphics 520
  • Ubuntu 21.04, 64bit, Gnome 3.38.5, Wayland but the hard locking from graphics updates also occurred when I select 'ubuntu xorg' instead of the new default Wayland.

Edit 3: Kubuntu 21.04, off a USB drive, locks hard in normal mode right after selecting 'try it'. Under 'safe graphics' it seems to work so far. But even that is weird as it just offers 'nomodeset' for the initial boot step -- I end up locking 'later' when the system is up.

waltinator avatar
it flag
Your "question" lacks any information that would help us help you. Please visit the AskUbuntu Help [Help] and learn how to ask.
Nmath avatar
ng flag
"*the default Ubuntu Unity UI*": There are no currently supported versions of Ubuntu that use Unity by default. What version of flavor of Ubuntu are you using? Can you please edit your question and include more details about your system and give us more information about the problem you are experiencing. For example, what are you calling "hard locking"? It's best if you tell us exactly what steps you are taking to reproduce the problem and then tell us exactly what your device is doing that is problematic. Include all errors exactly as they are given
Dirk Eddelbuettel avatar
mu flag
Plain Ubuntu 21.04. I may be behind the current branding but it is simply Ubuntu's default (as in not Kubuntu or Xubuntu or ...) which at some point was called Unity. If it makes you happier we can call it Ubuntu's tweaks on Gnome3. A quick `pstree` shows wayland running.
ChanganAuto avatar
us flag
Currently is Gnome indeed, not Unity. Although Unity was/is based on Gnome, they aren't the same thing.
Dirk Eddelbuettel avatar
mu flag
`dpkg -l | grep " ubuntu-"` gets me about 20+ packages most of which reveal no particular name but include artwork, desktop, session, standard, system-settings etc so as I tried to say: "standard Ubuntu 21.04".
Levente avatar
cn flag
Try restarting gnome shell, if that part of the UI still works (Ctrl+Alt+F2 and then `r`+Enter)... Or try restarting the X server [that surely goes with just a keyboard shortcut](https://askubuntu.com/a/1346330/1157519)... (Ok, admittedly, restarting X seems to destroy your session...) Test the memory for faults (`memtest`) (should be available through the grub menu, among some advanced options).
Dirk Eddelbuettel avatar
mu flag
That's not it. I have Gnome shell restarting issues on my normal (dual monitor, simple Nvidia card) desktop where it grow. I have learned to ssh in and `killall -HUP` it, or issueing `busctl`. This is different as it happens _minutes_ after booting. And renders the laptop, for all intents and purposes, unusable apart for straight text and emacs work.
Nate T avatar
it flag
In case it is an option, I just saw yesterday that [21.04 with Unity](https://9to5linux.com/ubuntu-unity-21-04-released-with-new-unity7-theme-linux-kernel-5-11) is a thing now. I assume it is likely not an option, but I figured I would let you know that the option exists just in case. If you have the storage (or a thumb drive) to temporarily sacrifice, you could give it a whirl just for troubleshooting purposes. Running 21.04 sans Gnome may help to pinpoint the issue. Just a thought.
Dirk Eddelbuettel avatar
mu flag
I actually don't mind the Gnome 3.* defaults -- in the all those (15 or os?) years I think I switched once to Kubuntu and once back, sticking a few years at each point. I feel it is just one simple config switch to suppress aggressive hardware acceleration. I just don't know where to turn. That Kubuntu under 'safe graphics' appeared to work is one hint.
Dirk Eddelbuettel avatar
mu flag
Yes, as I recall from the 21.04 release notes.
ph flag
Is it locking the system or just the graphics? Can you ssh in when its locked? Any clues in /var/log/kern.log?
Dirk Eddelbuettel avatar
mu flag
I always powered down hard. It is different from occassional gnome-shell woes on the desktop where I indeed ssh in a simple `kill -HUP` which works. This is driver, feels very driver-related but ... uses Intel graphics which are generally solid :-/
ph flag
The kernel log file should persist over resets, and maybe there's a kernel panic message in there as the last thing it did before freezing. I had a system freeze issue and there were graphics driver kernel error messages beforehand (this was Nvidia graphics, so ymmv). Even seeing nothing in the kernel log could be helpful and would eliminate some problems.
Dirk Eddelbuettel avatar
mu flag
Looks dire. Lock is hard (this time I was ssh'ed ed.). kern.log has nothing between conclusion of previous boot (ending in 'Btrfs loaded...' which I don't use, but I digress) and then the reboot after power cycle.
Dirk Eddelbuettel avatar
mu flag
Just upgraded to 21.10 -- exact same story. Had the laptop up 'headless' for a month prior to that, but as soon as I launched graphical apps it locked (slack in this case, before with redraw was complete). Chrome after reboot holding for a few minutes so far.
Dirk Eddelbuettel avatar
mu flag
Not sure why somebody felt downvoting without comment helps anyone. The bug is real, and affects me under each available UI setting (wayland, xorg, gnome classic, unity) and is obviously rather frustrating as it render the machine useless for standard work.
Score:0
mu flag

I seem to finally have gotten to the bottom of it: the 5.* kernel locks.

Currently running on the laptop, having upgraded to 21.10 (which by itself did not help, neither did different variants I tried usb-bootable isos). But with kernel 4.13.0-46 which I still had accessible via grub the usuall x11 apps that crashed (chrome, slack, ...) now work. Uptime now several hours.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.