Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to give Gnome-Shell the highest priority, but I couldn't change the priority on the System Monitor, an error messeage says: Can't change priority's process with pid 2841 to -5. Access denied

I tried the following commands:

gksu gnome-system-monitor

But I can't find Gnome-Shell on the processes list, so I tried "renice command", like this:

sudo renice -15 2841

And finally got this problem, the Gnome-Shell's PID always changes, it's not the same PID numbers, so I have to change the priority every time I start up my system.

Can anyone help me? Thanks.

share|improve this question
Why would you want to reassign Gnome-Shell priority process?! The system manages just fine on its own, or is there any particular reason?! – v2r Mar 3 '12 at 10:07
I want to do that because ATI Driver is not fully compatible and sometimes Gnome Shell disappears for a few seconds then returns back, and some other time it disappears and suddenly falls back to classic mode without panels, so I have to hit ctrl+alt+del to logout and login back again, not to mention that some times the ctrl+alt+del method doesn't work and find myself with no option but power off my laptop and turn it on again. – user32655 Mar 3 '12 at 11:58
Playing with the priority of processes will not help - your problem is with your graphics driver & your graphics card. What driver are you using? what graphics card (lspci | grep VGA) and what version of ubuntu? Remember - edit all responses back into your question. – fossfreedom Mar 3 '12 at 17:36
I'm using Ubuntu 11.10 x64 and my graphic driver is ATI, changing the priority somehow helps a little bit, I want to change it until ATI fixes all GNOME 3 problems, that if they did anyway... – user32655 Mar 3 '12 at 21:23
You just keep asking me why do I need to change the priority, just tell me how to do it, that will be more helpful than answering me with questions. – user32655 Mar 4 '12 at 12:49

I have to agree with your commenters that this is not a good idea and not likely to help, and I can't really recommend it, but here goes:

renice -15 -p $(pgrep gnome-shell)

This will figure out the PID of gnome-shell and change the priority. You would need to run the command as root and place it in a cron job so that it would automatically renice all processes with that name.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.