Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 02-16-2010, 12:49 PM   #1
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 10.10
Posts: 6

Rep: Reputation: 0
How to set xorg default niceness?


How can I set xorg's default niceness?
I found that things are better overall, if it runs higher than the default 0 niceness. How to make it to be automatical on startup?
Old 02-17-2010, 11:49 PM   #2
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Someone could tell you how to add to xorgconf file, but you could also just have a script that will nice the xorg process that runs automatically.

nice - run a program with modified scheduling priority

nice [OPTION] [COMMAND [ARG]...]

Run COMMAND with an adjusted niceness, which affects process schedul-
ing. With no COMMAND, print the current niceness. Nicenesses range
from -20 (most favorable scheduling) to 19 (least favorable).

-n, --adjustment=N
add integer N to the niceness (default 10)
Old 02-19-2010, 04:00 AM   #3
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 10.10
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I knew that one.

By the way Linux's scheduler and process priorities are somehow very not right, imho. At least compared to osx and xp upwards. CPU demanding applications especially with high IO demand simply render the system unusable very easily, something that happens much harder in the two other os-es. I found out that adjusting priorities has a negligible impact on this fact. Maybe this was that drove Con Kolivas mad too...

But I better not to hijack my own thread...
Old 03-01-2010, 10:00 AM   #4
Registered: Aug 2009
Location: Zeewolde, Flevoland NL
Distribution: Debian squeeze (Gnome) on netbooks; Debian Lenny on servers and Debian wheezy (XFCE) on new laptops
Posts: 144

Rep: Reputation: 23
Perhaps you could alter the /etc/X11/xinit/xinitrc file modifying the .xsession line into nice -n 10 .xsession or what is the command in your file or the nice value you want.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
network bandwidth niceness? witek Slackware 2 12-29-2009 04:50 PM
How do I set default font size in Debian Sid - using xorg.conf not xfree86 walterbyrd Debian 3 02-20-2008 01:24 PM
grub-set-default ... get-default? RaduH Linux - General 1 11-21-2007 01:05 PM
xorg screen res not being set properly with Xorg 6.9.0 sgnome Linux - Laptop and Netbook 2 06-12-2006 02:26 AM
niceness granny Linux - Newbie 1 03-10-2003 05:07 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration