[ThinkPad X1 Carbon] System wakes from suspend almost immediately if USB keyboard is plugged in

Bug #1970155 reported by prathamesh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Suspend mode does not seems to work. Clicking on suspend button sends laptop in suspend mode and in few seconds laptop comes out of suspend mode and shows login screen again.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 25 10:31:56 2022
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f9]
InstallationDate: Installed on 2022-04-22 (2 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: LENOVO 34601F4
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-25-generic root=UUID=be040347-6300-407e-9e19-da58389c3a6f ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/19/2013
dmi.bios.release: 2.59
dmi.bios.vendor: LENOVO
dmi.bios.version: G6ET99WW (2.59 )
dmi.board.asset.tag: Not Available
dmi.board.name: 34601F4
dmi.board.vendor: LENOVO
dmi.board.version: NO DPK
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.ec.firmware.release: 1.4
dmi.modalias: dmi:bvnLENOVO:bvrG6ET99WW(2.59):bd11/19/2013:br2.59:efr1.4:svnLENOVO:pn34601F4:pvrThinkPadX1Carbon:rvnLENOVO:rn34601F4:rvrNODPK:cvnLENOVO:ct10:cvrNotAvailable:skuLENOVO_MT_3460:
dmi.product.family: ThinkPad X1 Carbon
dmi.product.name: 34601F4
dmi.product.sku: LENOVO_MT_3460
dmi.product.version: ThinkPad X1 Carbon
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.1-1ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
prathamesh (prathamesh-musicguitar) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

Please try disabling Bluetooth AND unplugging your USB keyboard before suspending. Does that avoid the bug?

summary: - Suspend does not work
+ System wakes from suspend almost immediately
affects: xorg (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
prathamesh (prathamesh-musicguitar) wrote : Re: System wakes from suspend almost immediately

As per your suggestion i unplugged usb keyboard before suspending. Everytime it works if i unplugged usb keyboard. It looks like this is something usb keyboard specific issue. Is there any permanent solution on this or i have to unplugged usb keyboard everytime.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

You can tell the kernel to ignore particular devices that might wake the machine up by:

  sudo sh -c 'echo NAME > /proc/acpi/wakeup'

That will just toggle device NAME between enabled (can wake up) or disabled (can't wake up). But the hard part is figuring out which device name from /proc/acpi/wakeup is relevant to the USB keyboard. Maybe 'XHC' representing the USB controller?

Your BIOS might also have settings to control which devices can wake the machine up.

Changed in linux (Ubuntu):
importance: Undecided → Low
status: Incomplete → Triaged
summary: - System wakes from suspend almost immediately
+ [ThinkPad X1 Carbon] System wakes from suspend almost immediately if USB
+ keyboard is plugged in
Revision history for this message
prathamesh (prathamesh-musicguitar) wrote :

i plugged in usb keyboard in different port. Now there is no issue in putting laptop on sleep mode.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.