Skip to main content

Dual screen for Dell D830

My Dell D830 uses an Intel Graphic Card GM965. To use dualscreen, you must use the package xrandr.
As a normal user you can see your current configuration with:
xrandr -q
When you connect a second monitor (docking station), then by default you will get both screens displaying the same. Example:
jan@southfork:~$ xrandr -q
Screen 0: minimum 320 x 200, current 3600 x 1200, maximum 3600 x 1200

VGA disconnected (normal left inverted right)

LVDS connected 1920x1200+0+0 (normal left inverted right) 331mm x 207mm

1920x1200 60.0*+

1280x800 60.0

1280x768 60.0

1024x768 60.0

800x600 60.3

640x480 59.9

TMDS-1 connected 1680x1050+0+0 (normal left inverted right) 434mm x 270mm

1680x1050 59.9*+

1280x1024 75.0 59.9

1152x864 74.8

1024x768 75.1 60.0

800x600 75.0 60.3

640x480 75.0 60.0

720x400 70.1

TV disconnected (normal left inverted right)


In my example above you will see that both screens start their output at +0+0 (0,0). I would like to put one screen next to the other. That is, I will get a screen that is 1920 + 1680 = 3600 wide. In order to make it fit, I must make sure that the it will fit in the maximum screen size. By default the maximum screen size is set equal to the largest mode: 1920x1920. I increased it to 3600x1200. You do this by adding a xrandr specific parameter to your xorg.conf file:
Section "Screen"

Identifier "Default Screen"

Device "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"

Monitor "Generic Monitor"

DefaultDepth 24

SubSection "Display"

# Modes "1920x1200"

Virtual 3600 1200

EndSubSection

EndSection

I needed to comment out the Modes line, else my X would not start any more.
Now you can restart X (logout / login) and change the display to two screens with:
xrandr --output TMDS-1 --mode 1680x1050 --left-of LVDS
Now I will get my laptop screen to the right of my DVI screen.


You can also apply these settings to your xorg.conf file, but that effort I will save for a next time :-).

Comments

Popular posts from this blog

Create a groovy console and bind to selenium

Required groovy files In the previous posting we defined the pom file that we need for our build environment. Now we will setup some groovy files to get selenium and groovy running interactively. ConsoleWaiter.groovy The idea of Groovy Console I found on some other sides. Honour goes for instance too: http://josefbetancourt.wordpress.com/tag/eclipse-2/ I copied some code of this, and put it under src/test/groovy/com/jankester/selenium/test/utils: package com.jankester.selenium.test.utils /** * File: ConsoleWaiter.groovy */ import groovy.lang.Binding; import groovy.ui.Console; /** * Provides a wrapper for the console. * * Based on source by John Green * Adapted from: http://www.oehive.org/files/ConsoleWaiter.groovy * Released under the Eclipse Public License * http://www.eclipse.org/legal/epl-v10.html * * I added methods to allow use from Java. * * The run() method launches the console and causes this thread * to sleep until the console's window is closed.

SSL handshake failed: Secure connection truncated

Got this problem on Ubuntu 9.10 and 10.10. svn co --username=xx https:/yy zz “SSL handshake failed: Secure connection truncated” According to this link bug-ubuntu The solution is: sudo apt-get install libneon27 cd /usr/lib/ sudo rm libneon-gnutls.so.27 sudo ln -s /usr/lib/libneon.so.27 libneon-gnutls.so.27

Junit4 running parallel junit classes

To run junit testcases parallel, you can create your own class to run junit with: Add this tag to your class declaration. @RunWith(Parallelized.class) Implementation of this class looks like: package mypackage; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import org.junit.runners.Parameterized; import org.junit.runners.model.RunnerScheduler; public class Parallelized extends Parameterized {         private static class ThreadPoolScheduler implements RunnerScheduler     {         private ExecutorService executor;                 public ThreadPoolScheduler()         {             String threads = System.getProperty("junit.parallel.threads", "16");             int numThreads = Integer.parseInt(threads);             executor = Executors.newFixedThreadPool(numThreads);         }                 public void finished()         {             executor.shutdown();             try