Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SOLVED: XF86Config-4 problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Sat Jul 23, 2005 9:44 am    Post subject: SOLVED: XF86Config-4 problem Reply with quote

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:
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 7:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Erin
LXF regular


Joined: Thu Apr 07, 2005 8:35 pm
Posts: 141
Location: The Olde Smoke south of the River

PostPosted: Sun Jul 24, 2005 10:33 am    Post subject: RE: XF86Config problem Reply with quote

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].
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7628
Location: Midlands, UK

PostPosted: Sun Jul 24, 2005 4:34 pm    Post subject: RE: XF86Config problem Reply with quote

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
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Mon Jul 25, 2005 3:02 am    Post subject: RE: XF86Config problem Reply with quote

>>
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:

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 ...
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Mon Jul 25, 2005 4:58 am    Post subject: Reply with quote

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

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

I will check the other bits shortly.
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Mon Jul 25, 2005 12:33 pm    Post subject: Reply with quote

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

Very similar though (grin) ...

Code:

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 ...
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Fri Jul 29, 2005 10:49 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
fingers99
LXF regular


Joined: Thu Apr 07, 2005 7:15 pm
Posts: 143

PostPosted: Fri Jul 29, 2005 1:19 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Sat Jul 30, 2005 3:18 pm    Post subject: Reply with quote

I have the following:
Code:
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.
Back to top
View user's profile Send private message
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Sat Jul 30, 2005 3:22 pm    Post subject: Reply with quote

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:
Section "InputDevice"

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

Nigel.
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Sat Jul 30, 2005 5:07 pm    Post subject: Reply with quote

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

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


That was just a copy/paste mistake, the line is there in XF86Config-4
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4258
Location: wild West Wales

PostPosted: Sat Jul 30, 2005 9:06 pm    Post subject: Reply with quote

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
Quote:
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 Wink
Dick
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Mon Aug 01, 2005 8:38 am    Post subject: Reply with quote

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:
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:
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.
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Mon Aug 01, 2005 10:52 am    Post subject: Reply with quote

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:

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 Smile

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 ...
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Mon Aug 01, 2005 12:29 pm    Post subject: Reply with quote

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:
/bin/sh/: line 1: gcc: command not found
make: *** [synaptics.o] Error 127
.

so, another problem to fix first... Rolling Eyes
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast