External monitor displaying in non-native resolution [Ubuntu 12.04]
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
External monitor displaying in non-native resolution [Ubuntu 12.04]
In attempting to hook up an external monitor to my netbook Ubuntu doesn't detect the monitor is plugged in (read: not showing up in Displays, not even as "unknown"), although on restart with it still connected (through VGA) display is cloned to the external monitor, albeit poorly.
The netbook's native resolution is 1024x600, but changes to 1024x768 when booted while connected to the external monitor (I assume that the external monitor is displaying in the 1024x768 also). The external monitor's native resolution is 1600x900, and displays with odd brown undertones, similar to that when F.lux or redshift are activated, although I have neither installed.
Additionally, I tried using XrandR to fiddle with the issues, but it always outputs
Code:
xrandr: Failed to get size of gamma for output default
Any ideas?
EDIT: After messing around with XrandR some more I've slightly progressed to
Code:
user:~$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1600 x 900
default connected 1024x768+0+0 0mm x 0mm
1024x768 0.0*
800x600 0.0
640x480 0.0
1600x900 59.9
user:~$ xrandr --output default --mode 1600x900
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed
I haven't tried hooking my netbook up to a larger monitor, but it might work better if you created an xorg.conf file with two different "Monitor" sections; one forthe netbook display and one for the external monitor. The advantage is that you could specify the resolution of each display. If it doesn't work, you're only out a few minutes of your time.
In /etc/xorg.conf.d put a video.conf file.man xorg.conf for details.
Gather your video card, Monitor1 and Monitor2. Use the settings HorizSync, VertRefresh, & PreferredMode for each monitor. One will have to be the primary monitor.
Sorry for being a bit clueless, but do I have to write the xorg.conf from scratch? I tried using
Code:
Xorg -configure
but it spit out
Code:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
ddxSigGiveUp: Closing log
as root will generate one for you when running X on display :0 (the default for most distros). As business kid points out, you don't need a complete xorg.conf file, just the appropriate sections in a configuration file in /etc/X11/xorg.conf.d/
Okay, I have the sample it generated and removed all of the unnecessary sections, but I'm not sure what I need to add to make everything work. Additionally I'm not sure which driver my graphics card is using, I just left what generated in the sample.
I dunno about that. It may be best, but if you have an oss driver (Usually xf86-video-something package) I'd try that. If there is a binary blob, and you go for it, you'll need that. Pick a driver from the output of
You may need a custom modeline in the monitor section. I do because my monitor does not report its EDID properly; without the modeline in the monitor section and the corresponding mode in the Screen section, I can't get the native 1680x1050 on my monitor. Looks like this:
Using the vesa driver, you can only get standard vesa modes, like 1024x768. To get 1024x600, you will need to specify the appropriate driver (my netbook uses the intel driver). When you run without an xorg.conf file (or the corresponding files in /etc/X11/xorg.conf.d, the netbook will use the default driver for the graphics system (which is very unlikely to be vesa). HTH
Alright, I made some revisions and put "video.conf" in /etc/X11/xorg.conf.d/, although I had to make the directory xorg.conf.d. I'm guessing it's still not right though, because my netbook gets stuck booting at the "5 dots screen" now.
EDIT: Managed to boot from usb and move the file out of the directory.
Well it didn't prevent me from booting this time, however sadly it hasn't changed anything. When I boot while connected to the external monitor, it gives me the options of 1024x768, 800x600, and 600x480.
X uses a 'Virtual' setting. The Virtual screen (one number usually). This laptop right now, according to xrandr, is mapping a 1024x768(virtual) screen to 1280x800, and 1440x900. Yes, 4:3 does not fit neatly on 16:9. No I don't know what it's up to.
The further your screens are apart is resolutions, refresh and screen size the more likely you are to run into trouble. It's Sod's_Law
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.