SOLVED: XF86Config-4 problem

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Postby alloydog » Tue Aug 02, 2005 7:44 pm

I have followed the HOWTO to the letter (well, almost, I found the driver from an Ubuntu repository...), and now have synaptics_drv.o in /usr/X11R6/lib/modules/input and evdev in etc/modules.
XF86Config-4 looks like this:
Code: Select all
Section "Module"
   Load      "synaptics"
   Load      "dbe"
   SubSection   "extmod"
      Option   "omit xfree86-dga"
   EndSubSection
   Load      "type1"
   Load      "freetype"
EndSection

Section "Files"
    RgbPath   "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
#    ModulePath "/usr/X11R6/lib/modules"
EndSection

#Section "ServerFlags"
#EndSection

Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"   "us"
EndSection

Section "InputDevice"
   Identifier   "TouchPad"
   Driver      "synaptics"
   Option "Device" "/dev/psaux"
   Option "Protocol" "auto-dev"
   Option "LeftEdge" "1900"
   Option "RightEdge" "5400"
   Option "TopEdge" "1900"
   Option "BottomEdge" "4000"
   Option "FingerLow" "25"
   Option "FingerHigh" "30"
   Option "MaxTapTime" "180"
   Option "MaxTapMove" "220"
   Option "VertScrollDelta" "100"
   Option "MinSpeed" "0.02"
   Option "MaxSpeed" "0.18"
   Option "AccelFactor" "0.0010"
   Option "SHMConfig" "on"
   # Option "Repeater" "/dev/ps2mouse"
EndSection

Section “InputDevice”
   Identifier “PS/2Mouse”
   Driver “mouse”
   Option “Device” “/dev/psaux”
   Option “Protocol” “IMPS/2”
   Option “ZaxisMapping” “4 5”
EndSection

Section "Monitor"
    Identifier  "Armada 110 Monitor"
    HorizSync   31.5 - 48.5
    VertRefresh 50-90
EndSection

Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "Armada 110 Video Card"
    Driver      "trident"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Armada 110 Video Card"
    Monitor     "Armada 110 Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "TouchPad" "CorePointer"
    InputDevice "PS/2Mouse" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


still only the touchpad work, but no PS/2 mouse.

The Howto mentioned about ensuring the PS/2 mouse driver was loaded, but I believe it is already compiled in the 2.6.7 kernel, so I guess there is no need.

Is there anything else missing?
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby jjmac » Tue Aug 02, 2005 8:51 pm

So you got the compile to work. Probably a config syntax error i would expect. And you needed drivers for your touchpad ....

I had to add ...

Option "SendCoreEvents" "true"

To the Input Section for my PS/2 mouse to get any result. My Server Layout Section just declares the other sections to use. But i'm using v4.3 where i would guess your using X.org. There may be some difference there.

Put the " "SendCoreEvents" "true" " bit in the Input Device Section for the mouse.

Interesting config, i always need an explicit ModesLine in my own Monitor Section, along with Sync rate settings. Seems others don't though :)

You haven't got much there for your Amada Card (trident), but i suppose if thats all thats needed. Why the "Standard VGA" section ?, do you really need it ?

I would have expected some blanking/suspend setting in the ServerFlags Section ... but again, that might just be my v4.3.

I'd do as suggested be fore. Comment in the touchpad stuff and focus on the mouse first. And move the "core pointer" related settings to the actual device section, rather than putting them in the ServerLayout Section. As in my case, the thing that got the pointer moving was just the single addition of

Code: Select all
  Option      "SendCoreEvents"   "true"


Option "CorePointer" .... had no effect !



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 » Wed Aug 03, 2005 6:41 am

Good day jm, I added the Option "SendCoreEvents" "true" bit to the PS/2Mouyse entry (and removed the appropriate entry in the Server Layout section), but still it did not work.

The monitor/display settings come from someone else's XF86Config for and Armada 110 - I found it whilst searching for the mouse/touchpad fix. This is a common problem.

BeatrIX uses XFree86.

I was wondering if the problem lay deeper, as when I installed it, I had to use the failsafe option, so the kernel line in GRUB is
Code: Select all
kernel      /boot/vmlinuz-2.6.7 root=/dev/hda2 ro ramdisk_size=100000 lang=en apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi nomce noapic noacpi acpi=off noapm vga=normal quiet splash


I started removing the options one by one, rebooting each time. noapic noapm removed OK, but when I removed noacpi and acpi=off, it failed to boot.

I rebooted from the LiveCD with the options kernel26 noacpi acpi=off and it booted OK, with all the correct graphics APM and more impotantly USB support.

I reinstalled BeatrIX, as it it only takes abour 30 mins - which is quicker than me reinstall all the missing modules, drivers and what-not.

The PS2/mouse still did not work, but I tried a USB mouse again. This time it did work. This is with the default XF86Config-4, and I did not even have to install the synaptics_drv.o driver.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby Nigel » Wed Aug 03, 2005 8:43 am

Just a thought - have you ever had a PS/2 mouse working on this machine ?
We had a laptop in the office many years ago where the PS/2 port was wired for keyboard only - if we wanted an external mouse we had to use a serial one (before the days of USB :( )
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

Postby alloydog » Wed Aug 03, 2005 10:17 am

The PS/2 mouse worked fine with Windows 2000. The machine is circa 2001, so I guess it ought to support PS/2 more readily that serial.
User avatar
alloydog
LXF regular
 
Posts: 600
Joined: Thu Apr 07, 2005 7:32 pm

Postby jjmac » Mon Aug 08, 2005 1:05 am

Curious, i guess the touchpad is usb. The only thing i can think of is that the kernel hasn't been configured correctly for ps/2, or the back reference to the touch pad is over-riding the later ps/2 settings. Going by the config they seem to be using the same device file. Which may be significant.

I only have the one "pointer" a logitech optical ps/2 mouse, but two mouse configurations. X will log an error in /var/log/XFree86.0.log for the second configuration ... the ps/2 mouse, but still use the ps/2 configuration. I don't think the monitor will have anything to do with it though.

Did you also shelve the touchpad for a while and test with just the one mouse connected, with the touchpads config commented in. Why not also recompile the kernel with heaps of debug support, just for testing too.


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

Previous

Return to Help!

Who is online

Users browsing this forum: No registered users and 2 guests