xrandr

Automatically resizing X11 display when connecting an external monitor

I have a laptop running Ubuntu to which I connect an external monitor when I'm at the office. Usually this requires me to run "xrandr --auto" in order for the laptop to resize the display to match the external monitor. It would be nice if this could be done automatically, either triggered when the monitor is connected, but it would be en...

Xrandr errors. BadName (named color or font does not exist)

Hi, I've been looking and googling a lot, but I didn't find a solution to this problem. I was successfully using xrandr to extend my desktop in my work place with this little "script". #!/bin/sh xrandr --newmode 1920x1080 220.64 1920 2056 2264 2608 1080 1081 1084 1128 -HSync +Vsync xrandr --addmode VGA 1920x1080 xrandr --output VG...

How to handle "switch from" and "switch to" events in X11?

I'm making a fullscreen OpenGL application, and I want it to restore original desktop mode when user switches away from it, and to restore mode back when user switches to it. This looks like "FocusIn" and "FocusOut" events, but they are not suitable for this. Window will get "FocusOut" as soon as user presses Alt+Tab and window selector ...

xrandr changes X's orientation too slowly

Hello, I'm changing X's orientation with following command xrandr -o left xrandr -o normal ... When orientation is changing screen becomes black for a moment then it switches orientation. So how to get rid of this black screen effect ? Maybe some other options should be added to xrandr ? Regards, Levon ...