0

I was trying to speed up my tiny laptop by switching off OpenGL using Compiz. I guess there were also whole bunch of related plugins got disabled in the process. Then I lost the entire GUI desktop interface.

Could someone please tell me how to get everything back through command line?

Thanks.

Saigon
  • 1
  • 1
  • 5

1 Answers1

3

ON UBUNTU 14.04

  1. Switch to tty1 using Ctrl+Alt+F1

  2. Login to your user account

  3. And export your Display with

    export DISPLAY=:0
    
  4. Add opengl to Compiz active plugins list

    dconf write /org/compiz/profiles/unity/plugins/core/active-plugins "[`dconf read /org/compiz/profiles/unity/plugins/core/active-plugins | sed -r 's/(\[|\])//g'`, 'opengl']"
    

    Or reset the key to default

    dconf reset /org/compiz/profiles/unity/plugins/core/active-plugins
    

    If it didn't work, come back and reset all Compiz settings to defaults

    dconf reset -f /org/compiz/
    
  5. Restart graphical display manager after one of the dconf command above

    sudo service lightdm restart
    
  6. Switch back to tty7 (X graphic display) Ctrl+Alt+F7

Try login again.


However, Compiz ccsm applies changes instantly so may be it's a nice habit to make configuration backup before change.

  • Backup before change:

    dconf dump /org/compiz/ > compiz.dconf
    
  • Restore if things went wrong:

    dconf load /org/compiz/ < compiz.dconf
    
  • Sometimes it is helpful to monitor the changes: dconf watch /org/compiz/

Reference:

user.dz
  • 48,105
  • 1
    Thanks. Reinstalled Ubuntu already but thanks for your help. Now I know how to switch between tty and reenable things in Compiz. – Saigon Mar 20 '14 at 06:32
  • Ok, I added some info which may help others with similar problem. – user.dz Mar 20 '14 at 08:39