SOLVED: XF86Config-4 problem

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

SOLVED: XF86Config-4 problem

Postby alloydog » Sat Jul 23, 2005 8:44 am

I have been trying to get an external mouse working on a Compaq Armada 110 Notebook running BeatrIX, a version of Debian.

The default XF86Config-4 contains script for a USB mouse, which looks the same for a PS/2 mouse. However, neither a USB mouse, nor a PS/2 mouse work. The PS/2 socket is one of these shared keyboard/mouse ones. But still, the USB ought to work.

I have tried a few versions of script such as:
Code: Select all
Section "InputDevice"
    Identifier          "Mouse1"
    Driver          "mouse"
    Option "Protocol"     "imps/2"
    Option "Device"       "/dev/mouse"
    Option "ZAxisMapping" "4 5"
EndSection


But rather than it just not working, I XFree86 crashes and gives the error report Section not a valid keyword

Any ideas?
Last edited by alloydog on Wed Aug 03, 2005 6:42 am, edited 1 time in total.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

RE: XF86Config problem

Postby Erin » Sun Jul 24, 2005 9:33 am

Can you post the actual lines in here. The only thing I can think of is that the lines have been put in another 'Section' or something.

Erin
Just beneath my skin I'm screaming. Faithless::Insomnia.
Dual PIII 550 with Ubuntu [semi-bleeding].
User avatar
Erin
LXF regular
 
Posts: 141
Joined: Thu Apr 07, 2005 7:35 pm
Location: The Olde Smoke south of the River

RE: XF86Config problem

Postby Rhakios » Sun Jul 24, 2005 3:34 pm

Of course you would also need to add the mouse to Section "ServerLayout", but I would not think that would cause the error reported above.
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

RE: XF86Config problem

Postby jjmac » Mon Jul 25, 2005 2:02 am

>>
XFree86 crashes and gives the error report Section not a valid keyword
>>

You might have somehow mucked up the "EndSection" keyword for the previous section field. That would cause it to flow into the current, finding the string "Section", and then trying to interpret it as a setting ... thus the error.

A bit like when a closing curly brace on a function is missing, and the compiler trys to pass the following functions name as a type (grin).

You could also try adding ...

Code: Select all
Option      "SendCoreEvents"   "true"
Option      "CorePointer"


options as well.


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

Postby alloydog » Mon Jul 25, 2005 3:58 am

yeah, right, I didn't exactly 'muck up' the EndSection bit of the previous section, more like deleted it :oops:

So, XFree86 works now, but the mouse still does not.

I will check the other bits shortly.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby jjmac » Mon Jul 25, 2005 11:33 am

>>
yeah, right, I didn't exactly 'muck up' the EndSection bit of the previous section, more like deleted it :)
>>

Very similar though (grin) ...

Code: Select all
Section "InputDevice"
  Identifier  "Generic Mouse"
  Driver      "mouse"
# For the PS/2 mouse at least, the option below is needed,
  Option      "SendCoreEvents"   "true"
  Option      "CorePointer" 
  Option      "Device"           "/dev/psaux"
  Option      "Protocol"         "ImPS/2"
  Option      "Emulate3Buttons"  "true"
  Option      "ZAxisMapping"     "4 5"
EndSection


The above would be ok for a PS/2 mouse at least.

You may get a hint at the protocol that the mouse uses from the /var/log/syslog record of its' boot-time detection. Mine detected as "ImExPS/2", but i had to edit it to "ImPS/2" for the config script. There is a program that can be run as root to test the mouse protocol, it seemed buggy to me though, kept crashing.

/usr/sbin/gpm-mouse-test


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

Postby alloydog » Fri Jul 29, 2005 9:49 am

This is doing my head in.

Whatever combination of pointers, core or otherwise, I try, only the friggin' touchpad works. I cannot get either a USB or PS/2 mouse to work.

However, when in command line mode, if the mouse is moved, I get an error line, saying:
psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1

I've tried various searches about touchpads, and the error line, but most only tackle the XF86Config file.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby fingers99 » Fri Jul 29, 2005 12:19 pm

It might be worthwhile backing up your existing XF86Config and running xf86config or xf86cfg from the command line.

I'd guess it's more likely to work as ps2.
fingers99
LXF regular
 
Posts: 143
Joined: Thu Apr 07, 2005 6:15 pm

Postby alloydog » Sat Jul 30, 2005 2:18 pm

I have the following:
Code: Select all
Section   "ServerLayout"
   Identifier   "XFree86 Configured"
   Screen 0   "Screen0"   0 0
   InputDevice   "Keyboard0"   "CoreKeyboard"
   InputDevice   "TouchPad"   "CorePointer"
   InputDevice   "PS/2Mouse"   "AlwaysCore"
EndSection

Section "ServerFlags"
   Option "AllowMouseOpenFail"  "true"
   Option   "NoPM"   "true"
EndSection

...

Identifier  "PS/2Mouse"
   Driver      "mouse"
   Option      "Protocol" "auto"
   Option      "ZAxisMapping"          "4 5"
   Option      "Device" "/dev/psaux"
   Option      "SendCoreEvents"   "true"
EndSection

Section "InputDevice"
   Identifier   "TouchPad"
   Driver      "mouse"
   Option      "Device"      "/dev/input/mouse0"
        Option      "Protocol"      "IMPS/2"
        Option      "ZAxisMapping"      "4 5"
        Option      "Buttons"      "5"
EndSection


I have even dug out an old PS/2 splitter cable, but still the mouse doesn't work.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby Nigel » Sat Jul 30, 2005 2:22 pm

alloydog wrote:EndSection

...

Identifier "PS/2Mouse"
Driver "mouse"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "SendCoreEvents" "true"
EndSection

Section "InputDevice"
Identifier "TouchPad"
Driver "mouse"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection


Well, for starters I think you probably need another
Code: Select all
Section "InputDevice"

above the Identifier "PS/2Mouse" line...
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Postby alloydog » Sat Jul 30, 2005 4:07 pm

Nigel wrote:Well, for starters I think you probably need another
Code: Select all
Section "InputDevice"

above the Identifier "PS/2Mouse" line...


That was just a copy/paste mistake, the line is there in XF86Config-4
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby towy71 » Sat Jul 30, 2005 8:06 pm

My ps2 mouse uses /dev/psaux as the input device below are the relevant lines from both my laptop and main machine both running Debian 3.1
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection


Hopr this is of some use to you ;-)
Dick
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4263
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

Postby alloydog » Mon Aug 01, 2005 7:38 am

Thanks towy71, but I have tried entires like that, but with no luck. Also, I thought /dev/psaux was linked to /dev/input/mice anyway??

But back to jjmac post, I have just looked at /var/log/syslog and the only reference to the TouchPad, or a mouse, I find is this:
Code: Select all
mice: PS72 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq12
Synaptics Touchpad, model: 1
 Firmware: 4.6
 Sensor: 19
 new absolute packet format
 Touchpad has extended capability bits
 -> multifinger detection
 -> palm detection
input: SynPS/2 Synaptics TouchPad on isa0060/serio1


Right at the end, it does go on with
Code: Select all
kernel: psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
last message repeated 74 times
kernel: psmouse.c: TouchPad at isa0060/serio1/input0 lost - drvier resynched

several times, but that is just where I plugged the mouse into the PS/2 socket during boot up.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby jjmac » Mon Aug 01, 2005 9:52 am

Howdy alloydog,

I don't think i will be of much help as i'm not really familiar with touchpads. But there are a couple of good suggestions to note. Incidentally, would changing the protocol for your mouse away from "atuo" be a good idea. Sounds like it leaves it up to X to guess. And will be relying on it being able to get that info from the device, which it would appear to be failng at. Never assume that X is really that smart (grin).

I'd backup your existing config as suggested, check over your kernels configuration just for good measure ... ie; sight that the required input device support does exist, then do a stripped reconfigure. Without the touchpad ... get it to work with the PS/2 mouse first, then add the touch pad. And keep it as bare bones as possible. Adding things one at a time untill you find out just which bit is causing it to fail.

Seems like a curious XF86Config file though, different to mine (X v4.3), Id be inclined to add the core pointer stuff to the actual input deve sections too, rather that state it in the server layout section. Such as, mine looks like....

Code: Select all
Section "ServerLayout"
  Identifier   "Default Layout"
  Screen       "Default Screen"
  InputDevice  "Default Keyboard"
  InputDevice  "Configured Mouse"
  InputDevice  "Generic Mouse"
EndSection


I think towry71s' config is a good example. Two input devices using the same protocol, and with their own device file associations. So that they wont get the chance to step on one another :)

With my own logitech PS/2 mouse, i was getting a dead curser at first. But the "send core events" "true" setting fixed that.


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

Postby alloydog » Mon Aug 01, 2005 11:29 am

Update
I've just found this HOWTO: Make your Synaptics touchpad work.

It seems without the specific
I have just downloads & uncompressed the driver files, but have just got stuck on:
Code: Select all
/bin/sh/: line 1: gcc: command not found
make: *** [synaptics.o] Error 127
.

so, another problem to fix first... :roll:
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Next

Return to Help!

Who is online

Users browsing this forum: No registered users and 4 guests