need to start X after keyboard is plugged

jean-francois simon jfs at themis.com
Wed Jan 14 14:12:25 EST 2009


hi,
we have that configuration of several ultrasparc systems with a kvm used
to access them on a one by one fashion.
if a particular system is booting solaris while the kvm is not
"attached" to it, then the X server will not be started as solaris
doesn't find a keyboard.
next, if the kvm is attached to that system, solaris will detect that
the keyboard/mouse are now attached. At that point i would like the X
server  to start automatically, so that the kvm can be used (as a kvm
can only use graphics). for that purpose i have written a small script
that runs in the background looking for the keyboard node to appear in
/devices. when the node is seen, the script starts X.

is there a better way to do this under solaris, like some hot plug event
that could be used..so that i don't have to add the script?

thx a lot
-jfs


More information about the sunmanagers mailing list