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

Author Topic: Failure without XRandR support  (Read 2080 times)

0 Members and 1 Guest are viewing this topic.

fnoord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Failure without XRandR support
« on: March 14, 2012, 11:40:15 pm »
Hey,

I am trying to use SFML (latest 2.0 snapshot) on Gentoo Linux.
As I have to use the nvidia binary driver I can not use XRandR.
(xrandr just stats: RandR extension missing).

Now when I try to run sf::RenderWindow App(sf::VideoMode(100, 100), "window") I get the error
"Failed to use the XRandR extension while trying to get the desktop video modes"
printed to my stderr (twice). The window just flickers once and the application terminates immediately.
Any idea why this is happening? As many people still can not use XRandR (binary drivers from nvidia) I guess this is not the only thing going wrong.

There currently is only one monitor connected, so nothing too fancy...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Failure without XRandR support
« Reply #1 on: March 15, 2012, 07:50:47 am »
Quote
As I have to use the nvidia binary driver I can not use XRandR

Why?
Sorry to ask such a stupid question, but have you installed xrandr?
Laurent Gomila - SFML developer

fnoord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Failure without XRandR support
« Reply #2 on: March 15, 2012, 05:22:05 pm »
XRandR (xrandr and libXrandr) is installed, but there is no or only insufficient support for it by the nvidia binary driver, so the module is not loaded/extension is turned off.

fnoord

  • Newbie
  • *
  • Posts: 3
    • View Profile
Failure without XRandR support
« Reply #3 on: March 15, 2012, 06:55:10 pm »
Seems that just turning on XRandR and disabling Xinerama which was loaded for some unknown reason in xorg.conf does fix the problem for me.