[Atrix 4G Q&A, Help & Troubleshooting] SGTShark:
Ok I'm on the OTA 2.3.4 from a fresh unlocked 4.1.83 no problems what soever and I'm looking to make a few mods when I saw the link posted for the 2.3.4 HDMI Mirror over at

http://xdaforums.com/showthread.php?t=1169457

I went ahead and ran

adb shell

su

mount -o remount,rw /dev/block/mmcblk0p12 /system

sed -ie s/ro.hdmi.mirror.enable=false/ro.hdmi.mirror.enable=true/g /system/build.prop

mount -o remount,ro /dev/block/mmcblk0p12 /system

cd /etc/init.d

cp startXServer.sh startXServer.bak

(head -n 40 startXServer.bak; echo "if [ ! -e /var/run/noWebtop ]; then"; tail -n 12 startXServer.bak; echo "fi") > startXServer.sh

restart your phone

I read through the command and seemed pretty safe and was excited because the post listed the HDMI Mirror as being in "landscape" mode. Hell yeah right! Well it wasn't, it was the same portrait so I was looking to revert back. Go change the build.prop back for the ro.hdmi.mirror to equal false. No big deal that's easy enough with root explorer. Read through the commands and saw that the startXServer.sh was cp to startXServer.bak. Easy enough just delete the startXServer.sh and rename startXServer.bak to .sh.

Well there is the problem. When i ran the commands the first time didn't work so i went into the build.prop and did a manual change. Then re-ran the bottom half. It seems doing that I over wrote the .bak agan and now both files are exactly the same and have no way of reverting. I have the system, boot, and webtop backed up with an .img but that didn't fix my entertainment center when I plug in an HDMI to the TV. The original commands did a back-up so I didn't double back-up the file.lol

I was wondering if a dev that has a little more command line knowledge, maybe the orginal contents of startXServer.sh, or the actual file could help me out with the revert back and a working entertainment center. The current contents are

if [ ! -e /var/run/noWebtop ]

fi

I'm pretty sure that's the problem, unless someone else sees something I'm missing.

**Edit**

This was solved under the Q&A Section from a earlier post yesterday afternoon. Mods please close if necessary. In case any one needs it see below. I just rewrote the startXServer.sh to contain the following.

#!/bin/sh

#

# startX.sh

#

# This script starts the X server

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

NAME=startX

DESC="OSH X Server"

. /lib/lsb/init-functions

#umask 002

log_begin_msg "Starting $DESC: $NAME"

rm -f /tmp/serverauth.*

rm -f /tmp/.X0-lock

rm -fr /tmp/.X11-unix

rm -fr /tmp/.ICE-unix

if [ ! -e /home/adas/.tag_master_reset_ls ]; then

/usr/local/sbin/update-language.pl "en_US.UTF-8"

echo 1 > /home/adas/.tag_master_reset_ls

fi

. /etc/environment

export PATH

export LANG

export DISPLAY

export LD_LIBRARY_PATH

export USER=adas

export HOME=/home/$USER

# new way of starting

if [ $1 = "webtop" ]

then

sudo -u adas -i /usr/bin/startx -- -nolisten tcp -layout HDMI vt2 &

else

sudo -u adas -i /usr/bin/startx /usr/local/bin/xnull -- -nolisten tcp -layout HDMI vt2 &

fi