Re: Xephyr on AMD64 Etch a.k.a multiseat

2007-08-01 Thread Peter Cordes
On Fri, Jun 08, 2007 at 10:14:38AM -0500, Igor TAmara wrote:
 Hi, I'm following this howto[1] to make a multiseat system on AMD64,
 I saw there were precompiled binaries for Xephyr, and I started to
 create some packages with apt-get source applying the patches on
 that page[1]
 ...

 Mi questions :
  * Does anyone have experiences of multiseat with AMD64?
  * If so, the Xephyr approach or something else? (documents?)
  * If with Xephyr, do you have a recommendation for applying the
  necessary patches? Maybe a pointing to a howto or a manual? I
  suspect that I'm applying the patch incorrectly, how to do that in
  a correct way?


 Sorry, this is an old email, but I'm digging through my Debian mailbox
archives...

 xorg now supports sharing virtual terminals, so you can run multiple full X
servers, with no need for xephyr anymore.  They get device input from evdev,
instead of from the console keyboard.

 I have a working g965 + PCI r128 multiseat system (two PS/2 keyboards and
two USB mice plugged into an Intel DG965WH mobo).

 I have to get the PCI card initialized with int10, but if int10 is enabled
when I start two X servers at once, they both get the g965 video BIOS or
something, and it can't initialize.

 So my normal xorg.conf has i2c, ddc, int10, and vbe commented out.  I was
going to post some snippets of my xorg.conf, but it's going to be a lot more
useful to actually post the whole thing.  (and the number of snippets was
climbing...)

 And the Device and Serverlayout sections have sprinklings of
Option  NoInt10 true
Option NoDDC true  # somehow r128 sees the i810's VBE BIOS...

Option  SingleCard true  # like IsolateDevice
Option InitPrimary true

 I'm sure not all of these are necessary, but that's where I got to by trial
and error.

 I have a normal (multihead single seat) xorg config that doesn't disable
POSTing the video cards, which I use to get the video cards initialized.

#  sudo X -config xorg.conf.probe -probeonly
# then 
#  startx /usr/bin/fluxbox -- :1 -layout seat1 -sharevts vt8 
#  startx /usr/bin/fluxbox -- :0 -layout seat0 -sharevts vt7 

 The key of course is the -sharevts.  If you google around, you can find how
to configure gdm to start the X servers, and for more tutorials on this.

http://blog.chris.tylers.info/index.php?/archives/14-Multiseat-X-Under-X11R6.97.0.html
http://en.wikibooks.org/wiki/Multiterminal_with_evdev

 I had been hoping to give the PCI video card to a Xen hardware-virtualized
domain, and give my dad a windows desktop.  That doesn't work (yet?).  I
might do more with multihead when I get more RAM (2GB DIMMs are becoming
available :), but I still need to reboot occasionally when the g965 driver
crashes.  (It doesn't lock the machine at all, but rebooting (or
suspend-resume, when that works at all), is the only way I've found to get
the g965 video hardware back to a useable state.)

 I have used multiseat while playing vegastrike on the g965 head, with
out-of-game tools on the r128 head.  Having a separate keyboard is a big win
when using games that take over the X server and can't be switched away from
easily.  Well, CTRL+ALT+Fx to another X server might work.  But anyway.

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X([EMAIL PROTECTED] , des.ca)

The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces! -- Plautus, 200 BC


signature.asc
Description: Digital signature


Re: Xephyr on AMD64 Etch a.k.a multiseat

2007-08-01 Thread Peter Cordes
On Wed, Aug 01, 2007 at 11:31:24PM -0300, peter wrote:
  So my normal xorg.conf has i2c, ddc, int10, and vbe commented out.  I was
 going to post some snippets of my xorg.conf, but it's going to be a lot more
 useful to actually post the whole thing.

 and as usual I forgot to.  This time for sure...

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X([EMAIL PROTECTED] , des.ca)

The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces! -- Plautus, 200 BC
# xorg.conf for multiseat operation, g965+r128.

# can start i810 head without any probe:
#  startx /usr/bin/fluxbox -- -layout simple 

# This X config omits the card init stuff, so to use the r128 it still needs
#  sudo X -config xorg.conf.probe -probeonly
# then 
#  startx /usr/bin/fluxbox -- :1 -layout seat1 -sharevts vt8 
#  startx /usr/bin/fluxbox -- :0 -layout seat0 -sharevts vt7 
# occasional colour corruption on i810 head, but glxgears makes it go away
#or 
#  startx /usr/bin/fluxbox -- -layout alltogether 


# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type man /etc/X11/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 ServerFlags
Option DefaultServerLayout simple
#Option DefaultServerLayout alltogether
#Option DefaultServerLayout seat0
Option AllowMouseOpenFail  true
Option AIGLX false
EndSection

Section Files
FontPath/usr/share/X11/fonts/misc
FontPath/usr/share/X11/fonts/cyrillic
FontPath/usr/share/X11/fonts/100dpi/:unscaled
FontPath/usr/share/X11/fonts/75dpi/:unscaled
FontPath/usr/share/X11/fonts/Type1
FontPath/usr/share/X11/fonts/100dpi
FontPath/usr/share/X11/fonts/75dpi
FontPath/usr/share/fonts/X11/misc
# path to defoma fonts
FontPath/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
EndSection

#Section Extensions
#   Option  Composite disable
#EndSection

Section Module
#   Loadi2c
Loadbitmap
#   Loadddc
Loaddri
SubSection extmod
Option omit xfree86-dga
EndSubSection
#   Loadextmod # subsection does this
Loadfreetype
Loadglx
#   Loadint10
Loadtype1
#   Loadvbe
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  kbd
#   Option  CoreKeyboard
Option  XkbRules  xorg
Option  XkbModel  pc105
Option  XkbLayout us
Option  XkbOptionsctrl:nocaps
Option  Autorepeat200 40
#Ubuntu default: lv3:ralt_switch   ISO level 3 shift
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
#   Option  CorePointer
Option  Device/dev/input/mice
Option  Protocol  ExplorerPS/2
Option  ZAxisMapping  4 5
EndSection

Section InputDevice
Identifier NoKeyboard
#   Option CoreKeyboard
Driver void
EndSection

Section InputDevice
Identifier NoMouse
#   Option CorePointer
Driver void
EndSection


Section Device
Identifier  i810
Driver  intel
BusID   PCI:0:2:0
#   VideoRam131072
#   VideoRam262144 # warning about no room for DRI tiling...
# this still limits the AperTexSize to less than 65536
VideoRam19
#   VideoRam24
#Option CacheLines integer # more for better 2D, less for better 3D
#   Option LinearAlloc integer # not useful for 3D?  just increase 
videoram?
# just an aperture size, not allocated memory. default: 32768
#   Option AperTexSize 65536

#   Option  Legacy3D false  # not for i965 yet.  This would 
disable DRI, contrary to docs which say it's ignored
#   Option  VBERestore true
#   Option XvMCSurfaces 7
#   Option PageFlip true
#   Option TripleBuffer true
EndSection

Section Device
Identifier  r128
Driver  r128
#   Option DMAForXv true # hard lockups
BusID   PCI:6:1:0

Option  NoInt10 true
Option NoDDC true  # somehow r128 sees the 

Xephyr on AMD64 Etch a.k.a multiseat

2007-06-08 Thread Igor TAmara
Hi, I'm following this howto[1] to make a multiseat system on AMD64,
I saw there were precompiled binaries for Xephyr, and I started to
create some packages with apt-get source applying the patches on
that page[1]

1.http://en.wikibooks.org/wiki/Multiterminal_with_Xephyr

The steps I followed to apply the patches were:

apt-get source xserver-xephyr
sudo apt-get build-dep xserver-xephyr
wget http://www.c3sl.ufpr.br/multiterminal/howtos/xephyr-patches.tgz
mv xephyr-patches/kdrive-evdev.patch 
xorg-server-1.1.1/debian/patches/46_kdrive-evdev.patch
mv xephyr-patches/kdrive-ephyr-evdev.patch 
xorg-server-1.1.1/debian/patches/47_kdrive-ephyr-evdev.patch
cd xorg-server-1.1.1/
fakeroot dpkg-buildpackage
cd ..
dpkg -i xserver-xorg-core_1.1.1-21_amd64.deb  \
xserver-xorg-dev_1.1.1-21_am d64.deb xdmx_1.1.1-21_amd64.deb \
xdmx-tools_1.1.1-21_amd64.deb xnest_1.1.1-21_amd64.deb \
xvfb_1.1.1-21_amd64.deb xserver-xephyr_1.1.1-21_amd6 \

Then when I try to make
/usr/sbin/Xephyr.sh -display :0.1 -br -xauthority \
/var/lib/gdm/:0.Xauth -geometry 1024x768+0+0 -keyboard \
/dev/input/kbd1mt -mouse /dev/input/mouse1mt,5 -use-evdev -dpi 92

I get an error that sugests the patches weren't applied correctly,
because the options geometry, keyboard and evdev are not allowed.

Mi questions :
 * Does anyone have experiences of multiseat with AMD64?
 * If so, the Xephyr approach or something else? (documents?)
 * If with Xephyr, do you have a recommendation for applying the
 necessary patches? Maybe a pointing to a howto or a manual? I
 suspect that I'm applying the patch incorrectly, how to do that in
 a correct way?

Thanks in advance.

P.D: I have the graphics card working with the two monitors fine,
but I'm not able to make the keyboard and the mouses with the
monitor become an independent seats.

-- 
Recomiendo SLEC, la comunidad del software de libre redistribución y educación 
en Colombia
http://www.slec.net


signature.asc
Description: Digital signature


Re: Xephyr on AMD64 Etch a.k.a multiseat

2007-06-08 Thread Lennart Sorensen
On Fri, Jun 08, 2007 at 10:14:38AM -0500, Igor TAmara wrote:
 Hi, I'm following this howto[1] to make a multiseat system on AMD64,
 I saw there were precompiled binaries for Xephyr, and I started to
 create some packages with apt-get source applying the patches on
 that page[1]
 
 1.http://en.wikibooks.org/wiki/Multiterminal_with_Xephyr
 
 The steps I followed to apply the patches were:
 
 apt-get source xserver-xephyr
 sudo apt-get build-dep xserver-xephyr
 wget http://www.c3sl.ufpr.br/multiterminal/howtos/xephyr-patches.tgz
 mv xephyr-patches/kdrive-evdev.patch 
 xorg-server-1.1.1/debian/patches/46_kdrive-evdev.patch
 mv xephyr-patches/kdrive-ephyr-evdev.patch 
 xorg-server-1.1.1/debian/patches/47_kdrive-ephyr-evdev.patch
 cd xorg-server-1.1.1/
 fakeroot dpkg-buildpackage
 cd ..
 dpkg -i xserver-xorg-core_1.1.1-21_amd64.deb  \
 xserver-xorg-dev_1.1.1-21_am d64.deb xdmx_1.1.1-21_amd64.deb \
 xdmx-tools_1.1.1-21_amd64.deb xnest_1.1.1-21_amd64.deb \
 xvfb_1.1.1-21_amd64.deb xserver-xephyr_1.1.1-21_amd6 \
 
 Then when I try to make
 /usr/sbin/Xephyr.sh -display :0.1 -br -xauthority \
 /var/lib/gdm/:0.Xauth -geometry 1024x768+0+0 -keyboard \
 /dev/input/kbd1mt -mouse /dev/input/mouse1mt,5 -use-evdev -dpi 92
 
 I get an error that sugests the patches weren't applied correctly,
 because the options geometry, keyboard and evdev are not allowed.
 
 Mi questions :
  * Does anyone have experiences of multiseat with AMD64?
  * If so, the Xephyr approach or something else? (documents?)
  * If with Xephyr, do you have a recommendation for applying the
  necessary patches? Maybe a pointing to a howto or a manual? I
  suspect that I'm applying the patch incorrectly, how to do that in
  a correct way?
 
 Thanks in advance.
 
 P.D: I have the graphics card working with the two monitors fine,
 but I'm not able to make the keyboard and the mouses with the
 monitor become an independent seats.

Can you run the graphics card as two seperate X servers though?  I have
only ever heard of people doing multi user setup using seperate PCI
video cards that could be run with a seperate X config for each card by
specifying the PCI ID for each device.

I guess if you disable cinerama, you might be able to get screen 0.0 and
0.1 managed seperately somehow.

I hadn't heard of xephyr before, although it sounds like it is intended
to manage dividing one X session into seperate sessions.  Neat idea.

--
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Xephyr on AMD64 Etch a.k.a multiseat

2007-06-08 Thread Jaime Ochoa Malagón

I do a few atemps but not really success...

If you have multiple video cards listen ti Lennart...

If you have only one video card Xephyr seems the right option, and I
suggest try first with the original patched code in a chroot,

If I understand clearly the trick is configure NOT MOUSE to X beacuse
Xephyr should use it raw...

good luck

let us know success :-)

On 6/8/07, Igor TAmara [EMAIL PROTECTED] wrote:

Hi, I'm following this howto[1] to make a multiseat system on AMD64,
I saw there were precompiled binaries for Xephyr, and I started to
create some packages with apt-get source applying the patches on
that page[1]

1.http://en.wikibooks.org/wiki/Multiterminal_with_Xephyr

The steps I followed to apply the patches were:

apt-get source xserver-xephyr
sudo apt-get build-dep xserver-xephyr
wget http://www.c3sl.ufpr.br/multiterminal/howtos/xephyr-patches.tgz
mv xephyr-patches/kdrive-evdev.patch 
xorg-server-1.1.1/debian/patches/46_kdrive-evdev.patch
mv xephyr-patches/kdrive-ephyr-evdev.patch 
xorg-server-1.1.1/debian/patches/47_kdrive-ephyr-evdev.patch
cd xorg-server-1.1.1/
fakeroot dpkg-buildpackage
cd ..
dpkg -i xserver-xorg-core_1.1.1-21_amd64.deb  \
xserver-xorg-dev_1.1.1-21_am d64.deb xdmx_1.1.1-21_amd64.deb \
xdmx-tools_1.1.1-21_amd64.deb xnest_1.1.1-21_amd64.deb \
xvfb_1.1.1-21_amd64.deb xserver-xephyr_1.1.1-21_amd6 \

Then when I try to make
/usr/sbin/Xephyr.sh -display :0.1 -br -xauthority \
/var/lib/gdm/:0.Xauth -geometry 1024x768+0+0 -keyboard \
/dev/input/kbd1mt -mouse /dev/input/mouse1mt,5 -use-evdev -dpi 92

I get an error that sugests the patches weren't applied correctly,
because the options geometry, keyboard and evdev are not allowed.

Mi questions :
 * Does anyone have experiences of multiseat with AMD64?
 * If so, the Xephyr approach or something else? (documents?)
 * If with Xephyr, do you have a recommendation for applying the
 necessary patches? Maybe a pointing to a howto or a manual? I
 suspect that I'm applying the patch incorrectly, how to do that in
 a correct way?

Thanks in advance.

P.D: I have the graphics card working with the two monitors fine,
but I'm not able to make the keyboard and the mouses with the
monitor become an independent seats.

--
Recomiendo SLEC, la comunidad del software de libre redistribución y educación 
en Colombia
http://www.slec.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGaXJdtV4JcpE0AlYRAmqUAKC3gd7f8k9e1NxCVhzw0DWV8G7RNwCfWpNA
rO3f8+uKlvM18kO5aFv05EU=
=NNcw
-END PGP SIGNATURE-





--
Perhaps the depth of
love can be calibrated by the number of different selves that are
actively involved in a given relationship.

Carl Sagan (Contact)

Jaime Ochoa Malagón
Integrated Technology
Tel: (55) 52 54 26 10