Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xorg-server mouse and keyboard woes
Date: Fri, 10 Jul 2009 16:04:19
Message-Id: 9acccfe50907100903l64f30216ma384d554bad87ae6@mail.gmail.com
In Reply to: Re: [gentoo-user] xorg-server mouse and keyboard woes by Helmut Jarausch
1 Synopsis: I suspect this setup is too specific -- will it work for
2 both wheel mice and non-wheel mice, and for non-MS keyboards?
3
4 On Fri, Jul 10, 2009 at 7:32 AM, Helmut
5 Jarausch<jarausch@××××××××××××××××.de> wrote:
6 > On 10 Jul, Dale wrote:
7 >
8 >> Same thing here.  I just tried again to get hal, evdev and all his
9 >> "drive me crazy" friends to work, it doesn't.  It appears to me that hal
10 >> will be disabled in package.use for xorg-server FOREVER.  I'm sick of
11 >> messing with evdev.  I'm waiting on something better to come along.  I
12 >> bet someone does come up with something better too.  This has been a
13 >> PITA since it came out.
14 >
15 > Yes, I did have some problems with xorg + hal. But now it's working even
16 > better with hal than without (e.g. I had problems with using my mouse
17 > and my Wacom tablet simultaneously).
18 >
19 > Now I'm running xorg-server-1.6.2
20 >
21 > The following steps seem to be essential:
22 >
23 > emerge everything X-related with hal (I've put it into /etc/make.conf)
24 >
25 > Let hald start at boot time (very important)
26 > i.e.  rc-update add hald boot
27 >
28 > Make a minimal xorg.conf (no drivers for any input device)
29 > the first lines being
30 >
31 > Section "ServerLayout"
32 >        Identifier     "Default"
33 >        Screen      0  "Screen 0" 0 0
34 > #       Option         "AllowEmptyInput" "false"
35 >        Option       "AIGLX" "on"
36 > EndSection
37 >
38 > Section "ServerFlags"
39 > #       Option  "DontZap" "true"
40 >        Option "AutoAddDevices" "on"
41 >        Option "AutoEnableDevices" "on"
42 >        Option "AllowEmptyInput" "on"
43 > EndSection
44 >
45 > Section "Extensions"
46 >        Option "Composite" "On"
47 > EndSection
48 > .......
49 >
50 > In /etc/make.conf  (here)
51 > INPUT_DEVICES="keyboard mouse evdev wacom"
52 >
53 > add the file /etc/hal/fdi/policy/x11-input.fdi
54 >
55 > here:
56 > <?xml version="1.0" encoding="ISO-8859-1"?>
57 > <deviceinfo version="0.2">
58 > <device>
59 > <match key="info.capabilities" contains="input.keyboard">
60 > <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
61 >  <merge key="input.x11_options.XkbModel" type="string">microsoft</merge>
62 >  <merge key="input.x11_options.XkbRules" type="string">xorg</merge>
63 >  <merge key="input.x11_options.XkbLayout" type="string">en_US</merge>
64 >  <merge key="input.xkb.layout" type="string">en_US</merge>
65 >  <merge key="input.xkb.model" type="string">microsoft</merge>
66 >  <merge key="input.xkb.rules" type="string">xorg</merge>
67 > </match>
68 >
69 > <match key="info.capabilities" contains="input.mouse">
70 >  <merge key="input.x11_driver" type="string">evdev</merge>
71 >  <merge key="input.x11_options.WHEELRelativeAxisButtons" type="string">7 6</merge>
72 >  <merge key="input.x11_options.HWHEELRelativeAxisButtons" type="string">5 4</merge>
73 >  <merge key="input.x11_options.Buttons" type="int">8</merge>
74 >  <merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
75 >  <merge key="input.x11_options.Sensitivity" type="int">30</merge>
76 >  <merge key="input.x11_options.CorePointer" type="string">true</merge>
77 > </match>
78 >
79 > </device>
80 > </deviceinfo>
81 >
82 > Very import when upgrading to 1.6.*
83 > re-emerge everything that is installed from x11-drivers/*
84 >
85 > Now, you should have the best X11 ever (note, I'm using the
86 > bleeding-edge stuff (unstable isn't the wright word)
87 > i.e. I have
88 > ACCEPT_KEYWORDS="~amd64"   (or ~x86 on a 32 bits machine)
89 >
90 > Helmut.
91
92 Please also describe your keyboard and mouse. I suspect mine are
93 different, and I am not at all sure how to adjust the setup for my
94 hardware.
95
96 ++ kevin
97
98 --
99 Kevin O'Gorman, PhD