You are not logged in.

#1 2011-06-08 23:23:23

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Hoping Someone Can Solve my Docking Station Woes

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

#2 2011-06-09 00:04:03

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Hoping Someone Can Solve my Docking Station Woes

does your docking/undocking fire an event? If so, you can call a custom script to switch the screen


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-06-09 00:09:40

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: Hoping Someone Can Solve my Docking Station Woes

Inxsible wrote:

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

#4 2011-06-09 00:18:08

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Hoping Someone Can Solve my Docking Station Woes

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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-06-10 17:15:29

l'pc
Member
Registered: 2009-10-05
Posts: 22

Re: Hoping Someone Can Solve my Docking Station Woes

You probably also could use Acpid.

Offline

Board footer

Powered by FluxBB