hi,

I am new to this community.We are using Davinci DM6446 board.
I am using an application which requires mouse inputs using gpm library.
I have run GPM server as  $gpm -m /dev/input/mice -t exps2
I am trying to open connection with GPM Server using Gpm_open function.
Application fails with 'Cannot connect to mouse server'.
----------
Here is the code 
/****************************************************************************************************/
#include <stdio.h>
#include <gpm.h>

int my_handler(Gpm_Event *event, void *data)
{       printf("Event Type : %d at x=%d y=%d\n", event->type, event->x,
event->y);
        return 0;
}
int main()
{       Gpm_Connect conn;
        int c;
        conn.eventMask  = ~0;   /* Want to know about all the events */
        conn.defaultMask = 0;   /* don't handle anything by default  */
        conn.minMod     = 0;    /* want everything                   */
        conn.maxMod     = ~0;   /* all modifiers included            */

        if(Gpm_Open(&conn, 0) == -1)
        {
                perror("Cannot connect to mouse server\n");
                return 0;
        }

        gpm_handler = my_handler;
        while((c = Gpm_Getc(stdin)) != EOF)
                printf("%c", c);
        Gpm_Close();
        return 0;
}
/****************************************************************************************************/

The same application is able to connect to the GPM server on other 
Linux(Centos) machine.
Can anybody provide some input, why its failing.

[We are using USB mouse, which is working fine with any X applications--so 
mouse driver may not be the problem!!]

regards
kapil

______________________________________________________________________
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to