[PATCH] Add hal/dbus fallback when not able to talk to hal/dbus daemons.

Paulo César Pereira de Andrade pcpa at mandriva.com.br
Tue Jan 20 19:41:48 PST 2009


Daniel Stone wrote:
> On Tue, Jan 20, 2009 at 08:21:45PM -0200, Paulo César Pereira de Andrade
> wrote:
>>   This is a possible solution for the problem reported in the
>> "xorg server should wait HAL if it's not avail during init"
>> thread.
>
> Please do not push this patch.

  I posted the patch more as a "request for comments", as I did
more of a "quick hack" patch. While it works as is, it should be
more "integrated" with the current code, as it is relying on dbus
being started at some time, before attempting to connect to hal,
but there is already a "keep retrying" timer code for dbus.
  It also uses a ugly hack to not call the xf86* functions, and
fool NewInputDeviceRequest to not only add the input device, but
also enable it.

  But I believe such a fallback would not hurt, and would help
distros to have a common code base, without the need of different
X Servers for different computers/profiles, otherwise, for things
like netbooks, or just some "start services in parallel" schema,
a similar patch is required, as it is desirable to have a X Server
up and running, loading the desktop environment, without the need
of waiting for hal/dbus, things like udev, or any other blo^H^H^H
time consuming service.

> Cheers,
> Daniel

Paulo




More information about the xorg mailing list