The device probe for the CMOS RTC chip handles that (I assume) - none of my stuff ever gets called if the device isn't found on the ACPI bus. The reimplementation of the CMOS read/write methods is just to allow ACPI multibyte accesses (the existing read/write calls lock single byte accesses).
Anthony On 08/25/2014 12:33, Adrian Chadd wrote: > Hm! > > Cool, so you've reimplemented the RTC accesses to go via ACPI. > > Shouldn't this be another device though? One that gets attached if it > finds it on the ACPI bus? > > > -a > > > On 25 August 2014 09:10, Anthony Jenkins <[email protected]> wrote: >> 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, 张晓靖 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 ...... >>> >>> 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 >>> >>> >>> -----邮件原件----- >>> 发件人: Anthony Jenkins [mailto:[email protected]] >>> 发送时间: 2014年8月16日 5:18 >>> 收件人: 张晓靖; 'Kevin Oberman' >>> 抄送: [email protected] >>> 主题: Re: 答复: My laptop can't resume from suspend. >>> >>> On 08/15/2014 16:20, 张晓靖 wrote: >>>> Thank Bykov Vladislav and Kevin Oberman's recommendations. Later I >>>> received an e-mail, >>>> >>>> immediately compile the kernel (make a note #options VESA).But the >>>> problem persists, dmesg >>>> >>>> Information Reference url http://url.cn/SQ0vXD. >>>> >>>> >>>> >>>> Even worse thing is, I do use "acpiconf -s 3"debugger, resulting in a >>>> notebook can not boot >>>> >>>> until yesterday afternoon for a good notebook motherboard, now do not >>>> dare to use “acpiconf >>>> >>>> -s 3” testing. >>>> >>>> >>>> >>>> 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~ >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> -----邮件原件----- >>>> 发件人: Bykov Vladislav [mailto:[email protected]] >>>> 发送时间: 2014年8月13日 0:13 >>>> 收件人: 张晓靖 >>>> 主题: Re: My laptop can't resume from suspend. >>>> >>>> >>>> >>>> On Tue, Aug 12, 2014 at 12:20:28PM +0800, 张晓靖 wrote: >>>> >>>>> The laptop can't resume, the screen no display, no beep sound. >>>> Can you please try to install video driver for your card and remove VESA >>>> device from kernel configuration? >>>> >>>> >>>> >>>> >>>> >>>> 发件人: [email protected] [mailto:[email protected]] 代表 Kevin Oberman >>>> 发送时间: 2014年8月13日 1:15 >>>> 收件人: 张晓靖 >>>> 抄送: [email protected] >>>> 主题: Re: My laptop can't resume from suspend. >>>> >>>> >>>> >>>> On Mon, Aug 11, 2014 at 9:20 PM, 张晓靖 <[email protected] >>>> <mailto:[email protected]> > wrote: >>>> >>>> Hello, >>>> >>>> I am having a problem. >>>> >>>> My laptop is lenovo's zhaoyang K47A series HM65. >>>> >>>> I used ati graphics CARDS, Use the url ( >>>> <https://wiki.freebsd.org/Graphics> https://wiki.freebsd.org/Graphics) >>>> the method of normal driving the graphics card. >>>> >>>> >>>> >>>> After set " >>>> >>>> sysctl debug. Bootverbose = 1 >>>> >>>> sysctl debug. Acpi. Suspend_bounce = 1 >>>> >>>> sysctl debug. Acpi. Resume_beep = 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 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. >>>> >>>> >>>> >>>> Have you tried building the kernel without VESA? Many laptops won't resume >>>> if you leave VESA in the kernel build. >>>> >>>> -- >>>> >>>> >>>> R. Kevin Oberman, Network Engineer, Retired >>>> E-mail: [email protected] <mailto:[email protected]> >>>> >>>> _______________________________________________ >>>> [email protected] mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi >>>> To unsubscribe, send any mail to "[email protected]" >>> >> >> _______________________________________________ >> [email protected] mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi >> To unsubscribe, send any mail to "[email protected]" > _______________________________________________ > [email protected] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "[email protected]" _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "[email protected]"
