• Bubble
  • Bubble
  • Line
VLC freezes PC when resuming from suspend to ram (Debian, Ubuntu, Linux Mint) - SOLUTION
Andrei Clinciu Article AUthor
Andrei Clinciu
  • 2018-02-20T22:24:00Z
  • 1 min to read

I've been observing this weird thing that when I leave VLC open and I suspend my Linux machine.

Whenever I try to resume the system from suspend I can't login and there's a black screen. If I try to CTRL+ALT+F1-F8 I can sometimes  login but it's a black screen again and nothing happens.
This freezes the whole system and only the CTRL+ALT+PAUSE+O (K or L) works by shutting down the system in a graceful manner.

Solution Kill VLC

Ctrl+Alt+F4 to get to a console TTY and login with your user.

ps -aux | grep vlcsudo pkill -9 vlc

After killing VLC you can go back to CTRL+ALT+F1 or CTRL+ALT+F2 and login, everything will work fine.

Solution 2 system2 system-sleep script

We can do something else to automate this process since I might not want to go in the console each time. If I go to sleep with VLC open, then let the system close VLC and then restart it later

vim /lib/systemd/system-sleep/vlc-pm

#!/bin/bashPATH=/sbin:/usr/sbin:/bin:/usr/bincase "$1" inpre)\tpkill -9 vlc\texit 0\t;;post)\t\texit 0\t;; \t*)\texit 1\t;;esac

NOTE, this seems NOT to work all of the time, so the first solution is better.

Ideas and comments

Andrei Clinciu
Andrei Clinciu

I'm a Full Stack Software Developer specializing in creating websites and applications which aid businesses to automate. Software which can help you simplify your life. Let's work together!

Building Great Software
The digital Revolution begins when you learn to automate with personalized software.

Find me on social media