linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.45k stars 731 forks source link

Cinnamon 20.3 (Edge version). Screen freezes, music plays on, mouse's cursor moves - but no interaction. #10688

Open glesialo opened 2 years ago

glesialo commented 2 years ago
    'inxi -F && dmesg | grep -i error'

    Use of uninitialized value $working in substitution (s///) at /usr/bin/inxi line 18559.
    System:    Host: Linux-2 Kernel: 5.13.0-30-generic x86_64 bits: 64 Desktop: Cinnamon 5.2.7 Distro: Linux Mint 20.3 Una 
    Machine:   Type: Desktop System: Micro-Star product: MS-7D08 v: 2.0 serial: N/A 
               Mobo: Micro-Star model: MAG Z590 TORPEDO (MS-7D08) v: 2.0 serial: 07D0822_L51E017345 UEFI: American Megatrends LLC. 
               v: A.40 date: 01/13/2022 
    CPU:       Topology: 6-Core model: 11th Gen Intel Core i5-11600K bits: 64 type: MT MCP L2 cache: 12.0 MiB 
               Speed: 4600 MHz min/max: 800/4900 MHz Core speeds (MHz): 1: 4604 2: 4725 3: 4669 4: 4600 5: 4814 6: 4600 7: 4676 
               8: 4786 9: 4600 10: 4586 11: 4891 12: 4887 
    Graphics:  Device-1: Intel driver: i915 v: kernel 
               Display: server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa resolution: 3840x2160~60Hz 
               OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.2.6 
    Audio:     Device-1: Intel driver: snd_hda_intel 
               Sound Server: ALSA v: k5.13.0-30-generic 
    Network:   Device-1: Intel Ethernet I219-V driver: N/A 
               Device-2: Intel driver: igc 
               IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: d8:bb:c1:56:a9:6b 
    Drives:    Local Storage: total: 14.55 TiB used: 3.32 TiB (22.8%) 
               ID-1: /dev/sda vendor: Seagate model: ST8000VN004-2M2101 size: 7.28 TiB 
               ID-2: /dev/sdb vendor: Seagate model: ST8000VN004-2M2101 size: 7.28 TiB 
    Partition: ID-1: / size: 36.42 GiB used: 10.78 GiB (29.6%) fs: ext4 dev: /dev/sda3 
               ID-2: /home size: 36.42 GiB used: 10.84 GiB (29.8%) fs: ext4 dev: /dev/sda4 
               ID-3: swap-1 size: 5.59 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
    Sensors:   System Temperatures: cpu: 27.8 C mobo: N/A 
               Fan Speeds (RPM): N/A 
    Info:      Processes: 342 Uptime: 8m Memory: 31.17 GiB used: 2.28 GiB (7.3%) Shell: bash inxi: 3.0.38 
    [    0.402545] pcieport 0000:00:1c.5: DPC: error containment capabilities: Int Msg #0, RPExt+ PoisonedTLP+ SwTrigger+ RP PIO Log 4, DL_ActiveErr+
    [    0.633881] RAS: Correctable Errors collector initialized.
    [    1.009536] e1000e: probe of 0000:00:1f.6 failed with error -5
    [    6.372303] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro. Quota mode: none.
    [   10.565345] snd_hda_intel 0000:00:1f.3: Codec #0 probe error; disabling it...

Issue Screen's image freezes, music still plays on and I can move mouse's cursor but can't do anything with it.

Keyboard shorcuts do not work: Audio: volume, mute, new song..., Tty: Alt-Ctrl-F1, ...

Alt-Ctrl-Backspace, to kill Cinnamon, doesn't work either (works when there is no freeze).

Steps to reproduce

Has happened 2 times. First time I had invoked 'firefox'. Second time I was editing an html document with 'libreoffice'.

Expected behaviour

No freezing.

Other information This is a new system that I have been using for just 3 weeks. The 2 freezes have happened after I updated the kernel (17/02/2022) from 5.13.0-28 to 5.13.0-30.

The only way to exit from the freeze was to 'Alt-PrtScr s' + 'Alt-PrtScr o'. Note: 'Alt-PrtScr o' caused, in booth freezes, a Reboot instead of a Power Off.

The included files are attached after freeze 2. Date time (today 25 Feb 2022) was frozen at 'Friday February, 11:03'.

.xsession-errors.old.log kern.log syslog.log Xorg.0.log.old.log

glesialo commented 2 years ago

Another freeze today. I tried to recover control with:

I had to use 'Alt-PrtScr s' + 'Alt-PrtScr o' again. This time 'Alt-PrtScr o' triggered a Power Off.

I can't use the system waiting for freezes all the time. I am going back to kernel 5.13.0-28.

These are the files after freeze/Power Off/Boot:

.xsession-errors.old.log kern.log syslog.log Xorg.0.log.old.log

OdinVex commented 2 years ago

Mostly useless bump from myself here, I've had this happen ever since 20.3, quite certain. Sometimes once or twice a day and almost always triggered by trying to drag Celluloid across monitors (I use hardware-acceleration with Celluloid, amdgpu).

Edit: To really put a tack in it, it is very likely to happen when I drag Celluloid between monitors, but not always.

glesialo commented 2 years ago

@OdinVex. Thank you for your comment.

I think I have probably solved the issue: I am using Intel integrated graphics and, while trying to solve this problem, I have found that Cinnamon Edge includes a graphics driver that is obsolete. If it is removed (by running 'apt purge xserver-xorg-video-intel') a more modern one, included in the kernel, is used:

The use of this driver is discouraged if your hw is new enough
(ca. 2007 and newer). You can try uninstalling this driver and
let the server use its builtin modesetting driver instead.

Just in case, I am going to stay with kernel 5.13.0-28 for at least one month.

I'll report new developments.

OdinVex commented 2 years ago

@glesialo, Hopefully that fixes your issue, but I experience the same thing you do using amdgpu, I don't even have xxvi installed. I've also noticed it happens when sometimes trying to open up network-mounted Samba shares in Nemo. Something about Celluloid and Nemo seems to greatly increase the chances of it happening.

glesialo commented 2 years ago

@OdinVex. Could we be dealing with different problems that produce the same effect? I neither use 'Celluloid' nor 'Samba' shares.

rado84-github commented 2 years ago

Have you both tried to restart X server? Ctrl+Alt+Backspace by default.

glesialo commented 2 years ago

@IvoAndonov. Please check my description of the issue:

Alt-Ctrl-Backspace, to kill Cinnamon, doesn't work either (works when there is no freeze).

OdinVex commented 2 years ago

Have you both tried to restart X server? Ctrl+Alt+Backspace by default.

Next time it happens I'll try that, but if I recall, it didn't work last time [edit: or perhaps I couldn't afford to, session loss might have been too much to risk]. Sometimes it can get 'unstuck', no errors or logs of any kind anywhere, no dmesg either, nothing is detecting it or crashing, perhaps. No memory leak happening either. I've also noticed it sometimes happens when dragging Firefox Nightly between monitors (maximized state).

I might add, I'm not using Edge, just 20.3 upgraded from 20.2 (and so forth, backward).

glesialo commented 2 years ago

It seems the problem was caused by the, obsolete, 'xserver-xorg-video-intel' driver as it has not happened again since I purged the driver, even with the kernel updated to 5.13.0-30.

I was told, in another forum, that it was I who installed the obsolete driver by meddling with an 'xog.conf' file. I don't think so because, although I did, indeed, experiment, recently, with 'xorg.conf', trying to use a 'CustomEDID' option, an 'xserver-xorg-video-intel' update, on 18/02/2022, proves that the driver was already installed before any 'xorg.conf' was in place.

I am closing this issue.

OdinVex commented 2 years ago

I still have this issue, and I too used a CustomEDID, and for some reason xserver-xorg-video-intel is installed on my end, but not running. Purging it to see anyway.

glesialo commented 2 years ago

@OdinVex

for some reason xserver-xorg-video-intel is installed

But you said you were using an AmdGpu.

The 'modesetting' Intel driver, included in the kernel, doesn't accept a "CustomEDID" option so I had to load the EDID in the kernel: https://forums.linuxmint.com/viewtopic.php?f=59&t=369032

Purge the 'xserver-xorg-video-intel' driver and... Good luck!

OdinVex commented 2 years ago

...

I am using amdgpu. xserver-xorg-video-intel is installed (by whoever, I don't recall ever installing it, I never use Junktel products). I use a CustomEDID for a monitor via xorg config. I purged it, hopefully the issue ends.

glesialo commented 2 years ago

Reopened this issue because it still happens.

I have checked that lately it always happens when I am using 'Libreoffice' (spread sheet, word processor, web editor). As I stated before: 'The only way to exit from the freeze was to 'Alt-PrtScr s' + 'Alt-PrtScr o''.

I have found this old post, System freezes during work LibreOffice Calc, in the Mint forums, and now I have changed 'Libreoffice' configuration by un-ticking: Tools/Options/View/Graphics_Output's 'Use hardware acceleration' & 'Use anti-aliasing'.

I'll report if it solves the issue.

Any suggestions are welcome, thanks in advance.

glesialo commented 2 years ago

Freezes continue

28/02/2022: Removal of 'xserver-xorg-video-intel'. Using driver included in the kernel.
....
Freezes when using 'Libreoffice' (spread sheet, word processor, web editor).
  03/05/2022: Libreoffice's Tools/Options/View/Graphics_Output's 'Use hardware acceleration' & 'Use anti-aliasing' unticked.
....
09/05/2022: Freeze while using 'mpv' (no hardware acceleration, not full-screen) + 'pavucontrol'.
17/05/2022: 12h:22m Freeze while using several Libreoffice spreadsheets (full-screen).

It seems that the freeze stops the whole Cinnamon session:

Screenshot from 2022-05-17 13-18-57

v4Lo commented 2 years ago

I have the exact same issue. None of my hardware overlaps with OPs.

'inxi -F && dmesg | grep -i error'

System:
  Host: BigArch Kernel: 5.17.9-arch1-1 arch: x86_64 bits: 64
    Desktop: Cinnamon v: 5.2.7 Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: B550M Steel Legend
    serial: <superuser required> UEFI: American Megatrends LLC. v: P2.20
    date: 08/02/2021
CPU:
  Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP cache:
    L2: 6 MiB
  Speed (MHz): avg: 2674 min/max: 2200/4950 cores: 1: 3604 2: 2869 3: 2869
    4: 2867 5: 2867 6: 3587 7: 2193 8: 2192 9: 2194 10: 2194 11: 2193 12: 2195
    13: 3591 14: 2870 15: 2870 16: 3589 17: 2693 18: 3592 19: 2190 20: 2191
    21: 2195 22: 2195 23: 2196 24: 2195
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1 driver: X:
    loaded: amdgpu unloaded: modesetting,radeon gpu: amdgpu resolution:
    1: 1920x1080~60Hz 2: 1920x1200~60Hz
  OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.4
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    driver: snd_hda_intel
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.17.9-arch1-1 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE driver: r8169
  IF: enp4s0 state: up speed: 2500 Mbps duplex: full mac: 70:85:c2:93:b2:22
Drives:
  Local Storage: total: 5.68 TiB used: 3.57 TiB (62.9%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 2TB
    size: 1.82 TiB
  ID-2: /dev/sda vendor: Seagate model: ST2000VX000-1CU164 size: 1.82 TiB
  ID-3: /dev/sdb vendor: Kingston model: SHFS37A240G size: 223.57 GiB
  ID-4: /dev/sdc vendor: Toshiba model: HDWD120 size: 1.82 TiB
Partition:
  ID-1: / size: 219.46 GiB used: 164.28 GiB (74.9%) fs: ext4 dev: /dev/sdb2
  ID-2: /boot size: 299.4 MiB used: 132.2 MiB (44.2%) fs: vfat
    dev: /dev/sdb1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 4.8 MiB (0.2%)
    file: /mnt/music/swapfile
Sensors:
  System Temperatures: cpu: 38.0 C mobo: 39.0 C gpu: amdgpu temp: 45.0 C
  Fan Speeds (RPM): fan-1: 467 fan-2: 627 fan-3: 0 fan-4: 0 fan-5: 530
    fan-6: 0 fan-7: 0
Info:
  Processes: 496 Uptime: 11m Memory: 62.73 GiB used: 3.5 GiB (5.6%)
  Shell: Zsh inxi: 3.3.16
[    0.409665] RAS: Correctable Errors collector initialized
glesialo commented 2 years ago

It is very frustrating not being able to do anything when the issue happens. :-(

I am trying to troubleshoot the issue, with a general purpose daemon, but I need help from a Cinnamon expert. I have also started a thread in the Mint Forums: Troubleshooting screen freezes.

glesialo commented 2 years ago

As I mentioned in my previous post, I have arranged a daemon to start/stop with a GUI session. The daemon checks, every 5 seconds, several, 'cinnamon' related, conditions and runs an action script if a screen freeze is detected.

These are the conditions:

The Action script runs if any of the above conditions is true. Currently the action script makes a report, by running a few commands, and sends a local email to the GUI session user.

I also changed magic-sysrq configuration ('/etc/sysctl.d/10-magic-sysrq.conf') in the hope I would be able to get control of the keyboard in a freeze so I could switch to a '/dev/tty'.

Yesterday, at 20:53, there was another freeze and the action script ran. Please find below the following files:

Notes:

Thanks in advance.

.xsession-errors.old.log 2022_06_01.log CinnamonReport__Action_triggered.txt syslog.log

glesialo commented 2 years ago

Another freeze today, while using LibreOffice.

With the daemon setup I have described, I can run whatever the Cinnamon developers want, a few seconds after a freeze.

What's the point of posting here if I don't get any help?

aurorapetra commented 2 years ago

Hi! I am new here. I had the same problem with radeon r7 250, amdgpu driver, both cinnamon and xfce. Now testing radeon driver, no freezes yet. Firefox - Spotify and youtube active, LibreOffice running. It looks overall more responding. I know it's not much info, but it looks like it is a kernel driver problem, not cinnamon bug.

glesialo commented 2 years ago

@aurorapetra:

it looks like it is a kernel driver problem, not cinnamon bug.

I am not sure:

marco4mp commented 3 months ago

@glesialo There have been several big updates since then. Are you still having the same problem?

chris-fogel-intermetro-net commented 6 hours ago

So, I seems to have the problem. - Linux Mint 21.3 Edge - Cinnamon 6.0.4 - 6.5.0-44-generic #44~22.04.1-Ubuntu

New install, day 2 - computer screens freeze, music is playing, system monitor is updating and mouse is moving. no other input it working. I had not as yet figured it and ssh was not running so I hard booted the machine.

Day 3 - same symptoms, but i had turned on sshd, so I connected in from another computer, and was going to do troubleshooting, but I must have clicked something poorly on the gui, because the entire system locked, ssh died, no ping, nothing.

Day 4 - same symptoms, ssh in, killed the following 2 processes and everything freed up.

chris 1635 0.0 0.0 535876 7448 ? SLl 15:12 0:00 /usr/bin/gnome-keyring-daemon --start --components=ssh chris 7456 0.0 0.0 7980 5632 ? S 15:29 0:00 _ /usr/bin/ssh-agent -D -a /run/user/1000/keyring/.ssh

Pattern on at least day 3 and day 4 was it locked when I was trying to open ssh to remote site and it asked for my id_xxx key password (gui popup). In lines 6 & 6 from the bottom of my syslog before it stopped were:

Jul 19 15:29:05 MINT2024 dbus-daemon[1444]: [session uid=1000 pid=1444] Activating service name='org.gnome.keyring.SystemPrompter' requested by ':1.14' (uid=1000 pid=1635 comm="/usr/bin/gnome-keyring-daemon --start --components" label="unconfined") Jul 19 15:29:05 MINT2024 dbus-daemon[1444]: [session uid=1000 pid=1444] Successfully activated service 'org.gnome.keyring.SystemPrompter'

So, I took the chance and killed the keyring processes and everything freed up and started working again. I will continue to monitor for the same patterns with the keyring or if it's keyring+something else at same time,