From 636e4e47b41ca121e400565e9693af5deac8fab6 Mon Sep 17 00:00:00 2001 From: "Lucas N. Ferreira" Date: Wed, 18 Aug 2010 21:11:27 -0300 Subject: Enable Primary seat. --- INSTALL | 7 +++++-- etc/ConsoleKit/sessions.d/Local.session | 9 +++++++++ etc/X11/xorg.conf.usbseat | 20 ++++++++++---------- 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 etc/ConsoleKit/sessions.d/Local.session diff --git a/INSTALL b/INSTALL index ce944d2..a36da3a 100644 --- a/INSTALL +++ b/INSTALL @@ -43,10 +43,10 @@ the tutorial below to install those software and the usbseat solution: - Download and Install fbdev Xserver Driver: - $ sudo apt-get install pkg-config xorg-dev + $ sudo apt-get install pkg-config autoconf libtool xorg-dev xutils-dev $ git clone http://git.plugable.com/webdav/xf86-video-fbdev $ cd xf-video-fbdev - $ ./configure + $ ./autogen.sh $ make $ sudo make install @@ -57,6 +57,9 @@ the tutorial below to install those software and the usbseat solution: $ dpkg -i dependencies/Ubuntu/*.deb $ ./install.sh +Now, to test the usbseats, reboot your machine and connect a docking station to +your computer. Then you will get automatically a seat on it. + Other Distros (Debian Based) ============================ diff --git a/etc/ConsoleKit/sessions.d/Local.session b/etc/ConsoleKit/sessions.d/Local.session new file mode 100644 index 0000000..303f148 --- /dev/null +++ b/etc/ConsoleKit/sessions.d/Local.session @@ -0,0 +1,9 @@ +[Session Entry] +Name=Local +Type=LoginWindow +Description=Local Login Screen +DisplayTemplate=Local + +[Local] +display=:0 +vt=vt7 diff --git a/etc/X11/xorg.conf.usbseat b/etc/X11/xorg.conf.usbseat index 68f714c..4cd8008 100644 --- a/etc/X11/xorg.conf.usbseat +++ b/etc/X11/xorg.conf.usbseat @@ -6,23 +6,23 @@ Section "ServerFlags" Option "DontZap" "true" Option "AllowMouseOpenFail" "yes" EndSection - + Section "Module" Load "ddc" EndSection - -Section "Files" + +Section "Files" ModulePath "/usr/lib/xorg/modules" ModulePath "/usr/local/lib/xorg/modules" EndSection - + Section "Device" Identifier "dl" driver "fbdev" Option "ReportDamage" "true" Option "fbdev" "/dev/usbseat/%ID_SEAT%/display" EndSection - + Section "InputDevice" Identifier "keyboard" Driver "evdev" @@ -31,7 +31,7 @@ Section "InputDevice" Option "XkbModel" "evdev" Option "XkbLayout" "us" EndSection - + Section "InputDevice" Identifier "mouse" Driver "mouse" @@ -41,20 +41,20 @@ Section "InputDevice" Option "Buttons" "5" Option "ZAxisMapping" "4 5" EndSection - + Section "Monitor" Identifier "monitor" EndSection - + Section "Screen" Identifier "screen" Device "dl" Monitor "monitor" EndSection - + Section "ServerLayout" Identifier "%ID_SEAT%" - Screen 0 "screen" 0 0 + Screen 0 "screen" 0 0 InputDevice "keyboard" "CoreKeyboard" InputDevice "mouse" "CorePointer" EndSection -- cgit v1.2.3