Author Topic: Xdm Use On 3.9 Beta  (Read 3656 times)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Xdm Use On 3.9 Beta
« on: January 27, 2006, 08:08:38 pm »
After a little head scratching I have a good working setup and some good news on xdm support in 3.9.

It works fairly reliably, you *EDIT see next post*don't need to disable any ttys in /etc/ttys*/EDIT* and you can switch consoles without it hanging up but you MUST do the following once you have enabled xdm in rc.conf...

edit

/etc/X11/xdm/Xservers

and change the line saying...

:0 local /usr/X11R6/bin/X

to...

:0 local /usr/X11R6/bin/X vt01

this seems to be an ommision from the config... without the vt01 flag xdm will find the first available vt (vt02 or ttyC1), unfortunately the wsfb driver for Xorg is set to use /dev/ttyC0 and causes problems with that console if left to run on ttyC1.

Specifying vt01 on the line ensures that the X server that xdm starts runs on vt01 or ttyC0 (as configured in the xorg.conf file)... and ensures correct behaviour... since this doesn't effect ttyC1 now you can switch over to it should you want a text login by using Ctrl-Alt-F2.

Ctrl-Alt-F1 takes you back to your X session then

or of course if you don't run xdm then you can benefit from the warning NOT to run your X session on ttyC1 if you intend to switch to ttyC0 since this, like the initial xdm config will screw up the keyboard input on ttyC0.

- Andy
« Last Edit: January 27, 2006, 08:35:51 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Xdm Use On 3.9 Beta
« Reply #1 on: January 27, 2006, 08:30:07 pm »
update... disable ttyC0 in /etc/ttys if you are going to run xdm like this.... I found that without doing this occasionally you could switch back to X but X wouldn't get keyboard focus.

This is a tad annoying if you have enabled mach.kbdreset=1 to get around the occasional hang since the machine halts as normal but you can't hit a key to reboot once it's halted
« Last Edit: January 27, 2006, 08:31:51 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Xdm Use On 3.9 Beta
« Reply #2 on: January 28, 2006, 06:10:00 am »
*sigh* still one last quirk to be aware of...

If you logout of your xdm session wait until xdm has spawned the login X server before switching to your text console... it seems to spawn X on ttyC1 if you don't .... I will try to 'bottom out' what's happening here.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Xdm Use On 3.9 Beta
« Reply #3 on: January 29, 2006, 08:53:41 am »
OK, I have to say the new Xorg 6.9 on 3.9 beta seems to be a little more stable.

The most workable config I have found is to use xdm as I have described here, with this config it properly switches back to xdm login if for some reason you do overload the X server (mouse event queues too long with lots of paging activity seem to do this). This is nice since when the X server dies ungracefully there is no switch back to text mode emulation at that vt, at least it allows for recovery by logging in again.

So, I'm getting closer to my 'holy grail' of long 'uptime' figures

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card