no support to set primary output

Bug #701002 reported by herchu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Python-XRandR
New
Undecided
Unassigned

Bug Description

It looks like there is no binding in current version to XRRSetOutputPrimary, which exists in latest version of xrandr. Is there any interest in supporting it?

I could work on patching the python code to add this, though this would also probably up the required version of xrandr to whichever-version-introducing-XRRSetOutputPrimary...

Revision history for this message
Klaas Boesche (klaasboesche) wrote :

I would like to have this feature as well. I wrote a script recently (before knowing about this project here) for switching the primary display and I used cdll.LoadLibrary("libXrandr.so") and XRRSetOutputPrimary, however it did not work somehow, so I just fell back to running xrandr from inside the script... A nice binding would be preferable however.

Revision history for this message
herchu (herchu) wrote :

Klaas, I also fell back to using xrandr from a script. My setup command, "a VGA ouput to the right of the LCD, and setup as primary", looks like: xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1 --primary

It would be nicer if I had done it from python, but that's what I use for now :)

Revision history for this message
Leslie Zhai (xiangzhai83) wrote :

I hacking the xrandr.c in static void apply() function, it can be "Set the screen size" called screen_apply(), BUT there is set_primary()

so Python XRandR Binding could not set_size()

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.