From owner-freebsd-x11@FreeBSD.ORG Mon Jul 2 22:06:40 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0659B106566B for ; Mon, 2 Jul 2012 22:06:40 +0000 (UTC) (envelope-from gofdx-freebsd-x11@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB1C8FC1C for ; Mon, 2 Jul 2012 22:06:39 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SlolK-0003sF-Hq for freebsd-x11@freebsd.org; Tue, 03 Jul 2012 00:06:30 +0200 Received: from cpe-188-129-115-196.dynamic.amis.hr ([188.129.115.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2012 00:06:30 +0200 Received: from ivoras by cpe-188-129-115-196.dynamic.amis.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Jul 2012 00:06:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-x11@freebsd.org From: Ivan Voras Date: Tue, 03 Jul 2012 00:06:14 +0200 Lines: 229 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020305070305000201000106" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-188-129-115-196.dynamic.amis.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120623 Thunderbird/13.0.1 Subject: XOrg needs restart to recognize keyboard & mouse X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2012 22:06:40 -0000 This is a multi-part message in MIME format. --------------020305070305000201000106 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I have recently reinstalled X.org (by deleting all packages and installing them again cleanly from ports) and I have a strange problem: every time I boot the machine and log in to the text-mode console, when I start X.Org with startx, it doesn't recognize the mouse and keyboard - the graphics driver works, everything seems to load fine, but there are no input devices. Then, when I kill the Xorg process (by logging into the machine with ssh), then run startx again, everything is fine. This is xorg-7.5.2 on 9-stable amd64. I have made a diff of Xorg.log files before & after, and it is somewhat strange. As you can see near the end of the diff, it looks like the first time X.Org is started it uses the wrong mouse device and unloads (?!) the keyboard device. I have an xorg.conf but it is very minimal - I've attached it just in case. Any ideas? --- Xorg.0.log.old 2012-07-02 23:32:14.000000000 +0200 +++ Xorg.0.log 2012-07-02 23:35:10.000000000 +0200 @@ -12,7 +12,7 @@ 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: Mon Jul 2 23:29:01 2012 +(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 2 23:32:17 2012 (==) Using config file: "/etc/X11/xorg.conf" (==) ServerLayout "Layout0" (**) |-->Screen "Screen0" (0) @@ -126,33 +126,33 @@ (==) NVIDIA(0): RGB weight 888 (==) NVIDIA(0): Default visual is TrueColor (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) -(**) Jul 02 23:29:02 NVIDIA(0): Enabling 2D acceleration -(II) Jul 02 23:29:03 NVIDIA(0): NVIDIA GPU GeForce GT 440 (GF108) at PCI:7:0:0 (GPU-0) -(--) Jul 02 23:29:03 NVIDIA(0): Memory: 1048576 kBytes -(--) Jul 02 23:29:03 NVIDIA(0): VideoBIOS: 70.08.45.00.01 -(II) Jul 02 23:29:03 NVIDIA(0): Detected PCI Express Link width: 16X -(--) Jul 02 23:29:03 NVIDIA(0): Interlaced video modes are supported on this GPU -(--) Jul 02 23:29:03 NVIDIA(0): Connected display device(s) on GeForce GT 440 at PCI:7:0:0 -(--) Jul 02 23:29:03 NVIDIA(0): BENQ E2400HD (DFP-0) -(--) Jul 02 23:29:03 NVIDIA(0): BENQ E2400HD (DFP-0): 330.0 MHz maximum pixel clock -(--) Jul 02 23:29:03 NVIDIA(0): BENQ E2400HD (DFP-0): Internal Dual Link TMDS -(**) Jul 02 23:29:03 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display -(**) Jul 02 23:29:03 NVIDIA(0): device BENQ E2400HD (DFP-0) (Using EDID frequencies has -(**) Jul 02 23:29:03 NVIDIA(0): been enabled on all display devices.) -(II) Jul 02 23:29:03 NVIDIA(0): Assigned Display Device: DFP-0 -(==) Jul 02 23:29:03 NVIDIA(0): -(==) Jul 02 23:29:03 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select" -(==) Jul 02 23:29:03 NVIDIA(0): will be used as the requested mode. -(==) Jul 02 23:29:03 NVIDIA(0): -(II) Jul 02 23:29:03 NVIDIA(0): Validated modes: -(II) Jul 02 23:29:03 NVIDIA(0): "nvidia-auto-select" -(II) Jul 02 23:29:03 NVIDIA(0): Virtual screen size determined to be 1920 x 1080 -(--) Jul 02 23:29:03 NVIDIA(0): DPI set to (101, 101); computed from "UseEdidDpi" X config -(--) Jul 02 23:29:03 NVIDIA(0): option +(**) Jul 02 23:32:17 NVIDIA(0): Enabling 2D acceleration +(II) Jul 02 23:32:17 NVIDIA(0): NVIDIA GPU GeForce GT 440 (GF108) at PCI:7:0:0 (GPU-0) +(--) Jul 02 23:32:17 NVIDIA(0): Memory: 1048576 kBytes +(--) Jul 02 23:32:17 NVIDIA(0): VideoBIOS: 70.08.45.00.01 +(II) Jul 02 23:32:17 NVIDIA(0): Detected PCI Express Link width: 16X +(--) Jul 02 23:32:17 NVIDIA(0): Interlaced video modes are supported on this GPU +(--) Jul 02 23:32:17 NVIDIA(0): Connected display device(s) on GeForce GT 440 at PCI:7:0:0 +(--) Jul 02 23:32:17 NVIDIA(0): BENQ E2400HD (DFP-0) +(--) Jul 02 23:32:17 NVIDIA(0): BENQ E2400HD (DFP-0): 330.0 MHz maximum pixel clock +(--) Jul 02 23:32:17 NVIDIA(0): BENQ E2400HD (DFP-0): Internal Dual Link TMDS +(**) Jul 02 23:32:17 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display +(**) Jul 02 23:32:17 NVIDIA(0): device BENQ E2400HD (DFP-0) (Using EDID frequencies has +(**) Jul 02 23:32:17 NVIDIA(0): been enabled on all display devices.) +(II) Jul 02 23:32:17 NVIDIA(0): Assigned Display Device: DFP-0 +(==) Jul 02 23:32:17 NVIDIA(0): +(==) Jul 02 23:32:17 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select" +(==) Jul 02 23:32:17 NVIDIA(0): will be used as the requested mode. +(==) Jul 02 23:32:17 NVIDIA(0): +(II) Jul 02 23:32:17 NVIDIA(0): Validated modes: +(II) Jul 02 23:32:17 NVIDIA(0): "nvidia-auto-select" +(II) Jul 02 23:32:17 NVIDIA(0): Virtual screen size determined to be 1920 x 1080 +(--) Jul 02 23:32:17 NVIDIA(0): DPI set to (101, 101); computed from "UseEdidDpi" X config +(--) Jul 02 23:32:17 NVIDIA(0): option (--) Depth 24 pixmap format is 32 bpp -(II) Jul 02 23:29:03 NVIDIA: Reserving 3072.00 MB of virtual memory for indirect memory -(II) Jul 02 23:29:03 NVIDIA: access. -(II) Jul 02 23:29:03 NVIDIA(0): Setting mode "nvidia-auto-select" +(II) Jul 02 23:32:17 NVIDIA: Reserving 3072.00 MB of virtual memory for indirect memory +(II) Jul 02 23:32:17 NVIDIA: access. +(II) Jul 02 23:32:17 NVIDIA(0): Setting mode "nvidia-auto-select" (II) Loading extension NV-GLX (==) NVIDIA(0): Disabling shared memory pixmaps (==) NVIDIA(0): Backing store disabled @@ -185,17 +185,19 @@ Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 7.0 (WW) USB Laser Mouse: No Device specified, looking for one... -(II) USB Laser Mouse: Setting Device option to "/dev/ums0" -(--) USB Laser Mouse: Device: "/dev/ums0" +(II) USB Laser Mouse: Setting Device option to "/dev/sysmouse" +(--) USB Laser Mouse: Device: "/dev/sysmouse" (==) USB Laser Mouse: Protocol: "Auto" (**) USB Laser Mouse: always reports core events -(**) Option "Device" "/dev/ums0" -(EE) xf86OpenSerial: Cannot open device /dev/ums0 - Device busy. -(EE) USB Laser Mouse: cannot open input device -(II) UnloadModule: "mouse" -(EE) PreInit returned NULL for "USB Laser Mouse" -(EE) config/hal: NewInputDeviceRequest failed (8) +(**) Option "Device" "/dev/sysmouse" +(==) USB Laser Mouse: Emulate3Buttons, Emulate3Timeout: 50 +(**) USB Laser Mouse: ZAxisMapping: buttons 4 and 5 +(**) USB Laser Mouse: Buttons: 9 +(II) XINPUT: Adding extended input device "USB Laser Mouse" (type: MOUSE) +(**) USB Laser Mouse: (accel) keeping acceleration scheme 1 +(**) USB Laser Mouse: (accel) acceleration profile 0 +(II) USB Laser Mouse: SetupAuto: hw.iftype is 4, hw.model is 0 +(II) USB Laser Mouse: SetupAuto: protocol is SysMouse (II) config/hal: Adding input device AT Keyboard (II) LoadModule: "kbd" (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so @@ -209,4 +211,4 @@ (**) Option "XkbModel" "pc105" (**) Option "XkbLayout" "us" (II) XINPUT: Adding extended input device "AT Keyboard" (type: KEYBOARD) -(II) UnloadModule: "kbd" +(II) 3rd Button detected: disabling emulate3Button --------------020305070305000201000106 Content-Type: text/plain; charset=UTF-8; name="xorg.conf.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xorg.conf.txt" # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 260.19.44 (buildmeister@swio-display-x86-rhel47-03.nvidia.com) Sun Feb 27 20:54:59 PST 2011 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" FontPath "/usr/local/lib/X11/fonts/misc/:unscaled" FontPath "/usr/local/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/local/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" FontPath "/usr/local/lib/X11/fonts/cyrillic/" FontPath "/usr/local/lib/X11/fonts/TTF/" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "keyboard" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection --------------020305070305000201000106--