[Pkg-gpm-devel] Bug#298197: /etc/init.d/gpm start needs to be called twice

Guillem Jover Guillem Jover <guillem@debian.org>, 298197@bugs.debian.org
Wed, 30 Mar 2005 01:59:15 +0300


Hi,

On Sat, Mar 05, 2005 at 05:54:49PM +0100, Helge Kreutzmann wrote:
> Package: gpm
> Version: 1.19.6-19
> Severity: important
> 
> Calling /etc/init.d/gpm start once only causes messages to be printed,
> but gpm does not work. Only after /etc/init.d/gpm start is called a
> second time, gpm works.

> Here is the transscript:
> remaxp:/scr/media/ToDisk/01/numerik-div# /etc/init.d/gpm start
> Starting mouse interface server: gpm.
> remaxp:/scr/media/ToDisk/01/numerik-div#
> input: ImExPS/2 Logitech Explorer Mouse on isa0060/serio1
> mice: PS/2 mouse device common for all mice
> ts: Compaq touchscreen protocol output
> remaxp:/scr/media/ToDisk/01/numerik-div# /etc/init.d/gpm start
> Starting mouse interface server: gpm.
> 
> As you can see, after the first call some messages are printed (ImExPS/2 ...)
> they come with some delay, i.e., if the first call is happening in an init
> script, then they are usually printed after the next service (e.g., xfs).
> 
> The second time these messages are not printed and only then gpm 
> works. 
> 
> I think that the messages come from some modules, and that gpm maybe needs
> to wait after loading them?

Yes they come from the modules loeaded, but gpm does not load them, at
least directly, they get loaded because the kernel sees someone is
requesting such functionality and after that loads them, I think we
have a similar bug report, and the problem was solved by addig a delay
in gpm, I'm not sure about this solution tough...

We'll think on a clean way to solve this.

regards,
guillem