1

I'm specifically looking for a way to set up my laptop, when I unplug the external display, to reset the XrandR configuration so I'm only using 1 screen. Any advice?

Basically, I want an acpi event on display disconnect. Is there any way to do that?

0

You need to write an udev rule for your external displays which will trigger your script doing the changes. More explanation on this unix SE question and this blog post.

  • Unfortunately, I don't get a udev event (according to the blog post). Is there another place I can look for a change? Maybe somewhere in the /proc hirearchy? – Aviator45003 May 28 '14 at 3:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.