Linux console: All keyboard input is preceded by “^[”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












After coming back from laptop hibernation, my Fedora 27 has gone into a weird state whereby:



  1. On the graphical console, no input is accepted, even mouse activity
    is disregarded

  2. On the text console, any keyboard input is preceded
    by '^[' (would that be CTRL+'1 character past Z'?). So when I want to
    log in, I see ^[r^[o^[o^[t and once login times out waiting for input,
    it is game over: No more input. Capslock LED is inactive, Numlock LED is
    active.

I remember seeing this on a boot screen of a Sun SPARCstation in the 90s...



What is going exactly and how can I fix it (except reboot the machine)?



Edit: This has been a "once-only" occurrence on the machine in question. After a reboot, the problem is gone. It might be due to a hardware glitch or any random bug. Although if it is due to an extra special mode of the terminal I/O, one would like to know more.







share|improve this question






















  • ^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
    – muru
    Mar 7 at 13:57






  • 1




    Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
    – muru
    Mar 7 at 13:59











  • @muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
    – David Tonhofer
    Mar 7 at 16:21






  • 1




    This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
    – Wouter Verhelst
    Mar 8 at 15:50














up vote
1
down vote

favorite












After coming back from laptop hibernation, my Fedora 27 has gone into a weird state whereby:



  1. On the graphical console, no input is accepted, even mouse activity
    is disregarded

  2. On the text console, any keyboard input is preceded
    by '^[' (would that be CTRL+'1 character past Z'?). So when I want to
    log in, I see ^[r^[o^[o^[t and once login times out waiting for input,
    it is game over: No more input. Capslock LED is inactive, Numlock LED is
    active.

I remember seeing this on a boot screen of a Sun SPARCstation in the 90s...



What is going exactly and how can I fix it (except reboot the machine)?



Edit: This has been a "once-only" occurrence on the machine in question. After a reboot, the problem is gone. It might be due to a hardware glitch or any random bug. Although if it is due to an extra special mode of the terminal I/O, one would like to know more.







share|improve this question






















  • ^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
    – muru
    Mar 7 at 13:57






  • 1




    Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
    – muru
    Mar 7 at 13:59











  • @muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
    – David Tonhofer
    Mar 7 at 16:21






  • 1




    This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
    – Wouter Verhelst
    Mar 8 at 15:50












up vote
1
down vote

favorite









up vote
1
down vote

favorite











After coming back from laptop hibernation, my Fedora 27 has gone into a weird state whereby:



  1. On the graphical console, no input is accepted, even mouse activity
    is disregarded

  2. On the text console, any keyboard input is preceded
    by '^[' (would that be CTRL+'1 character past Z'?). So when I want to
    log in, I see ^[r^[o^[o^[t and once login times out waiting for input,
    it is game over: No more input. Capslock LED is inactive, Numlock LED is
    active.

I remember seeing this on a boot screen of a Sun SPARCstation in the 90s...



What is going exactly and how can I fix it (except reboot the machine)?



Edit: This has been a "once-only" occurrence on the machine in question. After a reboot, the problem is gone. It might be due to a hardware glitch or any random bug. Although if it is due to an extra special mode of the terminal I/O, one would like to know more.







share|improve this question














After coming back from laptop hibernation, my Fedora 27 has gone into a weird state whereby:



  1. On the graphical console, no input is accepted, even mouse activity
    is disregarded

  2. On the text console, any keyboard input is preceded
    by '^[' (would that be CTRL+'1 character past Z'?). So when I want to
    log in, I see ^[r^[o^[o^[t and once login times out waiting for input,
    it is game over: No more input. Capslock LED is inactive, Numlock LED is
    active.

I remember seeing this on a boot screen of a Sun SPARCstation in the 90s...



What is going exactly and how can I fix it (except reboot the machine)?



Edit: This has been a "once-only" occurrence on the machine in question. After a reboot, the problem is gone. It might be due to a hardware glitch or any random bug. Although if it is due to an extra special mode of the terminal I/O, one would like to know more.









share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 16:26

























asked Mar 7 at 13:39









David Tonhofer

487415




487415











  • ^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
    – muru
    Mar 7 at 13:57






  • 1




    Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
    – muru
    Mar 7 at 13:59











  • @muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
    – David Tonhofer
    Mar 7 at 16:21






  • 1




    This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
    – Wouter Verhelst
    Mar 8 at 15:50
















  • ^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
    – muru
    Mar 7 at 13:57






  • 1




    Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
    – muru
    Mar 7 at 13:59











  • @muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
    – David Tonhofer
    Mar 7 at 16:21






  • 1




    This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
    – Wouter Verhelst
    Mar 8 at 15:50















^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
– muru
Mar 7 at 13:57




^[ is the control code for the Esc key. I have seen similar posts, with ^@ (the null character), but both are hard to Google.
– muru
Mar 7 at 13:57




1




1




Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
– muru
Mar 7 at 13:59





Possible duplicate of ^@ spam in tty (but seems to be system-wide) - got it, see if that helps
– muru
Mar 7 at 13:59













@muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
– David Tonhofer
Mar 7 at 16:21




@muru Interesting, thanks. But I don't think that's it, it is the one and only time I see this happen on the machine in question. A reboot fixed it. It guess it's "one of those things".
– David Tonhofer
Mar 7 at 16:21




1




1




This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
– Wouter Verhelst
Mar 8 at 15:50




This should not be closed for "offtopic", it's a genuine question that's got an easy fix (see the answer).
– Wouter Verhelst
Mar 8 at 15:50










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










The keyboard input subsystem thought that you had the (left or right) ⎇ Alt modifier depressed. That's how the kernel's built-in terminal emulator translates keys if that modifier is in effect. And the GUI apparently thought that you were performing ⎇ Alt-modified mouse gestures and keystrokes.



A keyboard device that sends explicit press and release events, like PS/2 keyboard devices do, can cause this state if for some reason the specific release event for the modifier key is lost, which could well have happened because you were hibernating your system. (With USB keyboards, this problem is slightly harder to create; because USB keyboard HIDs send an encoding of the instantaneous state of all keys on the keyboard, not press and release events, and so any keyboard state change will have signalled that the modifier key was no longer pressed.)



A reboot in such a scenario is overkill. One can simply press and release the modifier(s) again to get the keyboard input subsystem resynchronized with the actual state of one's keyboard.



Further reading



  • https://unix.stackexchange.com/a/333922/5132

  • https://superuser.com/a/723442/38062

  • https://superuser.com/questions/428641/

  • https://unix.stackexchange.com/a/391968/5132

  • How to force release of a keyboard modifiers

  • https://superuser.com/questions/956049/





share|improve this answer






















  • Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
    – David Tonhofer
    Mar 8 at 18:39










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428752%2flinux-console-all-keyboard-input-is-preceded-by%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










The keyboard input subsystem thought that you had the (left or right) ⎇ Alt modifier depressed. That's how the kernel's built-in terminal emulator translates keys if that modifier is in effect. And the GUI apparently thought that you were performing ⎇ Alt-modified mouse gestures and keystrokes.



A keyboard device that sends explicit press and release events, like PS/2 keyboard devices do, can cause this state if for some reason the specific release event for the modifier key is lost, which could well have happened because you were hibernating your system. (With USB keyboards, this problem is slightly harder to create; because USB keyboard HIDs send an encoding of the instantaneous state of all keys on the keyboard, not press and release events, and so any keyboard state change will have signalled that the modifier key was no longer pressed.)



A reboot in such a scenario is overkill. One can simply press and release the modifier(s) again to get the keyboard input subsystem resynchronized with the actual state of one's keyboard.



Further reading



  • https://unix.stackexchange.com/a/333922/5132

  • https://superuser.com/a/723442/38062

  • https://superuser.com/questions/428641/

  • https://unix.stackexchange.com/a/391968/5132

  • How to force release of a keyboard modifiers

  • https://superuser.com/questions/956049/





share|improve this answer






















  • Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
    – David Tonhofer
    Mar 8 at 18:39














up vote
3
down vote



accepted










The keyboard input subsystem thought that you had the (left or right) ⎇ Alt modifier depressed. That's how the kernel's built-in terminal emulator translates keys if that modifier is in effect. And the GUI apparently thought that you were performing ⎇ Alt-modified mouse gestures and keystrokes.



A keyboard device that sends explicit press and release events, like PS/2 keyboard devices do, can cause this state if for some reason the specific release event for the modifier key is lost, which could well have happened because you were hibernating your system. (With USB keyboards, this problem is slightly harder to create; because USB keyboard HIDs send an encoding of the instantaneous state of all keys on the keyboard, not press and release events, and so any keyboard state change will have signalled that the modifier key was no longer pressed.)



A reboot in such a scenario is overkill. One can simply press and release the modifier(s) again to get the keyboard input subsystem resynchronized with the actual state of one's keyboard.



Further reading



  • https://unix.stackexchange.com/a/333922/5132

  • https://superuser.com/a/723442/38062

  • https://superuser.com/questions/428641/

  • https://unix.stackexchange.com/a/391968/5132

  • How to force release of a keyboard modifiers

  • https://superuser.com/questions/956049/





share|improve this answer






















  • Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
    – David Tonhofer
    Mar 8 at 18:39












up vote
3
down vote



accepted







up vote
3
down vote



accepted






The keyboard input subsystem thought that you had the (left or right) ⎇ Alt modifier depressed. That's how the kernel's built-in terminal emulator translates keys if that modifier is in effect. And the GUI apparently thought that you were performing ⎇ Alt-modified mouse gestures and keystrokes.



A keyboard device that sends explicit press and release events, like PS/2 keyboard devices do, can cause this state if for some reason the specific release event for the modifier key is lost, which could well have happened because you were hibernating your system. (With USB keyboards, this problem is slightly harder to create; because USB keyboard HIDs send an encoding of the instantaneous state of all keys on the keyboard, not press and release events, and so any keyboard state change will have signalled that the modifier key was no longer pressed.)



A reboot in such a scenario is overkill. One can simply press and release the modifier(s) again to get the keyboard input subsystem resynchronized with the actual state of one's keyboard.



Further reading



  • https://unix.stackexchange.com/a/333922/5132

  • https://superuser.com/a/723442/38062

  • https://superuser.com/questions/428641/

  • https://unix.stackexchange.com/a/391968/5132

  • How to force release of a keyboard modifiers

  • https://superuser.com/questions/956049/





share|improve this answer














The keyboard input subsystem thought that you had the (left or right) ⎇ Alt modifier depressed. That's how the kernel's built-in terminal emulator translates keys if that modifier is in effect. And the GUI apparently thought that you were performing ⎇ Alt-modified mouse gestures and keystrokes.



A keyboard device that sends explicit press and release events, like PS/2 keyboard devices do, can cause this state if for some reason the specific release event for the modifier key is lost, which could well have happened because you were hibernating your system. (With USB keyboards, this problem is slightly harder to create; because USB keyboard HIDs send an encoding of the instantaneous state of all keys on the keyboard, not press and release events, and so any keyboard state change will have signalled that the modifier key was no longer pressed.)



A reboot in such a scenario is overkill. One can simply press and release the modifier(s) again to get the keyboard input subsystem resynchronized with the actual state of one's keyboard.



Further reading



  • https://unix.stackexchange.com/a/333922/5132

  • https://superuser.com/a/723442/38062

  • https://superuser.com/questions/428641/

  • https://unix.stackexchange.com/a/391968/5132

  • How to force release of a keyboard modifiers

  • https://superuser.com/questions/956049/






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 20:33

























answered Mar 7 at 21:37









JdeBP

28.3k459133




28.3k459133











  • Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
    – David Tonhofer
    Mar 8 at 18:39
















  • Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
    – David Tonhofer
    Mar 8 at 18:39















Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
– David Tonhofer
Mar 8 at 18:39




Very astute observation (although the terminal emulator is likely not in-kernel, isn't it agetty what is doing it?). The theory is good although in order to get to the text console I had to actually depress the left-ALT key (CTRL+ALT+F2), which didn't fix things. Still, accepting as answer as this is likely as far as we can get.
– David Tonhofer
Mar 8 at 18:39












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428752%2flinux-console-all-keyboard-input-is-preceded-by%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)