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

Aperta
#3,081 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Nessun dato sulla lingua
Stelle
2.7k
Fork
89
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ValveSoftware/SteamOS

Tutte le issue di ValveSoftware/SteamOS

Issue simili

Altre issue su Operating Systems

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.