Gentoo Archives: gentoo-user

From: Daniel da Veiga <danieldaveiga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gpm (X11): touchpad OR usb-mouse?
Date: Tue, 11 Apr 2006 21:05:56
Message-Id: 342e1090604111356o3f9681a1h5b47146ca37e4c80@mail.gmail.com
In Reply to: Re: [gentoo-user] gpm (X11): touchpad OR usb-mouse? by Daniel da Veiga
1 wowowow, sorry, misunderstood the GDM, GPM difference... Ignore the
2 last message........
3
4 On 4/11/06, Daniel da Veiga <danieldaveiga@×××××.com> wrote:
5 > On 4/11/06, Hans-Werner Hilse <hilse@×××.de> wrote:
6 > > Hi,
7 > >
8 > > On Tue, 11 Apr 2006 21:55:46 +0200
9 > > Jarry <jarry@×××.net> wrote:
10 > >
11 > > > Is it possible to configure gpm so, that if usb-mouse is
12 > > > attached, then only mouse can be used as pointing device?
13 > >
14 > > You may try to use udev for that. It can call scripts when devices are
15 > > plugged in and out or just present at boot (using coldplug for older
16 > > udev versions). You can let the script switch configuration files and
17 > > send gpm a signal that lets it read its configuration again. The key is
18 >
19 > This looks a bit complicated, since as far as I know GDM uses Xorg's
20 > configuration to discover how to use mouse/keyboard, so, if you're
21 > going to have more than one configuration, wouldn't it be necessary
22 > for you to restart the X server? I too have a laptop, but for mine the
23 > switch button for the synaptic touchpad really works :) turning it off
24 > completely both in win and lin.
25 >
26 > A friend told me once that he wrote a udev rule that recreated a
27 > device every time he plugged in and out his USB mouse, this way, when
28 > plugged out, the device pointed to the touchpad, while plugged in, it
29 > references the USB mouse.
30 >
31 > > that you should not use "/dev/input/mice" as the device but have two
32 > > separate gpm configurations with "/dev/input/mouseN" (you can also use
33 > > udev to give more persistent names).
34 > >
35 >
36 > Can GDM do this? Sorry, couldn't find anything in the docs about it...
37 >
38 > --
39 > Daniel da Veiga
40 > Computer Operator - RS - Brazil
41 > -----BEGIN GEEK CODE BLOCK-----
42 > Version: 3.1
43 > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
44 > PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
45 > ------END GEEK CODE BLOCK------
46 >
47
48
49 --
50 Daniel da Veiga
51 Computer Operator - RS - Brazil
52 -----BEGIN GEEK CODE BLOCK-----
53 Version: 3.1
54 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
55 PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
56 ------END GEEK CODE BLOCK------
57
58 --
59 gentoo-user@g.o mailing list