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
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    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.13-8ccc.
    Corresponding source code