Brooke's World The life and ramblings of Brooke.

September 10, 2006

G41 laptop – nvida woes – dual monitors working!

Filed under: Linux,Ubuntu — Brooke @ 5:54 pm

In the process of getting dual-head, “TwinView” monitor support set up, I discovered an interesting challenge.

First, dual-head support allows you to have your computer display to output to two displays at the same time. In my case, the output is going to both the laptop display and an external monitor.

The challenge was that I had installed the nvidia-glx packages for the OpenSource nvidia driver support. Some time passed, so I forgot I had done that. Then, when I decided I wanted to have dual monitor support, I found a site that talked about modifying the /etx/X11/xorg.conf file after installing the closed-source, commercial, drivers directly from nvidia. So, I just installed the commercial drivers, with the help of a very bright friend, Theron. Theron was able to make the necessary modifications to the xorg.conf file and had my desktop spanning two monitors! This was exactly what I was looking for.

So, as any previously burned hacker of Linux config files has learned, it is a good idea to reboot after making changes that affect use of your hardware. This lets you fix any problems while you are still in the frame of mind of what you were messing with. Well, we quickly learned that there was an issue. We had to keep reinstalling the nvidia drivers after booting because the Xserver would no longer run. Then, we would run startx and everything would be fine until we rebooted. We later discovered that the problem was the nvidia-glx package that I had installed previously. After these packages were removed and the machine rebooted, everything was working great.

I am including the contents of my xorg.conf file I am using for those of you with nvidia cards (go5200) or a IBM G41 laptop as this should help you get running without having to mess as much. Make sure you make a backup copy of your xorg.conf before you make any changes.

X= Snip =X

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Tue Aug 1 21:11:12 PDT 2006

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

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

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

Section “InputDevice”

# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/psaux”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “InputDevice”

# generated from default
Identifier “Keyboard0”
Driver “kbd”
EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 30.0 – 110.0
VertRefresh 50.0 – 150.0
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 30.0 – 110.0
VertRefresh 50.0 – 150.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
EndSection

Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “TwinView” “True”
Option “TwinViewOrientation” “LeftOf”
Option “UseEdidFreqs” “True”
Option “MetaModes” “1280×1024, 1280×1024”
SubSection “Display”
Depth 24
Modes “1600×1200” “1280×1024” “1024×768” “800×600” “640×480”
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1”
Device “Device1”
Monitor “Monitor1”
DefaultDepth 24
Option “TwinView” “True”
Option “TwinViewOrientation” “RightOf”
Option “UseEdidFreqs” “True”
Option “MetaModes” “1280×1024, 1280×1024”
SubSection “Display”
Depth 24
Modes “1280×1024” “1024×768” “800×600” “640×480”
EndSubSection
EndSection

X= Snip =X

September 2, 2006

Flash Player in Ubuntu – Audio

Filed under: Linux,Ubuntu — Brooke @ 12:18 am

Well, it took awhile to find, but I finally found a solution to get my audio working reliably for Firefox w/ Flash. The crazy part is how simple the fix is!

I found this fix at the MacEwan blog site. Thanks to you Mac Ewan!

sudo aptitude install alsa-oss
sudo gedit /etc/firefox/firefoxrc

FIREFOX_DSP=”aoss”

August 19, 2006

Linux Podcasts

Filed under: Linux,Ubuntu — Brooke @ 4:10 am

I have found a few excellent podcasts while learning about Linux and would like to pass them on. Let me know if any others you have found and I will add them to my list!

July 26, 2006

Flash Player in Ubuntu

Filed under: Linux,Ubuntu — Brooke @ 4:11 am

So far, I have been able to work around any little gotchas on Ubuntu pretty quickly. That said, I am currently dealing with trying to get the Flash Player to play sound under Ubuntu. I am not having problems with system sounds, RhythmBox, Totem, etc. But, for some reason, about 90% of the things I try to access Flash Player with don’t produce sound. I have found quite a few postings on this problem but haven’t found a working answer yet. I will post what I find works for me!

July 15, 2006

Ubuntu Linux Installation: Mission Critical Applications

Filed under: Linux,Ubuntu — Brooke @ 7:27 pm

So, now that Ubuntu is up and running, it’s time to be productive and listen to music or watch some movies!

  • Adding MP3 Support to Totem Movie Player/RhythmBoxUnder Application | Add/Remove… Once there, click the Advanced button. Next, you will need to access the Settings | Repositories menu and check the “Community maintained (Universe)” items as well as the “Officially supported Restricted copyright Community maintained (Universe) Non-free (Multiverse) items. Altogether, I checked 4 boxes. Click Close, and then click the Reload button. Next, click the Search button and type “gstreamer.” Mark gstreamer…plugins-ugly. Finally, click Apply – click for details.
  • Adding divx (AVI) support… at a prompt, type: install gstreamer…-ffmpeg

July 13, 2006

It’s installed!

Filed under: Linux,Ubuntu — Brooke @ 3:39 am

So, what I did to fix my boot problems was to spend a bit more time preparing as well as allocating more space in the process to give me a better opportunity to work with Linux.

I learned about a tool called QTParted to be able to resize partitions from within Linux! I booted from the Ubuntu Live CD and installed QTParted using Application | Add/Remove… This allowed me to remove the partitions I had created on my slave drive and create a new one just for the swap space used by Linux. It also allowed me to shrink the 80GB partition on my master drive (C:) to 34GB. Of course, I had to make sure I had free space on the partition. Also, I used defrag in Windows before I started any of my repartition. Once I had the NTFS partition shrunk to 34GB, I had about 45GB of free space to install Ubuntu on.

I went ahead and installed Ubuntu again, this time using hda for the “root” partition and the hdb for the “swap” partition. The install went flawlessly! The CD was ejected and when the machine booted, I was presented with the GRUB boot menu that let me chose between Windows and Ubuntu with Ubuntu being the default. It felt great to be able to boot again without needing a CD to boot from.
Next, I will write about the mission critical applications I needed to get running – movie (avi/xvid) and mp3 support!

July 10, 2006

Doh! Partitioning got me…

Filed under: Linux,Ubuntu — Brooke @ 3:56 am

I should have known better….

Well, once I decided on Ubuntu, it was time to install it. So, I have a desktop with 2 hard drives. The primary (hda) has 80GB and the secondary (hdb) has 20GB.

So, I moved some stuff around and freed up about 4GB of the secondary drive. Here is where things went a bit off! I installed Ubuntu to this drive, but what I hadn’t thought about was how the boot loader would work. Well, the answer is, not so well! So the master boot record (MBR) was updated to use GRUB, but unfortunately, it wanted to boot from the secondary drive which apparently doesn’t work very well. After the install, I rebooted, and vioila, no operating system found! The good news is that I was able to fix this problem and it didn’t even require the Windows boot cd!

Which distro…

Filed under: Linux — Brooke @ 2:58 am

Well, after installing Fedora Core 6 and Ubuntu 6.0.6 LTS into a VMWare VM on windows, I decided to go with Ubuntu. What really appealed to me was the ability to initially try the Ubuntu distribution via the Live CD. This may seem silly, but it was a big time saver. In a matter of minutes, without affecting any of my existing machine configurations, I had Ubuntu running and was downloading, “installing applications”, surfing, etc. without installing anything!

Powered by WordPress