How can I reduce the CPU usage of X/LightDM?
Solution 1:
/usr/bin/X :0 -auth /var/run/lightdm/root/:0...
That isn't lightdm, but the X server which is essential to having a GUI on any Linux.
It shouldn't constantly use 12% of CPU, but CPU use should go up and down depending on the amount of "activity" that you are performing on your desktop.
To try the options suggested by @drake01's eHow Link, you must create a new file in /usr/share/X11/xorg.conf.d
. For example:
sudo nano /usr/share/X11/xorg.conf.d/99-mycputweaks.conf
-
Insert:
Section "Screen" Option "RenderAccel" "True" Option "DisableGLXRootClipping" "True" Option "DamageEvents" "True" Option "UseEvents" "True" EndSection
- Save, exit and reboot (or restart X from a virtual terminal).
You may also want to try Jupiter, a power-management applet designed specially for netbooks to try to improve your battery life. (available from PPA).
Solution 2:
Old thread, I know, but I got a serious issue with high cpu usage coming from /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
that led to an unbearable desktop performance (on a desktop computer).
No attempt to solve this was successful (new video driver, new kernel, xorg.conf edit,... even a fresh install)!
BUT: The reason for high cpu usage was that the PCI-network card and the video card used the same IRQ. There was a line in /var/log/syslog
that said "Disabling IRQ #16". After checking /proc/interrupts
I saw that both nvidia
(video card) and eth0
(NIC) were on the same interrupt (in my case IRQ #16).
So, what I did was just to put my network card into another PCI-slot. Done.
This thread http://www.linuxquestions.org/questions/slackware-14/disabling-irq-16-a-879964/page3.html brought the solution.
I hope this helps someone!
Solution 3:
X server has to run over the linux kernel to provide support for GUI i.e. for xfce in xubuntu, gnome in ubuntu, kde in kubuntu etc. So it has to run all the time while you have a gui running. I personally never faced the high X-server cpu usage on working machines, but a web search returns the link: http://www.ehow.com/how_7609862_reduce-cpu-usage-xorg.html See if it helps.