Force update keyboard LEDs after calling EnableDevice to fix its hardware state after VT switching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
New
|
Undecided
|
Unassigned | ||
X.Org X server |
New
|
Unknown
|
|||
xorg-server (Ubuntu) |
Fix Released
|
Undecided
|
Yao Wei | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* This change will force update keyboard LED status after calling EnableDevice, in order to resolve LED status not syncing after switching VT to a X session.
* This also fixes the issue with NVIDIA driver and Xorg, that after resuming from suspend the keyboard LED is always off.
[ Test Plan ]
1. Log onto an GNOME Xorg session (KDE Kwin worked this issue around)
2. Turn on NumLock on the keyboard
3. Use Ctrl-Alt-F3 to switch to a text console, then Ctrl-Alt-F2 to switch back to desktop
NumLock LED should be on after switching back to the desktop
[ Where problems could occur ]
* The changes are to push status to the device when enabling it regardless of actual keyboard state change, therefore switching between VTs and adding/removing keyboard/
[ Original Report ]
Switching virtual terminals [Ctrl-Alt-F1 - F7] to a X session turns off keyboard LEDs.
This issue is reproducible on 2:21.1.3-2ubuntu2.1 (on 22.04)
To reproduce:
1. Log on a X session desktop (GNOME Xorg for example)
2. Turn on NumLock
3. Use Ctrl-Alt-F3 to switch to a text console, then Ctrl-Alt-F2 to switch back to desktop
Expected:
NumLock LED should be on
Actual:
NumLock LED is off, but functions like NumLock is on. If NumLock is pressed the LED turns off as well as the function. If CapsLock is pressed the LED states sync back (LED turns back on).
description: | updated |
tags: | added: oem-priority originate-from-1991265 somerville |
Changed in xorg-server: | |
status: | Unknown → New |
summary: |
- Switching virtual terminals [Ctrl-Alt-F1 - F7] to a X session turns off - keyboard LEDs + Force update keyboard LEDs after calling EnableDevice to fix its state + after VT switching |
Changed in xorg-server (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Yao Wei (medicalwei) |
status: | In Progress → New |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Might be related to bug 1247668.