[PATCH] Wait for hald during initialization when necessary

Paulo César Pereira de Andrade pcpa at mandriva.com.br
Wed Jan 21 09:37:22 PST 2009


Paulo César Pereira de Andrade wrote:

>> I think it'd be better to set a timer to fire off the reinitialization
>> rather
>> than a simple usleep. Doing so allows us to finish the server
>> initialization
>> without having to wait for hal. Any opinions?
>
>   I can rework my patch to remove the "hal_giveup()" function, and
> use a timer firing like every 8 seconds. The idea of fallback to
> load/use kbd/mouse would be really only useful in a few special
> cases on broken setups (usually development setups :-), so that
> one would have a functional keyboard/mouse after sometime, as long
> as the kdb and mouse drivers were functional ("wrong" abi would
> be enough to have a inputless X Server...).

  Attached the new version without attempting any magic fallback
(and using 8 spaces instead of tabs)

  Tested and functional by stoping hald, running startx, and starting
hald from a ssh connection, so that in no more then 8 seconds the
keyboard and mouse start responding...

Paulo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-connect-retry-timer-to-interface-hal-daemon.patch
Type: text/x-patch
Size: 3180 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090121/a846e9b1/attachment.bin>


More information about the xorg mailing list