Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2010, 07:51 PM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default Restart KDE/Xorg
Well, there seems to be no tip on this so I'll contribute some.

KDE is nice but hogs memory and doesn't like to relinquish them. If you have a system that runs 24/7 and rarely restart then there could be performance degradation after a while if your system starts swapping.

The Ctrl+Alt+Backspace is not turned on by default so edit /etc/X11/xorg.conf and add under the "ServerFlags" section

Code:
Option "DontZap" "Off"
It should go on a new line.

Now open System Settings -> Regional & Language -> Keyboard Layout -> Advanced and enable the "Key sequence to Kill the X server" and apply changes. Alternatively, if you don't want to click through that many panels you can edit ~/.kde4/share/config/kxbrc and add to the Options.

Code:
terminate:ctrl_alt_bksp
The list is comma separated.

If you don't want to do all of that but still want to restart KDE, then you can do so by invoking at a terminal

Code:
kdeinit4_shutdown
You do not need to be root.

KDE should now die when you need it to die and restart gracefully without a system restart.
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #2  
Old 06-06-2010, 07:31 PM
foxofinfinety foxofinfinety is offline
Senior Member
 
Join Date: Mar 2010
Location: brilti, netherlands
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to foxofinfinety Send a message via MSN to foxofinfinety Send a message via Yahoo to foxofinfinety Send a message via Skype™ to foxofinfinety
Default
but, why so complicated?

two things:
ctrl+alt+F1
you then get a virtual terminal (TTY1)
login to the bash and run this:
Code:
sudo service kdm restart
kde will then restart.
Reply With Quote
  #3  
Old 06-07-2010, 12:41 AM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default
It isn't. I'm just showing different ways, either by Ctrl+Alt+Backspace or by kdeinit4_shutdown.

No sudo needed (unless editing the xorg.conf) nor going to another terminal.

That and your command doesn't work. There is no "service" command.
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|

Last edited by Fatmice; 06-07-2010 at 05:50 AM.
Reply With Quote
  #4  
Old 06-25-2010, 06:04 AM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default
Okay, I want to add that sometimes you might not need to kill KDE but just the window's manager then you would use

Code:
 kwin --replace &
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.