[Steam Machine] Built-in EC keyboard (serio0) gets stuck repeating Enter after resume, closes menus and wakes the machine from sleep

未关闭
#3,081 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux

调研方向

The payload points to the atkbd serio0 messages in the kernel log around suspend and resume, the serio0 drvctl sysfs file, and /dev/input/event2, which evtest can query for stuck KEY_ENTER. Start by reproducing a suspend and resume cycle and confirming the deactivate/enable failures with dmesg. Done would mean the keyboard stays quiet and the machine stays asleep across repeated resumes, which needs kernel input-driver knowledge and hardware access.

由索引模型根据 Issue 内容生成。

描述

Your system information
  • Steam client version: 1794536281
  • SteamOS version: 3.9.5, build 20261023.100
  • Kernel: 7.2.7-valve2-2-neptune-72-g31504582a073
  • BIOS version: F7F0108
  • Opted into Steam client beta?: No
  • Opted into SteamOS beta?: No
  • Have you checked for updates in Settings > System?: Yes
Please describe your issue in as much detail as possible:

Sometimes after waking from sleep, the built-in "AT Translated Set 2 keyboard" (isa0060/serio0, event2 on my machine) starts sending Enter on its own, about 30 times a second. No physical keyboard is attached; this is the onboard serio0 device. I only use a controller.

What I see in Game Mode:

  • Pressing the Steam button flashes the main menu and it closes right away. Stick navigation in menus doesn't work. LB/RB and the QAM button still work.
  • The screen never dims and the screensaver never starts, because the Enter repeats count as input.
  • If the machine does go to sleep, it wakes back up a few seconds later. After a sleep at 16:05:01 it was back up at 16:05:04, and /sys/power/pm_wakeup_irq read 1 (i8042).

The kernel logs this on every resume, not only the bad ones (24 resumes this boot, all 24 logged it):

atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
PM: suspend exit
atkbd serio0: Failed to enable keyboard on isa0060/serio0

and sometimes after that:

atkbd serio0: Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.

Checking the key state while it's happening:

$ evtest --query /dev/input/event2 EV_KEY KEY_ENTER; echo $?
10

The IRQ 1 (i8042) count in /proc/interrupts keeps climbing while the machine sits untouched.

Workaround: echo -n reconnect | sudo tee /sys/bus/serio/devices/serio0/drvctl, then send a KEY_ENTER release to event2. Usually that stops it. The last time, it only slowed the repeats down and Enter stayed stuck. Holding an EVIOCGRAB on event2 stops the repeats from reaching gamescope, so menus work again until the next resume.

Expected: the EC keyboard stays quiet after resume, and the machine stays asleep.

Steps for reproducing this issue:
  1. Put the Steam Machine to sleep from Game Mode.
  2. Wake it.
  3. Repeat. Every resume logs the deactivate/enable failures. Some of them leave Enter stuck, which you can check with the evtest command above.
主要语言
没有语言数据
星标
2.7k
派生
89
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/SteamOS 的其他 Issue

查看 ValveSoftware/SteamOS 的全部 Issue

相似的 Issue

更多 Operating Systems Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。