воскресенье

[Bug 2166592] Re: Lid switch stopped working under kernel 7.0.x — laptop never suspends on lid close

** Changed in: linux (Ubuntu) Status: Confirmed => New -- You received this bug notification because you are subscribed to linux in Ubuntu. Matching subscriptions: Bgg, Bmail, Nb https://bugs.launchpad.net/bugs/2166592 Title: Lid switch stopped working under kernel 7.0.x — laptop never suspends on lid close Status in linux package in Ubuntu: New Bug description: Bug report: Lid switch stopped working under kernel 7.0.x — laptop never suspends on lid close Affects: linux package (Ubuntu 26.04.1 LTS, kernel 7.0.0-31-generic) Hardware: Dell Inspiron 5558 (2015), ACPI lid switch PNP0C0D @ input0 -> /dev/input/event0 Steps to reproduce: 1. Fresh Ubuntu 26.04.1 LTS with stock kernel 7.0.0-31-generic, GNOME on Wayland. 2. systemd-logind default config (HandleLidSwitch=suspend), GNOME power lid-close action = suspend on both AC and battery. 3. Close the laptop lid. Expected result: The system suspends (like on previous Ubuntu releases / kernel 6.8). Actual result: The system never suspends. The lid event is never delivered to userspace: - The ACPI driver DOES receive the event: /proc/acpi/button/lid/LID0/state reliably toggles "open" -> "closed" when the lid is closed. - But NO EV_SW / SW_LID input event is emitted on /dev/input/event0 ("Lid Switch"). Verified with a python-evdev monitor (device grab succeeds, so no other reader is stealing events): closing the lid changes the /proc state but produces zero SW_LID events. - systemd-logind therefore logs nothing beyond boot time "Watching system buttons on /dev/input/event0 (Lid Switch)" — no "Lid closed.", and journalctl shows no PM suspend/resume entries at all for the lid action. - `systemctl suspend` from the terminal works fine, so suspend itself is functional. Analysis: This looks like a regression in the ACPI button driver (drivers/acpi/button.c): the lid state (btn->lid_state) is updated but the matching input_event(EV_SW, SW_LID, ...) is not delivered on this hardware under kernel 7.0.x. On many other Dell models the event IS delivered, which suggests model-specific ACPI/EC interaction. Workaround (in use): A systemd service polling /proc/acpi/button/lid/LID0/state every 1s that runs "systemctl suspend" when the state flips to "closed". Suggested fix: Ensure drivers/acpi/button.c always forwards the SW_LID input event together with updating the ACPI state, or investigate why the event is dropped specifically on this Dell ACPI implementation under 7.0.x. Files: full apport data collected at /tmp/opencode/lid-bug.apport ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: linux-image-7.0.0-31-generic 7.0.0-31.31 ProcVersionSignature: Ubuntu 7.0.0-31.31-generic 7.0.14 Uname: Linux 7.0.0-31-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC1: anurag 1854 F.... wireplumber /dev/snd/controlC0: anurag 1854 F.... wireplumber /dev/snd/seq: anurag 1836 F.... pipewire CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Sun Sep 6 11:05:05 2026 InstallationDate: Installed on 2026-03-28 (162 days ago) InstallationMedia: Ubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210) MachineType: Dell Inc. Inspiron 5558 ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-31-generic root=UUID=05134500-1438-4844-8dd7-2b9cf214e29b ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 12/30/2019 dmi.bios.release: 65.18 dmi.bios.vendor: Dell Inc. dmi.bios.version: A18 dmi.board.name: 0DPP8C dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 9 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvrA18:bd12/30/2019:br65.18:svnDellInc.:pnInspiron5558:pvr:rvnDellInc.:rn0DPP8C:rvrA00:cvnDellInc.:ct9:cvr:sku06AE:pfa: dmi.product.name: Inspiron 5558 dmi.product.sku: 06AE dmi.sys.vendor: Dell Inc. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2166592/+subscriptions

Комментариев нет:

Отправить комментарий