Comment 82 for bug 1308105

Revision history for this message
fkervin (fleckskervin) wrote : Re: Xfce resets TV mode to NULL when power cycled

Hi Everyone,

I'm glad to have found this thread (Many thanks to ToZ in forum.xfce.org): https://forum.xfce.org/viewtopic.php?id=9391

My problem is I read so many possible solutions that I really don't know what to do. I have an intel onboard graphics card and if I turn off TV i have blank screen when later I switch it on again (Xubuntu 14.04)

What is the procedure you reccomend me to do? From last posts here it seems to be a fixed releaded, how do I install?

I've make a recopilation of all the possible solutions I've read here:

****FIRST - Use this script when problem happends:
==============================
#!/bin/sh
#Fix TV state when HDMI link is lost.
#By Mario Limonciello <email address hidden>

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
==============================

My question is: How can I run the script when HDMI link is lost if I've no video signal?

****SECOND - install gnome-settings-daemon and launch on system boot.
It seems too easy to be true, hehe, Do i try?

****THIRD - killall xfsettingsd
In my case I can leave computer on with desktop on screen, so I can't do this on any program boot. Whose are the consequences of killing this application on system boot?
I've read it can causes an undesired problem, fonts are unreadable (could cause some problem with image quality)

****FOUR - Using DVI cable instead of HDMI
I could use a DVI to HDMI cable, at last I can get sound from it, althought I'd prefer maintaining the DVI connection.

****FIVE - downgrade xfce-settings to the 4.11.0 package from Saucy, and locked it at that version (4.11.3 causes the problem).
How can I do this?

****SEVEN - Create xorg.conf and add those lines:
Option "ConnectedMonitor" "DFP1"
Option "UseDisplayDevice" "DFP1"

OR
       Option "ConnectedMonitor" "DFP-0"
       Option "UseDisplayDevice" "DFP-0"

to the "devices" section of /etc/X11/xorg.conf.

Only for nVidia cards

****EIGHT - Install a patched 4.11.3 (from my PPA here: https://launchpad.net/~landronimirc/+archive/ubuntu/collection , includes fix_for_bug11107.patch).
The person who told this seems to not have solved with this procedure. How can I do this? I mean, How can I Install this patched version.

****NINE - Sean's patch, "fix_for_bug11107.patch"
I don't know where to download it from or how to install, it seems to be explained in next option (TEN)

****TEN - Alexander's patch, also Sean's, explained here:
For Ubuntu 14.04, this is how your you can build xfsettings with the patches:

sudo apt-get install xfce4-dev-tools libexo-1-dev libgarcon-1-0-dev libxfce4ui-1-dev
git clone git://git.xfce.org/xfce/xfce4-settings
cd xfce4-settings
curl https://bugzilla.xfce.org/attachment.cgi?id=5681 > alexander-patch.diff
curl https://bugzilla.xfce.org/attachment.cgi?id=5723 > sean-patch.diff
Choose a patch to Apply: patch -p1 < <patch>
./autogen.sh && make && sudo make install
/usr/local/bin/xfsettings --replace

If you wanna to try other patch, first remove what's applied:
patch -R -p1 < <applied patch>

After playing, remember to remove the installed xfsettings:
sudo make uninstall

How to test?:
- if I do `/usr/bin/xfsettingsd --replace` (4.11.3), then I can easily replicate the crash
- if I do `/usr/local/bin/xfsettingsd --replace` (GIT master with Sean's updated patch), the I can no longer replicate the crash

Problem: Mirror display is not available.

----------------------------

So I would really thank if someone can lend me a hand

Regards and thanks in advance