<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/01/2017 08:38 AM, Jeff Kurzner
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:016101d30acb$7e743460$7b5c9d20$@mindshaft.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:Consolas;color:black;background:#F0F7FF">First
time install of lubuntu for a Plex server on ASUS
hardware. System seems to work fine and I get HDMI hi res
output from the HDMI connector, but no audio. Is there some
setting I am missing? </span><o:p></o:p></p>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 13px;"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon"
target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" style="width: 46px; height: 29px;"
moz-do-not-send="true" height="29" width="46"></a></td>
<td style="width: 470px; padding-top: 12px; color:
#41424e; font-size: 13px; font-family: Arial, Helvetica,
sans-serif; line-height: 18px;">Virus-free. <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link"
target="_blank" style="color: #4453ea;"
moz-do-not-send="true">www.avast.com</a> </td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1"
height="1" moz-do-not-send="true"> </a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p>Hi,</p>
<p>I you can enable it through PulseAudio Volume Control as arcesson
said.</p>
<p>You can also make a specific set of rules and scripts to do it
automatically (more or less).</p>
<p>I have these files, but I do not think I can attach them directly
(I learned this from the ever helpful Arch Wiki), so here they are
:</p>
<p><b>/usr/bin/hdmi-switch</b></p>
<p><tt>#!/bin/bash</tt><tt><br>
</tt><tt>## TAKEN from ARCH wiki... thanks guys for always being
awesome :D</tt><tt><br>
</tt><tt>#<a class="moz-txt-link-freetext" href="https://wiki.archlinux.org/index.php/PulseAudio/Examples#HDMI_output_configuration">https://wiki.archlinux.org/index.php/PulseAudio/Examples#HDMI_output_configuration</a></tt><tt><br>
</tt><tt>USER_NAME=$(w -hs | awk -v vt=tty$(fgconsole) '$0 ~ vt
{print $1}')</tt><tt><br>
</tt><tt>USER_ID=$(id -u "$USER_NAME")</tt><tt><br>
</tt><tt>HDMI_STATUS=$(</sys/class/drm/card0/*HDMI*/status)</tt><tt><br>
</tt><tt><br>
</tt><tt>export
PULSE_SERVER="unix:/run/user/"$USER_ID"/pulse/native"</tt><tt><br>
</tt><tt><br>
</tt><tt>if [[ $HDMI_STATUS == connected ]]</tt><tt><br>
</tt><tt>then</tt><tt><br>
</tt><tt> sudo -u "$USER_NAME" pactl --server "$PULSE_SERVER"
set-card-profile 0 output:hdmi-stereo+input:analog-stereo</tt><tt><br>
</tt><tt>else</tt><tt><br>
</tt><tt> sudo -u "$USER_NAME" pactl --server "$PULSE_SERVER"
set-card-profile 0 output:analog-stereo+input:analog-stereo</tt><tt><br>
</tt><tt>fi</tt></p>
<p><br>
</p>
<p>AND</p>
<p><b>/etc/udev/rules.d/99-hdmi_sound.rules</b></p>
<p><tt>KERNEL=="card0", SUBSYSTEM=="drm", ACTION=="change",
RUN+="/usr/bin/systemctl start hdmi_sound_toggle.service"</tt></p>
<p>AND finally:<br>
</p>
<p><b>/etc/systemd/system/hdmi_sound_toggle.service</b></p>
<p><tt>[Unit]<br>
Description=hdmi sound hotplug<br>
<br>
[Service]<br>
Type=simple<br>
RemainAfterExit=no<br>
ExecStart=/usr/bin/hdmi_switch<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
</tt></p>
<p><tt></tt><br>
</p>
<pre class="moz-signature" cols="72">--
Regards</pre>
</body>
</html>