Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85408 - evdev breaks after launching mozilla-firefox
Summary: evdev breaks after launching mozilla-firefox
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 13:10 UTC by Joseph D. Wieber, Jr.
Modified: 2005-05-08 05:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph D. Wieber, Jr. 2005-03-15 13:10:21 UTC
I have a dell latitude csx with a  synaptics touchpad and synaptics driver configured in xorg.conf to use evdev. All works well until I launch firefox. Before launching firefox my touchpad registers to /dev/input/event1. After I launch firefox, /dev/input/event1 stops responding. I can still use my usb mouse when this happens. I use the 2.6.10-r6 kernel with udev instead of devfs and have evdev compiled as a module. If I restart X the touchpad works again until I launch mozilla-firefox again. I originally had mozilla-firefox-bin installed and had the same problem, so I tried letting emerge build it from scratch hoping it would fix my problem... you know how that turned out.

*****************************************************************************
# File generated by xorgconfig.
#
# Copyright 2004 The X.Org Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# The X.Org Foundation BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of The X.Org Foundation shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from
# The X.Org Foundation.
#

# **********************************************************************
# Refer to the xorg.conf(5x) man page for details about the format of 
# this file.
# **********************************************************************

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
    Load        "dbe"  	# Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

    Load        "type1"
    Load        "freetype"
    Load        "glx"
    Load        "dri"
    Load	"synaptics"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath	"/usr/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#    ModulePath "/lib/modules"

    FontPath 	"/usr/share/fonts/misc"
    FontPath 	"/usr/share/fonts/TTF"
    FontPath 	"/usr/share/fonts/Type1"
    FontPath 	"/usr/share/fonts/75dpi"
    FontPath 	"/usr/share/fonts/100dpi"
    FontPath 	"/usr/share/fonts/local"
    FontPath 	"/usr/local/share/fonts"
    FontPath 	"/usr/share/fonts"
    FontPath 	"/usr/share/fonts"
    FontPath 	"/usr/share/fonts/cyrillic"
    FontPath 	"/usr/share/fonts/default"
    FontPath 	"/usr/share/fonts/ukr"
    FontPath 	"/usr/share/fonts/TTF"
    FontPath 	"/usr/local/share/fonts/TTF"
EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"kbd"

    Option "AutoRepeat" "500 30"

    Option "XkbModel"	"dell101"
    Option "XkbLayout"	"us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
   Identifier	"synaptics touchpad"
   Driver	"synaptics"
   Option	"Device"		"/dev/input/event1"
   Option	"Protocol"		"event"
   Option	"SHMConfig"		"on"
   Option	"LeftEdge"		"1900"
   Option	"RightEdge"		"5400"
   Option	"TopEdge"		"1400"
   Option	"BottomEdge"		"4500"
   Option	"FingerLow"		"25"
   Option	"FingerHigh"		"30"
   Option	"MaxTapTime"		"180"
   Option	"MaxTapMove"		"220"
   Option	"VertScrollDelta"	"100"
   Option	"MinSpeed"		"0.02"
   Option	"MaxSpeed"		"0.15"
   Option	"AccelFactor"		"0.005"

EndSection

Section "InputDevice"

# Identifier and driver

    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping" "4 5"

EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"
    HorizSync	30-64
    VertRefresh 50-85

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
    Identifier	"Standard VGA"
    VendorName	"Unknown"
    BoardName	"Unknown"
    Driver     "svga"
EndSection
Section "Device"
    Identifier  "NeoMagic (laptop/notebook)"
    Driver      "neomagic"
#    Driver	"vesa"
    VideoRam    4096
    Option     "intern_disp"

#    IOBase     0xfea00000
#    MemBase    0xfd000000
#    VideoRam   2048
#    DacSpeed   90
#    Option     "linear"
#    Option     "nolinear"
#    Option     "sw_cursor"
#    Option     "hw_cursor"
#    Option     "no_accel"
#    Option     "extern_disp"
#    Option     "mmio"
#    Option     "no_mmio"
#    Option     "lcd_center"
#    Option     "no_stretch"
    # Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
    Identifier  "Screen 1"
    Device      "NeoMagic (laptop/notebook)"
    Monitor     "My Monitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************
Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

    Screen "Screen 1"

    InputDevice "synaptics touchpad"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection


*****************************************************************************
emerge --info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  3 2005, 15:08:49)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -mmmx -msse -mfpmath=sse -funroll-loops -pipe -falign-functions=4 -falign-jumps=4 -ffast-math -fomit-frame-pointer -fexpensive-optimizations"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -mmmx -msse -mfpmath=sse -funroll-loops -pipe -falign-functions=4 -falign-jumps=4 -ffast-math-fomit-frame-pointer -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://gentoo.mirrors.pair.com/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac acpi aim alsa apm arts avi berkdb bitmap-fonts bluetooth crypt cups curl dga divx4linux doc dvd dvdread emacs emboss encode esd examples fam flac font-server foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2 hal imagemagic imap imlib ipv6 java javascript joystick jpeg kde kdeenablefinal kerberos lcms leim libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mpi mysql ncurses nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl png pnp python qt quicktime readline samba sdl sharedmem slp spell sse sse2 ssl svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicodeusb vcd videos xine xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


Reproducible: Always
Steps to Reproduce:
1.launch mozilla-firefox
2.
3.

Actual Results:  
touchpad stopped responding. cat /dev/input/event1 shows zero activity when I
drag my finger across the touchpad.

Expected Results:  
It should have loaded without touching harming evdev and/or the synaptics module
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-16 16:11:31 UTC
Well, X is just reading /dev/input, so if the actual event interface screw up, it's not X's fault.

Perhaps you should check what happens when you cat the device and move your mouse around on a command line, before and after X stops working properly.
Comment 2 Joseph D. Wieber, Jr. 2005-03-16 19:25:57 UTC
I never suspected that X is the problem. The references to my X config are there to show how the event interface and synaptics driver are utilized. I've removed evdev from my kernel and let the mouse driver handle the touchpad (on /dev/input/mice) and nothing breaks. 

In the kernel compiled with evdev I tried changing my X config back to its initial state with the mouse driver handling the touchpad on /dev/input/mice, but the kernel loads evdev as soon as it detects the touchpad. Thus, the touchpad stops responding after mozilla-firefox is launched. I think the problem lies with evdev because in this version the synaptics driver is removed from the X config and should not be loading.

In the kernel w/o evdev capabilities, using the same X config (mouse driver) the touchpad continues to work after firefox is launched. 

In the original post, I stated that restarting X makes the touchpad work again. I do not know why it works again after restart. Perhaps it is because the synaptics driver is reloaded and performs some initialization sequence that repairs the event interface. I'm just speculating here, I never looked under the hood to see what happens. In any case, it works sufficiently without using the event interface.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-18 01:30:12 UTC
Kernel folks may be able to assist with this better.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-04-01 04:56:29 UTC
Can you please test 2.6.12-rc1? There have been a number of evdev changes there.
Comment 5 Joseph D. Wieber, Jr. 2005-04-04 08:09:42 UTC
2.6.12-rc1 is not in my portage tree yet, I'll have to d/l it and put it there (syncing didn't bring it down). I'll do that prolly on Wednesday. In the mean time, 2.6.11-r4 does not have the problem with evdev that the previous kernel had. Interestingly enough, I get a roblem with pci bus recognition. It'll hang on boot if my wireless nic is in. I have to boot and then put the nic in, but then syslog has an error about an unrecognised bus PCI... but that is another battle which I fight when time permits. 2.6.11-r5 is compiling now and I'll post the results soon. When I get 2.6.12-rc1 I'll test it and post the results asap. Thanks for the help.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-04-04 08:50:51 UTC
2.6.12-rc1 is available under vanilla-sources
Comment 7 Joseph D. Wieber, Jr. 2005-04-06 07:11:30 UTC
The synaptics drivers fail to detect the touchpad when X loads under kernel 2.6.12-rc1. However, the kernel sees the touchpad. Below are excerpts from dmesg and /var/log/Xorg.0.log respectively.

********************FROM OUTPUT OF DMESG********************
[...]
Synaptics Touchpad, model: 1
 Firmware: 5.0
 Sensor: 20
 new absolute packet format
 Touchpad has extended capability bits
 -> multifinger detection
 -> palm detection
input: SynPS/2 Synaptics TouchPad on isa0060/serio1
[...]

********************FROM /var/log/Xorg.0.log********************
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.10-gentoo-r6 i686 [ELF]
Current Operating System: Linux laptop 2.6.12-rc1 #2 Tue Apr 5 15:29:11 EDT 2005 i686
Build Date: 13 March 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  6 10:46:23 2005
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) |   |-->Monitor "My Monitor"
(**) |   |-->Device "NeoMagic (laptop/notebook)"
(**) |-->Input Device "synaptics touchpad"
(**) |-->Input Device "Keyboard1"
(**) |-->Input Device "Mouse1"
[...]
(II) Synaptics touchpad driver version 0.14.0
(**) Option "Device" "/dev/input/event1"
(**) Option "SHMConfig" "on"
(**) Option "LeftEdge" "1900"
(**) Option "RightEdge" "5400"
(**) Option "TopEdge" "1400"
(**) Option "BottomEdge" "4500"
(**) Option "FingerLow" "25"
(**) Option "FingerHigh" "30"
(**) Option "MaxTapTime" "180"
(**) Option "MaxTapMove" "220"
(**) Option "VertScrollDelta" "100"
(**) Option "TouchpadOff" "2"
(EE) synaptics touchpad no synaptics touchpad detected and no repeater device
(EE) synaptics touchpad Unable to query/initialize Synaptics hardware.
(EE) PreInit failed for input device "synaptics touchpad"
(II) UnloadModule: "synaptics"
[...]
(WW) No core pointer registered
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD)
(--) Mouse1: PnP-detected protocol: "ExplorerPS/2"
(II) Mouse1: ps2EnableDataReporting: succeeded
No core pointer

Fatal server error:
failed to initialize core devices

Please consult the The X.Org Foundation support
         at http://wiki.X.Org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-04-30 05:25:09 UTC
Strange. Can you please try 2.6.12_rc3 and attach the contents of /proc/bus/input/devices from that kernel, assuming X still won't start.
Comment 9 Joseph D. Wieber, Jr. 2005-05-04 10:59:08 UTC
Bad news... That laptop is no more. I apologize for the inconvenience. The good news (for me) is that my new laptop (ACER Ferarri 3400!! 64bit) will arrive soon. Thanks to all who were working on this issue. Aslo, a big thanks to all the folks who make Gentoo possible; you make life worth living!
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-05-08 05:01:14 UTC
Ok, thanks for reporting anyway. If anyone else experiences this problem, please post on this bug.