title: Does anyone know what the output from getevent means?
body: <p>I'm trying to figure out what format the output is from the getevent command in the adb shell. </p>
  
  <p>For example, the output looks like this:</p>
  
  <p><code>adb shell getevent -t | grep event1</code> </p>
  
  <p>The -t flag provides a timestap and the grep is to filter the messages to only the touch screen's events.</p>
  
  <blockquote>
    <p>22779-197145: /dev/input/event1: 0003 003a 00400001</p>
    
    <p>22779-197999: /dev/input/event1: 0003 0039 82c30a97</p>
    
    <p>22779-218477: /dev/input/event1: 0003 003a 00390001</p>
    
    <p>22779-219301: /dev/input/event1: 0003 0039 82c30aa4</p>
    
    <p>22779-230623: /dev/input/event1: 0003 003a 002f0001</p>
    
    <p>22779-231416: /dev/input/event1: 0003 0039 82c10aae</p>
    
    <p>22779-242769: /dev/input/event1: 0003 003a 00190001</p>
    
    <p>22779-243623: /dev/input/event1: 0003 0039 82c60ac1</p>
    
    <p>22779-253328: /dev/input/event1: 0003 003a 00000002</p>
    
    <p>22779-254213: /dev/input/event1: 0003 0039 82da0ae4</p>
    
    <p>22779-415590: /dev/input/event1: 0003 003a 00000000</p>
    
    <p>22779-416444: /dev/input/event1: 0003 0039 800b1549</p>
  </blockquote>
  
  <p>The problem is that I have no idea how to process this information. While the seconds last field alternates between two codes (which has been suggested to correspond to X and Y values), the last field seems to either contain huge or very small numbers. </p>
  
  <p>Furthermore, the timestamp is also foreign to me. I wonder if the part after the dash are nanoseconds? </p>
  
  <p>Does anyone know where I can find out about the format of these things?</p>