2013-01-30, 04:34
thanks for the help i appreciate it.
count=1
while [ $count -le 5 ]
do
if [ -e /proc/asound/cards ]; then
# echo "ALSA up!"
break
fi
sleep 1
count=`expr $count + 1`
done
# Start the LXDE session
exec /usr/bin/lxsession -s XBMCbuntu -e LXDE
(2013-01-30, 19:16)lcapriotti Wrote: Would anyone pls try and add the following lines in file /usr/bin/startxbmcbuntu :
Code:count=1
while [ $count -le 5 ]
do
if [ -e /proc/asound/cards ]; then
# echo "ALSA up!"
break
fi
sleep 1
count=`expr $count + 1`
done
while [ $count -le 5 ]
(2013-01-31, 15:43)lcapriotti Wrote: do you mind to test again increasing the 5 seconds delay to 10 or more?
Code:while [ $count -le 5 ]
count=1
while [ $count -le 30 ]
do
echo "waiting for ALSA: $count" >> /test/startup.log
if [ -e /proc/asound/cards ]; then
echo "ALSA up!" >> /test/startup.log
break
fi
sleep 1
count=`expr $count + 1`
done
# Start the LXDE session
exec /usr/bin/lxsession -s XBMCbuntu -e LXDE
count=1
while [ $count -le 30 ]
do
touch /test/startup.log
echo "waiting for ALSA: $count" >> /test/startup.log
if [ -e /proc/asound/cards ]; then
echo "ALSA up!" >> /test/startup.log
break
fi
sleep 1
count=`expr $count + 1`
done
(2013-01-31, 17:58)uNiversal Wrote:Code:count=1
while [ $count -le 30 ]
do
touch /test/startup.log
echo "waiting for ALSA: $count" >> /test/startup.log
if [ -e /proc/asound/cards ]; then
echo "ALSA up!" >> /test/startup.log
break
fi
sleep 1
count=`expr $count + 1`
done
The difference being you touch file before you put stuff inside it. idk Try it.
uNi
echo "foo" >> foo.out
(2013-01-31, 18:18)uNiversal Wrote: Sure! In this case creating the file via touch will ensure that your original script is actually being executed too which is likely is not. Sorry for bothering, Ill be out enjoying XBMC.
uNi
Quote:sudo nano /etc/init/lightdm.conf
Quote:start on ((filesystem
and runlevel [!06]
and started dbus
and stopped udevtrigger
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udev-fallback-graphics))
or runlevel PREVLEVEL=S)