Life’s an ocean with too much commotion

Tag: tecra

Multihead display with NV43 GeForce Go 6600

by koenvereeken on Jun.09, 2008, under Tech

Here a short description on how to manage dualhead display with the NV43 GeForce Go 6600 on Ubuntu systems.

The binary drivers (listed below) available in the ubuntu repositories will not work by default for multihead displays:

  • nvidia-glx-envy
  • nvidia-glx-legacy
  • nvidia-glx-new

Instead, the source for the nvidia-new driver needs to be downloaded and compiled. This is how you do that:
$ sudo apt-get install module-assistant nvidia-new-kernel-source
$ sudo m-a prepare nvidia-new-kernel-source
$ sudo m-a build nvidia-new-kernel-source
$ sudo m-a install nvidia-new-kernel-source

Shut down your currently running Xorg daemon:
$ sudo /etc/init.d/gdm stop # or xdm, kdm if you're running another display manager

Force the newly compiled driver to be loaded when gdm starts, by inserting the following line in your /etc/init.d/gdm init script:
( modprobe i2c-dev ; modprobe i2c-core ; insmod /lib/modules/`uname -r`/nvidia/nvidia.ko )

Make sure you’re X configuration file is configured for multihead display. You will need support for Twinview with Xinerama support.
$ sudo apt-get install libxinerama-dev libxinerama1 x11proto-xinerama-dev

Here’s my X11 configuration file (I left out the keyboard and mouse settings):

Section “ServerLayout”
Identifier     “Layout0″
Screen      0  “Screen0″ 0 0
EndSection

Section “Files”
RgbPath         “/usr/X11R6/lib/X11/rgb”
EndSection

Section “Module”
Load           “dbe”
Load           “extmod”
Load           “type1″
Load           “freetype”
Load           “glx”
EndSection

Section “ServerFlags”
Option         “Xinerama” “0″
EndSection

Section “Monitor”
Identifier     “Monitor0″
VendorName     “Unknown”
ModelName      “TOSHIBA Internal Panel”
HorizSync       64.0 – 65.3
VertRefresh     60.0
Option         “DPMS”
EndSection

Section “Device”
Identifier     “Videocard0″
Driver         “nvidia”
VendorName     “NVIDIA Corporation”
BoardName      “GeForce Go 6600″
EndSection

Section “Screen”
Identifier     “Screen0″
Device         “Videocard0″
Monitor        “Monitor0″
DefaultDepth    24
Option         “TwinView” “1″
SubSection     “Display”
Depth       24
EndSubSection
EndSection

Leave a Comment :, , , , , , , , , , , , , more...

Boot Toshiba Tecra S3 with Ubuntu 7.10

by koenvereeken on Nov.06, 2007, under Tech

This howto will show you how to boot your upgraded Ubuntu properly on a Toshiba Tecra S3 laptop. Note that this workaround will not work when installing Ubuntu for the first time on your laptop. If so, you will have to change some BIOS settings so that the SATA controller will be recognized as a generic IDE controller. If not, follow this procedure:

When booting a Toshiba Tecra S3 for the first time, it will fail trying to find the SATA harddisk.

A kernel and initrd image has been provided to boot your linux distribution. The initrd image provides a pseudo filesystem (loaded in RAM) which will execute some bash scripts. These bash scripts will do a lot of checks and configuring and load various modules to detect as much hardware as possible needed for booting your linux distribution. The modules that are loaded are specified in the ‘conf’ directory (modules, initramfs.conf) and the ‘/etc/modprobe.d’ directory.

What goes wrong in this case, is that the ‘ata_piix.ko’ module gets loaded before the ‘ahci’ module. In fact, the ‘ata_piix.ko’ module may not be loaded at all. It is a low-level SCSI driver that only needs to be loaded for Intel PIIX/ICH ATA controllers. So what needs to be done is make sure that the ‘ata_piix.ko’ module is unloaded before the ‘ahci.ko’ module gets loaded. This can be done in the bash scripts that are executed in the initrd image.

Follow this procedure to do so:

  1. Boot your Ubuntu distribution with the recovery mode kernel
  2. Wait until the initrd scripts time out. This can take up to 5 minutes. After timeout you will be thrown in a shell, forked by the initram process.
  3. In this shell, execute the following commands:
  4. # modprobe -r ahci
    # modprobe -r ata_piix
    # modprobe ahci
    # mkdir /mnt
    # mount /dev/sda1 /mnt -t ext3
    # chroot /mnt
    # mkdir /tmp/unpacked
    # cd /tmp
    # cp /boot/initrd.img-2.6.22-14-386 initrd.img-2.6.22-14-386.gz
    # gunzip initrd.img-2.6.22-14-386.gz
    # cd /tmp/unpacked
    # cpio -id </tmp/initrd.img-2.6.22-14-386
    # vi /tmp/unpacked/scripts/functions

  5. In this file you will find a function load_modules(). Insert a line on top of this function:
  6. modprobe -r ata_piix 2>/dev/null 1>&2
    modprobe -r ahci 2>/dev/null 1>&2

  7. Save the file and execute the following commands:
  8. # vi /tmp/unpacked/conf/modules

  9. Add the following entry on top of the file
  10. ahci

  11. Save the file and execute the following commands:
  12. # cd /tmp/unpacked
    # find . | cpio -o -H newc | gzip -9 > /boot/initrd.img-2.6.22-14-386.new
    # vi /boot/grub/menu.lst

  13. In this file you have to rename the initrd image filename to the new one:
  14. initrd /boot/initrd.img-2.6.22-14-386.new

  15. Execute the following commands to exit chroot environment, and reboot
  16. # exit
    # reboot

Note: This works for Ubuntu Feisty too.

Leave a Comment :, , , , , , more...

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...