Hot answers tagged

2

You can use udev: # /etc/udev/rules.d/<priority>-<name>.rules ACTION=="add", BUS="usb", SYSFS{serial}="<serial-number>", NAME="<name>", RUN="/your/xrandr/script" (e.g. <priority> might be 50 and <name> docked-monitor) Where the SYSFS and NAME settings come from lsusb. Other options to target the particular device (your ...


1

Follow the manual for Hardware Maintenance from Lenovo for your machine. Pages 52-54, 57-58, 61-62, and 81-83 have important preliminary steps, but pages 92-95 and 98-99 show the key steps in accessing the cable from the top of the motherboard to the LCD assembly. After preparations as shown in the manual, disconnect and reconnect the ribbon cable from the ...


1

This answer suggests, no event is fired on a monitor connect/disconnect event. If it is really so, then it is a major bottleneck of the Linux/X11 GUI in my opinion. That answer suggests polling as a workaround (xrandr --listmonitors shows the connected / disconnected monitors, executing a script periodically would be a solution). However, polling is bad. A ...


Only top voted, non community-wiki answers of a minimum length are eligible