From owner-freebsd-acpi@FreeBSD.ORG Sun Sep 26 20:53:43 2010 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9CDE1065670; Sun, 26 Sep 2010 20:53:43 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9B87B8FC21; Sun, 26 Sep 2010 20:53:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8QKrhKq095118; Sun, 26 Sep 2010 20:53:43 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8QKrhUd095114; Sun, 26 Sep 2010 20:53:43 GMT (envelope-from linimon) Date: Sun, 26 Sep 2010 20:53:43 GMT Message-Id: <201009262053.o8QKrhUd095114@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-acpi@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2010 20:53:44 -0000 Synopsis: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi Responsible-Changed-By: linimon Responsible-Changed-When: Sun Sep 26 20:53:24 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=150517 From owner-freebsd-acpi@FreeBSD.ORG Mon Sep 27 06:00:24 2010 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 940F2106564A for ; Mon, 27 Sep 2010 06:00:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 682598FC20 for ; Mon, 27 Sep 2010 06:00:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8R60NDV058959 for ; Mon, 27 Sep 2010 06:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8R60NUZ058937; Mon, 27 Sep 2010 06:00:23 GMT (envelope-from gnats) Date: Mon, 27 Sep 2010 06:00:23 GMT Message-Id: <201009270600.o8R60NUZ058937@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2010 06:00:24 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, naylor.b.david@gmail.com Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Mon, 27 Sep 2010 08:53:51 +0300 Since you already looked at the linux code, could you please post a link to a place where the problematic condition is handled there? P.S. A service like http://lxr.linux.no/ or similar might be convenient. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Mon Sep 27 11:06:48 2010 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F03EF1065694 for ; Mon, 27 Sep 2010 11:06:48 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C42B98FC20 for ; Mon, 27 Sep 2010 11:06:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8RB6mXv023371 for ; Mon, 27 Sep 2010 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8RB6mX6023369 for freebsd-acpi@FreeBSD.org; Mon, 27 Sep 2010 11:06:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Sep 2010 11:06:48 GMT Message-Id: <201009271106.o8RB6mX6023369@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2010 11:06:49 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/150517 acpi [acpi] acpi_ec does not work properly on Lenovo S10[e] o i386/146715 acpi [acpi] Suspend works, resume not on a HP Probook 4510s o kern/145306 acpi [acpi]: Can't change brightness on HP ProBook 4510s o amd64/144551 acpi [acpi] ACPI issues on SuperMicro X7SPA-H o i386/144045 acpi [acpi] [panic] kernel trap with acpi enabled o i386/143798 acpi [acpi] shutdown problem with SiS K7S5A o kern/143420 acpi [acpi] ACPI issues with Toshiba o kern/142263 acpi [acpi] ACPI regression on Asus K8N7-E deluxe motherboa o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o amd64/140751 acpi [acpi] BIOS resource allocation and FreeBSD ACPI in TO o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, o bin/137053 acpi [hang] FreeBSD 8.0 BETA2Compaq Mini 700 locks on boot o kern/137042 acpi [acpi] hp laptop's lcd not wakes up after suspend to r o i386/136008 acpi [acpi] Dell Vostro 1310 will not shutdown (Requires us o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o kern/135070 acpi [acpi] [patch] BIOS resource allocation and FreeBSD AC o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not o kern/130683 acpi [ACPI] shutdown hangs after syncing disks - ACPI race? o i386/129953 acpi [acpi] ACPI timeout (CDROM) with Shuttle X27D o kern/129618 acpi [acpi] Problem with ACPI on HP Pavilion DV2899 laptop o kern/129563 acpi [acpi] sleep broken on IBM/Lenovo T61 in amd64 mode p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin o amd64/121439 acpi [boot] Installation of FreeBSD 7.0 fails: ACPI problem o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys o kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 57 problems total. From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 1 03:57:26 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91A8E106564A; Fri, 1 Oct 2010 03:57:26 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 341E98FC18; Fri, 1 Oct 2010 03:57:25 +0000 (UTC) Received: by gwb15 with SMTP id 15so1271424gwb.13 for ; Thu, 30 Sep 2010 20:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=KqBKv8ZCXrX2PebYqCny7ZneiiN5J+5JOBdAWTSVT2Q=; b=ATjO7nh49Ih89bX9X6NjBkzz3Yg3D/FklYtngsWxfrHM1ttl4juNpsBKXQ2GD551N0 UvP/7Xeq1tdT0IYf8uPmbDHUm8WwXwQjwVu1vKag9U7IVCtFe6f7iyY2kr0uGbYb3/8q 25lKXJ8fOhMK0yxpUcNIqGF/tAYyNJf+8oXq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=ZfSElQoKp6WBypE3Cz4qghfRog/QujqEgfypA7oMAmLPmtzBWPGVsIZLxBPw/v5kKS IZ0TAD1pNTcOTAtRHUj/tHK8sIEhTeGC+xQ2TtDYPDowj1LxmDU45sfd4oqO6P4qF1CI 56WsAu5Wql4Z4LqGpOqkSUIJbXVaQ18vCy3nQ= Received: by 10.150.138.17 with SMTP id l17mr324369ybd.237.1285904114763; Thu, 30 Sep 2010 20:35:14 -0700 (PDT) Received: from ono-sendai.local ([75.111.34.169]) by mx.google.com with ESMTPS id q30sm339422ybk.8.2010.09.30.20.35.10 (version=SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 20:35:12 -0700 (PDT) Message-ID: <4CA556EB.902@gmail.com> Date: Thu, 30 Sep 2010 20:35:07 -0700 From: Matt User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org References: <4C732522.1010400@gmail.com> In-Reply-To: <4C732522.1010400@gmail.com> Content-Type: multipart/mixed; boundary="------------070203050204080303080401" Cc: Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 03:57:26 -0000 This is a multi-part message in MIME format. --------------070203050204080303080401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Success! After setting every possible suspend/resume sysctl, "sysctl hw.pci.do_power_resume=0" allowed suspend and resume. Still beeps 1-3 times before suspend, with rapid sleep light flashing until suspend complete. Kernel conf is attached. World built from last Friday's CVS, -CURRENT acpiconf -s3 works perfectly from console previously opened windows are garbled until refresh in X acpiconf -s4 causes shutdown, does not resume on power on. Swap is 2x RAM. VMstat -i rate is 540. Thank you FreeBSD! Matt --------------070203050204080303080401 Content-Type: text/plain; name="ONOSENDAI" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ONOSENDAI" # # GENERIC -- Generic kernel configuration file for FreeBSD/amd64 # # For more information on this file, please read the config(5) manual page, # and/or the handbook section on Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.544 2010/04/25 22:01:32 thompsa Exp $ cpu HAMMER ident ONOSENDAI #makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options GEOM_BDE # Encrypted filesystems with GBDE options GEOM_ELI # Encrypted filesystems with GELI options GEOM_JOURNAL # GJournal options COMPAT_FREEBSD32 # Compatible with i386 binaries options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options P1003_1B_SEMAPHORES # POSIX-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. options KBD_INSTALL_CDEV # install a CDEV entry in /dev options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options AUDIT # Security event auditing options MAC # TrustedBSD MAC Framework options FLOWTABLE # per-cpu routing cache #options KDTRACE_FRAME # Ensure frames are compiled in #options KDTRACE_HOOKS # Kernel DTrace hooks options INCLUDE_CONFIG_FILE # Include this file in kernel # Debugging for use in -current #options KDB # Enable kernel debugger #support. #options DDB # Support DDB. #options GDB # Support remote GDB. #options DEADLKRES # Enable the deadlock resolver #options INVARIANTS # Enable calls of extra sanity checking #options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS # Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed # Make an SMP-capable kernel by default options SMP # Symmetric MultiProcessor Kernel # CPU frequency control device cpufreq # Bus support. device acpi device pci # Floppy drives device fdc # ATA and ATAPI devices device ahci device ataahci device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives device atapicam # for acd0 -mod options ATA_STATIC_ID # Static device numbering # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. device ahd # AHA39320/29320 and onboard AIC79xx devices options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. device amd # AMD 53C974 (Tekram DC-390(T)) device hptiop # Highpoint RocketRaid 3xxx series device isp # Qlogic family #device ispfw # Firmware for QLogic HBAs- normally a module device mpt # LSI-Logic MPT-Fusion #device ncr # NCR/Symbios Logic device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') device trm # Tekram DC395U/UW/F DC315U adapters device adv # Advansys SCSI adapters device adw # Advansys wide SCSI adapters device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60. device bt # Buslogic/Mylex MultiMaster SCSI adapters # SCSI peripherals device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) # RAID controllers interfaced to the SCSI subsystem device amr # AMI MegaRAID device arcmsr # Areca SATA II RAID #XXX it is not 64-bit clean, -scottl #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID device ciss # Compaq Smart RAID 5* device dpt # DPT Smartcache III, IV - See NOTES for options device hptmv # Highpoint RocketRAID 182x device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx device iir # Intel Integrated RAID device ips # IBM (Adaptec) ServeRAID device mly # Mylex AcceleRAID/eXtremeRAID device twa # 3ware 9000 series PATA/SATA RAID # RAID controllers #device aac # Adaptec FSA RAID #device aacp # SCSI passthrough for aac (requires CAM) #device ida # Compaq Smart RAID #device mfi # LSI MegaRAID SAS #device mlx # Mylex DAC960 family #XXX pointer/int warnings #device pst # Promise Supertrak SX6000 #device twe # 3ware ATA RAID # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer device vga # VGA video card driver device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc device agp # support several AGP chipsets # PCCARD (PCMCIA) support # PCMCIA and cardbus bridge support device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus # Serial (COM) ports device uart # Generic UART driver # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # If you've got a "dumb" serial or parallel PCI card that is # supported by the puc(4) glue driver, uncomment the following # line to enable it (connects to sio, uart and/or ppc drivers): #device puc # PCI Ethernet NICs. #device de # DEC/Intel DC21x4x (``Tulip'') #device em # Intel PRO/1000 Gigabit Ethernet Family #device igb # Intel PRO/1000 PCIE Server Gigabit Family #device ixgbe # Intel PRO/10GbE PCIE Ethernet Family #device le # AMD Am7900 LANCE and Am79C9xx PCnet #device ti # Alteon Networks Tigon I/II gigabit Ethernet #device txp # 3Com 3cR990 (``Typhoon'') #device vx # 3Com 3c590, 3c595 (``Vortex'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support #device ae # Attansic/Atheros L2 FastEthernet #device age # Attansic/Atheros L1 Gigabit Ethernet #device alc # Atheros AR8131/AR8132 Ethernet #device ale # Atheros AR8121/AR8113/AR8114 Ethernet #device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet #device bfe # Broadcom BCM440x 10/100 Ethernet #device bge # Broadcom BCM570xx Gigabit Ethernet #device dc # DEC/Intel 21143 and various workalikes #device et # Agere ET1310 10/100/Gigabit Ethernet #device fxp # Intel EtherExpress PRO/100B (82557, 82558) #device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet #device lge # Level 1 LXT1001 gigabit Ethernet #device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet #device nfe # nVidia nForce MCP on-board Ethernet #device nge # NatSemi DP83820 gigabit Ethernet #device nve # nVidia nForce MCP on-board Ethernet Networking #device pcn # AMD Am79C97x PCI 10/100 (precedence over 'le') device re # RealTek 8139C+/8169/8169S/8110S #device rl # RealTek 8129/8139 #device sf # Adaptec AIC-6915 (``Starfire'') #device sge # Silicon Integrated Systems SiS190/191 #device sis # Silicon Integrated Systems SiS 900/SiS 7016 #device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet #device ste # Sundance ST201 (D-Link DFE-550TX) #device stge # Sundance/Tamarack TC9021 gigabit Ethernet #device tl # Texas Instruments ThunderLAN #device tx # SMC EtherPower II (83c170 ``EPIC'') #device vge # VIA VT612x gigabit Ethernet #device vr # VIA Rhine, Rhine II #device wb # Winbond W89C840F #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA Ethernet NICs. pccard NICs included. #device cs # Crystal Semiconductor CS89x0 NIC # 'device ed' requires 'device miibus' #device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards #device ex # Intel EtherExpress Pro/10 and Pro/10+ #device ep # Etherlink III based cards #device fe # Fujitsu MB8696x based cards #device sn # SMC's 9000 series of Ethernet chips #device xe # Xircom pccard Ethernet # Wireless NIC cards device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's options IEEE80211_SUPPORT_MESH # enable 802.11s draft support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device an # Aironet 4500/4800 802.11 wireless NICs. device ath # Atheros pci/cardbus NIC's device ath_hal # pci/cardbus chip support options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors device ath_rate_sample # SampleRate tx rate control for ath device ral # Ralink Technology RT2500 wireless NICs. device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. device iwn # Intel wireless -mod device iwnfw # fw for intel wireless # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device vlan # 802.1Q VLAN support device tun # Packet tunnel. device pty # BSD-style compatibility pseudo ttys device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support options USB_DEBUG # enable debug msgs device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device urio # Diamond Rio 500 MP3 player # USB Serial devices device u3g # USB 3g Modems device uark # Technologies ARK3116 based serial adapters device ubsa # Belkin F5U103 and compatible serial adapters device uftdi # For FTDI usb serial adapters device uipaq # Some WinCE based devices device uplcom # Prolific PL-2303 serial adapters device uslcom # SI Labs CP2101/CP2102 serial adapters device uvisor # Visor and Palm devices device uvscom # USB serial support for DDI pocket's PHS # USB Ethernet, requires miibus device aue # ADMtek USB Ethernet device axe # ASIX Electronics USB Ethernet device cdce # Generic USB over Ethernet device cue # CATC USB Ethernet device kue # Kawasaki LSI USB Ethernet device rue # RealTek RTL8150 USB Ethernet device udav # Davicom DM9601E USB # USB Wireless device rum # Ralink Technology RT2501USB wireless NICs device uath # Atheros AR5523 wireless NICs device ural # Ralink Technology RT2500USB wireless NICs device zyd # ZyDAS zb1211/zb1211b wireless NICs # FireWire support #device firewire # FireWire bus code #device sbp # SCSI over FireWire (Requires scbus and da) #device fwe # Ethernet over FireWire (non-standard!) #device fwip # IP over FireWire (RFC 2734,3146) #device dcons # Dumb console driver #device dcons_crom # Configuration ROM for dcons # sound device sound #device snd_hda # SL410 sound -mod # firewall device pf # firewall of choice device pflog device pfsync # other # crypto device crypto # crypto device # acpi option ACPI_DEBUG device acpi_ibm device smbus device smb device ichsmb device iicbus # To include support for VGA VESA video modes options VESA # Turn on extra debugging checks and output for VESA support. #options VESA_DEBUG device dpms # DPMS suspend & resume via VESA BIOS # x86 real mode BIOS emulator, required by atkbdc/dpms/vesa options X86BIOS #other options PSM_HOOKRESUME #hook the system resume event, useful #for some laptops options PSM_RESETAFTERSUSPEND #reset the device at the resume event device drm # DRM core module required by DRM drivers device i915drm # Intel i830 through i915 device coretemp device speaker device cpuctl options SC_PIXEL_MODE --------------070203050204080303080401-- From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 1 05:02:14 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FC051066B71 for ; Fri, 1 Oct 2010 05:02:14 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB218FC1D for ; Fri, 1 Oct 2010 05:02:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o91529qG067017; Fri, 1 Oct 2010 15:02:10 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 1 Oct 2010 15:02:09 +1000 (EST) From: Ian Smith To: Matt In-Reply-To: <4CA556EB.902@gmail.com> Message-ID: <20101001144505.C62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 05:02:14 -0000 On Thu, 30 Sep 2010, Matt wrote: > Success! > > After setting every possible suspend/resume sysctl, > "sysctl hw.pci.do_power_resume=0" > allowed suspend and resume. Still beeps 1-3 times before suspend, with rapid > sleep light flashing until suspend complete. Interesting; $someone may document do_power_resume a bit more $someday? > Kernel conf is attached. > World built from last Friday's CVS, -CURRENT > > acpiconf -s3 works perfectly from console > previously opened windows are garbled until refresh in X Some thinkpads have responded positively in this regard to setting hw.syscons.sc_no_suspend_vtswitch=1 > acpiconf -s4 causes shutdown, does not resume on power on. Suspend To Disk is not expected to work; your laptop (like most) has no BIOS support for S4, as per your hw.acpi.s4bios: 0 cheers, Ian > Swap is 2x RAM. > > VMstat -i rate is 540. > > Thank you FreeBSD! > > Matt From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 1 19:11:57 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADFD7106567A for ; Fri, 1 Oct 2010 19:11:57 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id E8E368FC1D for ; Fri, 1 Oct 2010 19:11:56 +0000 (UTC) Received: by ywt2 with SMTP id 2so59557ywt.13 for ; Fri, 01 Oct 2010 12:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=fHgyXu3lAPjKSXqtwxpCgZRI9o/2Z/UEQ5oKFH2HLmU=; b=B3b1ONqCRAx0yqY6QVU4iTJ/6dvjMmL/0+ro9YckjpKlnsI7wrK4NqMXZXhkkc8b+P olsGGsqL59xS0RpjrtNiVksvkV8tDzjLAlOSupdJWEg6jPaoPlMiMYwGL1GP63wcbbq1 z+Hn2Ghd9XF+KuGnohtFx+dwlD+dcwsaY+aiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CJ0MwvjZN1S3m0HzijLBXTQA6EqHscqoFluZuujIJhChIopOLi8moYOk8ScSCNk8Ru 3hLtazOVUeyq6thVqj7PO/BnqDtwHQMY0mt5OLez47tKrSCIkpgKdFFt0OcKpUCNTVcM ydsFaB+NoTTpwSHWkL6adRMSmwVJ2YrnNB+GQ= MIME-Version: 1.0 Received: by 10.220.157.143 with SMTP id b15mr1460433vcx.120.1285958516165; Fri, 01 Oct 2010 11:41:56 -0700 (PDT) Received: by 10.220.200.1 with HTTP; Fri, 1 Oct 2010 11:41:56 -0700 (PDT) In-Reply-To: <20101001144505.C62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> <20101001144505.C62022@sola.nimnet.asn.au> Date: Fri, 1 Oct 2010 18:41:56 +0000 Message-ID: From: Paul B Mahol To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 Cc: Matt , freebsd-acpi@freebsd.org, freebsd-current@freebsd.org Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 19:11:57 -0000 On 10/1/10, Ian Smith wrote: > On Thu, 30 Sep 2010, Matt wrote: > > Success! > > > > After setting every possible suspend/resume sysctl, > > "sysctl hw.pci.do_power_resume=0" > > allowed suspend and resume. Still beeps 1-3 times before suspend, with > rapid > > sleep light flashing until suspend complete. > > Interesting; $someone may document do_power_resume a bit more $someday? It is already documented. > > > Kernel conf is attached. > > World built from last Friday's CVS, -CURRENT > > > > acpiconf -s3 works perfectly from console > > previously opened windows are garbled until refresh in X > > Some thinkpads have responded positively in this regard to setting > hw.syscons.sc_no_suspend_vtswitch=1 > > > acpiconf -s4 causes shutdown, does not resume on power on. > > Suspend To Disk is not expected to work; your laptop (like most) has no > BIOS support for S4, as per your hw.acpi.s4bios: 0 Suspend to disk does not work because FreeBSD does not support it. (s4bios is irrelevant here) From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 1 19:12:04 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDA2E106564A for ; Fri, 1 Oct 2010 19:12:04 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 759C68FC0C for ; Fri, 1 Oct 2010 19:12:04 +0000 (UTC) Received: by ywt2 with SMTP id 2so59759ywt.13 for ; Fri, 01 Oct 2010 12:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=fHgyXu3lAPjKSXqtwxpCgZRI9o/2Z/UEQ5oKFH2HLmU=; b=B3b1ONqCRAx0yqY6QVU4iTJ/6dvjMmL/0+ro9YckjpKlnsI7wrK4NqMXZXhkkc8b+P olsGGsqL59xS0RpjrtNiVksvkV8tDzjLAlOSupdJWEg6jPaoPlMiMYwGL1GP63wcbbq1 z+Hn2Ghd9XF+KuGnohtFx+dwlD+dcwsaY+aiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CJ0MwvjZN1S3m0HzijLBXTQA6EqHscqoFluZuujIJhChIopOLi8moYOk8ScSCNk8Ru 3hLtazOVUeyq6thVqj7PO/BnqDtwHQMY0mt5OLez47tKrSCIkpgKdFFt0OcKpUCNTVcM ydsFaB+NoTTpwSHWkL6adRMSmwVJ2YrnNB+GQ= MIME-Version: 1.0 Received: by 10.220.157.143 with SMTP id b15mr1460433vcx.120.1285958516165; Fri, 01 Oct 2010 11:41:56 -0700 (PDT) Received: by 10.220.200.1 with HTTP; Fri, 1 Oct 2010 11:41:56 -0700 (PDT) In-Reply-To: <20101001144505.C62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> <20101001144505.C62022@sola.nimnet.asn.au> Date: Fri, 1 Oct 2010 18:41:56 +0000 Message-ID: From: Paul B Mahol To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 Cc: Matt , freebsd-acpi@freebsd.org, freebsd-current@freebsd.org Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 19:12:04 -0000 On 10/1/10, Ian Smith wrote: > On Thu, 30 Sep 2010, Matt wrote: > > Success! > > > > After setting every possible suspend/resume sysctl, > > "sysctl hw.pci.do_power_resume=0" > > allowed suspend and resume. Still beeps 1-3 times before suspend, with > rapid > > sleep light flashing until suspend complete. > > Interesting; $someone may document do_power_resume a bit more $someday? It is already documented. > > > Kernel conf is attached. > > World built from last Friday's CVS, -CURRENT > > > > acpiconf -s3 works perfectly from console > > previously opened windows are garbled until refresh in X > > Some thinkpads have responded positively in this regard to setting > hw.syscons.sc_no_suspend_vtswitch=1 > > > acpiconf -s4 causes shutdown, does not resume on power on. > > Suspend To Disk is not expected to work; your laptop (like most) has no > BIOS support for S4, as per your hw.acpi.s4bios: 0 Suspend to disk does not work because FreeBSD does not support it. (s4bios is irrelevant here) From owner-freebsd-acpi@FreeBSD.ORG Sat Oct 2 06:34:06 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A983B1065673 for ; Sat, 2 Oct 2010 06:34:06 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 0E64B8FC1D for ; Sat, 2 Oct 2010 06:34:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o926Y3Qt059026; Sat, 2 Oct 2010 16:34:03 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 2 Oct 2010 16:34:03 +1000 (EST) From: Ian Smith To: Paul B Mahol In-Reply-To: Message-ID: <20101002142419.G62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> <20101001144505.C62022@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Matt , freebsd-acpi@freebsd.org Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2010 06:34:06 -0000 On Fri, 1 Oct 2010, Paul B Mahol wrote: > On 10/1/10, Ian Smith wrote: > > On Thu, 30 Sep 2010, Matt wrote: > > > Success! > > > > > > After setting every possible suspend/resume sysctl, > > > "sysctl hw.pci.do_power_resume=0" > > > allowed suspend and resume. Still beeps 1-3 times before suspend, with > > rapid > > > sleep light flashing until suspend complete. > > > > Interesting; $someone may document do_power_resume a bit more $someday? > It is already documented. Well, there's all of: t23% sysctl -ad | grep do_power_resume hw.pci.do_power_resume: Transition from D3 -> D0 on resume. unless you mean RTFS :) where there's: t23% sh -c 'find /usr -type f -exec grep -Hi do_power_resume {} \; 2>/dev/null' /usr/src/sys/dev/pci/pci.c:static int pci_do_power_resume = 1; /usr/src/sys/dev/pci/pci.c:TUNABLE_INT("hw.pci.do_power_resume", &pci_do_power_resume); /usr/src/sys/dev/pci/pci.c:SYSCTL_INT(_hw_pci, OID_AUTO, do_power_resume, CTLFLAG_RW, /usr/src/sys/dev/pci/pci.c: &pci_do_power_resume, 1, /usr/src/sys/dev/pci/pci.c: if (pci_do_power_resume) /usr/src/sys/dev/pci/pci.c: if (pci_do_power_resume) Binary file /usr/obj/usr/src/sys/GENERIC/pci.o matches Binary file /usr/obj/usr/src/sys/GENERIC/kernel matches Binary file /usr/obj/usr/src/sys/GENERIC/kernel.debug matches Binary file /usr/obj/usr/src/sys/GENERIC/kernel.symbols matches .. including manpages, handbook, faq, articles etc. Is that it? I know what D3->D0 means but it hardly describes when/how/why to {,not} use it, leaving me surprised it would make S3 resume work in this case, and why? 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Sep 5 15:53:00 EST 2010 GENERIC i386 > > > Kernel conf is attached. > > > World built from last Friday's CVS, -CURRENT > > > > > > acpiconf -s3 works perfectly from console > > > previously opened windows are garbled until refresh in X > > > > Some thinkpads have responded positively in this regard to setting > > hw.syscons.sc_no_suspend_vtswitch=1 > > > > > acpiconf -s4 causes shutdown, does not resume on power on. > > > > Suspend To Disk is not expected to work; your laptop (like most) has no > > BIOS support for S4, as per your hw.acpi.s4bios: 0 > > Suspend to disk does not work because FreeBSD does not support it. > (s4bios is irrelevant here) Ah, when did that break? It worked fine on my old Compaq 1500c ('99!) on FreeBSD 5.5, s4bios=1, though for another reason I couldn't usually run ACPI on it, and APM STD and STR work. I found a message from someone with a Dell Inspiron something a few years ago reporting S4BIOS working, modulo a fixable screen resume issue that he had resuming from S3 also. Of course you needed a DOS slice, probably as s1, with a pre-allocated hibernation file that the BIOS can find to use, but it had that anyway. It could be argued that acpiconf ought to just ignore S4 requests unless hw.acpi.s4bios=1, where it has some chance of working .. cheers, Ian (current@ dropped from ccs as I'm not subscribed. Feel free to re-add) From owner-freebsd-acpi@FreeBSD.ORG Sat Oct 2 06:40:03 2010 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33741065693 for ; Sat, 2 Oct 2010 06:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C757A8FC16 for ; Sat, 2 Oct 2010 06:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o926e3E6087782 for ; Sat, 2 Oct 2010 06:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o926e3Ju087781; Sat, 2 Oct 2010 06:40:03 GMT (envelope-from gnats) Date: Sat, 2 Oct 2010 06:40:03 GMT Message-Id: <201010020640.o926e3Ju087781@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: David Naylor Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Naylor List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2010 06:40:04 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: David Naylor To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Sat, 2 Oct 2010 08:31:17 +0200 --nextPart6155206.lNfR8abAcT Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Monday 27 September 2010 07:53:51 Andriy Gapon wrote: > Since you already looked at the linux code, could you please post a link = to > a place where the problematic condition is handled there? >=20 > P.S. A service like http://lxr.linux.no/ or similar might be convenient. Sorry for the slow reply. Your email was mistaken as spam. I've told gmai= l=20 to behave. =20 It has been a long time since I looked at the code. The function in questi= on=20 is http://lxr.linux.no/linux+v2.6.35.7/drivers/acpi/ec.c#L217 with the actu= al=20 check for controller reset at L238. =20 Of note is the delay at L254. It looks like it is almost the same thing my= =20 patch does, except it waits before whereas my patch waits after. =20 --nextPart6155206.lNfR8abAcT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEABECAAYFAkym0bkACgkQUaaFgP9pFrKnnACfbtzDzT316oC4jmBcSAK/aNdc HGQAn140T2kFljemg5tQCuXsxDC9/W+u =VVrY -----END PGP SIGNATURE----- --nextPart6155206.lNfR8abAcT-- From owner-freebsd-acpi@FreeBSD.ORG Sat Oct 2 20:51:42 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A41D106564A for ; Sat, 2 Oct 2010 20:51:42 +0000 (UTC) (envelope-from gaijin.k@ovi.com) Received: from outbound2.messaging.lotuslive.com (outbound2.messaging.lotuslive.com [8.12.152.118]) by mx1.freebsd.org (Postfix) with ESMTP id 481F18FC12 for ; Sat, 2 Oct 2010 20:51:42 +0000 (UTC) Received: from outbound2.messaging.lotuslive.com (unknown [10.6.32.44]) by c-in3ofal02-02.sv2.lotuslive.com (Postfix) with ESMTP id AFDA4129029C for ; Sat, 2 Oct 2010 20:40:29 +0000 (GMT) Received: from c-in3ofil02-03.sv2.lotuslive.com (unknown [10.6.32.50]) by c-in3obnd02-02.sv2.lotuslive.com (Postfix) with ESMTP id 23CDD2FEFF for ; Sat, 2 Oct 2010 20:40:29 +0000 (GMT) Received: from c-in3ws--02-02.ben.sv2.lotuslive.com (c-in3ws--02-02.sv2.lotuslive.com [10.6.32.77]) (sender gaijin.k@ovi.com) by c-in3ofil02-03.sv2.lotusliveops.com (LotusLive iNotes outfilter/0.91) with SMTP; Sat, 02 Oct 2010 20:40:29 +0000 Received: (qmail 24174 invoked from network); 2 Oct 2010 20:40:29 -0000 Received: from unknown (HELO c-in3play02-04.sv2.lotusliveops.com) (gaijin.k@ovi.com@74.105.210.169) by c-in3ws--02-02.fen.sv2.lotusliveops.com with SMTP; 2 Oct 2010 20:40:28 -0000 From: "Alexandre \"Sunny\" Kovalenko" To: Ian Smith In-Reply-To: <20101002142419.G62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> <20101001144505.C62022@sola.nimnet.asn.au> <20101002142419.G62022@sola.nimnet.asn.au> Content-Type: text/plain; charset="UTF-8" Date: Sat, 02 Oct 2010 16:39:36 -0400 Message-ID: <1286051977.1655.45.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-Version: 1.0 X-Mailer: Evolution 2.30.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Matt , freebsd-acpi@freebsd.org, Paul B Mahol Subject: Re: Sleep/Lenovo SL410 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2010 20:51:42 -0000 On Sat, 2010-10-02 at 16:34 +1000, Ian Smith wrote: > On Fri, 1 Oct 2010, Paul B Mahol wrote: > > On 10/1/10, Ian Smith wrote: > > > On Thu, 30 Sep 2010, Matt wrote: > > > > Success! > > > > > > > > After setting every possible suspend/resume sysctl, > > > > "sysctl hw.pci.do_power_resume=3D0" > > > > allowed suspend and resume. Still beeps 1-3 times before suspend,= with > > > rapid > > > > sleep light flashing until suspend complete. > > > > > > Interesting; $someone may document do_power_resume a bit more $somed= ay? > > It is already documented. >=20 > Well, there's all of: >=20 > t23% sysctl -ad | grep do_power_resume > hw.pci.do_power_resume: Transition from D3 -> D0 on resume. >=20 > unless you mean RTFS :) where there's: >=20 > t23% sh -c 'find /usr -type f -exec grep -Hi do_power_resume {} \; 2>/dev= /null' > /usr/src/sys/dev/pci/pci.c:static int pci_do_power_resume =3D 1; > /usr/src/sys/dev/pci/pci.c:TUNABLE_INT("hw.pci.do_power_resume", &pci_do_= power_resume); > /usr/src/sys/dev/pci/pci.c:SYSCTL_INT(_hw_pci, OID_AUTO, do_power_resume,= CTLFLAG_RW, > /usr/src/sys/dev/pci/pci.c: &pci_do_power_resume, 1, > /usr/src/sys/dev/pci/pci.c: if (pci_do_power_resume) > /usr/src/sys/dev/pci/pci.c: if (pci_do_power_resume) > Binary file /usr/obj/usr/src/sys/GENERIC/pci.o matches > Binary file /usr/obj/usr/src/sys/GENERIC/kernel matches > Binary file /usr/obj/usr/src/sys/GENERIC/kernel.debug matches > Binary file /usr/obj/usr/src/sys/GENERIC/kernel.symbols matches >=20 > .. including manpages, handbook, faq, articles etc. Is that it? I know= =20 > what D3->D0 means but it hardly describes when/how/why to {,not} use it,= =20 > leaving me surprised it would make S3 resume work in this case, and why? >=20 > 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Sep 5 15:53:00 EST 2010 GENERIC i3= 86 >=20 > > > > Kernel conf is attached. > > > > World built from last Friday's CVS, -CURRENT > > > > > > > > acpiconf -s3 works perfectly from console > > > > previously opened windows are garbled until refresh in X > > > > > > Some thinkpads have responded positively in this regard to setting > > > hw.syscons.sc_no_suspend_vtswitch=3D1 > > > > > > > acpiconf -s4 causes shutdown, does not resume on power on. > > > > > > Suspend To Disk is not expected to work; your laptop (like most) has= no > > > BIOS support for S4, as per your hw.acpi.s4bios: 0 > >=20 > > Suspend to disk does not work because FreeBSD does not support it. > > (s4bios is irrelevant here) >=20 > Ah, when did that break? It worked fine on my old Compaq 1500c ('99!)=20 > on FreeBSD 5.5, s4bios=3D1, though for another reason I couldn't usually= =20 > run ACPI on it, and APM STD and STR work. I found a message from someone= =20 > with a Dell Inspiron something a few years ago reporting S4BIOS working,= =20 > modulo a fixable screen resume issue that he had resuming from S3 also. On my IBM ThinkPad 701C "Butterfly" BIOS-supported suspend-to-disk broke somewhere between 4.11 and 5.2.1. Upon resume in 5.2.1 system would go into endless loop of ata timeouts and never come back. --=20 Alexandre Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80= =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) -------------------------------------------------------------- Ovi Mail: Making email access easy http://mail.ovi.com