Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 have installed ubuntu 12.04 in dual mode with windows 7. The screen goes black after the initial boot.

I have tried editing grub in the initial boot by typing i915.modeset=0 and it works, but how can I do it permanently? I am using HP G62 laptop with intel HD graphics.

share|improve this question

In a terminal window, type

gksudo gedit /etc/default/grub

locate the following line


add i915.modeset=0 in between the quotes, the end result looking like this


lastly, run sudo update-grub

share|improve this answer
I have tried but its not working; may be I am not following it correctly. as per my knowledge Alt+F2 brings window for running a command. On writing gksudo gedit /etc/dfault/grub it shows blank grub however on gksu gedit /etc/dfault/grub it opens grub. I edit it, save it and run sudo update-grub in run command window. then close editor. however once I boot again there is no change and screen goes black. once I edit grub during boot it does not show any change in grub file. I am unable to understand. plz help me out – ainwao Oct 22 '12 at 15:19
The first command had a typo, which is fixed now. You can verify that the i915.modeset=0 has been added by running cat /proc/cmdline in a terminal window (not alt-f2). The output should include the said option. – mikewhatever Oct 22 '12 at 15:38
plz elaborate how to go to terminal window in in 12.04 – ainwao Oct 22 '12 at 15:55
It Ubuntu 12.04, you can either search for 'terminal' in the Dash, or use ctrl-alt-t key combination. – mikewhatever Oct 22 '12 at 16:17
Glad the original problem is solved. If you think that my answer above helped, please accept it. As for any other problems, post them as separate questions with decent descriptions, and I'll do my best to help. To decribe a problem well, simple tell what exactly is wrong. For example, if you can't change the screen resolution, explain why not, cause I've no idea why you can't change it. – mikewhatever Oct 22 '12 at 18:44

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.