Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1483
  • Last Modified:

stop and restart the xserver.

I am just new to linux. I am trying change the desktop size and its required to stop and start the xserver. which command will work to stop and restart the xserver.
0
ittechlab
Asked:
ittechlab
5 Solutions
 
nedvisCommented:
To restart ( unload form memory and reload) X server you just press
Ctrl  + Alt  +  Backspace  
keys all at the same time ( similar to Control Alt Delet in WIndows OS) .
Your screen will flicker couple times right after you've pressed those keys
which is the sign X server is restarting.

nedvis
0
 
NopiusCommented:
Also you may try Ctrl + Alt + gray +/-
to change your current screen  resolution without restarting xserver
0
 
rindiCommented:
Or you could open a terminal as root and enter

init 3

which will stop your X, then when you want to restart it, use

init 5

or

X

or

startx
...
0
 
ahoffmannCommented:
which X server, that spawned by the user, or that spawned by root for the login screen?
first is Ctrl+Alt+Backspace, second is as user root:
  /etc/init.d/xdm stop && /etc/init.d/xdm
(xdm may be another name on your system)
0
 
computerfixinsCommented:
The hack way :P

ctrl-alt f1 open a virtual term, ps -wx |grep x

#kill -9 <pid>

#startx
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now