Public bug reported:

Over the last 20 years, I've owned a succession of Thinkpad laptops.
Every previous laptop has switched the screen off when I close the lid.
I've just purchased a Thinkpad X9 15 that doesn't. When I close the lid,
the screen stays on.

I have the following set in /etc/systemd/logind.conf:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

I could set these to suspend, but this isn't a solution because then
things wouldn't run in the background overnight, in particular
Thunderbird's spam filtering.

I have managed to work around the problem using the following:

/etc/acpi/events/lid-close:
event=button/lid LID close
action=/etc/acpi/lid-close.sh

/etc/acpi/events/lid-open: 
event=button/lid LID open
action=/etc/acpi/lid-open.sh

/etc/acpi/lid-close.sh:
#!/bin/sh
su - alistair -c 'gsettings set org.gnome.desktop.session idle-delay 1'

/etc/acpi/lid-open.sh:
#!/bin/sh
su - alistair -c 'gsettings set org.gnome.desktop.session idle-delay 3600'

and this seems to work well. It would be good, however, to have Ubuntu
properly support this.

I installed the laptop a few weeks ago using Ubuntu 25.04. Yesterday I
upgraded to 25.10 to see if this would improve matters, but it didn't.

ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: acpi (not installed)
ProcVersionSignature: Ubuntu 6.17.0-5.5-generic 6.17.0-rc7
Uname: Linux 6.17.0-5-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 15 09:21:19 2025
InstallationDate: Installed on 2025-09-07 (38 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
SourcePackage: acpi
UpgradeStatus: Upgraded to questing on 2025-10-14 (1 days ago)

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug questing wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127893

Title:
  Laptop screen doesn't switch off on lid close

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to