Applying changes to xorg.conf without restarting

I'm making use of Ubuntu 12.04 and also making some adjustments to /etc/X11/xorg.conf. I currently require to reactivate X web server to use the adjustments, yet I do not intend to reactivate my equipment.

I recognize reactivating the display screen supervisor (eg. lightdm) will occasionally function, is this the most effective means to do it?

2022-06-07 14:39:44
Source Share
Answers: 3
  1. Backup your initial xorg.conf
  2. Make the adjustments you desire in xorg.conf
  3. Execute the command: killall X
  4. Ubuntu will certainly refill the X for you with new xorg.conf
2022-06-07 15:10:23

Try this from the command line:

sudo restart lightdm

or conversely

 sudo service lightdm restart

I am not exactly sure what will certainly take place if you are currently running X, yet it needs to reactivate it, so much better liquidate all windows first.

See Restart X Server Ubuntu 12.04 Without Rebooting and also How to kill and to start the X server? for additional information.

Constantly an excellent suggestion to maintain a duplicate of any kind of arrangement documents prior to you change it to make sure that you can conveniently restore it if something goes awry.

2022-06-07 15:09:47

Logging out of the session will certainly create X to reactivate with the majority of present supervisors.

As recommended by somebody else, you can additionally attempt sudo restart lightdm, nonetheless, relying on your display screen supervisor this could additionally be sudo restart gdm or sudo restart kdm (you made use of lightdm as an instance, so I'm thinking that is what you've obtained ; simply intended to cover all the bases).

EDIT: Removed Ctrl + Alt + Backspace as a person mentioned that this has actually been disabled in Ubuntu. Might benefit individuals on various distros that find this string.

2022-06-07 15:07:59