title: keycode conversions, consider using Xvfb
body: <p>Google Chrome last version from official repository</p>
  
  <p>ChromeDriver last version installed</p>
  
  <p>Selenium last version installed</p>
  
  <p>My <strong>wdio.conf.js</strong></p>
  
  <pre><code>desiredCapabilities: {
      browserName: process.env.BROWSER || 'chrome',
      chromeOptions: {
        args: [
              '--disable-gpu',
              '--headless',
              '--no-sandbox',
            ],
        prefs: {
          'download.default_directory': __dirname + '/tmp/test/download',
          'download.prompt_for_download': false
        }
      }
    },
  </code></pre>
  
  <p><strong>My error</strong></p>
  
  <p>Some test working and after get error.</p>
  
  <pre><code>  ✓ restore password (500ms)
  
  [07:07:40]  COMMAND POST     "/wd/hub/session/21b26bbb-c9ee-4a4e-89de-ac6e8180fe9c/element/34/value"
  [07:07:40]  DATA         {"value":["s","i","m","u","l","a","t","i","o","n"]}
  [07:07:41]  INFO    Retry #1
  [07:07:41]  ERROR   ServerError unknown error: an X display is required for keycode conversions, consider using Xvfb
  [07:07:41]  INFO    Retry #2
  [07:07:41]  ERROR   ServerError unknown error: an X display is required for keycode conversions, consider using Xvfb
  [07:07:41]  INFO    Gave up after 3 tries
  </code></pre>
  
  <p>How to fix this? </p>