Thursday, 27 November 2008

The Closest Book Meme

(better late than never!)
  1. Grab the nearest book.
  2. Open it to page 56.
  3. Find the fifth sentence.
  4. Post the text of the sentence in your journal along with these instructions.
  5. Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.
The British party had hoped to leave their cold-weather clothes in Hong Kong; but their rapid transit had frustrated that plan, and Neill was still carrying his waxed jacket, which was fine for Yorkshire, but not entirely suitable for Brunei.
from SOS, a story about an army expedition to Borneo's "Death Valley" which went wrong and turned into a fight for survival.

Monday, 10 November 2008

Movember

Movember - Sponsor Me
It's Movember!

During Movember (the month formerly known as November) I'm growing a Mo to help raise awareness about men's health issues and being proactive in the fight against men's depression and prostate cancer.

You can follow my progress on my Mo Space!

To donate to my Mo you can either:

  1. Click this link https://www.movember.com/au/donate/donate-details.php?action=sponsorlink&rego=2049857&country=au and donate online using your credit card or PayPal account, or
  2. Write a cheque payable to ‘Movember Foundation', referencing my Registration Number 2049857 and mailing it to:

Movember Foundation
PO Box 292
Prahran VIC 3181

All donations over $2 are tax deductible in Australia. Other countries may have similar benefits.

The money raised by Movember is used to raise awareness of men's health issues and donated to the Prostate Cancer Foundation of Australia and beyondblue - the national depression initiative. The PCFA and beyondblue will use the funds to fund research and increase support networks for those men who suffer from prostate cancer and depression.

Did you know:

  • Depression affects 1 in 6 men....most don't seek help. Untreated depression is a leading risk factor for suicide.
  • Last year in Australia 18,700 men were diagnosed with prostate cancer and more than 2,900 died of prostate cancer - equivalent to the number of women who will die from breast cancer annually.

For those that have supported Movember in previous years you can be very proud of the impact it has had and can check out the details at: [ Fundraising Outcomes ].

Movember culminates at the end of month Gala Partés. If you would like to be part of this great night you'll need to purchase a [ Gala Parté Ticket ].

Thanks for your support

Thursday, 11 September 2008

You know you're using the computer too much when

Last Sunday morning, I was actually trying to sleep in longer by dreaming something like --extend-sleep=1h. I am not joking *sigh*.

It didn't work - but for a good reason - my family was waking me up with a breakfast in bed for Fathers day :)

Thursday, 14 August 2008

nVidia xinerama on a Dell M6300

I wrote recently about my efforts to get two screens going, with the primary screen not coming off the primary video output. I used a neat trick, the option:
Option         "UseDisplayDevice" "DFP-0"
The downside with that method of separate X screens, is that you can't drag a window from one to the other.

Now I decided I should try using xinerama. The use should be almost identical, with the advantage that I can drag windows from one screen to the other. There are other subtle advantages such as better panel integration, and general WM goodness.

1. Firstly, compile everything with xinerama support.

If you use a binary distribution, this is probably done for you. For gentoo, add this the /etc/make.conf:
USE="... xinerama"
I prefer this to using /etc/portage/package.use in this case, because you want to catch all future installations that can support this USE flag.

Now, recompile everything that can use the USE flag:
# emerge -vauDN world
(v)erbose, (a)sk, (u)pdate, (D)eep, (N)ewUSE

It shouldn't be necessary to include nvidia-drivers in the recompile, but you will need them installed.

2. edit xorg.conf

You must start with a working xorg.conf, and you must have only one display set up or this step will fail:

# nvidia-xconfig -c /etc/X11/xorg.conf-20080728 -o /etc/X11/xorg.conf --twinview --dynamic-twinview --twinview-orientation=LeftOf --twinview-xinerama-info-order=DFP-2,DFP-0 --constant-dpi --use-edid --use-edid-dpi --damage-events --render-accel

The options are:
  • -c uses a specified input file. I do this so I can start from the same point each time, rather than a constantly changing xorg.conf file
  • -o writes to this file
  • --twinview enables twinview
  • --dynamic-twinview enables dynamically change twinview settings
  • --twinview-orientation=LeftOf sets the second monitor to be left of the primary
  • --twinview-xinerama-info-order=DFP-2,DFP-0 says that DFP-2 (DVI) is the primary display
  • --constant-dpi --use-edid --use-edid-dpi --damage-events --render-accel are other settings I play with to fine tune performance.

3. Restart X

You probably know how to do this. Logging off usually does the trick.

If everything worked you should have:
  • log in screen on one display only
  • desktop extended to second display
  • windows open completely on one display and not in the middle
  • windows snap to the edge of one display
  • windows can be dragged to the second display
  • both displays can be treated like one large screen (my geometry is now 3840x1200!)

Monday, 28 July 2008

TwinView with a Dell E248WFP

So I received my Dell 24 inch LCD finally, after being told they were out of stock for a while... The colour is certainly more vibrant than my new Precision M6300 laptop screen, but I don't know if it's a good vibrant...

My setup is two X screens side by side. The laptop is on the right, and the LCD in the centre. You can use the real nVidia twinview, which should require xinerama support where available, but I didn't like the second display not having it's own gnome panels.

Both displays are 1920x1200. I used nvidia-xconfig and some manual tweaking to get it right. Note I backed up my xorg.conf file first to xorg.conf-20080728 so that I could run nvidia-xconfig multiple times from the same starting point:

sudo nvidia-xconfig -c /etc/X11/xorg.conf-20080728 -o /etc/X11/xorg.conf --separate-x-screens --no-constant-dpi --use-edid --use-edid-dpi --damage-events --render-accel

Now, this default setup creates an xorg.conf file that places the login screen on the primary display - the laptop. Annoying if you have the LCD in the centre. Simply swapping "Screen 0" and Screen 1" in the ServerLayout doesn't work, as the first screen will still be assigned to the laptop. You must force which screen is the primary screen by using UseDisplayDevice. In each "Screen" section, add:
    Option         "UseDisplayDevice" "DFP-0"

for the laptop LCD (or DFP), and
     Option         "UseDisplayDevice" "DFP-2"

for the external LCD. You may find yours is DFP-1. I use the DVI so perhaps DFP-1 is for the VGA.

Take note of the Identifiers for the two screens, and change the serverlayout to show:
    Screen      0  "DefaultScreen (2nd)"
Screen 1 "DefaultScreen" RightOf "DefaultScreen (2nd)"


Then restart X. The 0th screen is the "primary" screen, which will have your log-in window and all your usual panels and applets. The 1st screen has a default blank Gnome installation (if you use Gnome), but with the same background.

You could rename the Identifiers to make them a bit more readable.

The resultant xorg.conf file is on pastebin.

poRblems:
So far, the EDID DPI detection doesn't work, so applications that support the DPI and resize themselves aren't doing so for me, depending on the screen. Emacs does look a bit wierd on a 24 inch monitor, when the DPI is set for a 17 inch LCD!
 
Copyright 2009 Another Blog. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan