[mythtv-users] Using tv remote via hdmi to Liva X? also 2 screens
A. F. Cano
afc at shibaya.lonestar.org
Fri Feb 19 22:20:59 UTC 2016
On Tue, Jan 26, 2016 at 08:00:07AM +1300, HP-mini wrote:
> ...
> I didn't think mythtv was designed to respond to CEC commands (thought
> was the other way round).
I have looked around some more in the built-in electronic manual on the
tv itself. It says that there should be setup menu entries related to
CEC but those entries don't actually exist in the actual menus. Maybe
the HDMI cable I have doesn't have that capability and the tv detects
this and thus disables the related CEC menus. Either that or the tv
firmware doesn't match the integrated manual.
In any case, I've ordered a flirc dongle and will configure myth to use
it as soon as I can figure out the 2 screen problem.
> Soln to Screen problems:
> - overscan need to be defeated in the TV setup (justscan direct pixel
> mapping), might have to name the port as "PCinput" or similar
Didn't find any way to do this in the tv menus.
> - separate X screens; multihead using xorg.conf & option "ZaphodHeads".
> http://askubuntu.com/questions/278115/dual-screen-setup-in-ubuntu-with-intel-hd-graphics
Based on this I tried this xorg.conf:
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0" 0 0
Screen "Screen1" RightOf "Screen0"
EndSection
Section "Device"
Identifier "Device0"
Driver "intel"
BusID "PCI:0:2:0"
Option "ZaphodHeads" "VGA1"
Option "AccelMethod" "sna"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "intel"
BusID "PCI:0:2:0"
Option "ZaphodHeads" "HDMI1"
Option "AccelMethod" "sna"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
EndSection
VGA1 and HDMI1 are the names that xrandr finds. It doesn't work as
expected. The first problem is that the Liva X insists on using HDMI1
as the primary interface at boot time and so, if it is connected, the
boot messages go there. There seems to be no bios option to make VGA1
the primary boot interface. When the HDMI interface has nothing plugged
into it, I get the desired behavior: everything (boot, text consoles and
X) displays on the VGA monitor. So, I can't boot with the tv connected
to the HDMI port. This is important because the tv is about 20 ft away
from the computer and keyboard. Xrandr detects and reports that there
is nothing connected to the HDMI port whan that is the case. When the
tv is connected, even if it is off, it reports all the modes and xrandr
displays all the capabilities. With no xorg.conf in place, when the tv
is plugged into the HDMI port, X extends the one display to 3840 x 1080.
The tv is the right part of the one super wide display. When the
xorg.conf above is in place, X creates a second screen overlaid at 0,0
of size 1024 x 768 (if I recall correctly - it's much smaller than the
1920 x 1080 VGA1 display.) When the tv is plugged in, it is unusable as
a secondary display. Maybe I need to specify coordinates and sizes? but
since screen 1 and device 1 are supposed to be on separate displays,
shouldn't both starting coordinates be 0,0? Any ideas out there?
Without the xorg.conf, in the automatic/default mode, plugging in the tv
extends the display, but unplugging it messes up X completely. The
windows become compressed horizontally and duplicated, then X becomes
unusable and a reboot is needed (via ssh).
> I launch MFE from script that:-
> - checks if FE already running
> - starts FE with "DISPLAY=:0.1 mythfrontend"
> - warps the mouse cursor to that screen
> - sends notification to FE if already running.
I will try that when I get the 2-screen problem figured out. Thanks!
>
> MythTV can stop pulseaudio server & use the required alsa device
> directly.. no manual switching needed.
This doesn't seem to be happening here. I'll look into this after I
solve the 2-screen problem. Any other suggestions out there?
Thanks everyone for replying so far (in all the sub-threads).
More information about the mythtv-users
mailing list