Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2012, 03:48 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Red face Issues with xrandr and setting up native display in Ubuntu on 2011 Macbook Air

I apologize, I'm new to Linux so please cut me some slack. I've tried all day to solve my problem on my own but every time I feel like I've finally made some progress I run into another road block. So, I have a Late 2011 model 11" Macbook Air that I have just installed Ubuntu 12.04 on via Parallels (the latest version). The native screen resolution on the 11" air is 1366x768, which is not an option for the resolution presets. I can run other resolutions for nowbut it needs to be fized eventually. So, I looked around and discovered xrandr and the newmode, addmode, etc. However, whenever I do any of this I eventually end up with the "Failed to get size of gamma for output default"

I read this article

as well as a few others and they suggest that the monitor is not supplying xrandr with the information it needs and therefore I should maually edit the xorg.conf file. However, I had no success locating such a file and have since learned that it no longer exists in Ubuntu. Then I searched for a way to create one manually and came across this article

which didn't help me much either. I just got

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

So, my question is what now? All I want to do is set up a resolution of 1366x768!

Any help would be greatly appreciated.

Turns out I didn't have Parallels Tools installed.....

Last edited by jnoble; 06-26-2012 at 08:36 PM. Reason: Resolved
Old 06-27-2012, 07:47 AM   #2
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,789

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
By default, X tries to use screen 0 when running the configure command, but screen 0 is already in use by the currently running X session, hence the error. To create the xorg.conf file when you're already running X, try:
sudo Xorg -configure :1
This will cause X to use screen 1 for the configuration process. I edit the newly-created file as needed, then copy it to /etc/X11/xorg.conf and restart X.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 12.04/MacBook Air 'Stand By' Bug enigma777 Linux - Laptop and Netbook 0 04-26-2012 05:13 PM
Mid-2011 MacBook Air intel HD3000 Xorg video fix gmuench Linux - Laptop and Netbook 0 09-06-2011 11:37 PM
[SOLVED] installing suse linux on a macbook air Linux - Laptop and Netbook 6 01-23-2011 04:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration