Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2022 08:18:46 +0100
From:      Michael Schuster <michaelsprivate@gmail.com>
To:        klu <kludev@gmail.com>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Thinkpad T61 display won't wake from hibernate
Message-ID:  <CADqw_gKdRFm6OZxaxXGhp%2BhUtKnNP8CsejVXyyhhnhG8BV%2B=Hg@mail.gmail.com>
In-Reply-To: <CAEz5-Sx7cui2%2BdafyETtmMy4K8jcSdeYKpCZ2AW2LyxXXLsmmQ@mail.gmail.com>
References:  <CAEz5-Sx7cui2%2BdafyETtmMy4K8jcSdeYKpCZ2AW2LyxXXLsmmQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 27, 2022 at 1:09 AM klu <kludev@gmail.com> wrote:
>
> I have FreeBsd 13.1 installed on a Thinkpad T61p laptop. I try to make
> hibernate work so it can save power between uses.
>
> If I type `sudo zzz`, it successfully goes to hibernate mode. When I
> open the lid again, I can hear the computer is waking up. However the
> screen does not come back.

What you describe sounds a lot like an issue with the graphics driver
... I recall from a previous life (2nd-hand, no expertise myself, I'm
afraid) that those can be a major stumbling block for getting resume
to work properly.
A few questions that may help you and others set you right:
Has this ever worked before?
  if yes: what did you change?
  if no: make sure your graphics driver actually works for the HW. I
have an old T60p that I test-drove a while with 12.something, IIRC
(via ghostbsd ... it's been a while), that I think did S&R just fine
(no guarantees though).

HTH
Michael

>
> I can type blindly `sudo reboot`, which
> will bring back the screen to show the shutting down messages.
>
> I wonder what kind diagnostics I can do and how to fix this issue? Thanks!
>
>
> root@t60:~ # cat /etc/rc.conf
> hostname="t60"
> wlans_wpi0="wlan0"
> ifconfig_wlan0="WPA DHCP"
> sshd_enable="YES"
> ntpd_enable="YES"
> powerd_enable="YES"
> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
> dumpdev="NO"
> zfs_enable="YES"
> linux_enable="YES"
> kld_list="i915kms acpi_video"
>
>
>
> root@t60:~ # cat /boot/loader.conf
> kern.geom.label.disk_ident.enable="0"
> kern.geom.label.gptid.enable="0"
> cryptodev_load="YES"
> zfs_load="YES"
> kern.geom.label.disk_ident.enable="0"
> kern.geom.label.gptid.enable="0"
> cryptodev_load="YES"
> zfs_load="YES"
> hw.vga.textmode=0
> kern.vty=vt
> acpi_ibm_load="YES"
>
>
> root@t60:~ # kldstat
> Id Refs Address                Size Name
>  1   92 0xffffffff80200000  1f30470 kernel
>  2    1 0xffffffff82131000     8710 acpi_ibm.ko
>  3    1 0xffffffff8213a000     a158 cryptodev.ko
>  4    1 0xffffffff82146000   5b93a8 zfs.ko
>  5    1 0xffffffff82b20000   1848b8 i915kms.ko
>  6    1 0xffffffff82ca5000    739e0 drm.ko
>  7    2 0xffffffff82d19000     5220 linuxkpi_gplv2.ko
>  8    3 0xffffffff82d1f000     62d8 dmabuf.ko
>  9    1 0xffffffff82d26000     4350 acpi_video.ko
> 10    1 0xffffffff82d2b000     21e8 acpi_dock.ko
> 11    1 0xffffffff82d2e000     3250 ichsmb.ko
> 12    1 0xffffffff82d32000     2180 smbus.ko
> 13    1 0xffffffff82d35000     4d00 ng_ubt.ko
> 14    6 0xffffffff82d3a000     aac8 netgraph.ko
> 15    2 0xffffffff82d45000     a238 ng_hci.ko
> 16    4 0xffffffff82d50000     25a8 ng_bluetooth.ko
> 17    1 0xffffffff82d53000     e250 ng_l2cap.ko
> 18    1 0xffffffff82d62000    1bee8 ng_btsocket.ko
> 19    1 0xffffffff82d7e000     39c0 ng_socket.ko
> 20    1 0xffffffff82d82000    38070 linux.ko
> 21    4 0xffffffff82dbb000    10ab0 linux_common.ko
> 22    1 0xffffffff82dcc000    32208 linux64.ko
> 23    1 0xffffffff82dff000     2260 pty.ko
> 24    1 0xffffffff82e02000     3530 fdescfs.ko
> 25    1 0xffffffff82e06000     639c linprocfs.ko
> 26    1 0xffffffff82e0d000     3284 linsysfs.ko
> 27    1 0xffffffff82e11000     2a08 mac_ntpd.ko
>
>
> root@t60:~ # dmesg | grep -i -e freebsd -e cpu -e ibm -e acpi -e power -e nvidia
> Copyright (c) 1992-2021 The FreeBSD Project.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.1-RELEASE-p3 GENERIC amd64
> FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git
> llvmorg-13.0.0-0-gd7b669b3a303)
> CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (1995.07-MHz K8-class CPU)
>   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> ACPI APIC Table: <LENOVO TP-7I   >
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> FreeBSD/SMP: 1 package(s) x 2 core(s)
> Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block:
> 64/32 (20201113/tbfadt-748)
> Firmware Warning (ACPI): Optional FADT field Gpe1Block has valid
> Address but zero Length: 0x000000000000102C/0x0 (20201113/tbfadt-796)
> acpi0: <LENOVO TP-7I>
> CPU0: local APIC error 0x40
> CPU1: local APIC error 0x40
> acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x62,0x66 on acpi0
> acpi0: Power Button (fixed)
> cpu0: <ACPI CPU> on acpi0
> attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
> hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_button0: <Sleep Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> irq 20 at device 28.0 on pci0
> pci2: <ACPI PCI bus> on pcib2
> pcib3: <ACPI PCI-PCI bridge> irq 21 at device 28.1 on pci0
> pci3: <ACPI PCI bus> on pcib3
> pcib4: <ACPI PCI-PCI bridge> irq 22 at device 28.2 on pci0
> pcib5: <ACPI PCI-PCI bridge> irq 23 at device 28.3 on pci0
> pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci4: <ACPI PCI bus> on pcib6
> acpi_tz0: <Thermal Zone> on acpi0
> acpi_tz1: <Thermal Zone> on acpi0
> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
> WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 14.0.
> battery0: <ACPI Control Method Battery> on acpi0
> acpi_acad0: <AC Adapter> on acpi0
> acpi_ibm0: <ThinkPad ACPI Extras> on acpi0
> acpi_ibm0: Firmware version is 0x100
> est0: <Enhanced SpeedStep Frequency Control> on cpu0
> uhub0: 2 ports with 2 removable, self powered
> uhub2: 2 ports with 2 removable, self powered
> uhub4: 2 ports with 2 removable, self powered
> uhub3: 2 ports with 2 removable, self powered
> uhub1: 8 ports with 8 removable, self powered
> acpi_video0: <ACPI video extension> on vgapci0
> acpi_dock0: <ACPI Docking Station> on acpi0
>


-- 
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADqw_gKdRFm6OZxaxXGhp%2BhUtKnNP8CsejVXyyhhnhG8BV%2B=Hg>