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:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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 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)
  •  

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

    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.3