<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>John,<br><br>There are several reasons this might fail.<br><br>Can you post your /etc/X11/xorg.conf file? What version of xorg are you using?<br>
<br>
Did you compile evdev support in the kernel config, or are you specifying the drivers?<br><br><span>From <a target="_blank" href="http://www.gentoo.org/doc/en/xorg-config.xml">http://www.gentoo.org/doc/en/xorg-config.xml</a> :</span><br><br><p class="secthead"><a name="doc_chap3_sect2">Default: Automatic Generation of xorg.conf</a></p>
<p>
Xorg itself is able to guess most parameters for you. In most cases, you
will only have to change some lines to get the resolution you want up and
running. If you are interested in more in-depth tweaking, be sure to check the
resources at the end of this chapter. But first, let us generate a (hopefully
working) Xorg configuration file.
</p>
<a name="doc_chap3_pre2"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 3.2: Generating an xorg.conf file</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">Xorg -configure</span><br></pre></td></tr>
</tbody></table>
<p>
Be sure to read the last lines printed on your screen when Xorg has finished
probing your hardware. If it tells you it failed at some point, you're forced to
manually write an <span class="path" dir="ltr">xorg.conf</span> file. Assuming that it didn't fail, it
will have told you that it has written <span class="path" dir="ltr">/root/xorg.conf.new</span> ready
for you to test. So let's test. :)
</p>
<a name="doc_chap3_pre3"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 3.3: Testing the xorg.conf.new file</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">X -config /root/xorg.conf.new</span><br></pre></td></tr>
</tbody></table>
<p>
If all goes well, you should see a simple black and white pattern. Verify if
your mouse works correctly and if the resolution is good. If you received errors
about "/dev/mouse", try changing your mouse device to <span class="code" dir="ltr">/dev/input/mice</span> in
the "InputDevice" section of <span class="path" dir="ltr">xorg.conf</span>. You might not be able to
deduce the exact resolution, but you should be able to see if it's too low. You
can exit any time by pressing Ctrl-Alt-Backspace.
</p>
<p class="secthead"><a name="doc_chap3_sect3">Alternative: Semi-Automatic Generation of xorg.conf</a></p>
<p>
Xorg provides a tool called <span class="code" dir="ltr">xorgconfig</span> which will ask you for various
information regarding your system (graphical adapter, keyboard, ...). Based on
your input it will create a <span class="path" dir="ltr">xorg.conf</span> file.
</p>
<a name="doc_chap3_pre4"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 3.4: Semi-Automatic Generation of xorg.conf</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">xorgconfig</span><br></pre></td></tr>
</tbody></table>
<p>
Another tool, also provided by Xorg, is <span class="code" dir="ltr">xorgcfg</span>, which will first
attempt to run <span class="code" dir="ltr">Xorg -configure</span> and then start the X server for more
final tweaking.
</p>
<a name="doc_chap3_pre5"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 3.5: Using xorgcfg</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">xorgcfg</span><br><span class="code-comment">(In case X crashes or the configuration fails, try:)</span><br># <span class="code-input">xorgcfg -textmode</span><br></pre></td></tr>
</tbody></table>
<p class="secthead"><a name="doc_chap3_sect4">Copying over xorg.conf</a></p>
<p>
Let us copy over the <span class="path" dir="ltr">xorg.conf.new</span> to
<span class="path" dir="ltr">/etc/X11/xorg.conf</span> now, so we won't have to continuously run
<span class="code" dir="ltr">X -config</span> -- typing just <span class="code" dir="ltr">X</span> or <span class="code" dir="ltr">startx</span> is easier. :)
</p>
<a name="doc_chap3_pre6"></a>
<table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 3.6: Copying over xorg.conf</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">cp /root/xorg.conf.new /etc/X11/xorg.conf</span><br></pre></td></tr></tbody></table><br><br>Also:<br><br><br><p class="secthead"><a name="doc_chap4_sect2">Configuring your Keyboard</a></p>
<p>
To setup X to use an international keyboard, search for the <span class="emphasis">InputDevice</span>
section that configures the keyboard and add the <span class="code" dir="ltr">XkbLayout</span> option to
point to the keyboard layout you want. As an example, we show you how to apply
for the Belgian layout. Just substitute the country-keycode with yours:
</p>
<a name="doc_chap4_pre2"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 4.2: Changing the keyboard layout</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre>Section "InputDevice"<br> Identifier "Generic Keyboard"<br> Driver "keyboard"<br> Option "CoreKeyboard"<br> Option "XkbRules" "xorg"<br> Option "XkbModel" "pc105"<br> <span class="code-input">Option "XkbLayout" "be"</span><br>EndSection<br></pre></td></tr>
</tbody></table>
<p class="secthead"><a name="doc_chap4_sect3">Configuring your Mouse</a></p>
<p>
If your mouse isn't working, you will first need to find out if it is detected
by the kernel at all. Mice are (device-wise) seen as
<span class="path" dir="ltr">/dev/input/mouse0</span> (or <span class="path" dir="ltr">/dev/input/mice</span> if you want to
use several mice). In some cases <span class="path" dir="ltr">/dev/psaux</span> is used. In either
case you can check if the devices do represent
your mouse by checking the output of those files when you move your mouse. You
will usually see some junk on your screen. To end the session press
<span class="code" dir="ltr">Ctrl-C</span>.
</p>
<a name="doc_chap4_pre3"></a><table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 4.3: Checking the device files</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre># <span class="code-input">cat /dev/input/mouse0</span><br><span class="code-comment">(Don't forget to press Ctrl-C to end this)</span><br></pre></td></tr>
</tbody></table>
<p>
If your mouse isn't detected, verify if all the necessary modules are loaded.
</p>
<p>
If your mouse is detected, fill in the device in the appropriate
<span class="emphasis">InputDevice</span> section. In the next example you'll see we also set two other
options: <span class="code" dir="ltr">Protocol</span> (which lists the mouse protocol to be used -- most
users will use PS/2 or IMPS/2) and <span class="code" dir="ltr">ZAxisMapping</span> (which allows for the
mousewheel (if applicable) to be used).
</p>
<a name="doc_chap4_pre4"></a>
<table class="ntable" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td bgcolor="#7a5ada"><p class="codetitle">Code Listing 4.4: Changing the mouse settings in Xorg</p></td></tr>
<tr><td dir="ltr" align="left" bgcolor="#eeeeff"><pre>Section "InputDevice"<br> Identifier "TouchPad Mouse"<br> Driver "mouse"<br> Option "CorePointer"<br> <span class="code-input">Option "Device" "/dev/input/mouse0"</span><br> <span class="code-input">Option "Protocol" "IMPS/2"</span><br> <span class="code-input">Option "ZAxisMapping" "4 5"</span><br>EndSection<br></pre></td></tr></tbody></table><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> John Rivera <cray4.linux@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> linuxusers@socallinux.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 17, 2009 4:23:04 PM<br><b><span style="font-weight: bold;">Subject:</span></b>
[LinuxUsers] Need Help With Gentoo!!!<br></font><br>
ok so i installed gentoo a few days ago and all seems well exept, X<br>turns on, however does not listen to my mouse/keyboard so now i am<br>stuck in command line using links(a command line browser) for a web<br>browser.<br>_______________________________________________<br>LinuxUsers mailing list<br><a ymailto="mailto:LinuxUsers@socallinux.org" href="mailto:LinuxUsers@socallinux.org">LinuxUsers@socallinux.org</a><br><a href="http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers" target="_blank">http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers</a><br></div></div>
<!-- cg13.c1.mail.mud.yahoo.com compressed/chunked Tue Nov 17 12:08:06 PST 2009 -->
</div><br>
</body></html>