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 was trying to edit GRUB file at /etc/default/ for fixing the brightness issue.

But I am unable to do that as there is no option to save GRUB file after edit. This may be due to some permission issue.

How should I edit this file?

And issue I am trying to fix is: "display brightness problem with ubuntu 13.04"

share|improve this question
up vote 7 down vote accepted

You need to open the file as root.

gksu gedit /etc/default/grub

On 13.04 or later you might have to first install gksu:

sudo apt-get install gksudo

See also

share|improve this answer
Thanks It Worked. I wrote sudo gedit /etc/default/grub – Anwar Shaikh May 11 '13 at 20:31
I'd also like to point out that if you're running LXDE or XFCE you can use xedit instead of gedit while in a root terminal. – Valerie Anderson Jul 24 '14 at 19:51

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.