Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

HDMI output port management

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

HDMI output port management

  • Quote

Post by abduct » Sun Oct 21, 2018 10:46 pm

I am looking for a way to manage my HDMI port on my laptop. The features I am looking for are:

1) Swapping the audio source from the speakers to the HDMI output and vice versa when a HDMI source is plugged in
2) Setting the output resolution to that of the maximum supported by the external hardware while maintaining the original resolution on the laptops screen
3) Automatically doing all this so I don't need to manually play with this stuff any more

For a while now 1) was achieved via me editing the /etc/asound.conf alsa uses to switch from card 0 device 0 to what ever my laptops HDMI port was assigned to at the time. I want to automate this.

Next 2) has always been an issue. When ever I issue the `xrandr --output HDMI1 --auto` command it outputs to the TV/monitor as 1080p, but there are distortions on the screen and apps will not full screen due to the laptops resolution being 1280x768. The app will full screen to the laptops monitor, but the TV will only display the full screen application in the upper left corner and have distortions to fill the rest of the screen. I am after having the app fill my monitor, but upscale the display to fill the entire 1080p+ TV/monitor.

Is there a way/application to seamlessly automate the audio switching and properly upscale my laptops display to fill the external sources screen? Afterwards reverse the changes when the HDMI source is removed from the port.

Thanks
Top
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

  • Quote

Post by abduct » Mon Oct 22, 2018 5:56 pm

So I've found some of my old scripts that I've written but I am not quite happy with the outcomes.

Code: Select all

function enable-hdmi () { xrandr --output LVDS1 --auto --output HDMI1 --auto --right-of LVDS1 ; }
This creates a new monitor at 1080p which looks crisp and sharp, but I3 dedicates a virtual workspace to it rather than cloning my current monitor/display. This means I would have to switch to this virtual workspace if I wanted to display something on that monitor. Likewise I can't see this monitor on my laptops screen, which sucks for presentations.

Code: Select all

xrandr --output LVDS1 --mode 1366x768 --scale 1x1 --output HDMI1 --same-as LVDS1 --mode 1920x1080 --scale 0.711x0.711
#Below seems to be the same thing as above, just less verbose. Still blurry though compared to the above command
#xrandr --output HDMI1 --auto --scale-from 1366x768 
Off of google this clones my display, but it is no where near as crisp and is fairly fuzzy/blurry. Everything seems larger compared to the first command. Without the scale option the TV only displays my monitor in the upper left corner and then surrounds it with distortions.

Is there a way to get the crispness of the first command while cloning what I see on my laptop to the TV?

Likewise I am still looking for a way to automate this when a HDMI device is plugged in. I feel that udev might be able to help here, but I've never used it before.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic