<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>376966</bug_id>
          
          <creation_ts>2017-02-26 21:14:18 +0000</creation_ts>
          <short_desc>Keyboard input does not work for some applications</short_desc>
          <delta_ts>2017-12-20 19:20:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>general</component>
          <version>5.9.2</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Silver Salonen">silver.salonen</reporter>
          <assigned_to name="David Edmundson">kde</assigned_to>
          <cc>alpha0x89</cc>
    
    <cc>bshah</cc>
    
    <cc>mtmkls</cc>
    
    <cc>nate</cc>
    
    <cc>patrick.rudolph</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>rprots</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1663248</commentid>
    <comment_count>0</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-02-26 21:14:18 +0000</bug_when>
    <thetext>Keyboard input in some KDE applications just does not work sometimes.
2 certain applications where it does not work during every session are:
  - The menu widget (does not matter whether Application Launcher or Application Menu) - in there the first letter is reflected, but after no more letters are accepted.
  - Alt+F2 launcher - no input works whatsoever

It seems that it&apos;s most likely so for any KDE applications that are started at session startup (eg. Konsole from the last session). I have not seen this problem in any non-KDE applications (Thunderbird, LibreOffice, VLC, terminal applications, ...).

I have had this problem already like a year or so, but have been just living with it (work-arounds like copy-pasting phrases written in some other application). Also, some weeks ago I upgraded to some beta release by accident (when playing around with repositories) and in there the problem was gone, but as soon as I downgraded to stable release again, it re-appeared.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666323</commentid>
    <comment_count>1</comment_count>
    <who name="Roman Prots&apos;">rprots</who>
    <bug_when>2017-03-15 07:48:48 +0000</bug_when>
    <thetext>Problem gets reproduced on 5.8.5 version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666324</commentid>
    <comment_count>2</comment_count>
    <who name="Roman Prots&apos;">rprots</who>
    <bug_when>2017-03-15 07:51:03 +0000</bug_when>
    <thetext>Might be related: https://bbs.archlinux.org/viewtopic.php?id=216797</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666325</commentid>
    <comment_count>3</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-03-15 07:54:53 +0000</bug_when>
    <thetext>One interesting nuance I&apos;ve noticed lately is that after logging in KWallet password prompt input works only a while - if I enter my password within 5 seconds or so then it works, but after that not anymore. Also, it sometimes happens in Konsole that input works in the newly opened window for some time, but then stops working. I then need to open a new window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1666326</commentid>
    <comment_count>4</comment_count>
    <who name="Roman Prots&apos;">rprots</who>
    <bug_when>2017-03-15 08:06:10 +0000</bug_when>
    <thetext>Similar behavior from my side.
When konsole starts right after login automatically I can&apos;t type into it. If closing it and opening again it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1675647</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick Rudolph">patrick.rudolph</who>
    <bug_when>2017-05-10 12:30:53 +0000</bug_when>
    <thetext>The problem was observed on 5.8.6 with the following two applications:

* Konsole application
* Alt + F2 launcher

All other applications accepted keyboard input.
There&apos;s no information whether or not the application was autolaunched by KDE.

Closing the Konsole application and starting a new one fixed the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703839</commentid>
    <comment_count>6</comment_count>
    <who name="Theo">alpha0x89</who>
    <bug_when>2017-10-01 16:28:52 +0000</bug_when>
    <thetext>I have this problem on openSUSE Tumbleweed, KDE Plasma 5.10.5. Keystrokes are registered only sporadically in all KDE applications as described in https://bugs.launchpad.net/ubuntu/+source/kubuntu-settings/+bug/1633721 (that bug seems to be about input fields only, though). This happens often after my system has been stalled when running out of memory. Once my system is responding again, the IBus daemon for the desktop user is gone. Running &apos;ibus-daemon --xim -d&apos; as user fixes the keyboard input problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703895</commentid>
    <comment_count>7</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-02 05:49:53 +0000</bug_when>
    <thetext>Wow, that totally fixes the problem for me!

Thank you very much Theo!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703896</commentid>
    <comment_count>8</comment_count>
    <who name="Patrick Rudolph">patrick.rudolph</who>
    <bug_when>2017-10-02 05:58:41 +0000</bug_when>
    <thetext>I can confirm that running ibus-daemon --xim -d as user fixes the problem.
I had to place it inside a while loop to restart it automatically every time I switch ttys as the ibus daemon crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703902</commentid>
    <comment_count>9</comment_count>
    <who name="Patrick Rudolph">patrick.rudolph</who>
    <bug_when>2017-10-02 06:50:44 +0000</bug_when>
    <thetext>Turns out the ibus behaviour on tty change is already fixed here: https://bugs.kde.org/show_bug.cgi?id=379930</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703903</commentid>
    <comment_count>10</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-02 07:01:37 +0000</bug_when>
    <thetext>Ok, I&apos;ll mark it as duplicate then.

*** This bug has been marked as a duplicate of bug 379930 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1704210</commentid>
    <comment_count>11</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-03 20:29:39 +0000</bug_when>
    <thetext>Okay, I cheered to soon. For me ibus-daemon doesn&apos;t actually crash - it&apos;s running fine after I log into Plasma5. When I don&apos;t have it running then input just doesn&apos;t work in even more applications. But killing or restarting it doesn&apos;t make everything work still :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1704879</commentid>
    <comment_count>12</comment_count>
    <who name="Theo">alpha0x89</who>
    <bug_when>2017-10-08 14:58:39 +0000</bug_when>
    <thetext>(In reply to Theo from comment #6)
&gt; This happens often
&gt; after my system has been stalled when running out of memory. Once my system
&gt; is responding again, the IBus daemon for the desktop user is gone.
For the record, apparently IBus is indeed killed when switching to TTY. I wasn&apos;t aware of this when I wrote that comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1705668</commentid>
    <comment_count>13</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-10-12 19:49:24 +0000</bug_when>
    <thetext>So let&apos;s recap: This issue is related to IBus. Does uninstalling it resolve the issue? I doubt Plasma has any influence on input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1705672</commentid>
    <comment_count>14</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-12 19:57:21 +0000</bug_when>
    <thetext>For me it doesn&apos;t indeed change a thing - I removed everything related to ibus and after logging out and in again the state is exactly the same. Ie. input in KWallet input request does not work, but to some other applications input works. This has somehow improved since some time (as I reported at some point, input in KRunner dialog or in launcher menu didn&apos;t work, but now it does), but I have no idea with what and when exactly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1705756</commentid>
    <comment_count>15</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-13 03:42:14 +0000</bug_when>
    <thetext>Sorry, I&apos;m giving inconsistent information :/
I did full upgrade of all my software (did not re-install ibus) and restarted my computer, and now keyboard input works also for KWallet right after login.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706256</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-16 04:35:15 +0000</bug_when>
    <thetext>Anything left to investigate here? Can we close the bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706269</commentid>
    <comment_count>17</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-16 07:22:45 +0000</bug_when>
    <thetext>To my mind it&apos;s somewhat clear that it is related to ibus, but is it really clear how?

As I understand on one case ibus crashes and this causes keyboard input issues, but on another case (mine) the issue is solved when this solves issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706421</commentid>
    <comment_count>18</comment_count>
    <who name="Theo">alpha0x89</who>
    <bug_when>2017-10-16 22:56:37 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #16)
&gt; Anything left to investigate here? Can we close the bug?
IBus is no longer killed by switching to TTY after I updated to Plasma 5.11.0 on my openSUSE Tumbleweed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706458</commentid>
    <comment_count>19</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2017-10-17 02:31:46 +0000</bug_when>
    <thetext>Great, sounds like this may be fixed now! Is anyone else still able to reproduce with Plasma 5.11.0?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706478</commentid>
    <comment_count>20</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-10-17 04:47:45 +0000</bug_when>
    <thetext>One additional weird nuance - on startup both KWallet and Gnome Keyring are asking for input (the latter because of Skype). Even if KWallet is focused then keyboard input does not work until I haven&apos;t inserted password for Keyring. Also it seems that keyboard input does not work within the whole environment, eg. Alt+Tab, Alt+F2, Launcher menu search. After I submit anything into Keyring dialog, keyboard input starts working for both Plasma and KWallet dialog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706976</commentid>
    <comment_count>21</comment_count>
    <who name="Theo">alpha0x89</who>
    <bug_when>2017-10-19 10:46:36 +0000</bug_when>
    <thetext>(In reply to Silver Salonen from comment #20)
&gt; keyboard input does not work until I haven&apos;t inserted password for
&gt; Keyring.
Same for me when I start Skype any time during a KDE session. The Gnome Keyring prompt seem to block all keyboard input for anything but itself. If I remember correctly, this also happened with the graphical password prompt for the SSH agent (x11-ssh-askpass by Jim Knoble) that used to ask for my passphrase at the start of the session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1713124</commentid>
    <comment_count>22</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-11-24 00:50:04 +0000</bug_when>
    <thetext>*** Bug 384891 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1713141</commentid>
    <comment_count>23</comment_count>
    <who name="Silver Salonen">silver.salonen</who>
    <bug_when>2017-11-24 05:09:44 +0000</bug_when>
    <thetext>I don&apos;t know now... to me it has really boiled down to Keyring blocking the input. Is there something that can be done about it from KDE/Plasma side?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1717851</commentid>
    <comment_count>24</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2017-12-20 19:20:46 +0000</bug_when>
    <thetext>Please report it to the bug tracker of the application or service that blocks the keyboard input. We cannot magically get input when something else prevents that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>