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

Peter Hutterer peter.hutterer at who-t.net
Tue Jan 20 21:52:36 PST 2009


On Tue, Jan 20, 2009 at 08:21:45PM -0200, Paulo César Pereira de Andrade wrote:
> From 83a9866fc806a72740e5c0c81009e4220316765d Mon Sep 17 00:00:00 2001
> From: Paulo Cesar Pereira de Andrade <pcpa at mandriva.com.br>
> Date: Tue, 20 Jan 2009 19:36:59 -0200
> Subject: [PATCH] Add hal/dbus fallback when not able to talk to hal/dbus daemons.
> 
>   hal/dbus may not be yet initialized in a "fast boot" where the
> X Server may be started before some system daemons, or one may
> choose to just not run the haldaemon service.
>   This patch adds code to attempt connection with hal after 1, 2,
> 4, 8, 16 and 32 seconds. If hald is not available after that period,
> it will load the "kbd" and "mouse" drivers, and FatalError() if
> cannot load either.

I don't like this approach.

If HAL doesn't start, your setup is broken and should be fixed. Either by
making sure that HAL starts at some point or by changing the setup to not
require HAL in the first place.

I do agree that we should keep trying to connect though.

Cheers,
  Peter



More information about the xorg mailing list