diff options
author | Srikant Patnaik | 2015-02-24 07:19:08 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-24 07:19:08 +0530 |
commit | df6a97d632caf6da498cac2046f910fd246945f3 (patch) | |
tree | 87d3f54a79ea873b900105c9b2461f0313fee112 | |
parent | b52f7360b59850061f1b5be49baffa6464d40da2 (diff) | |
download | FOSSEE-netbook-patcher-df6a97d632caf6da498cac2046f910fd246945f3.tar.gz FOSSEE-netbook-patcher-df6a97d632caf6da498cac2046f910fd246945f3.tar.bz2 FOSSEE-netbook-patcher-df6a97d632caf6da498cac2046f910fd246945f3.zip |
a dependency for HDMI, chvt.sh
-rwxr-xr-x | probe-hdmi/chvt.sh | 3 | ||||
-rwxr-xr-x | probe-hdmi/probe-hdmi.sh | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/probe-hdmi/chvt.sh b/probe-hdmi/chvt.sh new file mode 100755 index 0000000..eb2bd96 --- /dev/null +++ b/probe-hdmi/chvt.sh @@ -0,0 +1,3 @@ +# This file goes in /etc/lightdm +# It is useful for refreshing lightdm (sometime requires) +chvt 1 && chvt 7 diff --git a/probe-hdmi/probe-hdmi.sh b/probe-hdmi/probe-hdmi.sh index ef748b6..e3b092e 100755 --- a/probe-hdmi/probe-hdmi.sh +++ b/probe-hdmi/probe-hdmi.sh @@ -62,10 +62,10 @@ fi function try_lightdm_restart() { while true; do - sudo restart lightdm + sudo service lightdm restart [ $(service lightdm status|grep -o start) == 'start' ] && break done - killall probe_hdmi.sh + #killall probe_hdmi.sh } @@ -77,7 +77,7 @@ kernel_resolution=$(cat /sys/class/graphics/fb1/modes | cut -d ':' -f2 | cut -d if [ $kernel_resolution == '1024x720p' ] && [ ! -f $xorg ]; then -message -w 500 -h 400 "There are two possible settings, A and B. You are in Setting-A (default setting).\\nIt is recommended to connect HDMI/HDMI-to-VGA cable to netbook and restart. HDMI might work with thick bottom bar.\\n Select 'Ok' to continue" +message -w 500 -h 400 "There are two possible settings, A and B. You are in Setting-A (default setting).\\nIt is recommended to connect HDMI/HDMI-to-VGA cable to netbook and restart. HDMI might work with thick bottom bar. You can also use this application through console by typing 'probehdmi'.\\n Select 'Ok' to continue" return_code_A=$(question -w 600 -h 300 "If setting-A doesn't work, you may try setting-B. The setting-B will make your bottom panel unavailable on netbook screen, but HDMI might work in full screen mode. Your desktop will be reloaded.\\nSelect 'Ok' to try setting-B, select 'Cancel' to continue Setting-A. \\nYou may change from setting-B to setting-A anytime by revisiting this application." 2>&1) |