From owner-freebsd-mobile@FreeBSD.ORG Thu Oct 25 18:00:50 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7011B16A46C for ; Thu, 25 Oct 2007 18:00:50 +0000 (UTC) (envelope-from SRS0=734d6c34bf44665d567534190cfe44cf40fbbddc=499=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [IPv6:2001:400:6000:1::66]) by mx1.freebsd.org (Postfix) with ESMTP id A062213C4AA for ; Thu, 25 Oct 2007 18:00:47 +0000 (UTC) (envelope-from SRS0=734d6c34bf44665d567534190cfe44cf40fbbddc=499=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id ECZ30645; Thu, 25 Oct 2007 11:00:45 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 1ECE045010; Thu, 25 Oct 2007 11:00:44 -0700 (PDT) To: Tom Judge In-Reply-To: Your message of "Thu, 25 Oct 2007 09:20:49 BST." <472051E1.6020108@tomjudge.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1193335244_44900P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 25 Oct 2007 11:00:44 -0700 From: "Kevin Oberman" Message-Id: <20071025180044.1ECE045010@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ;; X-Sender: X-To_Name: Tom Judge X-To_Domain: tomjudge.com X-To: Tom Judge X-To_Email: tom@tomjudge.com X-To_Alias: tom Cc: freebsd-mobile@freebsd.org Subject: Re: ACPI Attach (acpi_ibm) stops mouse from working X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 18:00:50 -0000 --==_Exmh_1193335244_44900P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Thu, 25 Oct 2007 09:20:49 +0100 > From: Tom Judge > > Kevin Oberman wrote: > >> Date: Mon, 22 Oct 2007 17:04:52 +0100 > >> From: Tom Judge > >> Sender: owner-freebsd-mobile@freebsd.org > >> > >> Hi, > >> > >> > >> I have recently setup an IBM/Lenovo T43 with RELENG_7 as of mid last > >> week, however I have a problem with the acpi_ibm module. > >> > >> If I add acpi_ibm_load="YES" to loader.conf I get the following message > >> during boot: > >> > >> psm0: unable to allocate IRQ > >> > >> This is followed by a message stating that the acpi_ibm module has > >> attached to IRQ 12. > >> > >> If I remove this module from loader.conf and boot the system the mouse > >> attaches and works as expected. If I then kldload acpi_ibm the module > >> attaches to acpi0. > >> > >> > >> Is there any way to make this work without loading the acpi module after > >> boot? > > > > I have a T43 and see the same thing if I load drivers in > > /boot/loader.conf. I have seen it with both umass and it's USB brethren, > > and if_ath. If I build them into the kernel or load them after the > > system boots, there is no problem. Otherwise, no IRQ for the mouse (and > > no mouse). > > > > But you don't have to explicitly load ACPI. It's "magic" and > > automatically loads if you don't disable it in hints. If it loads that > > way, I have never had problems with the mouse. > > > > jhb had some ideas of what caused the problem, but I have never had > > time to pursue it and it is pretty rare. > > > > Try removing the load from /boot/loader.conf and see if it works and if > > you still get ACPI. > > If I remove acpi_ibm_load="YES" from loader.conf I do indeed still get > acpi. But what I don't get are access to the IBM acpi extensions such > as being able to use the access button to launch applications. It all > seems to be related to the order in which the modules are loaded. If > acpi_ibm is loaded last then all is well, if not then it attaches to irq > 12 clobbering the ps2 port for the mouse. How odd. I can't see why acpi_ibm would effect IRQs in any way. Are you running with APIC? I am not. Here are the contents of my loader.conf file: #Increase PCM buffer for smoother sound hint.pcm.0.buffersize="16384" kern.maxfiles="25000" # Kick the mouse on resume hint.psm.0.flags="0x2000" # Disable TCC CPU throttling #hint.p4tcc.0.disabled="1" #hint.acpi_throttle.0.disabled="1" # The DVD/CD does DMA just fine hw.ata.atapi.dma="1" # Allow better power management of devices hw.pci.do_power_nodriver="2" hw.psm.synaptics_support="1" # Don't use cpufreq on this system! #cpufreq_load="YES" wlan_scan_sta_load="YES" # VESA allows full res VTYs (132x50 with mode 322) vesa_load="YES" # Support full disk encryption geom_eli_load="YES" # Support IBM ACPI extensions acpi_ibm_load="YES" # Load the sound driver snd_ich_load="YES" acpi_video_load="YES" # Support WEP on WiFi wlan_wep_load="YES" # Don't enable firewall at boot as it breaks IPv6 RDP/NDP #ipfw_load="YES" linux_load="YES" These entries are for a variety of things and some may not be appropriate or may be built into the kernel. I am running the latest available BIOS. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1193335244_44900P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHINnMkn3rs5h7N1ERAj1eAKC0rhOJKBjEEQ3PP1p/8mpu+/Bi0gCgke+O n2XvKo369REtMf9XhOKN5bI= =xKh0 -----END PGP SIGNATURE----- --==_Exmh_1193335244_44900P--