Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Lenovo t440p does not shutdown post Debian 11 Install

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Lenovo t440p does not shutdown post Debian 11 Install

#1 Post by joshnord »

Hi all,

I installed Debian 11 on my t440p Lenovo. It was a fresh install. Everything works fine, except I cannot Shut Down the laptop and cannot wake the laptop from suspend. No matter how I attempt to shutdown the machine, it freezes after running the shutdown commands [screenshot: https://pasteboard.co/vnp7siYRM2Zf.jpg]. Shortly after it freezes, the cpu fan gets really loud. The machine will only shutdown after holding the power button for 10 seconds.

System Info:

Code: Select all

> inxi -Fxxxrz
System:    Kernel: 5.10.0-14-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: MATE 1.24.1 info: mate-panel 
           wm: marco 1.24.1 dm: LightDM 1.26.0 Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: LENOVO product: 20AN009CUS v: ThinkPad T440p serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: LENOVO model: 20AN009CUS v: 0B98417 PRO serial: <filter> BIOS: LENOVO v: GLETA2WW (2.56 ) date: 07/16/2021 
CPU:       Info: Dual Core model: Intel Core i7-4600M bits: 64 type: MT MCP arch: Haswell rev: 3 L2 cache: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 23146 
           Speed: 2893 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 2893 2: 2896 3: 2893 4: 2895 
Graphics:  Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:0416 class ID: 0300 
           Device-2: Acer SunplusIT Integrated Camera type: USB driver: uvcvideo bus ID: 1-12:4 chip ID: 5986:0268 
           class ID: 0e02 
           Display: x11 server: X.Org 1.20.11 compositor: marco v: 1.24.1 driver: loaded: modesetting unloaded: fbdev,vesa 
           resolution: 1600x900~60Hz s-dpi: 96 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.3.5 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Lenovo ThinkPad T440p driver: snd_hda_intel 
           v: kernel bus ID: 00:03.0 chip ID: 8086:0c0c class ID: 0403 
           Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo ThinkPad T440p driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 chip ID: 8086:8c20 class ID: 0403 
           Sound Server: ALSA v: k5.10.0-14-amd64 
Network:   Device-1: Intel Ethernet I217-LM vendor: Lenovo ThinkPad T440p driver: e1000e v: kernel port: 3080 bus ID: 00:19.0 
           chip ID: 8086:153a class ID: 0200 
           IF: enp0s25 state: down mac: <filter> 
           Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel port: efa0 bus ID: 04:00.0 chip ID: 8086:08b2 
           class ID: 0280 
           IF: wlp4s0 state: up mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus ID: 1-11:3 chip ID: 8087:07dc 
           class ID: e001 
           Report: ID: hci0 state: down address: <filter> 
Drives:    Local Storage: total: 223.57 GiB used: 4.8 GiB (2.1%) 
           ID-1: /dev/sda vendor: Kingston model: SA400S37240G size: 223.57 GiB speed: 6.0 Gb/s rotation: SSD serial: <filter> 
           rev: 1103 scheme: MBR 
Partition: ID-1: / size: 218.06 GiB used: 4.8 GiB (2.2%) fs: ext4 dev: /dev/sda1 
Swap:      ID-1: swap-1 type: partition size: 975 MiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 61.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     Packages: apt: 1300 
           Active apt repos in: /etc/apt/sources.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
           3: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           4: deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
           5: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
           6: deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free
Info:      Processes: 180 Uptime: 1m wakeups: 260 Memory: 7.47 GiB used: 1.31 GiB (17.5%) Init: systemd v: 247 runlevel: 5 
           Compilers: gcc: N/A Shell: Bash v: 5.1.4 running in: mate-terminal inxi: 3.3.01 
Also, if it's relevant, the machine freezes whenever I run a command that attempts to read PCI data, i.e. lspci, inxi, etc. In order to run the command above successfully, I needed to boot with acpi=off kernel boot parameter.

I was able to narrow down which PCI id causes the system freeze by running lspci -s <pci-id>. Pasted below is the trouble id. All other PCI ids work fine.

Code: Select all

00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
Any help is appreciated! Thank you! :D

edit 1:
Noticed this ACPI error message when booting [screenshot: https://pasteboard.co/tgBmuiiw6Zgs.jpg]. Might be helpful in debugging.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#2 Post by FreewheelinFrank »

Do you have all the firmware you need?

Code: Select all

# dmesg | grep firmware
Your error meesages are:

Code: Select all

snd_hda_intel arx_get_response timeout switching to polling mode last cmd=0x00170500

Code: Select all

ae_aml_operand_type
Which as far as I can see are probably non-fatal BIOS errors.

But your processor - Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor - does seem to be affected by a bug in kernel 5.7, resolved in 5.11.

https://bugzilla.redhat.com/show_bug.cgi?id=1843274

As Bullseye has 5.10, maybe try a newer kernel from backports if it is not a missing firmware issue.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#3 Post by Head_on_a_Stick »

Is the intel-microcode package installed? Haswell processors need the fixes to prevent instability.
deadbang

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#4 Post by joshnord »

Head_on_a_Stick wrote: 2022-06-13 07:29 Is the intel-microcode package installed? Haswell processors need the fixes to prevent instability.
I did not have this package installed.

I installed intel-microcode by following this guide: https://wiki.debian.org/Microcode#Debia ... 8stable.29. On install, some missing firmware warnings were shown:

Code: Select all

W: Possible missing firmware /lib/firmware/i915/skl_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_33.0.4.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_09.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_dmc_ver2_08.bin for module i915
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_02.bin for module i915
So I installed the missing firmware via firmware-linux package: https://unix.stackexchange.com/question ... odule-i915.

Unfortunately, this did not fix the problem. The system still freezes when running lspci and gets stuck on shutdown / reboot.

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#5 Post by joshnord »

FreewheelinFrank wrote: 2022-06-13 06:07 Do you have all the firmware you need?

Code: Select all

# dmesg | grep firmware
Pretty sure firmware is good.

Code: Select all

> sudo dmesg | grep firmware
[    0.155300] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    7.295918] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[    7.296073] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[    7.365694] iwlwifi 0000:04:00.0: firmware: direct-loading firmware iwlwifi-7260-17.ucode
[    7.366031] iwlwifi 0000:04:00.0: loaded firmware version 17.3216344376.0 7260-17.ucode op_mode iwlmvm
[    7.366051] iwlwifi 0000:04:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    7.366052] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    7.869821] psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
[    8.024621] bluetooth hci0: firmware: direct-loading firmware intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[    8.024625] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
FreewheelinFrank wrote: 2022-06-13 06:07 But your processor - Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor - does seem to be affected by a bug in kernel 5.7, resolved in 5.11.

https://bugzilla.redhat.com/show_bug.cgi?id=1843274

As Bullseye has 5.10, maybe try a newer kernel from backports if it is not a missing firmware issue.
As for updating the kernel, I've never done this before (I'm relatively new to linux). Does it matter if upgrade to 5.11 exactly? or can I upgrade the kernel to 5.16? Will this cause any issues in debian 11 or is a relatively safe upgrade?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#6 Post by FreewheelinFrank »

You would install the kernel from backports, which is 5.16. That includes the fixes from 5.11. There is the possibility that a newer kernel can introduce new bugs, but it might also fix your existing issues. You can always fall back to the Bullseye kernel if the backport kernel either doesn't fix your issue or introduces bugs of its own.

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#7 Post by joshnord »

FreewheelinFrank wrote: 2022-06-13 17:05 You would install the kernel from backports, which is 5.16. That includes the fixes from 5.11. There is the possibility that a newer kernel can introduce new bugs, but it might also fix your existing issues. You can always fall back to the Bullseye kernel if the backport kernel either doesn't fix your issue or introduces bugs of its own.
Makes sense. Good to know it’s not a permanent upgrade. One more question, then I’ll try the kernel update: what do you mean by backport? (Sorry if this is a dumb question. Total newbie here)


joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#9 Post by joshnord »

Installed the Bullseye kernel backport:

Code: Select all

> uname -a
Linux balboa 5.16.0-0.bpo.4-amd64 #1 SMP PREEMPT Debian 5.16.12-1~bpo11+1 (2022-03-08) x86_64 GNU/Linux
Still seeing the same issue with lspci freezing the system. Shutdown now turns the screen off, but still does not shut the system down--power light remains on and cpu fan gets loud.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#10 Post by Head_on_a_Stick »

Check the memory health.
deadbang

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#11 Post by joshnord »

Head_on_a_Stick wrote: 2022-06-13 18:04 Check the memory health.
Memory health looks good:

Code: Select all

> sudo memtester 5120 5
memtester version 4.5.0 (64-bit)
Copyright (C) 2001-2020 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 5120MB (5368709120 bytes)
got  5120MB (5368709120 bytes), trying mlock ...locked.

Loop 1/5:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok         
  Checkerboard        : ok         
  Bit Spread          : ok         
  Bit Flip            : ok         
  Walking Ones        : ok         
  Walking Zeroes      : ok         
  8-bit Writes        : ok
  16-bit Writes       : ok
  

all loops were ok, just didn't want to paste all of it.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#12 Post by FreewheelinFrank »


joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#13 Post by joshnord »

FreewheelinFrank wrote: 2022-06-14 06:13 Try this in BIOS:

Disable Config->Power->Intel (R) Rapid Start

https://wiki.debian.org/InstallingDebia ... 40p/jessie

https://github.com/longsleep/t440p-linu ... 20HOWTO.md
I tried this in the BIOS and no change.

Interesting reading this posts from InstallingDebianOn about T440p. The user mentions "Suspend-to-RAM works out of the box". This was and still is not the case for me. Suspend to RAM does not work. My machine shows similar behavior to when the shutdown fails--screen goes black, keyboard back light remains on, fan gets really loud, and the laptop is unresponsive.

Also, I noticed my lspci output is different. The user's does not show any devices on 00:01.0 and 00:01.1, but mine shows PCI bridge on both. I wonder if this might be related?

Code: Select all

> lspci -vvv
...
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 16
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000f000-00000fff [disabled]
	Memory behind bridge: fff00000-000fffff [disabled]
	Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 17
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000f000-00000fff [disabled]
	Memory behind bridge: fff00000-000fffff [disabled]
	Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff [disabled]
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: <access denied>
	Kernel driver in use: pcieport

...
Any chance a hardware issue could be causing this problem like a faulty cpu? I did purchase this laptop refurbished from ebay...

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2020
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 138 times
Been thanked: 204 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#14 Post by Hallvor »

Perhaps download a live cd and check if it will suspend then. If it fails the same way on different software, it is probably a hardware error.

Here are other users running it on Debian. Your hardware should be unproblematic.
https://linux-hardware.org/?view=comput ... +%28All%29

I have almost identical hardware - the T440s (with KDE), and there are no issues with suspend here.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#15 Post by joshnord »

Hallvor wrote: 2022-06-21 14:43 Perhaps download a live cd and check if it will suspend then. If it fails the same way on different software, it is probably a hardware error.

Here are other users running it on Debian. Your hardware should be unproblematic.
https://linux-hardware.org/?view=comput ... +%28All%29

I have almost identical hardware - the T440s (with KDE), and there are no issues with suspend here.
I attempted to live boot from an Ubuntu image and the same failures were there--failure to wake from suspend, failure to complete shutdown, and system freeze when running lspci.I will attempt to return the laptop to the seller. In the event they don't take the return, do I have much hope for fixing the hardware issue? Is this something a computer repair shop could fix?

P.S. Super helpful link above. Thanks for providing! Will use when looking for a new machine to verify linux runs on the specified hardware.

joshnord
Posts: 9
Joined: 2022-06-11 00:55
Has thanked: 1 time

Re: Lenovo t440p does not shutdown post Debian 11 Install

#16 Post by joshnord »

joshnord wrote: 2022-06-22 01:06 In the event they don't take the return, do I have much hope for fixing the hardware issue? Is this something a computer repair shop could fix?
They took the return. Thanks all for the help in this thread! :D

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2020
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 138 times
Been thanked: 204 times

Re: Lenovo t440p does not shutdown post Debian 11 Install

#17 Post by Hallvor »

Nice. Good luck with your new hardware!
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Post Reply