Dell XPS 13 2in1 wakes from sleep when moved on 20.04

Bug #1917210 reported by Danny van Dyk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Dell XPS 13 9310 2in1, running Ubuntu OEM kernel (20.04) on 20.04 LTS.

Laptop suspends and wakes up when lid is closed and opened, respectively.
Laptop erroneously wakes up also in following conditions:

 1. lid is closed and laptop is moved/rotated.
 2. lid is open, suspended manually (via power button), and laptop is moved/rotated.

Until I found out about case 2, I assumed that the hall sensor triggered on slight opening
of the lid. However, case 2 shows that this is unlikely a hard ware defect/sensitivity.
I suspect that the accelaration sensor triggers waking up from sleep.

I can confirm that the problem persist after stopping the iio-sensor-prox service via systemctl.
I did not find which kernel module is reponsible for tracking this sensor. Suggestions?
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dvandyk 1207 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-12-26 (65 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
MachineType: Dell Inc. XPS 13 9310 2-in-1
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.6.0-1048-oem root=UUID=9104c339-1746-4791-b1ff-0d439dfd75e0 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.6.0-1048.52-oem 5.6.19
RelatedPackageVersions:
 linux-restricted-modules-5.6.0-1048-oem N/A
 linux-backports-modules-5.6.0-1048-oem N/A
 linux-firmware 1.187.9
Tags: wayland-session focal
Uname: Linux 5.6.0-1048-oem x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/05/2020
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.1.1
dmi.board.name: 0062CR
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 31
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.1.1:bd10/05/2020:svnDellInc.:pnXPS1393102-in-1:pvr:rvnDellInc.:rn0062CR:rvrA00:cvnDellInc.:ct31:cvr:
dmi.product.family: XPS
dmi.product.name: XPS 13 9310 2-in-1
dmi.product.sku: 09FF
dmi.sys.vendor: Dell Inc.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1917210/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1917210

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected focal wayland-session
description: updated
Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : CRDA.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : IwConfig.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : Lspci.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : Lspci-vt.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : Lsusb.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : Lsusb-t.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : Lsusb-v.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : ProcEnviron.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : ProcModules.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : PulseList.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : RfKill.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : UdevDb.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : WifiSyslog.txt

apport information

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote :

I found an interesting line in the dmesg output:

intel-hid INTC1051:00: unknown event 0xcd

The 0xcd event indicates a switch from or to tablet mode, confirming my diagnosis that the accelerometer wakes the laptop form suspend. Incidentally, goolging for this very event
showed me the following patch:

https://www.spinics.net/lists/platform-driver-x86/msg25277.html

I would ask the Ubuntu Kernel team to include this as soon as possible in the OEM kernel.

Revision history for this message
Danny van Dyk (danny-van-dyk-2) wrote :

This patch has been included in 5.12-rc7. I have tried the Ubuntu mainline kernel build for 5.12-rc7. I can confirm that the changeset mentioned above works.

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.