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

Replies

Subject Author
Re: [gentoo-user] gpm (X11): touchpad OR usb-mouse? Daniel da Veiga <danieldaveiga@×××××.com>