Re: why is xsun running?

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 11/14/05


Date: Mon, 14 Nov 2005 18:36:14 GMT

Shea Martin <sheam@ns.sympatico.ca> wrote:
> On my U10, running S10:

> I booted without keyboard and monitor out plugged in.
> eeprom showed output-device=screen, and input-device=keyboard.

> I thought last time I did such a thing output-device and input-device were
> automatically set to ttyX, and Xsun was not started?

While the console is redirected to ttya, the actual eeprom values do not
change at boot. So if you later put the keyboard in and boot, the
console will move back.

As long as the system appears to have a framebuffer (and you haven't
modified Xservers) dtlogin will try to start a local server. Without
the keyboard, it'll usually try and fail 3 times. (This was the old
behavior. I haven't noticed if there's a difference on S10).

Note that running an X server on the local keyboard/framebuffer and the
location of the console are independent.

> So I manually set them both to ttyb, and rebooted. Upon reboot Xsun (and
> xfs) was still running? I thought booting without a keyboard and mouse
> plugged in would prevent Xsun from starting?

It won't prevent it from *trying* to start, but I would also expect it
to eventually fail becuase it can't find the keybaord.

> What am I missing here? Why is Xsun starting? Do I have to disable
> dtloging with svcadm?

If you don't need remote X logins, then yes I would probably disable
dtlogin. (In the first release of S10 I don't think it was yet a
service, so you'd still use 'dtconfig').

If you want to support remote logins but not local ones, cp
/usr/dt/config/Xservers into /etc/dt/config and comment out the line at
the bottom. 'dtlogin' will launch and respond to XDMCP queries, but
will not start a local X server.

On many of my machines, I don't bother. The server will try and fail to
start, so there's no resources used. And if I reattach a
keyboard/screen, then I'll get an X server without modifying any files.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


Relevant Pages

  • Re: 6.0 on Dell 1850 with DRAC4 management card?
    ... >>tends to take over the keyboard and render the real console inaccessible, ... > monitor on the server, I attach through the client's LAN. ... > from inside the server room, from an office or desk in the building, ...
    (freebsd-stable)
  • Re: Unable to open /dev/cua/a: Device busy
    ... you should attach your APC to serial port b. ... Plugging a keyboard into the server means ... you can't administer it on the console remotely anymore. ...
    (comp.unix.solaris)
  • Re: dual keyboard/mouse/monitor/user on 1 pc?
    ... > This mostly should just work - provided that the secondary console is ... > For a single X server you only get one kb, ... one keyboard and another X server with a different physical keyboard. ...
    (comp.os.linux.hardware)
  • Re: Unable to open /dev/cua/a: Device busy
    ... > you can't administer it on the console remotely anymore. ... > to a terminal server from home to ... > it on with the keyboard plugged in. ...
    (comp.unix.solaris)
  • Re: xserver-xorg question
    ... You should choose this option if you would like to attempt to autodetect the recommended X server and driver module for your video card. ... The X server configuration file associates your video card with a name that you may provide. ... The default keyboard layout selection for the Xorg server will be based on a combination of the language and the keyboard layout selected in the installer. ... Experienced users can use any layout supported by the selected XKB rule set. ...
    (Debian-User)