42

I keep on experiencing weird bugs. These usually start after a few hours of use. Sometimes the dash starts opening under every open window (becomes only visible on desktop, but I still can search and open anything with the enter key while it's not visible). Also, there are other minor annoyances, such as random places (especially maximized Chrome, tabs area) after navigating between programs with alt+tab can't be clicked with the mouse. Switching back and forth fixes this.

I cannot use

compiz --replace

since after that, all of the app indicator icons are gone (only teamviewer stays). Skype, network, languages, sound (also keyboard sound up/down stops working) and date are gone. Restarting unity-panel-service does not help.

Any thoughts on how to resolve these?

2
  • I had a serious problem with that too, Yakuake terminal would stop responding, I solved it using this script secFixWindow.sh --fixcompiz that basically replaces with metacity, wait a bit and replaces again with compiz and all works fine :) Commented Aug 22, 2015 at 22:31
  • just to make it sure, I tried this xterm -e unity&disown 3 times subsequently, and it worked correctly but on the 4th time, yakuake was inaccessible and cairo-dock messed up its positioning; so that script with the timing still worked better. Commented Aug 23, 2015 at 2:53

2 Answers 2

46

You can press Alt+F2, then type unity, then press Enter to restart Unity.

  • Or you could use:

    sudo service gdm restart
    
  • On 14.04 and 14.10 use:

    sudo service lightdm restart
    
  • On 15.04 and 15.10 use:

    sudo systemctl restart lightdm.service
    
11
  • 1
    "unity" seems to work. I guess I'll have to wait for problems to appear and then try it.
    – daliusk
    Commented Jul 10, 2014 at 12:15
  • 3
    I think the command is sudo service lightdm restart on Ubuntu 14.04
    – user100464
    Commented Feb 2, 2015 at 20:36
  • 1
    And you should be able to use service on 15.04. It will use the appropriate systemctl command.
    – muru
    Commented May 4, 2015 at 17:00
  • 3
    In gnome 3, you can press Alt-F2 and enter r, and it restarts the shell without logging you out. It seems that unfortunately there's no way to do that with unity
    – nafg
    Commented May 11, 2015 at 7:39
  • 1
    On 20.04 LTS: "Failed to restart lightdm.service: Unit lightdm.service not found." Commented May 1, 2020 at 14:55
1

Try secFixWindow.sh:

secFixWindow.sh --fixcompiz

It basically

  1. replaces with Metacity,
  2. waits a bit and
  3. replaces again with Compiz.

Waiting is important to not mess with some applications like Yakuake or Cairo Dock.

6
  • 4
    Please don't run large shell scripts you download off the internet, unless you are going to take the time to read and understand all of it. Commented Mar 30, 2017 at 18:06
  • @JeffreyBlattman it is open source (not obfuscated, of course), unlike many applications out there that are machine dependent compiled and closed source, I mean, as I understand, any propietary application/driver have more chance to be a trustless source of problems than an open source anything that is around for some time already so other ppl could have poked on it, or am I missing something? Commented Mar 30, 2017 at 20:09
  • Yes, definitely you are missing something. Sourceforge is infested with malware and known to co-opt and modify abandoned projects. If are willing to inspect and understand the script, then fine go for it. Commented Mar 31, 2017 at 23:45
  • @JeffreyBlattman oh... thx on the info..., btw they seem to be scanning for malware (2016 on) but may be trust is lost already 2015, so alternatives Commented Apr 1, 2017 at 1:49
  • @JeffreyBlattman also, it seems they were/are targeting abandoned projects, and this one was not. The threat also seems not so high as virus or outlawed things, but instead, sneaky unwanted sofware that may break our privacy I guess..., so basically, not all sofware would be compromised but... as I said... trust is lost :( Commented Apr 1, 2017 at 1:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .