xf86-video-udlfb: add sample config
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 22 Mar 2013 22:39:09 +0000 (00:39 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 22 Mar 2013 22:39:09 +0000 (00:39 +0200)
recipes/xorg-driver/xf86-video-udlfb/xorg.conf.displaylink [new file with mode: 0644]
recipes/xorg-driver/xf86-video-udlfb_0.3.1.bb

diff --git a/recipes/xorg-driver/xf86-video-udlfb/xorg.conf.displaylink b/recipes/xorg-driver/xf86-video-udlfb/xorg.conf.displaylink
new file mode 100644 (file)
index 0000000..e76a553
--- /dev/null
@@ -0,0 +1,69 @@
+# xorg.conf for DisplayLink from Takedown
+
+Section "Module"
+       Load            "extmod"
+       Load            "dbe"
+       Disable         "glx"
+       Disable         "dri"
+       Load            "dri2"
+EndSection
+
+Section "ServerLayout"
+       Identifier      "DefaultLayout"
+       Screen          0       "DisplayLinkScreen"
+       Screen          1       "Screen0" Below "DisplayLinkScreen"
+#      Option          "Xinerama" "on" # Not working on superzaxxon
+EndSection
+
+Section "Screen"
+       Identifier      "Screen0"
+       Device          "OMAPFB"
+       Monitor         "Monitor0"
+       DefaultDepth    16
+       SubSection      "Display"
+               Depth   16
+               Modes   "800x480"
+       EndSubSection
+EndSection
+
+Section "Monitor"
+       Identifier      "Monitor0"
+EndSection
+
+Section "Device"
+       Identifier      "OMAPFB"
+       Driver          "omapfb"
+EndSection                                              
+
+Section "Device"
+       Identifier      "FBDEV"
+       Driver          "fbdev"
+       Option          "ShadowFB"              "false"
+EndSection   
+
+Section "Files"
+        FontPath        "/usr/share/fonts/X11/misc"
+        FontPath        "/usr/share/fonts/X11/Type1"
+        FontPath        "/usr/share/fonts/X11/Speedo"
+        FontPath        "/usr/share/fonts/X11/100dpi"
+        FontPath        "/usr/share/fonts/X11/75dpi"
+EndSection
+
+Section "Device"
+       Identifier      "DisplayLinkDevice"
+       Driver          "fbdev"
+       BusID           "USB"               # needed to use multiple DisplayLink devices 
+       Option          "fbdev" "/dev/fb3"  # change to whatever device you want to use
+#      Option          "rotate" "CCW"      # uncomment for rotation
+EndSection
+
+Section "Monitor"
+       Identifier      "DisplayLinkMonitor"
+EndSection
+
+Section "Screen"
+       Identifier      "DisplayLinkScreen"
+       Device          "DisplayLinkDevice"
+       Monitor         "DisplayLinkMonitor"
+       DefaultDepth    16
+EndSection
index 6598042..48dd170 100644 (file)
@@ -3,15 +3,21 @@ require xorg-driver-video.inc
 DESCRIPTION = "X.Org X server -- udlfb displaylink driver"
 LICENSE = "GPL"
 #RRECOMMENDS_${PN} = "kernel-module-udlfb"
-PR = "0"
+PR = "1"
 
 SRCREV = "ace449b4d1f51e3ac94636a82ad56f80e6870ba4"
 
 SRC_URI = " \
   git://git.plugable.com/webdav/xf-video-udlfb;protocol=http;branch=master \
+  file://xorg.conf.displaylink \
 "
 
 S = "${WORKDIR}/git"
+do_install_append() {
+  install -d ${D}${sysconfdir}/X11
+  install -m 0644 ${WORKDIR}/xorg.conf.displaylink ${D}${sysconfdir}/X11/
+}
+FILES_${PN} += " ${sysconfdir} ${libdir}/xorg/modules"
 
 inherit autotools