smd-driver as a separate app (will allow xbmc without xorg)

Got a feature request? Great! Post your ideas here!
sadyc
Posts: 15
youtube meble na wymiar Warszawa
Joined: Fri Jul 04, 2014 4:35 pm

smd-driver as a separate app (will allow xbmc without xorg)

Post by sadyc »

Hello.

The only reason xbmc depends on xorg (and asportal) is because it needs the hw drivers found in xorg/smd-driver.

1. Please spin-off smd-driver as a separate package/app
2. make xorg depend smd-driver app
3. make xbmc depend on smd-driver instead of xorg & asportal; this will require minor tweaks to xbmc start script like this:

Code: Select all

--- /usr/local/AppCentral/xbmc/CONTROL/start-stop.sh
+++ /usr/local/AppCentral/xbmc/CONTROL/start-stop.sh
--- /root/xbmc-start-stop.sh
+++ xbmc/CONTROL/start-stop.sh
@@ -11,6 +11,8 @@
 PKG_PATH=/usr/local/AppCentral/xbmc
 ASPORTAL_PATH=/usr/local/AppCentral/asportal
 ASPORTAL_STAT="`apkg --info-installed asportal | grep 'Enabled:' | awk '{print $2}'`"
+XORG_STAT="`apkg --info-installed xorg | grep 'Enabled:' | awk '{print $2}'`"
+DRV_PATH=/usr/local/AppCentral/xorg/smd-driver

 NAME=xbmc
 RUN_XBMC=$PKG_PATH/run_xbmc.sh
@@ -29,10 +31,12 @@
         [ -e "/usr/share" ] || mkdir -p /usr/share
         [ -e "/usr/share/ffmpeg" ] || ln -sf  $PKG_PATH/ffmpeg-smd/usr/share/ffmpeg /usr/share

-       if [ -e "$ASPORTAL_PATH" ]; then
-            if [ "Yes" == "$ASPORTAL_STAT" ]; then
+       #if xorg is disabled, we need to load the drivers from it
+       if [ "No" == "$XORG_STAT" ]; then
+               $DRV_PATH/start-stop.sh start
+       fi
+       if [ -e "$ASPORTAL_PATH" ] && [ "Yes" == "$ASPORTAL_STAT" ]; then
                $ASPORTAL_PATH/CONTROL/start-stop.sh reload &
-            fi
        else
             $RUN_XBMC
        fi
I've tested xbmc without xorg/asportal on my NAS and it works very well.
If needed, I am willing to help on this and also beta test.

--sadyc
Last edited by sadyc on Mon Jul 07, 2014 5:58 am, edited 1 time in total.
User avatar
Kapitein Haak
Posts: 333
Joined: Tue Oct 15, 2013 2:40 pm
Location: Stranded on the Dutch coast.

Re: smd-driver as a separate app (will allow xbmc without xo

Post by Kapitein Haak »

+1, I have no need for Xorg as the only program delivering output to HDMI is XBMC on my NAS. It would save me some RAM

BR, Kapitein Haak.
"What would the world be like without Captain Hook?"
---
"Homo sapiens non urinat in ventum" (A wise man doesn't piss into the wind), only in Amsterdam:
https://www.google.nl/maps/@52.36289,4. ... 312!8i6656
sadyc
Posts: 15
Joined: Fri Jul 04, 2014 4:35 pm

Re: smd-driver as a separate app (will allow xbmc without xo

Post by sadyc »

Kapitein Haak wrote:+1, I have no need for Xorg as the only program delivering output to HDMI is XBMC on my NAS. It would save me some RAM
In the meantime, check my guide here: http://forum.asustor.com/viewtopic.php?f=65&t=3850.