Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. failed to initialize XrandR

failed to initialize XrandR

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hei6775
    wrote on last edited by hei6775
    #1

    I am develop my application in Ubuntu(without display) with QT5.15.2
    But when i click the Run. The Qt Creator build fail and tell me:

    qt.qpa.xcb: failed to initialize XRandr
    qt.qpa.xcb: XKeyboard extension not present on the X server
    

    By the way, I am using xrdp to operate the remote server. I try many methods, but they not work for me. What should I do? Give me advise.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      coonal
      wrote on last edited by
      #2

      Hi @hei6775 ,
      any luck on this? Were you able to find any solution? I am getting the same issue.

      raven-worxR 1 Reply Last reply
      0
      • C coonal

        Hi @hei6775 ,
        any luck on this? Were you able to find any solution? I am getting the same issue.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by raven-worx
        #3

        @coonal
        just a shot in the dark:
        If its a QML application try to run the Qt app with SW renderer and not OpenGL backend
        (e.g. via env var: QT_QUICK_BACKEND="software")

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        2
        • B Offline
          B Offline
          brookbot
          wrote on last edited by
          #4

          @raven-worx said in failed to initialize XrandR:

          QT_QUICK_BACKEND="software"

          That did not work. I continue to see this error w/PyQt5 on RHEL8:
          qt.qpa.xcb: failed to initialize XRandr
          qt.qpa.xcb: X server does not support XInput 2
          qt.qpa.xcb: QXcbConnection: XCB error: 1 (BadRequest), sequence: 169, resource id: 53, major code: 131 (Unknown), minor code: 47

          JKSHJ 1 Reply Last reply
          0
          • B brookbot

            @raven-worx said in failed to initialize XrandR:

            QT_QUICK_BACKEND="software"

            That did not work. I continue to see this error w/PyQt5 on RHEL8:
            qt.qpa.xcb: failed to initialize XRandr
            qt.qpa.xcb: X server does not support XInput 2
            qt.qpa.xcb: QXcbConnection: XCB error: 1 (BadRequest), sequence: 169, resource id: 53, major code: 131 (Unknown), minor code: 47

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @brookbot said in failed to initialize XrandR:

            qt.qpa.xcb: failed to initialize XRandr

            What does xrandr -q show you?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved