Bug 23324 - add information to FAQ on how to use wheeled mouse under XFree86 4.x
Summary: add information to FAQ on how to use wheeled mouse under XFree86 4.x
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-06 12:50 UTC by marc.vanwoerkom
Modified: 2001-06-21 00:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marc.vanwoerkom 2000-12-06 12:50:01 UTC
	XFree86 config format changed between 3.3.x and 4.x,
        this is true for configuring wheeled mice as well

Fix: Suggested updated to FAQ. (Please compile the doc before submitting, I was
not able to check syntax)

===================================================================
RCS file: /home/ncvs/doc/en_US.ISO_8859-1/books/faq/book.sgml,v
retrieving revision 1.129


Regards,
Marc--B7Ro5thONMys1VBjnDvVsiOh9PKy37mascJK0fsQGFsnIyLQ
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -u -r1.129 book.sgml
--- book.sgml	2000/12/05 13:18:16	1.129
+++ book.sgml	2000/12/06 12:36:47
@@ -6697,7 +6697,8 @@
 
                   <example>
                     <title><quote>Pointer</quote> Section for Wheeled
-                      Mouse in XF86Config with moused Translation</title>
+                      Mouse in XFree86 3.3.x series XF86Config with moused 
+                      Translation</title>
 
                     <programlisting>Section "Pointer"
    Protocol        "SysMouse"
@@ -6706,6 +6707,33 @@
 EndSection
                     </programlisting>
                   </example>
+
+                  <example>
+                    <title><quote>InputDevice</quote> Section for Wheeled
+                      Mouse in XFree86 4.x series XF86Config with
+                      automatic protocol recognition and button mapping
+                      Translation</title>
+
+                    <programlisting>Section "InputDevice"
+   Identifier      "Mouse1"
+   Driver          "mouse"
+   Option          "Protocol" "auto"
+   Option          "Device" "/dev/psm0"
+   Option          "Buttons" "5"
+   Option          "ZAxisMapping" "4 5"
+EndSection
+                    </programlisting>
+                  </example>
+
+                  <example>
+                    <title><quote>.emacs</quote> example for naive
+                      page scrolling with Wheeled Mouse</title>
+                    <programlisting>;; wheel mouse
+(global-set-key [mouse-4] 'scroll-down)
+(global-set-key [mouse-5] 'scroll-up)
+                    </programlisting>
+                  </example>
+                   
                 </listitem>
 
                 <listitem>
How-To-Repeat: 	read FAQ :-)
Comment 1 dd freebsd_committer freebsd_triage 2001-03-17 01:33:52 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 2 van.woerkom 2001-06-21 00:01:34 UTC
Hi,

thanks for submitting that change to question 8.4 of the FAQ.

Unfortunately it ended up slightly wrong:

1. The XF4 example (now example 8-2) is no moused feature, but
   works with the X server, so it should slip a bit below
   (making it the example after present example 8-4)

2. It should be stated explicitly in this section that 
   XFree86 3.3.x series X11 servers and XFree86 4.x series servers use 
   different configuration file formats and that the location of 
   each of these is different!

     XF 3.3.x: /etc/XF86Config
     XF 4.x:   /etc/X11/XF86Config

3. Thus most of the time when there is XF86Config mentioned,
   or a config example given - this is just valid for old XFree86 3.3.x!

Again, please state at the beginning that the format and location
has changed from 3.3.x to 4.x

Give two versions of each example, one in 3.3.x format,
one in 4.x format.


Regards,
Marc