You are not logged in.
I have a Latitude E6410 laptop, with the Dell branded docking station. Although it does work, there are some problems I'd like to figure out, namely finding a way to get the screens to switch automatically when docking and undocking. I imagine I can use udev for this, but have no idea how.
When I dock, this command switches the screens appropriately:
xrandr --output DP1 --off --output HDMI1 --auto
When undocking, I just do the opposite:
xrandr --output HDMI1 --off --output DP1 --auto
I would prefer if there was a way I could have this happen automatically. Has anyone done this before?
Offline
does your docking/undocking fire an event? If so, you can call a custom script to switch the screen
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
does your docking/undocking fire an event? If so, you can call a custom script to switch the screen
I apologize and feel silly for not knowing this, but how do I find out if it creates an event?
Offline
It's pretty much similar to checking whether your laptop lid is closed or not. You can check with xev if it fires an event when you undock.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
You probably also could use Acpid.
Offline