How to restart unity in Ubuntu

This simple tutorial will show you how to restart unity and unity-2d in Ubuntu.Normally we need to restart unity only when meet a “no response” problem.If restarting unity can’t fix your issue,maybe you need to try restart your X display manager.


Restart unity without restart compiz

You can press ALT+F2 ,then type “unity” ,then click ENTER to restart unity.

Or you can run below command in terminal to restart unity

setsid unity


Restart unity by restarting compiz

setsid compiz --replace


Restart Unity 2D

Run below commands in your terminal to restart unity 2D

pkill unity-2d-shell
pkill unity-2d-panel


Restart X display Manager

If above methods can’t fix your issue,you may need to try restart your X display manager.

Note:All opened applications will lost

sudo -s
setsid service lightdm restart

6 thoughts on “How to restart unity in Ubuntu

  1. Pingback: How to restart unity in Ubuntu

  2. MCU

    Heel this one does it for me. I frequently have Unity-2d crash on me specifically when working with Liber-Office… Noe I can restart Unity without losing anything or rebooting…

  3. Pingback: 如何在ubuntu中重启Unity – 骑木马的哥哥

Leave a Reply

Your email address will not be published. Required fields are marked *