Archive for November, 2007

November 22nd, 2007

/etc/apt/sources.list

#
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1)]/ gutsy main restricted

# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse

# iced-tea updates
deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/
deb-src http://people.ubuntu.com/~doko/ubuntu/ gutsy/

November 22nd, 2007

My xorg.conf Ubuntu 7.10 Thinkpad T61p

# xorg.conf (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		"Device"	"/dev/input/mice"
Option		"Protocol"	"PS/2"
Option		"ZAxisMapping"	"4 5"
Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
Identifier "Microsoft 8000"
Driver 		"evdev"
Option		"Device" "/dev/input/event7"
Option 		"Buttons"         "9"
#Option 	"ZAxisMapping"    "4 5 7 6"
Option		"ZAxisMapping"    "4 5 6 7"
Option		"Emulate3Buttons" "false"
Option 		"WHEELRelativeAxisButtons" "4 5"
Option		"DIALRelativeAxisButtons" "6 7"
Option 		"SendCoreEvents" "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 140M]"
Driver		"nvidia"
Busid		"PCI:1:0:0"
Option		"AddARGBVisuals"	"True"
Option		"AddARGBGLXVisuals"	"True"
Option		"NoLogo"	"True"
Option 		"UseEdidDpi" "False"
#Option		"Dpi"	"92 x 92"
Option		"Dpi"	"129 x 129"
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 140M]"
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" "CorePointer"
Inputdevice	"Microsoft 8000" #"SendCoreEvents"

# 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

November 12th, 2007

Microsoft Presenter 8000 in Ubuntu Linux

I just purchased one of these mice because I wanted the tilt wheel for back/forward buttons in Firefox and in KDE. Here is what I had to do in order to make it work:

sudo apt-get install xbindkeys xvkbd xmacro

I added the following to ~/.xbindkeysrc

“/usr/bin/xvkbd -xsendevent -text “\[Alt_L]\[Left]“”
b:7
“/usr/bin/xvkbd -xsendevent -text “\[Alt_L]\[Right]“”
b:6
“/usr/X11R6/bin/xvkbd -xsendevent -text “\[Shift]\[Right]“”
b:10
“/usr/X11R6/bin/xvkbd -xsendevent -text “\[Shift]\[Left]“”
b:9

Then I set xbindkeys to start on KDE login by creating a link to is in ~/.kde/Autostart

I also created another mouse config in /etc/X11/xorg.conf

Section “InputDevice”
Identifier “Microsoft 8000″
Driver “evdev”
Option “Device” “/dev/input/event7″
Option “Buttons” “9″
Option “ZAxisMapping” “4 5 6 7″
Option “Emulate3Buttons” “false”
Option “WHEELRelativeAxisButtons” “4 5″
Option “DIALRelativeAxisButtons” “6 7″
Option “SendCoreEvents” “true”
EndSection

Then I added the following line to the Serverlayout section of xorg.conf

Inputdevice “Microsoft 8000″ “SendCoreEvents”

footer