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

Submitter:  Malte Wetz <maltewetz>
Submitted:  Mon 21 May 2012 08:58:06 AM UTC
Votes: 100
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-29 ivo Carbon-Copy- Added ivo

    Back to the top

    Powered by Savane 3.16-1b88.
    Corresponding source code