Make A Choppy Desktop Feel Smooooth

Share your own howto's etc. Not for support questions!

Make A Choppy Desktop Feel Smooooth

Postby F37U5G0D » 2009-05-03 20:37

I had a problem recently in which when I was loading a website the mouse would get sticky. Taking slightly longer than it should to move instead of gliding smoothly across the screen. This problem was especially bad if I tried to load two or more pages. Then I noticed that if I did anything that was processor intesive I got the same effect It is difficult to explain but if you have this problem I am sure you know exactly what I'm talking about.
Anyway it took me a while to find a good answer but I finally did! If you set Xorg's nice value to -1 you will make it more important than any other process. Xorg is what draws the mouse (and the windows). If you go to /etc/X11/Xwrapper.config and change the last line from "nice_value = 0" to "nice_value = -1" and reboot you will be greated by a smooth as glass desktop.

Bottom Line (forgive the pun)

Change /etc/X11/Xwrapper.config from "nice_value = 0" to "nice_value = -1"
F37U5G0D
 
Posts: 102
Joined: 2008-07-27 01:30
Location: Monmouth, Il

Re: Make A Choppy Desktop Feel Smooooth

Postby Tadeas » 2009-07-04 06:56

Great advice, thanks!

However I have a little problem with it. It did work some time ago, but recently I've noticed, that Xorg starts with nice 0. It's probably after some upgrade (I'm running Sid), but I dunno which as it could be quite long between the change and between I've noticed. Anybody knows what could be wrong?
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: Make A Choppy Desktop Feel Smooooth

Postby garrincha » 2009-07-04 07:51

Tadeas wrote:Great advice, thanks!

However I have a little problem with it. It did work some time ago, but recently I've noticed, that Xorg starts with nice 0. It's probably after some upgrade (I'm running Sid), but I dunno which as it could be quite long between the change and between I've noticed. Anybody knows what could be wrong?

Run this as root:
Code: Select all
dpkg-reconfigure x11-common
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Re: Make A Choppy Desktop Feel Smooooth

Postby craigevil » 2009-07-04 15:05

# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
# dpkg-reconfigure x11-common
allowed_users=console

The line "nice_value = 0" is not there.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Make A Choppy Desktop Feel Smooooth

Postby Mr B » 2009-07-04 20:10

craigevil wrote:
The line "nice_value = 0" is not there.


If you run:-
Code: Select all
# dpkg-reconfigure x11-common
- you should get the option to edit the "nice" value....
Mr B
 
Posts: 184
Joined: 2008-07-26 15:30

Re: Make A Choppy Desktop Feel Smooooth

Postby craigevil » 2009-07-04 21:21

Mr B wrote:
craigevil wrote:
The line "nice_value = 0" is not there.


If you run:-
Code: Select all
# dpkg-reconfigure x11-common
- you should get the option to edit the "nice" value....

The only option it asks about is console users.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Make A Choppy Desktop Feel Smooooth

Postby gnudude » 2009-07-04 22:24

craigevil wrote:The line "nice_value = 0" is not there.

it is in my lenny install

craigevil wrote:The only option it asks about is console users.

it asks me a few things including nice value

are you running debian or sidux?
what priority is your debconf set for?
gnudude
 
Posts: 1712
Joined: 2009-04-05 17:30
Location: gone....

Re: Make A Choppy Desktop Feel Smooooth

Postby craigevil » 2009-07-05 06:49

Ok so is it "nice_value = -1" or without the quotes?
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Make A Choppy Desktop Feel Smooooth

Postby Mr B » 2009-07-05 08:02

This is the contents of my /etc/X11/Xwrapper.config

# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
# dpkg-reconfigure x11-common
allowed_users=console
nice_value=-1


On my Squeeze "dpkg-reconfigure x11-common" gives this:-

Image

Followed by this screen after the selection has been made:-

Image
Mr B
 
Posts: 184
Joined: 2008-07-26 15:30

Re: Make A Choppy Desktop Feel Smooooth

Postby Tadeas » 2009-07-05 17:52

It didn't ask me too. In Sid (not Sidux)
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: Make A Choppy Desktop Feel Smooooth

Postby gnudude » 2009-07-05 18:09

what about

dpkg-reconfigure -plow x11-common
gnudude
 
Posts: 1712
Joined: 2009-04-05 17:30
Location: gone....

Re: Make A Choppy Desktop Feel Smooooth

Postby pendrachken » 2009-07-12 21:38

Just renice the server when / if needed.

Use ps ax | grep X

to find your PID of the Xserver/s and
renice -n -1 PID1 PID2 etc etc....

That way if you don't need the GUI to be more responsive it won't try to grab more processor time, just renice it if it starts acting up.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1355
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Make A Choppy Desktop Feel Smooooth

Postby Tadeas » 2009-07-12 23:42

gnudude wrote:what about

dpkg-reconfigure -plow x11-common

Didn't change anything... It still asks only who is allowed to start X (root only, console users only, anybody)
Because let’s face it, the unfortunate aspect of software development is that it involves humans. Mewling, disorganized, miserably analog humans. Sometimes they smell bad.
User avatar
Tadeas
 
Posts: 1017
Joined: 2008-09-22 09:11
Location: Prague

Re: Make A Choppy Desktop Feel Smooooth

Postby Penguin Skinner » 2009-07-14 13:11

'dpkg-reconfigure x11-common' lets me set nice value; running Deb testing.
Penguin Skinner
 
Posts: 709
Joined: 2005-09-15 20:37
Location: North by Northwest

Re: Make A Choppy Desktop Feel Smooooth

Postby dbbolton » 2009-07-14 13:23

Has anyone dared to try anything lower than -1 ?
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable