← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 1308105]

 

Looking at Sean's comment of 2015-02-19, it appears that a functional
patch is still being sought.  I am experiencing the problem of the
display not coming back when it is reconnected.  I'm posting this in
hopes that it assists the maintainers of the code in resolving the
issue.  With the 4.12 branch from git, I was able to reproduce this bug
with just a regular desktop (non HDMI) by disconnecting and reconnecting
the monitor.  When the monitor was reconnected, the screen does not
resume.

In the xfce_displays_helper_screen_on_event function in the top section
it has the condition of the disconnection of the monitor.  In that
section it is calling a forced disable of the crtc via

  crtc->mode = None;
  xfce_displays_helper_disable_crtc (helper, crtc->id);

However, in the else condition below where it is adding in new outputs,
the crtc is still in a disabled status when this gets executed after the
cable has been reattached.  (mode = None, width=0, etc)

I think that the proper solution is to get the crtc re-enabled/refreshed
upon reconnection and I'm hoping that those that actually know this code
would know how to do this (I tried a couple of options across various
functions but they did not work).

The interim "hack" solution that seems to work for me is to comment out
the code that is disabling the crtc.  This doesn't seem to spawn
additional displays but may other regression problems.  And since it is
a true hack rather than a correct solution, I'm not attaching it as a
patch.

Hope this helps, let me know if testing is needed or if you can point me
to the proper method of getting the crtc information refreshed.

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/1308105

Title:
  Xfce resets TV mode to NULL when power cycled

Status in Mythbuntu:
  Confirmed
Status in xfce4-settings:
  Confirmed
Status in nvidia-graphics-drivers package in Ubuntu:
  Invalid
Status in nvidia-graphics-drivers-331 package in Ubuntu:
  Invalid
Status in xfce4-settings package in Ubuntu:
  Confirmed

Bug description:
  I had an HTPC with Mythbuntu 12.04 installed.  Upon upgrading a new
  behavior that if the TV is power cycled it no longer detects a link
  with the HTPC.

  When this happens I can find in the xorg log that there is an
  accompanying log item:

  [ 39829.509] (II) NVIDIA(0): Setting mode "NULL"

  After debugging with NVIDIA at
  https://devtalk.nvidia.com/default/topic/729955/linux/tv-stops-being-
  detected/ we've deteremined it's a X client that reacts to the RANDR
  events causing the mode to be set to NULL.

  Working through the list in an Xfce environment, the culprit is
  xfsettingsd.  If xfsettingsd is running, it causes the TV to come up
  in a NULL mode.  If it's killed, it remains in the mode it was
  previously running in.

  
  Until this is fixed, this behavior can be worked around with a simple shell script:
  ==============================
  #!/bin/sh
  #Fix TV state when HDMI link is lost.
  #By Mario Limonciello <superm1@xxxxxxxxxx>

  OUTPUT="HDMI-0"
  BAD_MODE="1280x720"
  GOOD_MODE="1920x1080"

  for MODE in $BAD_MODE $GOOD_MODE; do
   DISPLAY=:0 xrandr --output $OUTPUT --mode $MODE
   sleep 2
  done
  ==============================

To manage notifications about this bug go to:
https://bugs.launchpad.net/mythbuntu/+bug/1308105/+subscriptions