0

[Edit] Complete restatement of the problem:

My system freezes when I plug a memory device into a USB port. I have just upgraded from 18.04 LTS to 20.04 LTS. All of this hardware has worked without issue for months before the upgrade.

Symptoms of the freeze: Mouse cursor will move, cannot pick anything, no scrolling or right click. Keyboard doesn't respond. Alt-F2 will not bring up a terminal, cntrl-alt-T will not bring up a terminal. sysreq-alt-R-E-I-S-U-B will reboot. control-alt-F1 will log the user out. During a freeze, $top stops displaying new information. The clock freezes at the current time.

The freeze can be reliably initiated by:
plugging any of several thumbdrives into any USB port
plugging a particular microSD memory card into a USB memory card reader

The freeze does not initiate when

A Logitech Unifying reciever plugged into USB seems to have no problems.
Plugging one of several different thumb drives into the USB ports. plugging a different microSD card into a memory card reader.

I have two users set up. One of them is on "Desktop: Gnome" and "Session: Gnome-XORG", and has the freeze problem.

The other is on "Desktop: XDG_CURRENT_DESKTOP" and "Session: Ubuntu". This user does not experience the freeze problem.

I'm into stuff I don't really understand here so I don't know what the impact of that means.

I have: Uninstalled Nautilus, confirmed the problem happens when Nautilus isn't installed. Re-installed after sudo apt update and sudo apt upgrade

Removed Radeon video card and installed an Nvidia card, problem still occurs

Removed the memory sticks, tried installing them one at a time, problem still occurs

Done a BIOS memory and hardware test with no problems found.

[EDIT] I have Universe, Multiverse, and Restricted repositories enabled. So far all hardware tests and memory tests have checked out OK.

Here is some more information that may or may not be relevant:

sudo dmidecode -s bios-version A12

~$ free -h

              total        used        free      shared  buff/cache   available

Mem: 31Gi 3.1Gi 11Gi 73Mi 16Gi 27Gi

Swap: 2.0Gi 0B 2.0Gi

~$ ls -al /usr/share/gnome-shell/extensions total 20

drwxr-xr-x 5 root root 4096 Sep 29 12:56 .

drwxr-xr-x 7 root root 4096 Sep 29 12:59 ..

drwxr-xr-x 2 root root 4096 Sep 29 12:56 desktop-icons@csoriano

drwxr-xr-x 3 root root 4096 Sep 29 11:51 ubuntu-appindicators@ubuntu.com

drwxr-xr-x 3 root root 4096 Sep 29 11:51 ubuntu-dock@ubuntu.com

~$ lspci | grep VGA Thrice 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] R600 [Radeon HD 2900 PRO/XT]

1 Answers1

0

The problem seemed to be related to Gnome somehow. A user who was on Ubuntu:Gnome Desktop and Session Ubuntu did not experience the problem. A user who was on Desktop: Gnome and Session Gnome-Xorg did have the problem. The problem occurred on several USB memory devices but not all. It seemed the memory device was busy doing something (I never figured out what) that bogged down the system altogether.

Switching the user with the problem to Desktop: ubuntu:Gnome and Session: ubuntu seemed to make the problem dissappear. Here; 's the fix:

    printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION"
    Desktop: Gnome
    Session: Gnome-Xorg

The user above had the problem. On boot, at login there is a small gear icon at the bottom right corner of the screen (this icon dissappears later) that allows one to switch the user to a different Gnome. Picking "Ubuntu" changed the users Gnome session to:

printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION"
Desktop: ubuntu:GNOME
Session: ubuntu

After that this user did not experience the freezing problem.

I have no idea how any of this works, but I did notice, after I made a second user, that the second user was on a different gnome session and they did not experience the problem.