User:Samir/USB2VGA UVT-100 dev: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 42: Line 42:
insmod the new driver, if your running kernel matches the linux source only, otherwise there will be
insmod the new driver, if your running kernel matches the linux source only, otherwise there will be
a magic version issue.
a magic version issue.

You have to install the sisusb Xorg driver too,
package name: xserver-xorg-video-sisusb

then use this xorg.conf sample :
<code>
# ----------- This stuff needs to be adapted to your machine ------------

Section "Files"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
# FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore" # MUST be there if DRI is enabled
Load "dbe"
Load "extmod"
Load "record"
Load "bitmap"
Load "freetype"
Load "speedo"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

# ----------------- End of machine specific stuff ------------------------

# ----------------------------------------------------------
# MONITOR section
# ----------------------------------------------------------
# This section contains data for monitor configuration.

# The sisusb driver does not support DDC.

Section "Monitor"
Identifier "Generic"
VendorName "Monitor Vendor" # value does not matter
ModelName "Monitor Model" # value does not matter
VertRefresh 50-75
HorizSync 30-90
EndSection

# ----------------------------------------------------------
# DEVICE section
# ----------------------------------------------------------
# This section contains configuration data of the video card.

Section "Device"
Identifier "SiS USB2VGA"
VendorName "SiS" # Value does not matter
BoardName "SiS" # Value does not matter

Driver "sisusb"

# BusID: Does not matter if you have only one USB2VGA dongle.
# If you have more than one, you can specify the device node
# name or the device number here.
BusID "USB:/dev/sisusbvga0"

# Please see http://www.winischhofer.at/linuxsisusbvga.shtml for more
# information

EndSection

# ----------------------------------------------------------
# SCREEN section
# ----------------------------------------------------------
# This section defines the available resulutions and depths.

Section "Screen"
Identifier "screen1"
Device "SiS USB2VGA"
Monitor "Generic"
DefaultDepth 8
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

# ----------------------------------------------------------
# Server layout: Combine Monitor, Screen and Device sections
# ----------------------------------------------------------

Section "ServerLayout"
Identifier "Default Layout"
Screen "screen1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "USB Mouse"
EndSection

</code>

Revision as of 16:53, 16 May 2008

Public domain This file has been released into the public domain by its copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.

Info

The unit is from MCT, the UVT-100 (see http://www.esysmall.com/detail_prod.asp?prod_Id=5544 ) one.

Download

Unpack

Go to your /linux source directory. Untar the mcttrigger archive in drivers/usb/misc

Compile

  • Add the line :

source "drivers/usb/misc/mcttrigger/Kconfig" in the file linux/drivers/usb/misc/Kconfig

  • go to include/linux directory and

type : ln -s autoconf.h config.h

  • Then on the linux source directory,

make menuconfig Device Support>>USB Support add the USB VGA MCT support as a module Exit and Save the new configuration

  • compile: make drivers/usb/misc/mcttrigger/triggerusbvga.ko

Install

insmod the new driver, if your running kernel matches the linux source only, otherwise there will be a magic version issue.

You have to install the sisusb Xorg driver too, package name: xserver-xorg-video-sisusb

then use this xorg.conf sample :

  1. ----------- This stuff needs to be adapted to your machine ------------

Section "Files"

       FontPath        "/usr/lib/X11/fonts/misc"
       FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
       FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
  1. FontPath "/usr/lib/X11/fonts/Type1"
       FontPath        "/usr/lib/X11/fonts/Speedo"
       FontPath        "/usr/lib/X11/fonts/100dpi"
       FontPath        "/usr/lib/X11/fonts/75dpi"

EndSection

Section "Module"

       Load    "GLcore" # MUST be there if DRI is enabled
       Load    "dbe"
       Load    "extmod"
       Load    "record"
       Load    "bitmap"
       Load    "freetype"
       Load    "speedo"

EndSection

Section "InputDevice"

       Identifier      "Generic Keyboard"
       Driver          "keyboard"
       Option          "CoreKeyboard"
       Option          "XkbRules"      "xfree86"
       Option          "XkbModel"      "pc104"
       Option          "XkbLayout"     "de"
       Option          "XkbVariant"    "nodeadkeys"

EndSection

Section "InputDevice"

       Identifier      "Configured Mouse"
       Driver          "mouse"
       Option          "CorePointer"
       Option          "Device"                "/dev/psaux"
       Option          "Protocol"              "PS/2"
       Option          "Emulate3Buttons"       "true"
       Option          "ZAxisMapping"          "4 5"

EndSection

Section "InputDevice"

       Identifier      "USB Mouse"
       Driver          "mouse"
       Option          "SendCoreEvents"        "true"
       Option          "Device"                "/dev/input/mice"
       Option          "Protocol"              "ImPS/2"
       Option          "Emulate3Buttons"       "true"
       Option          "ZAxisMapping"          "4 5"

EndSection

  1. ----------------- End of machine specific stuff ------------------------
  1. ----------------------------------------------------------
  2. MONITOR section
  3. ----------------------------------------------------------
  4. This section contains data for monitor configuration.
  1. The sisusb driver does not support DDC.

Section "Monitor"

       Identifier   "Generic"
       VendorName   "Monitor Vendor" # value does not matter
       ModelName    "Monitor Model"  # value does not matter
       VertRefresh  50-75
       HorizSync    30-90

EndSection

  1. ----------------------------------------------------------
  2. DEVICE section
  3. ----------------------------------------------------------
  4. This section contains configuration data of the video card.

Section "Device"

       Identifier "SiS USB2VGA"
       VendorName "SiS"   # Value does not matter
       BoardName  "SiS"   # Value does not matter
       Driver     "sisusb"
  1. BusID: Does not matter if you have only one USB2VGA dongle.
  2. If you have more than one, you can specify the device node
  3. name or the device number here.
       BusID     "USB:/dev/sisusbvga0"
  1. Please see http://www.winischhofer.at/linuxsisusbvga.shtml for more
  2. information

EndSection

  1. ----------------------------------------------------------
  2. SCREEN section
  3. ----------------------------------------------------------
  4. This section defines the available resulutions and depths.

Section "Screen"

       Identifier "screen1"
       Device     "SiS USB2VGA"
       Monitor    "Generic"
       DefaultDepth 8
       SubSection "Display"
               Depth     16
               Modes     "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth     8
               Modes     "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth     24
               Modes     "1024x768" "800x600" "640x480"
       EndSubSection

EndSection

  1. ----------------------------------------------------------
  2. Server layout: Combine Monitor, Screen and Device sections
  3. ----------------------------------------------------------

Section "ServerLayout"

       Identifier      "Default Layout"
       Screen          "screen1"
       InputDevice     "Generic Keyboard"
       InputDevice     "Configured Mouse"
       InputDevice     "USB Mouse"

EndSection