26

How do I close the VLC? After closing VLC and opening it again, the process is still running on my taskbar. How do I close or end the process? enter image description here

Parsa Mousavi
  • 3,305
  • 16
  • 37
clieg
  • 465
  • 1
  • 7
  • 12
  • Press Alt-F2 an run killall vlc. – pLumo Jun 15 '20 at 08:30
  • @pLumo, it didn't work. I also tried searching the web to find solutions, but somehow it wouldn't work. It seems like the only option I have is to close VLC through system monitor every time I want to close VLC. – clieg Jun 15 '20 at 08:32
  • 8
    What about killall -s 9 vlc ? – pLumo Jun 15 '20 at 08:33
  • It worked, thank you for your assistance. – clieg Jun 15 '20 at 08:37
  • Does the Quit-option from the dropdown menu (screenshot) not work? – mook765 Jun 15 '20 at 08:40
  • Please don't add SOLVED to the question title. Accept a helpful answer instead. – Pilot6 Jun 15 '20 at 08:40
  • Why didn't you select the Quit option from the menu list displayed (on your screenshot)? – FedKad Jun 15 '20 at 08:40
  • I assume, VLC does not respond anymore. This happens to me too from time to time, especially when I clicked too many video files in too short time ... – pLumo Jun 15 '20 at 08:41
  • VLC doesn't do anything when I click the "Quit" option. Anyway, thank you all for the helo. – clieg Jun 15 '20 at 08:43
  • In Lubuntu 18.04.x LTS I can stop all vlc processes via the dropdown menu 'Media' and 'Quit' or via the 'x' control at the top right corner of the window. But if/when that does not work, the advice by @pLumo will solve the problem. – sudodus Jun 15 '20 at 08:49
  • Thank you.

    But what about the other apps that won't close? Can I use the same command: killall -s 9 but with the name of the app instead of vlc?

    – clieg Jun 15 '20 at 09:23
  • Related: https://superuser.com/questions/1566707/ubuntu-20-04-vlc-player-not-quitting – caw May 28 '21 at 18:54

6 Answers6

30

I have resolved with this:

  1. Delete folder ~/.config/vlc.

  2. Open vlc.

  3. Open Preferences dialog, click on the Videos tab or button at the top. Then change your output to OpenGL video output.

  4. Then click on the Input / Codecs tab or button at the top, then change Hardware-accelerated decoding to Disable and then click the Save button.

    screenshot

  5. Close VLC Media Player.

Pablo Bianchi
  • 15,657
forkirara
  • 321
  • 1
    Have tried this out and it actually solved the problem, VLC does now quit properly. – LurioTabasco Mar 15 '21 at 11:07
  • For me, step 4 (and step 2, obviously) was sufficient. – caw May 28 '21 at 18:55
  • 1
    This works at first, but when I close the window it still hangs again. I discovered that Menu> Media | quit closes the process, but simply clicking on the window close button causes it to hang, and then must be killed to get it re-start. – Elliptical view Oct 17 '21 at 22:24
  • 1
    could someone explain exactly what this does and why it works? – Brian Ó Maoláin Jun 19 '22 at 14:52
  • This procedure works temporarily (VLC 3.0.9.2 on Ubuntu 20.04), but the problem starts again after a week or so. The problem does not happen on VLC 3.0.16 on Ubuntu 22.04, so it's possible it's a VLC bug that got fixed in later versions. – JonahHuron Nov 28 '22 at 14:26
28

Open "Run a command" window by pressing Alt+F2 or run the following from a terminal:

Try killall vlc to send SIGTERM to all instances of vlc (Tell em to terminate themselves).

If this does not work, try killall -s 9 vlc to send a SIGKILL (Tell the system to kill the processes).

pLumo
  • 26,947
  • Thank you. It solved my problem. – clieg Jun 15 '20 at 08:40
  • 2
    It's even better if you put that command killall -s 9 vlc in a hot corner. it's quicker ;) – Vedran Bejatovic Nov 04 '20 at 23:50
  • This is not a permanent solution. It just kills the running process. Whenever you rerun vlc, the problem will persist. The solution provided by @forkirara is a permanent solution though. – Ombrophile May 30 '21 at 06:21
  • That is true, and I never said anything else. It is exactly the answer to the question. And git might be ood enough for people who have no general issue with that, but when it occurs just once in a while. – pLumo May 31 '21 at 08:43
10

As an addendum to forkirara's answer, it seems that setting Video Output to 'XVideo output (XCB)' also works (tested on Ubuntu 20.04 and PopOS 20.04). This also seems to bypass the need to delete the VLC config folder.

(Sorry for responding as an answer, Stack Exchange forces you to do so until you get the right to make addendums properly as comments).

Hope this helps anyone else coming here because VLC still hasn't fixed this bug!

Kalum Ost
  • 116
1

As I, recently registered to this forum, I can't up-vote (or comment) any answers. So instead I'll mention it here besides a description of the behaviour on my machine.

First of all forkiraras answer works for me too. I think it should be preferred over killing processes - which isn't the intended way things should work.

Behaviour on my machine:

  1. opened vlc from file -> works
  2. click the x-button of the window -> window closes but vlc is still active in taskbar -> works, I guess
  3. selecting quit from the taskbar menu won't close vlc(-taskbar)
  4. selecting "show vlc media player" from the taskbar menu (1st entry) -> brings up the window again You can toggle the program between the window and minimized to taskbar this way.

So actually the program doesn't seem to be unresponsive, but simply won't (correctly) trigger the close-event (or whatever you want to call it).

Tejas Lotlikar
  • 2,945
  • 5
  • 17
  • 26
  • 1
    Well.. It's a little more than that. Subsequent attempts to open video files (if you've got them set to open with VLC) will simply silently fail. Quite annoying. This started happening I BELIEVE after I swapped my nvidia card out for a much older AMD card. CPU decoding will be just fine... – Steven Lu Jan 17 '21 at 06:48
1

It appears this a known issue. All you have to do is go to tools > preferences > Input / Codecs and change the Hardware-accelerated codec to something other than Automatic or VDPAU.

Sources

  1. https://superuser.com/questions/1566707/ubuntu-20-04-vlc-player-not-quitting
  2. https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1871949/comments/8
Pablo Bianchi
  • 15,657
0

As Canonical seems not to be interested in providing an updated VLC-package (v3.0.9) for Ubuntu 20.04, I uninstalled the VLC package from the Ubuntu sources (apt purge vlc) and installed it again via the snapstore (snap install vlc). This worked perfectly for me, as this problem was fixed with VLC 3.0.12-3.

see: https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1819543

Andy
  • 121
  • 2