Repeated keystrokes after suspend
Peter Hutterer
peter.hutterer at who-t.net
Sun Oct 18 21:40:46 PDT 2009
On Sun, Oct 18, 2009 at 10:48:22PM -0400, Philipp Weis wrote:
> Hi,
>
> after my laptop wakes up from suspend-to-ram, it's keyboard is not
> usable since all keystrokes are repeated at least three times,
> sometimes four times, sometimes only twice. I can still switch to a
> console, and after restarting the xserver from there everything is
> fine again.
>
> I attached my xserver log, and the output of xev after the suspend
> from typing "abc". There are MappingNotify events that don't appear
> there usually, and some of the key presses show as "^A" instead of
> "a".
>
> This is on a Dell Latitude D430, running Debian unstable with
> xserver-xorg 1:7.4+4 and xserver-xorg-core 2:1.6.5-1.
>
> Any ideas what this could be?
>
> X.Org X Server 1.6.5
> Release Date: 2009-10-11
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 2.6.30-2-amd64 x86_64 Debian
> Current Operating System: Linux zaphod 2.6.30 #3 SMP Fri Oct 9 17:43:20 EDT 2009 x86_64
> Build Date: 13 October 2009 09:39:10AM
> xorg-server 2:1.6.5-1 (jcristau at debian.org)
> Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 18 22:11:51 2009
> (==) Using config file: "/etc/X11/xorg.conf"
> (**) Option "defaultserverlayout" "Notebook"
> (**) ServerLayout "Notebook"
> (**) |-->Screen "Screen Internal" (0)
> (**) | |-->Monitor "Monitor Internal"
> (**) | |-->Device "Card Internal"
> (**) |-->Input Device "TouchPad"
> (**) |-->Input Device "NoPointer"
> (**) |-->Input Device "Generic Keyboard"
> (**) Option "DontZap" "true"
> (**) Option "BlankTime" "0"
> (**) Option "StandbyTime" "0"
> (**) Option "SuspendTime" "0"
> (**) Option "OffTime" "0"
> (**) Option "AutoEnableDevices" "false"
> (==) Automatically adding devices
> (**) Not automatically enabling devices
AutoEnableDevices means the server doesn't enable devices when they're added
to the server. If you VT switch or suspend, all devices are disabled and
upon resume enabled - even those that were disabled before*.
as a result, you get the xorg.conf keyboard enabled and the automatically
added keyboards. typing on one of the keyboards results in an event on both
X server devices, with key repeat that gives you one extra repeat for the
duplicate event.
Cheers,
Peter
* yeah, not perfect. but this is such a narrow use-case that no-one has
really bothered to actually test this much.
More information about the xorg
mailing list