You are not logged in.

#1 2015-01-02 12:00:45

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

Switch video/audio when connecting to monitor using HDMI

Hi,
whenever I connect my laptop (with Arch and Mate DE) to an external monitor using an HDMI cable,
I have to manually open the Display settings to activate the external monitor, set the right resolution and duplicate my screen.
Moreover, I have to go in the sound settings and select the HDMI in the hardware tabs.

While everything works fine, I would like to automate this steps. How can I do that?

Thanks a lot in advance for the help,
Luca.

Offline

#2 2015-01-02 13:30:20

amish
Member
Registered: 2014-05-10
Posts: 470

Re: Switch video/audio when connecting to monitor using HDMI

I dont have answer to your question but for me it works without doing anything. i.e. just attach HDMI cable and audio / video automatically comes via television.

Offline

#3 2015-01-02 13:47:02

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

Re: Switch video/audio when connecting to monitor using HDMI

Hi amish, do you use Mate as well? Or do you have any program that handles this?
To me everything works, but I just have to do all the switching manually...

Offline

#4 2015-01-02 14:04:11

amish
Member
Registered: 2014-05-10
Posts: 470

Re: Switch video/audio when connecting to monitor using HDMI

Oh sorry, I was not aware that Mate DE is different desktop environment. I thought Mate was name of Laptop brand.

I use KDE.

Offline

#5 2015-01-02 16:02:38

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Switch video/audio when connecting to monitor using HDMI

I had this issue under DWM when I used an Arch system on a USB stick at my Dad's house through his mahoosive TV -- I had to put an xrandr command in my .xinitrc.

You could do the same with whatever startup file MATE parses (.xprofile?).

Offline

#6 2015-01-02 18:27:00

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

Re: Switch video/audio when connecting to monitor using HDMI

Thanks Head on a Stick.. could you elaborate a bit more please? I wouldn't know what to do now... (I had to set a .xinit file, is that similar to .xprofile?)

Offline

#7 2015-01-02 18:35:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Switch video/audio when connecting to monitor using HDMI

lucacerone wrote:

Thanks Head on a Stick.. could you elaborate a bit more please? I wouldn't know what to do now... (I had to set a .xinit file, is that similar to .xprofile?)

https://wiki.archlinux.org/index.php/Xrandr
https://wiki.archlinux.org/index.php/Xprofile

If you are starting MATE using ~/.xinitrc just put the xrandr command in that file before the `exec mate-session` bit; if you are using a display manager you will have to put it in ~/.xprofile

Offline

#8 2015-01-02 18:52:06

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

Re: Switch video/audio when connecting to monitor using HDMI

Thanks, I'll give it a try!

Offline

Board footer

Powered by FluxBB