From owner-freebsd-acpi@FreeBSD.ORG Tue Aug 26 14:54:15 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 826F5FAE for ; Tue, 26 Aug 2014 14:54:15 +0000 (UTC) Received: from BLU004-OMC2S38.hotmail.com (blu004-omc2s38.hotmail.com [65.55.111.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2BE3C3050 for ; Tue, 26 Aug 2014 14:54:15 +0000 (UTC) Received: from BLU436-SMTP102 ([65.55.111.72]) by BLU004-OMC2S38.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22712); Tue, 26 Aug 2014 07:54:08 -0700 X-TMN: [XldixvQB9CefosBEvyvT7qqs69fy7lMOQ+YkwT9tcvQ=] X-Originating-Email: [zhangxiaojing@hotmail.com] Message-ID: Received: from skyPC ([122.239.214.122]) by BLU436-SMTP102.smtp.hotmail.com over TLS secured channel with Microsoft SMTPSVC(8.0.9200.16384); Tue, 26 Aug 2014 07:54:06 -0700 From: =?utf-8?B?5byg5pmT6Z2W?= To: "'Anthony Jenkins'" References: <53EE78ED.2030208@att.net> <53FB6011.3080509@att.net> <53FC7C2D.8030307@att.net> In-Reply-To: <53FC7C2D.8030307@att.net> Subject: =?utf-8?Q?=E7=AD=94=E5=A4=8D:_=E7=AD=94=E5=A4=8D:_=E7=AD=94=E5=A4=8D:_?= =?utf-8?Q?=E7=AD=94=E5=A4=8D:_My_laptop_can't_resume_from_?= =?utf-8?Q?suspend.?= Date: Tue, 26 Aug 2014 22:54:01 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0007_01CFC180.A401CDB0" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQKorSl5wDquPSj2B+rkJbH2YizX6QG+CdzvAmKsNT0DVCrZ2AHKNGNxAprQPgUCTgddawJ4i8HRmawbJMA= Content-Language: zh-cn X-OriginalArrivalTime: 26 Aug 2014 14:54:06.0912 (UTC) FILETIME=[95E6A400:01CFC13D] Cc: freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 14:54:15 -0000 ------=_NextPart_000_0007_01CFC180.A401CDB0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Also learned, thanks. patch when there are mistakes. Attachment is generated atrtc.c.rej root@skycn:/usr/src # patch -p0 < /root/atrtc.c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: sys/x86/isa/atrtc.c |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |--- sys/x86/isa/atrtc.c (revision 268728) |+++ sys/x86/isa/atrtc.c (working copy) -------------------------- Patching file sys/x86/isa/atrtc.c using Plan A... Hunk #1 failed at 31. Hunk #2 failed at 54. Hunk #3 failed at 74. Hunk #4 failed at 163. Hunk #5 failed at 179. Hunk #6 failed at 306. Hunk #7 failed at 354. Hunk #8 failed at 443. 8 out of 8 hunks failed--saving rejects to sys/x86/isa/atrtc.c.rej Done =E5=8F=91=E4=BB=B6=E4=BA=BA: Anthony Jenkins = [mailto:Anthony.B.Jenkins@att.net]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2014=E5=B9=B48=E6=9C=8826=E6=97=A5 = 20:23 =E6=94=B6=E4=BB=B6=E4=BA=BA: =E5=BC=A0=E6=99=93=E9=9D=96 =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: =E7=AD=94=E5=A4=8D: = =E7=AD=94=E5=A4=8D: My laptop can't resume from suspend. 1. Install FreeBSD source tree. 2. Download patch file. 3. 'cd' to /usr/src. 4. Execute 'patch -p0 < path/to/atrtc.c.patch' 5. Rebuild and install kernel ('make kernel = KERNCONF=3DYOUR_KERNEL_CONFIG_FILE_NAME && reboot') 6. Test suspend/resume. Anthony References: =E2=80=A2 = https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-b= uilding.html On 08/26/2014 05:33, =E5=BC=A0=E6=99=93=E9=9D=96 wrote: Thanks so quick reply, for the use of patch files I have no experience, = from the freebsd manual and the Internet did not find a reliable upgrade = process, you can tell me how to use this patch file to upgrade atrtc.c = it? For the use of the code, I was a rookie, needs your help.=20 Or tell me which part of the contents of the manual freebsd can guide me = to upgrade atrtc.c code, thank you. -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Anthony Jenkins = [mailto:Anthony.B.Jenkins@att.net]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2014=E5=B9=B48=E6=9C=8826=E6=97=A5 = 0:11 =E6=94=B6=E4=BB=B6=E4=BA=BA: =E5=BC=A0=E6=99=93=E9=9D=96 =E6=8A=84=E9=80=81: freebsd-acpi@freebsd.org =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: =E7=AD=94=E5=A4=8D: My = laptop can't resume from suspend. No problem... attached. And amd64 doesn't matter - works for x86-based = computers with the basic CMOS RTC chip (PNP0B00). Hopefully your = suspend/resume problems are due to your ACPI BIOS needing to read/write = info from/to CMOS and not finding a CMOS handler. Anthony On 08/25/2014 11:50, =E5=BC=A0=E6=99=93=E9=9D=96 wrote: I google less than complete information. Do you have the relevant code = can be shared under it? I found atrtc.c file in /usr/src/sys/x86/isa = directory, but my system is amd64 of ......=20 root@skycn:~ # uname -a FreeBSD skycn 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #2: Sat Aug 16 = 00:06:30 CST 2014 root@skycn:/usr/obj/usr/src/sys/MyKernel amd64 -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Anthony Jenkins = [mailto:Anthony.B.Jenkins@att.net] =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2014=E5=B9=B48=E6=9C=8816=E6=97=A5 = 5:18 =E6=94=B6=E4=BB=B6=E4=BA=BA: =E5=BC=A0=E6=99=93=E9=9D=96; 'Kevin = Oberman' =E6=8A=84=E9=80=81: freebsd-acpi@freebsd.org =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: My laptop can't resume from = suspend. On 08/15/2014 16:20, =E5=BC=A0=E6=99=93=E9=9D=96 wrote: Thank Bykov Vladislav and Kevin Oberman's recommendations. Later I=20 received an e-mail, immediately compile the kernel (make a note #options VESA).But the=20 problem persists, dmesg Information Reference url http://url.cn/SQ0vXD.=20 =20 Even worse thing is, I do use "acpiconf -s 3"debugger, resulting in a=20 notebook can not boot until yesterday afternoon for a good notebook motherboard, now do not=20 dare to use =E2=80=9Cacpiconf -s 3=E2=80=9D testing.=20 =20 Do you have suggestions for me? You could dig up my kernel patch (Google "FreeBSD ACPI CMOS region = support atrtc.c.patch") to play with, it works to enable suspend/resume = on some laptops and should be safe to try. I still need to clean it up = (style, other suggestions) for submission to FreeBSD, haven't gotten = around to it yet. Anthony Jenkins Thanks you~ =20 =20 =20 -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Bykov Vladislav [mailto:envolyse@gmail.com] =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2014=E5=B9=B48=E6=9C=8813=E6=97=A5 = 0:13 =E6=94=B6=E4=BB=B6=E4=BA=BA: =E5=BC=A0=E6=99=93=E9=9D=96 =E4=B8=BB=E9=A2=98: Re: My laptop can't resume from suspend. =20 On Tue, Aug 12, 2014 at 12:20:28PM +0800, =E5=BC=A0=E6=99=93=E9=9D=96 = wrote: The laptop can't resume, the screen no display, no beep sound.=20 Can you please try to install video driver for your card and remove VESA = device from kernel configuration? =20 =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: kob6558@gmail.com = [mailto:kob6558@gmail.com] =E4=BB=A3=E8=A1=A8 Kevin Oberman =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2014=E5=B9=B48=E6=9C=8813=E6=97=A5 = 1:15 =E6=94=B6=E4=BB=B6=E4=BA=BA: =E5=BC=A0=E6=99=93=E9=9D=96 =E6=8A=84=E9=80=81: freebsd-acpi@freebsd.org =E4=B8=BB=E9=A2=98: Re: My laptop can't resume from suspend. =20 On Mon, Aug 11, 2014 at 9:20 PM, =E5=BC=A0=E6=99=93=E9=9D=96 = > wrote: Hello, I am having a problem. My laptop is lenovo's zhaoyang K47A series HM65. I used ati graphics CARDS, Use the url (=20 =20 https://wiki.freebsd.org/Graphics) the method of normal driving the graphics card. After set " sysctl debug. Bootverbose =3D 1 sysctl debug. Acpi. Suspend_bounce =3D 1 sysctl debug. Acpi. Resume_beep =3D 1 acpiconf -s 3 " The laptop can't resume, the screen no display, no beep sound. Disabling ACPI not helps to fix the problem. All files downloaded=20 from http://url.cn/WVISGF. Output from sysctl hw.acpi hw.acpi.supported_sleep_state: S1 S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 1 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.acline: 1 hw.acpi.battery.life: 100 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 62.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 95.0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 100.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: 2 hw.acpi.thermal.tz0._TC2: 3 hw.acpi.thermal.tz0._TSP: 100 Sincerely, ZhangXiaoJing. =20 Have you tried building the kernel without VESA? Many laptops won't = resume if you leave VESA in the kernel build.=20 -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com _______________________________________________ freebsd-acpi@freebsd.org mailing list=20 http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" ------=_NextPart_000_0007_01CFC180.A401CDB0 Content-Type: application/octet-stream; name="atrtc.c.rej.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="atrtc.c.rej.zip" UEsDBBQAAAAIAOi0GkV4mYo3WQcAADgUAAALAAAAYXRydGMuYy5yZWrtWHtz0kAQ/zvO+B1W1JqU 1EJL8YFV00KnjLV0gPoYdTIhOSQjJExyqfXR7+7u3iUB2tr6v0wL3N6+97d7F16/ho3tut2EKr4/ gdev74DrHuwN2t22WXlwkAiB3x9UrNbdO4B/98PIn2aBgEo8l26Yeo8nlbt3qstkz5+HSF+ReJH+ SDfnXuLNHk9eXtrAf6k2yKOdbbu+BdWdhl1/xj6VzDPPn4SR2Awjmbi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