Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Windowing Does Not Work With Xinerama  (Read 1807 times)

0 Members and 1 Guest are viewing this topic.

Aster

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • Destrock
SFML Windowing Does Not Work With Xinerama
« on: November 01, 2013, 04:31:07 pm »
Hello,

I just switched from the open source nouveau drivers to nVidia's official nvidia drivers. I tried launching an SFML app, and I get this:

Failed to use the XRandR extension while trying to get the desktop video modes
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  151 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x1c00001
  Serial number of failed request:  48
  Current serial number in output stream:  48

The reason for this is clear; XRandR is failing. It's failing because I use the nvidia driver, which disables XRandR in favor of the more flexible Xinerama, since I have a rather complicated GPU/display setup.

I understand the fix: "Use the open-source drivers!!!" This, I might consider, but not everyone will. I can't just tell all of my Linux users "Oh yeah, if you happen to use the faster, more complete nvidia drivers, you can't run my software!". I don't think anyone wants to do that.

I'd make this a feature request, but for now I want to know if there's a workaround, or if it's something that needs to be fixed.
« Last Edit: November 01, 2013, 04:33:09 pm by Aster »
My website.
BuildMyCode developer.
My GitHub: https://github.com/Mischa-Alff
Twitter: https://twitter.com/MisterAster
Aster @ irc.boxbox.org, irc.esper.net, chat.freenode.net

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML Windowing Does Not Work With Xinerama
« Reply #1 on: November 01, 2013, 04:48:12 pm »
Quote
I understand the fix: "Use the open-source drivers!!!"
Nop. The fix is "implement a Xinerama backend". Unfortunately this is very low on the task list, so don't hesitate to contribute ;)

You can open a task on the tracker.
Laurent Gomila - SFML developer

Aster

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • Destrock
Re: SFML Windowing Does Not Work With Xinerama
« Reply #2 on: November 01, 2013, 06:04:09 pm »
Why would it be low on the list? You're excluding many users.
My website.
BuildMyCode developer.
My GitHub: https://github.com/Mischa-Alff
Twitter: https://twitter.com/MisterAster
Aster @ irc.boxbox.org, irc.esper.net, chat.freenode.net

Aster

  • Full Member
  • ***
  • Posts: 130
    • View Profile
    • Destrock
Re: SFML Windowing Does Not Work With Xinerama
« Reply #3 on: November 01, 2013, 06:06:14 pm »
Made an issue on GitHub, I'll look into fixing it, I guess.
My website.
BuildMyCode developer.
My GitHub: https://github.com/Mischa-Alff
Twitter: https://twitter.com/MisterAster
Aster @ irc.boxbox.org, irc.esper.net, chat.freenode.net