From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-97892-garchives=archives.gentoo.org@lists.gentoo.org>) id 1MPL2n-0005pC-Dq for garchives@archives.gentoo.org; Fri, 10 Jul 2009 18:42:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E086AE0411; Fri, 10 Jul 2009 18:41:59 +0000 (UTC) Received: from mail-gx0-f220.google.com (mail-gx0-f220.google.com [209.85.217.220]) by pigeon.gentoo.org (Postfix) with ESMTP id B3CB9E0411 for <gentoo-user@lists.gentoo.org>; Fri, 10 Jul 2009 18:41:59 +0000 (UTC) Received: by gxk20 with SMTP id 20so5075378gxk.10 for <gentoo-user@lists.gentoo.org>; Fri, 10 Jul 2009 11:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UjGFa/R6OX+7L+kr0m/xcFuo/6dXhvYPjqiChCN6LTY=; b=VLpXIPUBTeKsYUgDkM6zJJU3z7HJD0ZJ8ztYfTiwqG+lGrapC9NllOq7fWaZ+rxfX4 nsbuV/nDo3ATv2ULkoBvSeLywvnRgCROabtqxS+tW3+1HeApkRsSQR5DFsRdufbEyB1K 1aA6qeq0ngxr05jZc0riphweDN0b4R7GPb1FQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=TDx9mGfhlq4ueI0VrropNdr+6FMoD/BUyd/JuPC7Autr8MXwEFDT8AOKdAe3mtwFVV yX8hdNq+Tm8Fc67UnSAh0/YN6AHilekgrMVUru+NtCvOoYl2Z8kE/I3a1b2+q/cTv7ov p4U9wTcYoiEpkf0o/B2AaxvRS+vs9KKTweIgQ= Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.151.44.12 with SMTP id w12mr3779350ybj.16.1247251319456; Fri, 10 Jul 2009 11:41:59 -0700 (PDT) In-Reply-To: <4A5768A4.2020609@gmail.com> References: <4A5768A4.2020609@gmail.com> Date: Fri, 10 Jul 2009 13:41:59 -0500 X-Google-Sender-Auth: d2a7f5e18e08750b Message-ID: <58965d8a0907101141m2415a20dqd82abbaf77969cbb@mail.gmail.com> Subject: Re: [gentoo-user] :-@ Reversing xorg-server, hal and evdev. From: Paul Hartman <paul.hartman+gentoo@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 7bcd2183-bfe7-4d7b-a23d-704224ba856d X-Archives-Hash: e59ff8a8ae48f1b37fe542f2533449e5 On Fri, Jul 10, 2009 at 11:13 AM, Dale<rdalek1967@gmail.com> wrote: > I tried the new xorg with the hal flag turned on. Let's just say it was > a nightmare, AGAIN. I want my old way back to say it lightly. I put > -hal in package.use for xorg-server. I put my old xorg.conf file back > as well. I re-emerged the keyboard, mouse, video and evdev just in case > it mattered. I also re-emerged xorg-server. My problem you ask. The > nvidia drivers won't load. It defaults to the nv drivers. No splash > screen anymore. Also, my mouse wheel doesn't work anymore either. That > really set me off. I use my wheel as much as I use the left button. Maybe it'll help if I give you my setup, which does work. First the most dramatic difference is that I'm using ~amd64 and you're using x86, so there may be some fundamental version differences going on. Hardware-wise, I use a USB US-English keyboard, a plain USB mouse with no special features other than 2 buttons and a wheel. I use nvidia-drivers for graphics (GeForce 9600 GT). x11-base/xorg-x11 I'm using is version 7.4 and xorg-server version 1.6.2 with these USE flags enabled (and all others disabled): hal input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse kdrive nptl sdl video_cards_nv video_cards_nvidia video_cards_vesa xorg I have sys-apps/hal version 0.5.12_rc1-r6 with USE="X acpi crypt kernel_linux" and I have it in the DEFAULT runlevel. I also have app-misc/hal-info version 20090414 which contains FDI scripts for HAL. In /etc/make.conf I have this: INPUT_DEVICES="joystick keyboard mouse evdev" My xorg.conf contains some stuff related to fonts, video driver and screens, but everything input-related is commented out. Also worth noting is the order of loading for different copies of xorg.conf in your system may take, as explained in "man xorg.conf". If you've got a stray config file somewhere, your changes might not even be taking effect because it could be reading a different file entirely. I'm using kernel 2.6.30-gentoo-r1, gcc 4.3.3-r2 and glibc-2.10.1. I am not using hardened. The profile I'm using is default/linux/amd64/2008.0/desktop In my linux kernel config for input devices I've got these set: # # Userland interfaces # CONFIG_INPUT_MOUSEDEV=y CONFIG_INPUT_MOUSEDEV_PSAUX=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_INPUT_JOYDEV=m CONFIG_INPUT_EVDEV=y # # Input Device Drivers # CONFIG_INPUT_KEYBOARD=y CONFIG_KEYBOARD_ATKBD=y CONFIG_INPUT_MOUSE=y CONFIG_MOUSE_PS2=y CONFIG_MOUSE_PS2_ALPS=y CONFIG_MOUSE_PS2_LOGIPS2PP=y CONFIG_MOUSE_PS2_SYNAPTICS=y CONFIG_MOUSE_PS2_LIFEBOOK=y CONFIG_MOUSE_PS2_TRACKPOINT=y CONFIG_MOUSE_SERIAL=m CONFIG_INPUT_JOYSTICK=y CONFIG_JOYSTICK_ANALOG=m CONFIG_INPUT_MISC=y CONFIG_INPUT_PCSPKR=m in /etc/hal/fdi/policy I have these four files: 10-input-policy.fdi: <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input"> <match key="info.capabilities" contains="button"> <match key="info.addons.singleton" contains_not="hald-addon-input"> <append key="info.addons.singleton" type="strlist">hald-addon-input</append> </match> </match> <match key="info.capabilities" contains="input.keys"> <match key="info.addons.singleton" contains_not="hald-addon-input"> <append key="info.addons.singleton" type="strlist">hald-addon-input</append> </match> <match key="info.capabilities" contains_not="button"> <append key="info.capabilities" type="strlist">button</append> </match> </match> </match> </device> </deviceinfo> 10-keymap.fdi: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.keymap"> <append key="info.callouts.add" type="strlist">hal-setup-keymap</append> </match> <match key="info.capabilities" contains="input.keys"> <merge key="input.xkb.rules" type="string">base</merge> <!-- If we're using Linux, we use evdev by default (falling back to keyboard otherwise). --> <merge key="input.xkb.model" type="string">keyboard</merge> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> <merge key="input.xkb.model" type="string">evdev</merge> </match> <merge key="input.xkb.layout" type="string">us</merge> <merge key="input.xkb.variant" type="string" /> </match> </device> </deviceinfo> 10-ntfs3g.fdi (this one has nothing to do with X): <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="volume.fstype" string="ntfs"> <merge key="volume.fstype" type="string">ntfs-3g</merge> </match> </device> </deviceinfo> 10-x11-input.fdi: <?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <!-- FIXME: Support tablets too. --> <match key="info.capabilities" contains="input.mouse"> <merge key="input.x11_driver" type="string">mouse</merge> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> <merge key="input.x11_driver" type="string">evdev</merge> <merge key="input.x11_options.ZAxisMapping" type="string">4 5 6 7</merge> </match> </match> <match key="info.capabilities" contains="input.keys"> <!-- If we're using Linux, we use evdev by default (falling back to keyboard otherwise). --> <merge key="input.x11_driver" type="string">keyboard</merge> <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> <merge key="input.x11_driver" type="string">evdev</merge> <merge key="input.x11_options.AutoRepeat" type="string">500 30</merge> </match> </match> </device> </deviceinfo> Every time I recompile/upgrade xorg-server, I do this: sudo emerge -1 `qlist -I -C x11-drivers/` Which in my case includes these packages: x11-drivers/nvidia-drivers-185.18.14 x11-drivers/xf86-input-evdev-2.2.2 x11-drivers/xf86-input-joystick-1.4.0 x11-drivers/xf86-input-keyboard-1.3.2 x11-drivers/xf86-input-mouse-1.4.0 x11-drivers/xf86-video-nv-2.1.12 x11-drivers/xf86-video-vesa-2.2.0 to rebuild the x11-drivers (without doing that, you can be stuck with the dead mouse/keyboard situation). After they rebuild, I quit X, "rmmod nvidia", then start X which will load the rebuilt nvidia-drivers module. Then I happily use my working Xorg :) HTH