Skip to content
Browse files

Deprecates need for 'unclutter'. This fix both frees up memory and pr…

…events the cursor from flashing.
  • Loading branch information...
1 parent 9805a9a commit 5393677743756e7cdff1bd68e97c96bc3f6d53d5 @vpetersson vpetersson committed
Showing with 10 additions and 5 deletions.
  1. +2 −1 misc/install.sh
  2. +5 −0 misc/upgrade.sh
  3. +3 −4 misc/xloader.sh
View
3 misc/install.sh
@@ -19,7 +19,7 @@ echo "(This might take a while.)"
sudo apt-get -y -qq upgrade > /dev/null
echo "Installing dependencies..."
-sudo apt-get -y -qq install git-core python-pip python-netifaces python-simplejson python-imaging python-dev uzbl unclutter sqlite3 supervisor omxplayer x11-xserver-utils watchdog chkconfig feh > /dev/null
+sudo apt-get -y -qq install git-core python-pip python-netifaces python-simplejson python-imaging python-dev uzbl sqlite3 supervisor omxplayer x11-xserver-utils watchdog chkconfig feh > /dev/null
echo "Downloading Screenly-OSE..."
git clone git://github.com/wireload/screenly-ose.git ~/screenly > /dev/null
@@ -62,6 +62,7 @@ ln -s ~/screenly/misc/gtkrc-2.0 ~/.gtkrc-2.0
ln -s ~/screenly/misc/lxde-rc.xml ~/.config/openbox/lxde-rc.xml
[ -f ~/.config/lxpanel/LXDE/panels/panel ] && mv ~/.config/lxpanel/LXDE/panels/panel ~/.config/lxpanel/LXDE/panels/panel.bak
[ -f /etc/xdg/lxsession/LXDE/autostart ] && sudo mv /etc/xdg/lxsession/LXDE/autostart /etc/xdg/lxsession/LXDE/autostart.bak
+sudo sed -e 's/^#xserver-command=X$/xserver-command=X -nocursor/g' -i /etc/lightdm/lightdm.conf
echo "Quiet the boot process..."
sudo cp /boot/cmdline.txt /boot/cmdline.txt.bak
View
5 misc/upgrade.sh
@@ -12,6 +12,11 @@ sudo chown -R pi:pi /home/pi/.screenly
echo "Installing feh (if missing)..."
sudo apt-get -y -qq install feh
+echo "Removing 'unclutter' and replacing it with a better hack."
+sudo apt-get -y -qq remove unclutter
+sudo killall unclutter
+sudo sed -e 's/^#xserver-command=X$/xserver-command=X -nocursor/g' -i /etc/lightdm/lightdm.conf
+
echo "Fetching the latest update..."
cd $SCREENLY
git pull
View
7 misc/xloader.sh
@@ -4,10 +4,9 @@ LOG=/tmp/screenly_xloader.log
echo "Disabling screen power savings..." > $LOG
-xset s off # Don't activate screensaver
-xset -dpms # Disable DPMS (Energy Star) features
-xset s noblank # Don't blank the video device
-unclutter -idle 0 -visible & # Hide the mouse cursor
+xset s off # Don't activate screensaver
+xset -dpms # Disable DPMS (Energy Star) features
+xset s noblank # Don't blank the video device
sleep 5

0 comments on commit 5393677

Please sign in to comment.
Something went wrong with that request. Please try again.