HUN_Csab_Pi
Posts: 2
Joined: Sun Jan 11, 2015 4:06 pm

Run GUI as root : Xlib: extension "RANDR" missing on displa

Sun Jan 11, 2015 5:06 pm

Dear Forumers,

(First of all I'm beginner in Pi ;) therefore the solution can be easy, but unfortunatelly for me it seems too difficult.)

So, I need support regarding the following problem:
I trying the Pi GPIO functions (blinking, pwm RGB Led) and I created a GUI for it in Qt.

The problem:
If I want to reach the GPIO, I have to run my GUI as root (as far as I know).
When I start the py code with gksudo, I get an error message:
Xlib: extension "RANDR" missing on display ":1"
I tried to find solution via google, but unfortunatelly I couldn't solve it. Maybe this problem related to tightvnc server?

My questions would be the following:
-Should I use another vnc server? (If yes, which vnc server is preferred)
-If it solvable with tightvnc, how?
-If it is not tightvnc related problem, how can I solve it?

Thank you very much in advance,
csab

Sorry for my poor English.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Run GUI as root : Xlib: extension "RANDR" missing on di

Sun Jan 11, 2015 6:12 pm

Ignore the randr message it's not a problem it's simply because of the lack of function in the xwindows server because the hardware can't support it.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

HUN_Csab_Pi
Posts: 2
Joined: Sun Jan 11, 2015 4:06 pm

Re: Run GUI as root : Xlib: extension "RANDR" missing on di

Sun Jan 11, 2015 6:36 pm

Dear Dougie,

Thank you the fast answer.
If I comment the GPIO functions in my code, the GUI start without problem.
If I uncomment the GPIO functions and run it with gksudo, then the GPIO functions works during the start (__init__) ,but unfortunatelly I see only the main frame. The full content is missing inside the GUI. It seems like a frozen window.

Csab

Return to “Graphics programming”