bugSwinput - Bugs: bug #36512, Kernel 3.3.6: Keystrokes are faked...


bug #36512: Kernel 3.3.6: Keystrokes are faked only when the module is unloaded

Submitted by:  Malte Wetz <maltewetz>
Submitted on:  Mon 21 May 2012 08:58:06 AM UTC  
Votes:  100  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 21 May 2012 08:58:06 AM UTC, original submission:

On Ubuntu 12.04 with Kernel 3.3.6, swinput 0.7.4 does not immediately produce the fake keyboard events when writing to /dev/swkeybd. Instead, the events seem to be buffered and only passed on when the module is unloaded.

The following shell snippet shall illustrate:

root@hostname:~# modprobe swkeybd
root@hostname:~# echo test > /dev/swkeybd
root@hostname:~# echo "Hello World" > /dev/swkeybd
root@hostname:~# sync
root@hostname:~# modprobe -r swkeybd
testHello orldroot@hostname:~# testHello orld

Note that nothing happens after the two echo commands (line 2 and 3). But when the module is unloaded (line 5), suddenly the strings are written to the terminal.

I also have no idea why the "W" from "Hello World" is missing.

Note: I had to alter the source code to compile swinput in the first place (see #36511). I do not know if this is related.

Malte Wetz <maltewetz>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ivo (Voted in favor of this item)
  • -unavailable- added by maltewetz (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Mar 2014 02:31:53 PM UTCivoCarbon-Copy-=>Added ivo

    Back to the top

    Powered by Savane 3.1-cleanup1