Hi everyone,

@angros47, yes, this issue looks to be what you are experiencing here.

https://bugs.archlinux.org/task/80064 mentions that the issue was
introduced in:

commit aa3998dbeb3abce63653b7f6d4542e7dcd022590
Author: Damien Le Moal <dlem...@kernel.org>
Date:   Sat Aug 26 09:43:39 2023 +0900
Subject: ata: libata-scsi: Disable scsi device manage_system_start_stop
Link: 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa3998dbeb3abce63653b7f6d4542e7dcd022590

This was first included in... 6.5.0-17-generic.

The bug mentions the fix is:

commit 24eca2dce0f8d19db808c972b0281298d0bafe99
Author: Damien Le Moal <dlem...@kernel.org>
Date:   Wed Oct 25 15:46:12 2023 +0900
Subject: scsi: sd: Introduce manage_shutdown device flag
Link: 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=24eca2dce0f8d19db808c972b0281298d0bafe99

This is currently queued up for 6.5.0-25-generic, which is currently in
-proposed for mantic, and is currently being built for jammy.

If you are on mantic / 23.10, please try the -proposed kernel:

Instructions to Install (On a mantic system):
1) cat << EOF | sudo tee /etc/apt/sources.list.d/ubuntu-$(lsb_release 
-cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed main universe
EOF
2) sudo apt update
3) sudo apt install linux-image-6.5.0-25-generic linux-modules-6.5.0-25-generic 
linux-modules-extra-6.5.0-25-generic linux-headers-6.5.0-25-generic
4) sudo rm /etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
5) sudo apt update
6) sudo reboot
7) uname -rv
6.5.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb  7 14:58:39 UTC 2024

For jammy / 22.04 users, I have built 6.5.0-21-generic with the fix
ontop of it, for anyone who wants to try it and report back that it
actually fixes the issue.

Please note this package is NOT SUPPORTED by Canonical, and is for TESTING
PURPOSES ONLY. ONLY Install in a dedicated test environment.

Instructions to Install (On a jammy system):
1) sudo add-apt-repository ppa:mruffell/lp2053041-test
2) sudo apt update
3) sudo apt install linux-image-unsigned-6.5.0-21-generic 
linux-modules-6.5.0-21-generic linux-modules-extra-6.5.0-21-generic 
linux-headers-6.5.0-21-generic
4) sudo reboot
5) uname -rv
6.5.0-21-generic #21~22.04.1+TEST2053041v20240226b1-Ubuntu SMP PREEMPT_DYNAMIC 
Mo

If asked to abort removing the running kernel, say no.

You can also wait, and I'll write back when 6.5.0-25-generic enters
-proposed for Jammy, will be a day or two.

If the patch works, then the kernel SRU cycle will complete in the first
week of March, as per https://kernel.ubuntu.com/, so you don't have too
much longer to wait until 6.5.0-25-generic becomes available.

Thanks,
Matthew

** Changed in: linux (Ubuntu)
       Status: Confirmed => Fix Released

** Changed in: linux (Ubuntu Mantic)
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2053041

Title:
  Issue when shutting down computer: internal hard drive is not shut
  down properly

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Mantic:
  Fix Committed

Bug description:
  After the last kernel upgrade, I noticed that, in the S.M.A.R.T.
  monitor, parameter ID 192 "Power Off Retract Count" increased every
  time I turned off the system. I also noticed the "click" of the head
  parking when shutting down the computer. By restarting the computer
  with previous kernel version (6.5.0-15.15~22.04.1) the issue didn't
  happen, so I assume it's a kernel bug, that causes it to shut down the
  computer before hard drive is deactivated

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: linux-image-6.5.0-17-generic 6.5.0-17.17~22.04.1
  ProcVersionSignature: Ubuntu 6.5.0-17.17~22.04.1-generic 6.5.8
  Uname: Linux 6.5.0-17-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: XFCE
  Date: Tue Feb 13 16:35:55 2024
  InstallationDate: Installed on 2020-10-02 (1228 days ago)
  InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
  SourcePackage: linux-signed-hwe-6.5
  UpgradeStatus: Upgraded to jammy on 2022-08-11 (550 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2053041/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to