Just installed Ubuntu 12.04 on my UEFI ASUS laptop. Upon my first boot I am presented with a terminal instead of the GUI. I get a no screens found error if attempting to use startx. I am using an AMD Radeon HD 7730M with a Radeon HD 7660G switchable graphics configuration. How do I fix no screens error?

I have followed the instructions on this page How to turn off ATI Radeon HD 7730M (on Dell inspiron 7520)? in order to load the driver for my GPU and have the same result.

After completing installation I attempt to verify using the following command:


I get Error: unable to open display (null).

closed as off-topic by karel, David Foerster, Charles Green, hg8, Eric Carvalho Dec 30 '15 at 14:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – karel, David Foerster, Charles Green, hg8, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.


Open a terminal and issue the command:

sudo lspci|grep VGA

write down the first entries address xx:xx.x on the left (where xx:xx.x is the numbers displayed)

then issue the commands

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak (to back up your current config)

sudo nvidia-xconfig

sudo gedit /det/X11/xorg.conf (to edit configuration)

Move down to the Device section.

Just before the end section add BusID "PCI:XX:XX.X" Where XX:XX.X is your cards address you wrote down earlier.

Save the file, exit and reboot

Source: Ryan solution from comments with minor mods for backup and clarity

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