LinuxHappy's Weblog

Failures and Successes of Linux-based Development

Archive for the ‘Ubuntu’ Category

Virtualbox on Ubuntu 7.10 Gutsy

Posted by linuxhappy on July 6, 2008

I bit the bullet this morning on (finally) upgrading my kernel headers from 2.6.22-14 to 2.6.22-15 on Ubuntu 7.10. I was holding off because I knew my binary nvidia drivers would be a pain, and I’ve been loaded up with things at work.. So, naturally –July 4th weekend is a perfect time to sit down and wrestle with all the fun linux version dependencies.

K, Nvidia drivers– a bit of a pain, I had to go through a series of uninstall/install/xorg.conf/envy massaging before I got it back to normal, but.. fine.. Virtualbox on the other hand… ugh. It was literally firing some fireworks straight into my face. KABLooy. I could write about it but I found an article that expresses exactly what I ran into:

http://www.terminally-incoherent.com/blog/2008/06/24/virtualbox-b0rken-by-gutsy-kernel-upgrade/

Basically moving from 2.6.22-14 to 2.6.22-15 — I guess there isn’t support for the 2.6.22-15 vboxdrv kernel module. Soo solution was to move from the OSE to the non-free binary under the PUEL License. Since this is for personal use– HOoorayY!. I tried compiling the OSE kernel modules for -15, but moving to this other version of virtual box was soo much easier. It even upgraded my Virtualbox config files under ~/.VirtualBox so that I didn’t loose any data from my host operating systems. Awesome!

Posted in Linux, Ubuntu | Tagged: | Leave a Comment »

Frustrations: Dual screen Linux

Posted by linuxhappy on March 27, 2008

Okay, this post is more or less going to be rant about the past 4 hours. I had Fedora Core 8 on my box.. A dell GX620.. it’s got an Intel 82945G/GZ Integrated graphics chip. FC8 has been ‘ok’, I really didn’t get too much mileage out it because was sshed into it most of the time, and also I wasn’t very attracted to the fact that I had to download about 800mb of updates right after installing it.. The other turn off was the fact that compiz worked once.. and then I rebooted my machine, and then Fedora told me that it could no longer run compiz. UGH!  Anyways.. at around 2pm today, I have a need for a Linux dual screen system. Since I’ve heard so many great things about Fedora Core 8, I figure I give dual screens a whirl. Well.. I tried a couple of the screens and graphics resolution gui’s but all I got were cloned desktops… no help. So seeing how I wasn’t impressed with Fedora Core 8 anyways, I figure I dump it like a smelly x girlfriend and move on to ubuntu 7.10.

A long story short, Ubuntu 7.10 didn’t seem to solve my problem either. The first time I booted xrandr noticed I had a VGA out and a DVI out, but upon following some instructions here:

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2

xrandr seemed to only want to notice only one (vga) of my video ports. Somehow after running `sudo dpkg-reconfigure -phigh xserver-xorg` everything when crazy. Soo after about an hour and a half of trying to get back to where xrandr was seeing two screens, I gave it the middle finger and moved on.

Ubuntu 8.04 is still in beta, and I really hate beta software, but I figure I had nothing to loose since I just formatted my machine to ubuntu 7.10. Anyways.. I was able to get dual screens within 15 minutes of booting the machine a fully installed ubuntu 8.04 machine. All i had to do was modify /etc/X11/xorg.conf with the “virtual” line and then user xrandr to move my screens around.. Some examples can be found here:

http://intellinuxgraphics.org/dualhead.html

Needless to say… Linux distros needs better support for dual screens.. and making it work with compiz. I’d like some sort of gui, comparable to what microsoft windows offers.. I was hoping that the new version of gnome on ubuntu 8.04 would offer it, but the closest thing that I could find was grandr, (which is also offered on ubuntu 7.10) the frontend to xrandr.. Ohwell. Maybe one day.

Posted in Linux, Ubuntu | Leave a Comment »

Sucess: svn + apache2 + SSL + ubuntu 7.10/8.04 + users + part 2: trac

Posted by linuxhappy on January 21, 2008

—————-

UPDATE: 6/22/08

I tried using these instructions on Ubuntu 8.04 and everything still works.  I’m not sure why someone commented saying that the instructions don’t work.. I’m curious.

———————

Wow, This was super easy to get going:

The link over on the trac website is pretty spot on, but I had to modify it a little bit.. Credits:

http://trac.edgewall.org/wiki/TracOnUbuntu

This is a continuation of my previous post. This post definitely depends on the last one, so if you haven’t checked it out, go for it.

Install trac

sudo apt-get install trac

Make a directory for trac to live in

sudo mkdir /var/lib/trac
 sudo chown www-data:www-data /var/lib/trac

Setup Apache2:

cd /etc/apache2/sites-available/
sudo touch trac
sudo gedit trac

Enter, or copy the following stuff in (be careful with the ServerName): (modified on march 2nd to make sure the ssl is enabled)

<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        ServerName monkfish
        DocumentRoot /usr/share/trac/cgi-bin/
        <Directory /usr/share/trac/cgi-bin/>
                Options Indexes FollowSymLinks MultiViews ExecCGI
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
        Alias /trac "/usr/share/trac/htdocs"

        <Location /trac.cgi>
            SetEnv TRAC_ENV "/var/lib/trac"
        </Location>

        <Location "/">
            AuthType Basic
            AuthName "Trac"
            AuthUserFile /etc/apache2/dav_svn.passwd
            Require valid-user
        </Location>

        DirectoryIndex trac.cgi
        ErrorLog /var/log/apache2/error.trac.log
        CustomLog /var/log/apache2/access.trac.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM

</VirtualHost>

Modify /etc/apache2/apache2.conf to have the following line(s):

# To use CGI scripts outside /cgi-bin/:
#
AddHandler cgi-script .cgi

Disable the default virtual host, enable trac and restart apache2

sudo a2dissite default
sudo a2ensite trac
sudo /etc/init.d/apache2 restart

Since we have already setup a svn repository in /var/lib/svn, we can just go ahead and continue to use trac-admin

sudo trac-admin /var/lib/trac initenv

This will basically ask you a bunch of questions... here's how I filled mine out:

jwoo@monkfish:/var/lib/trac$ sudo trac-admin /var/lib/trac initenv
Creating a new Trac environment at /var/lib/trac

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> linuxhappy

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]> 

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration,
 choose the default here and don't specify a repository directory.
 in the next question.

Repository type [svn]> 

 Please specify the absolute path to the version control
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> /var/lib/svn 

 Please enter location of Trac page templates.
 Default is the location of the site-wide templates installed with Trac.

Templates directory [/usr/share/trac/templates]> 

Creating and Initializing Project
 Installing default wiki pages
 /usr/share/trac/wiki-default/TracChangeset => TracChangeset
 /usr/share/trac/wiki-default/TracStandalone => TracStandalone
 /usr/share/trac/wiki-default/TracSearch => TracSearch
 /usr/share/trac/wiki-default/CamelCase => CamelCase
 /usr/share/trac/wiki-default/TracPlugins => TracPlugins
 /usr/share/trac/wiki-default/RecentChanges => RecentChanges
 /usr/share/trac/wiki-default/WikiRestructuredText => WikiRestructuredText
 /usr/share/trac/wiki-default/TracTickets => TracTickets
 /usr/share/trac/wiki-default/InterWiki => InterWiki
 /usr/share/trac/wiki-default/WikiPageNames => WikiPageNames
 /usr/share/trac/wiki-default/TracUnicode => TracUnicode
 /usr/share/trac/wiki-default/WikiNewPage => WikiNewPage
 /usr/share/trac/wiki-default/WikiProcessors => WikiProcessors
 /usr/share/trac/wiki-default/TracLinks => TracLinks
 /usr/share/trac/wiki-default/WikiMacros => WikiMacros
 /usr/share/trac/wiki-default/TracUpgrade => TracUpgrade
 /usr/share/trac/wiki-default/TracQuery => TracQuery
 /usr/share/trac/wiki-default/WikiStart => WikiStart
 /usr/share/trac/wiki-default/TracRoadmap => TracRoadmap
 /usr/share/trac/wiki-default/TracLogging => TracLogging
 /usr/share/trac/wiki-default/TracAdmin => TracAdmin
 /usr/share/trac/wiki-default/TracBackup => TracBackup
 /usr/share/trac/wiki-default/TracFastCgi => TracFastCgi
 /usr/share/trac/wiki-default/WikiHtml => WikiHtml
 /usr/share/trac/wiki-default/TracRss => TracRss
 /usr/share/trac/wiki-default/TracAccessibility => TracAccessibility
 /usr/share/trac/wiki-default/InterMapTxt => InterMapTxt
 /usr/share/trac/wiki-default/WikiRestructuredTextLinks => WikiRestructuredTextLinks
 /usr/share/trac/wiki-default/TracInterfaceCustomization => TracInterfaceCustomization
 /usr/share/trac/wiki-default/TracTimeline => TracTimeline
 /usr/share/trac/wiki-default/TracPermissions => TracPermissions
 /usr/share/trac/wiki-default/TracEnvironment => TracEnvironment
 /usr/share/trac/wiki-default/TracReports => TracReports
 /usr/share/trac/wiki-default/TracRevisionLog => TracRevisionLog
 /usr/share/trac/wiki-default/TracTicketsCustomFields => TracTicketsCustomFields
 /usr/share/trac/wiki-default/WikiFormatting => WikiFormatting
 /usr/share/trac/wiki-default/TracGuide => TracGuide
 /usr/share/trac/wiki-default/TracIni => TracIni
 /usr/share/trac/wiki-default/TracModPython => TracModPython
 /usr/share/trac/wiki-default/TracSyntaxColoring => TracSyntaxColoring
 /usr/share/trac/wiki-default/TracCgi => TracCgi
 /usr/share/trac/wiki-default/TracBrowser => TracBrowser
 /usr/share/trac/wiki-default/SandBox => SandBox
 /usr/share/trac/wiki-default/TracSupport => TracSupport
 /usr/share/trac/wiki-default/InterTrac => InterTrac
 /usr/share/trac/wiki-default/TitleIndex => TitleIndex
 /usr/share/trac/wiki-default/TracWiki => TracWiki
 /usr/share/trac/wiki-default/TracInstall => TracInstall
 /usr/share/trac/wiki-default/TracImport => TracImport
 /usr/share/trac/wiki-default/WikiDeletePage => WikiDeletePage
 /usr/share/trac/wiki-default/TracNotification => TracNotification
 Indexing repository

---------------------------------------------------------------------
Project environment for 'linuxhappy' created.

You may now configure the environment by editing the file:

  /var/lib/trac/conf/trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

  tracd --port 8000 /var/lib/trac

Then point your browser to http://localhost:8000/trac.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

  http://trac.edgewall.org/

Congratulations!

Since we ran that as sudo, we’ll need to change some permissions:

cd /var/lib
sudo chown www-data:www-data trac/ -Rf
sudo /etc/init.d/apache2 restart

At this point you should be home free and be able to visit https://yoursite/ and login with the same users as were setup with the svn (setup in the previous post).
Once logging in, you should see the trac homepage.

This worked fine and dandy for me!

Posted in Ubuntu, Uncategorized | Tagged: , , , , , , , | 4 Comments »

Sucess: Subversion, apache2, SSL, ubuntu 7.10/8.04, with users

Posted by linuxhappy on January 21, 2008

—————————–

UPDATE: 6/21/08

I followed my instructions for Ubuntu 8.04 and everything seems to work a-ok!  Make sure if you’re on ubuntu 8.04, do all the security updates before you start!

——————————–

I’m setting up a subversion source control server at home because I need some sort of version control system. I know there’s lots of tutorials out there on doing this, but none of them seemed to work start to finish from a super uber fresh ubuntu 7.10 machine… It’s understandable, most people already have live systems running.. So after all subversion/ssl/apache research, I’m basing this post on two (very exceptional) tutorials:

HOWTO – Apache2 + Subversion + SSL

http://ubuntuforums.org/showthread.php?t=51753

Subversion over Apache 2 on Ubuntu

http://davidwinter.me.uk/articles/2006/02/16/subversion-over-apache-2-on-ubuntu/

I’m going to take the approach that you’ve just installed Ubuntu 7.10 Gutsy Gibbon and starting out fresh. This setup is overkill for one guy using one source control server, but, in case one day I want to setup an Enterprise Subversion server.. well I can say that I have done it.. sooo here we go!

Apache + Subversion + SSL + Certificates + users
.. just for me.. ha ha ha ha
First!!!!…

 - Boot your freshly installed Ubuntu machine

 - Install all the updates with that handy dandy popup that ubuntu gives you in the upper
right hand corner and then grab a beverage of choice:
 [ beer | wine | box juice | mineral water | coffee | tea ]

 - Reboot if needed, then open a shell!

Install openssh-server

sudo apt-get install openssh-server

Install apache2

sudo apt-get install apache2

Install subversion

sudo apt-get install subversion

Install libapache2-svn

sudo apt-get install libapache2-svn

Restarting apache

sudo /etc/init.d/apache2 restart

Now lets enable SSL

sudo a2enmod ssl

At this point if you cat the file /etc/apache2/ports.conf, it should say the following:

jwoo@monkfish:~$ cat /etc/apache2/ports.conf
Listen 80
<IfModule mod_ssl.c>
    Listen 443
</IfModule>

Ok, now we have to run this apache2-ssl-certificate, here’s what I did:

cd
mkdir temp
cd temp
wget http://launchpadlibrarian.net/7477840/apache2-ssl.tar.gz
tar -xzvf apache2-ssl.tar.gz
sudo cp ssleay.cnf /usr/share/apache2/.
sudo mkdir /etc/apache2/ssl
sudo ./apache-ssl-certificate
[ Fill in your custom information ]

Modify your own ssl site (/etc/apache2/sites-available/myown-ssl)

cd /etc/apache2/sites-available
sudo cp default myown-ssl
sudo gedit myown-ssl

Change this from: NameVirtualHost *
To:                       NameVirtualHost *:443

Change this from: <VirtualHost *>
To:                       <VirtualHost *:443>

Right before </VirtualHost>, add in:

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM
	(save, quit)

Now,

sudo a2ensite myown-ssl
sudo /etc/init.d/apache2 restart

Now modify your dav_svn.conf file

sudo gedit /etc/apache2/mods-available/dav_svn.conf
<Location /svn>
	DAV svn
	SVNPath /var/lib/svn
	AuthType Basic
	AuthName "Subversion Repository"
	AuthUserFile /etc/apache2/dav_svn.passwd
	Require valid-user
</Location> 

(save and exit)

Now lets create the directory that svn will use

sudo mkdir /var/lib/svn
sudo svnadmin create /var/lib/svn
sudo chown -R www-data /var/lib/svn

Now to create a user, use the following:

sudo htpasswd -cm /etc/apache2/dav_svn.passwd jwoo
	(use any user name you want, don't use mine.. unless you have the same name as me)

Now, restart!

sudo /etc/init.d/apache2 restart

Ok. now at this point, you should be able to use firefox to go to:

https://yourserver/svn

and login with the user name and password you just created

So, now we can start adding in a structure for our source control server.

svn mkdir https://yourserver/svn/project -m "new project"
svn mkdir https://yourserver/svn/project/trunk -m "trunk"
svn mkdir https://yourserver/svn/project/branches -m "branches"
svn mkdir https://yourserver/svn/project/tags -m "tags"

Part 2, I’ll get trac going.

Posted in Ubuntu | Tagged: , , , , , , | 15 Comments »

Workaround: Brightness on Toshiba tecra A9 using Restricted drivers on Ubuntu

Posted by linuxhappy on December 17, 2007

What a pain.

I’ve had this new laptop (Toshiba tecra A9, with nVidia Quadro NVS 130M) with Ubuntu 7.10 has been more than a pain in the butt (although probably less of a pain in the butt compared to other distros).

Anyways, yet another issue I ran into is modifying the brightness controls. Using the open source drivers, the brightness controls work perfectly, but then I don’t get 3d support. Using the restricted drivers, brightness controls don’t work, but I get 3D support. I played around with a couple of things while using the restricted drivers:

1. proc filesystem:
There were a couple articles expressing that modifying values inside of the proc filesystem (/proc/acpi/…/brightness). Would actually change the screen brightness. This didn’t seem to work for me. Why it didn’t work? Couple theories why this didn’t work:

a. The kernel module that provides that proc entry isn’t the kernel module that actually controls the brightness

b. The kernel module that provides that proc entry doesn’t know enough information about my lcd backlight/video driver combination.

2. smartdimmer:
Tried this little program, but got an immediate “init_nvclock() failed!”. a couple searches and it was apparent that all this app does is try to smartly modify the proc filesystem.

3.gconf-editor:
Some type of gnome configuration editor I stumbled upon. I figure that instead of being able to control the brightness, I just leave the brightness all the way up ;). Anyways, opened up /apps/gnome-power-manager/backlight && played around but booting my laptop without the AC plugged in seemed to make my laptop still boot up in with the brightness dimmed down

4. (Successful work around) Ctrl + Alt+F1, to change to a virtual terminal, use the vesa driver to modify the brightness with (ctrl+alt+[f6|f7]), then press ctrl+alt+f7 to get back to X. (Credit to: Thinkwiki)
Option 4 seems to work “okay”.. at least it’s a way to turn the brightness to maximum without restarting my computer. I hope that one day nVidia open source’z their drivers.

Posted in Ubuntu | Tagged: , , , , , , , | 8 Comments »

3/4 Success: Toshiba Tecra A9 Laptop speakers do not mute when external speakers plugged in

Posted by linuxhappy on December 1, 2007

Ok. I don’t have a good explanation of this, and I don’t plan on having one because I don’t plan on reformatting my computer and going through each and every step. I kind of stumbled upon this one, and somehow got it working. Probably one of the worst things an engineer could do.. ugh. I hate not knowing the root cause, although I have my suspicions why things are working.

First of all, my Running Ubuntu 7.10 on my Toshiba Tecra A9. The Tecra has a RealTek ALC262.. and according to the ALSA documentation and a few postings online I read.. it isn’t normal for a toshiba to have a ALC262.

jwoo@aji:~$ cat /proc/asound/card0/codec#0|grep -i codec
Codec: Realtek ALC262

Ok. So The first couple of things that I did was try modifying /etc/modprobe.d/alsa-base

Tried a couple things
1. At the end of the file, I added the following variations, none which seemed to work:

options snd-hda-intel model=toshiba
options snd-hda-intel model=lenovo
options snd-hda-intel model=auto
options snd-hda-intel model=basic

None of which seemed to work. Grr. So then I stumbled upon the following webpage:
https://help.ubuntu.com/community/HdaIntelSoundHowto

Webpage seems kind of frightening with the “sudo make install” but being tired on a friday night, and pretty desperate (for the sound to work… not necessarily a date), I figure I give the instructions a shot with the new version of ALSA 1.0.15, since I noticed that Gutsy comes with 1.0.14. I also checked the change log of ALSA 1.0.15 and there was some mention of ACL262.. I figure I give it a shot.

Anyways.. followed the instructions.. rebooted..I guess I didn’t notice it right away because I expected the sound to muted once I plugged in the headphones. What happened *i think* is ALSA 1.0.15 (alsactl) correctly detects my soundcard/codec/whatever and comes up with new knob that specifically controls the volume of the speakers on the laptop. I guess it was done this way, so that you’re not limited to having the speakers or the headphone jack…. You have the option of having one, the other, or both playing.

One thing does bother me about the make install processes of that website (which is why it’s a 3/4ths success). Looking at the dates of what’s inside /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel
the date for snd-hda-intel.ko is at 2007-10-12. Does this mean I’m still running the 1.0.14 version of the kernel module? Probably. Why can I properly control the laptop speaker volume and the headphone jack volume? Perhaps all I needed were the newer versions of the ALSA user space libraries? Hmmm.. interesting… Maybe one of these days I’ll find out..

So… final config that i have…

1.
/etc/modprobe.d/alsa-base has the following line appended to the end of the file:

options snd-hda-intel model=basic

2. Doing a half ass install (following the hdaintelsoundhowto) of Alsa 1.0.15.

time to sleep.

Posted in Ubuntu | Tagged: , , , , , , , , | Leave a Comment »

Success: Dual Screen Toshiba Tecra A9

Posted by linuxhappy on November 29, 2007

EDIT: FEB: 24th 2008

THIS POST SHOULD BE COMPLETELY IGNORED. The easiest way to deal with dual screens on a Toshiba Tecra A9 (for me) has been to use Envy to install the latest and greatest video driver. Once installed, you can use the Nvidia GUI based app to change resolutions/dual screens etc (without even restarting X).

Looks like my first post is going to be a Linux success. Kind of sad cause I was hoping to get into some kernel hacking right away… That’s okay. I just bought a new Toshiba Tecra A9 with an NVIDIA Quadro NVS 130M (1680×1050), and I’m sure I’ll have lots of things to debug.

Running Ubuntu 7.10, and using the open source (ubuntu supported drivers) video drivers seemed slow… but stable. The dimmer/brightener (fn f6 and f7) work with the open source drivers, but not with the restricted drivers. UGH! What a pain, I’ll have to maybe talk to the Ubuntu forum one day, or maybe fix it somehow myself…. It’s okay.. anything is better than vista 😉

What else doesn’t work with the open source video driver, you might ask? How about the toggling between the video for an external monitor (fn f5). Darnit!

Ok.. so loaded up the restricted drivers (With Ubuntu’s nice little Restricted Drivers Manager). Video performance seem smoother! Dimming the laptop brigher and duller doesn’t work.. Okay. I guess I can deal with it.

Tried getting dual screens to work (external monitor: Dell 2005FPW), and with about 6 or 7 attempts, with using Ubuntu’s Screen-Resolution utility.. nothing seemed to work… Okay.. time to manually edit /etc/X11/xorg.conf.. a few tries later.. tada! works! I’ve got 1680×1050 on mylaptop screen and 1680×1050 on my secondary monitor.

So I’ve got two xorg.conf files I plan on toggling between
#1. Used for a single monitor ( just my laptop, screen when i’m on the go)
#2. Used for when I get home to plug into my Dell 2005fpw external montior

 # xorg.conf.singleLTscreen (xorg X Window System server configuration file)
# # This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
 # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.)
# # This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg # package
# # If you have edited this file but would like it to be automatically updated
# again, run the following command: #   sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
 EndSection
Section "InputDevice"
         Identifier      "Generic Keyboard"
         Driver          "kbd"
         Option          "CoreKeyboard"
         Option          "XkbRules"      "xorg"
         Option          "XkbModel"      "pc105"
         Option          "XkbLayout"     "us"
 EndSection
Section "InputDevice"
         Identifier      "Configured Mouse"
         Driver          "mouse"
         Option          "CorePointer"
         Option          "Device"        "/dev/input/mice"
         Option          "Protocol"      "ImPS/2"
         Option          "ZAxisMapping"  "4 5"
         Option          "Emulate3Buttons"       "true"
 EndSection
Section "InputDevice"
         Identifier      "Synaptics Touchpad"
         Driver          "synaptics"
         Option          "SendCoreEvents"        "true"
         Option          "Device"        "/dev/psaux"
         Option          "Protocol"      "auto-dev"
         Option          "HorizEdgeScroll"       "0"
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "stylus"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "stylus"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "eraser"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "eraser"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "cursor"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "cursor"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "Device"
         Identifier      "nVidia Corporation G80 [Quadro NVS 130M]"
         Driver          "nvidia"
         Busid           "PCI:1:0:0"
         Option          "AddARGBVisuals"        "True"
         Option          "AddARGBGLXVisuals"     "True"
         Option          "NoLogo"        "True"
 EndSection
Section "Monitor"
         Identifier      "Generic Monitor"
         Option          "DPMS"
         Horizsync       28-84
         Vertrefresh     43-60
 EndSection
Section "Screen"
         Identifier      "Default Screen"
         Device          "nVidia Corporation G80 [Quadro NVS 130M]"
         Monitor         "Generic Monitor"
         Defaultdepth    24
         SubSection "Display"
                 Modes           "1680x1680"
         EndSubSection
 EndSection
Section "ServerLayout"
         Identifier      "Default Layout"
   screen "Default Screen"
         Inputdevice     "Generic Keyboard"
         Inputdevice     "Configured Mouse"
        # Uncomment if you have a wacom tablet
         #       InputDevice     "stylus"        "SendCoreEvents"
         #       InputDevice     "cursor"        "SendCoreEvents"
         #       InputDevice     "eraser"        "SendCoreEvents"
         Inputdevice     "Synaptics Touchpad"
 EndSection
 Section "Module"
         Load            "glx"
 EndSection

#2: dual screen!!

 # xorg.conf.DUALSCREEN (xorg X Window System server configuration file)
 #
 # This file was generated by dexconf, the Debian X Configuration tool, using
 # values from the debconf database.
 #
 # Edit this file with caution, and see the xorg.conf manual page.
 # (Type "man xorg.conf" at the shell prompt.)
 #
 # This file is automatically updated on xserver-xorg package upgrades *only*
 # if it has not been modified since the last upgrade of the xserver-xorg
 # package.
 #
 # If you have edited this file but would like it to be automatically updated
 # again, run the following command:
 #   sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
 EndSection
Section "InputDevice"
         Identifier      "Generic Keyboard"
         Driver          "kbd"
         Option          "CoreKeyboard"
         Option          "XkbRules"      "xorg"
         Option          "XkbModel"      "pc105"
         Option          "XkbLayout"     "us"
 EndSection
Section "InputDevice"
         Identifier      "Configured Mouse"
         Driver          "mouse"
         Option          "CorePointer"
         Option          "Device"        "/dev/input/mice"
         Option          "Protocol"      "ImPS/2"
         Option          "ZAxisMapping"  "4 5"
         Option          "Emulate3Buttons"       "true"
 EndSection
Section "InputDevice"
         Identifier      "Synaptics Touchpad"
         Driver          "synaptics"
         Option          "SendCoreEvents"        "true"
         Option          "Device"        "/dev/psaux"
         Option          "Protocol"      "auto-dev"
         Option          "HorizEdgeScroll"       "0"
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "stylus"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "stylus"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "eraser"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "eraser"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "InputDevice"
         Driver          "wacom"
         Identifier      "cursor"
         Option          "Device"        "/dev/input/wacom"
         Option          "Type"  "cursor"
         Option          "ForceDevice"   "ISDV4"# Tablet PC ONLY
 EndSection
Section "Device"
         Identifier      "nVidia Corporation G80 [Quadro NVS 130M]"
         Boardname       "nv"
         Busid           "PCI:1:0:0"
         Driver          "nvidia"
         Screen  0
 EndSection
Section "Monitor"
         Identifier      "Generic Monitor"
         Modelname       "Custom 1"
         Gamma   1.0
 EndSection
Section "Screen"
         Identifier      "Default Screen"
         Device          "nVidia Corporation G80 [Quadro NVS 130M]"
         Monitor         "Generic Monitor"
         Defaultdepth    24
         SubSection "Display"
                 Depth   24
 #               Virtual 1792    1344
                 Modes           "1680x1680"
         EndSubSection
 EndSection
Section "ServerLayout"
         Identifier      "Default Layout"
   screen 0 "Default Screen" 0 0
   screen 1 "screen1" rightof "Default Screen"
         Inputdevice     "Generic Keyboard"
         Inputdevice     "Configured Mouse"
        # Uncomment if you have a wacom tablet
         #       InputDevice     "stylus"        "SendCoreEvents"
         #       InputDevice     "cursor"        "SendCoreEvents"
         #       InputDevice     "eraser"        "SendCoreEvents"
         Inputdevice     "Synaptics Touchpad"
 EndSection
 Section "Module"
         Load            "glx"
         Load            "v4l"
 EndSection
 Section "device" #
         Identifier      "device1"
         Boardname       "nv"
         Busid           "PCI:1:0:0"
         Driver          "nvidia"
         Screen  1
 EndSection
 Section "screen" #
         Identifier      "screen1"
         Device          "device1"
         Defaultdepth    24
         Monitor         "monitor1"
         SubSection "Display"
                 Depth   24
                 Modes           "1680x1050@65"
         EndSubSection
 EndSection
 Section "monitor" #
         Identifier      "monitor1"
         Vendorname      "Dell"
         Modelname       "Dell 2005FPW (Analog)"
         Horizsync       30.0-83.0
         Vertrefresh     56.0-75.0
 EndSection
 Section "ServerFlags"
         Option          "Xinerama"      "true"
 EndSection

I’m guessing I should create a 3rd xorg.conf for when I want to hook up to a projector with a 1024×768 resolution… Maybe that’ll be my next post..

Posted in Ubuntu | Tagged: , , , | Leave a Comment »