Hi,

Hoping you can provide some additional hints for me. I'm trying to get
XDM to loosely emulate Windows XP Fast User Switching, to the extent
that my wife and I can each have a graphical desktop session open
concurrently, but switch back and forth. Usually, one of us will be
using e-mail & a browser, and the other might need to jump in really
quick to check their mail, etc. Not having to close applications is nice
for these momentary interruptions.

My hope for XDM is to be able to run one login, say on vt05, and then a
second, say on vt06. We would use ctrl+alt+f5 and +f6 to swap back and
forth easily.

However, I'm not entirely clear how to set this up on 4.0-current.
Without my attempted changes for a second X display, XDM works great on
vt05. The stock XDM login window appears, and all is well.

When I try to setup multiple X displays, though, things don't work.
Using the changes detailed below, I can boot just fine but there is no
graphical XDM login window. vt05 (ctrl+alt+F5) is black, with a blinking
cursor in the upper left; vt06 (ctrl+alt+F6) shows the X cursor, which
follows the mouse, but the XDM login screen never appears.

It looks like this used to be possible with 3.4
(http://undeadly.org/cgi?action=article&sid=20040315100725&mode=expanded),
but I can't find where these configs live in the CVS tree to check out
the changes. Any pointers to those, or config changes I've missed, would
really help me out.

Thanks!

I've edited /etc/X11/xdm/Xservers to look like the following:

:0 local /usr/X11R6/bin/X vt05
:1 local /usr/X11R6/bin/X vt06

And have copied Xsetup_0 to Xsetup_1:
Xsetup_0:
if [ "$DISPLAY" = ":0" -o "$DISPLAY" = ":0.0" ]
then
        xsetroot -solid '#233f64'
#       xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn
fixed -exitO
nFail
fi

Xsetup_1:
if [ "$DISPLAY" = ":1" -o "$DISPLAY" = ":1.0" ]
then
        xsetroot -solid '#233f64'
#       xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn
fixed -exitO
nFail
fi

And have added the following to /etc/X11/xdm/xdm-config:
DisplayManager._1.setup:       /usr/X11R6/lib/X11/xdm/Xsetup_1
DisplayManager._1.startup:     /usr/X11R6/lib/X11/xdm/GiveConsole
DisplayManager._1.reset:       /usr/X11R6/lib/X11/xdm/TakeConsole

I have edited /etc/ttys to the following:
console "/usr/libexec/getty Pc"         vt220   off secure
ttyC0   "/usr/libexec/getty Pc"         vt220   on  secure
ttyC1   "/usr/libexec/getty Pc"         vt220   on  secure
ttyC2   "/usr/libexec/getty Pc"         vt220   on  secure
ttyC3   "/usr/libexec/getty Pc"         vt220   on  secure
ttyC4   "/usr/libexec/getty Pc"         vt220   off secure
ttyC5   "/usr/libexec/getty Pc"         vt220   off  secure

Dmesg attached.
OpenBSD 4.0-current (GENERIC) #1355: Tue Jan 30 02:01:24 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP 1700+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.47 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536379392 (523808K)
avail mem = 481198080 (469920K)
using 4256 buffers containing 26943488 bytes (26312K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 09/10/03, BIOS32 rev. 0 @ 0xfb3b0, SMBIOS 
rev. 2.2 @ 0xf0800 (34 entries)
bios0: VIA Technologies, Inc. VT8367-8235
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf74
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/176 (9 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11 12
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xd000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8366 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8366 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon VE QY" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
emu0 at pci0 dev 9 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 10
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 9 function 1 not 
configured
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 12
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
iic0 at viapm0
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <MAXTOR 6L040J2>
wd0: 16-sector PIO, LBA, 38172MB, 78177792 sectors
wd1 at pciide0 channel 0 drive 1: <ST39120A>
wd1: 16-sector PIO, LBA, 8693MB, 17803297 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <IOMEGA, ZIPCD3840INT-A, 1.06> SCSI0 5/cdrom 
removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <PIONEER, DVD-ROM DVD-106, 1.22> SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 12
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio1 at auvia0
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 11, address 
00:0d:87:b1:9d:d1
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 8: OUI 0x004063, 
model 0x0032
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/27.10, addr 2, iclass 3/1
ums0 at uhidev0: 8 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0: no disk label
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd1a
rootdev=0x10 rrootdev=0x310 rawdev=0x312

Reply via email to