SlaXBMC FAQ

What is the SlaXBMCRPi pre-built image login details

Username: root
Password: slaxbmcrpi
NOTE: After login you can change the default root password (please DO that!) using the command passwd



How can I play sound through all available output/devices (simultaneous audio) in SlaXBMC 14.2?

   In order to allow simultaneous audio output (even on hotplug devices like USB wireless headset) you need to make some changes to two system files:

Edit rc.pulseaudio file
  • Exit from KODI to Desktop
  • Start a console window by pressing Alt+F1 or from the desktop menu (right click) -> xterm
  • In console type in the command /etc/rc.d/rc.pulseaudio stop to stop pulseaudio
  • In console type mc to start midnight commander and use the arrows to browse to /etc/rc.d (you can go one directory back in mc by selecting /.. on the file listing panel. The current path is shown at the top of the listing panel)
  • Highlight using the arrows the rc.pulseaudio file
  • Press F4 to edit the file
  • Delete the --disallow-module-loading parameter from the two lines appearing in the pulse_start() function
  • Press F2 to save the changes and then F10 to exit edit mode
Edit system.pa file
  • Still in mc from the previous task use the arrows to browse to /etc/pulse (you can go one directory back in mc by selecting /.. on the file listing panel. The current path is shown at the top of the listing panel)
  • Highlight using the arrows the system.pa file
  • Press F4 to edit the file
  • At the bottom of the file append the following code
          ### Enable Simultaneous sound to all cards
          load-module module-combine-sink sink_name=combine
          set-default-sink combine
  • Press F2 to save the changes and then F10 twice to exit edit mode and mc
  • In console type in the command /etc/rc.d/rc.pulseaudio start to start pulseaudio
  • Verify the combine sink has been created by typing the command pamixer --list-sinks in console. Your output should look similar to:
             Sinks:
             0 "alsa_output.pci-0000_00_08.0.analog-stereo" "Built-in Audio Analog Stereo"
             1 "combine" "Simultaneous output to Built-in Audio Analog Stereo, 2.4G Wireless Headset Analog Stereo"
             5 "alsa_output.usb-_2.4G_Wireless_Headset-00.analog-stereo" "2.4G Wireless Headset Analog Stereo"
  • Close the console window and start KODI from the desktop menu (right click) -> Start XBMC
  • In KODI verify that System -> Setings -> System -> Audio output is set to Default, Default Output Device (PULSEAUDIO)


When I exit XBMC instead of the Desktop I see a black screen

  This problem is most common on Raspberry Pi where the desktop does not refresh automatically when exiting from XBMC to Desktop. You can force a refresh by pressing Alt+Ctrl+F2 to exit into terminal mode followed by Alt+Ctrl+F7 to get back in the (now visible) Desktop.

  To automate the above process and fix this permanently:
  • Exit into terminal mode with Alt+Ctrl+F2
  • Login as root
  • Start mc and browse using the arrows into /usr/local/bin
  • Highlight using the arrows the QuitXBMCtoDesktop file
  • Press F4 to edit the file 
  • Append at the end (after the "kill..." line) chvt 2 && sleep 1 && chvt 7 followed by <enter>
  • Press F2 to save the changes
  • Press F10 twice and confirm the exit from mc
  • Press Alt+Ctrl+F7 to get back in your Desktop


When I start up XBMC for the first time I see a black screen

  This error is most of the times related to the remote communication server being unable to start. To overcome this press the full screen keyboard toggle key (normally "\") twice with a few seconds delay between key-presses. If "\" does not work for you try also "#" and "ALT+ß".


I am stuck on the Desktop and a window is trying to start PulseAudio

  PulseAudio with module-combine-sink is the default setup on all SlaXBMC flavours. Some systems don't really like this configuration as a result PulseAudio is stuck in an eternal loop and therefore need to be disabled and the system be switched back to ALSA. The Frodo  update "Config*" packages on SlaXBMC 14.0 allow users to manage easily the PulseAudio/ALSA switch process from the Desktop using the right click menu Multimedia->Audio section. To get the updates on your system:
  • Start an xterm console window from the right click menu on the Desktop (or press Alt+F2 however you will need the xterm later on anyway). Then type QuitXBMCtoDesktop followed by <enter>. This should stop the PulseAudio window from appearing again for the time being
  •  Download (i.e. in /opt maybe using wget or firefox) the three update Config*1.1*.txz packages according to your architecture from: 
    or
    http://www.slackware.org.uk/slaxbmc/14.0/slaxbmc64-14.0/updates/frodo/
    NOTE: SlaXBMCRPi 14.0 has the above mentioned packages already installed
  • In the xterm console window browse to the folder you have download the update packages above like cd /opt
  • Upgrade the existing Config*.txz packages by issuing the command upgradepkg Config*1.1*.txz
  • Type pa_conf disable to remove completely PulseAudio from the automated startup process
    The switching process should now be made available from the Desktop using the right click menu Multimedia->Audio section.


How can I disable the PulseAudio module-combine-sink feature

   To remove the PulseAudio module-combine-sink feature:
  • Exit XBMC to Desktop
  • Start an xterm console window from the right click menu on the Desktop
  • Type mc to start up Midnight Commander and browse using the arrows into /etc/pulse
  • Highlight using the arrows the default.pa file
  • Press F4 to edit the file 
  • Comment the last two lines of the file by pre-pending # on each line
  • Press F2 to save the changes
  • Press F10 twice and confirm the exit from mc



I am not able to connect to my router using WiFi

  Please make sure you have installed the packages that exist under each SlaXBMC architecture missed+found folder. You can browse the complete distribution structure here


I don't have power saving features enabled on my HTPC

  Please make sure you have installed the packages that exist under each SlaXBMC architecture missed+found folder. You can browse the complete distribution structure here


How do I install stuff through xterm? I can't get apt-get to work

  On SlaXBMC (just like on Slackware) the (automated) package managing process is done using slackpkg. It should be noted that Slackware packages have a tgz or txz extension and there are some tools like rpm2txz, rpm2tgz, deb2tgz which can convert other package formats like rpm/deb to tgz/txz. To use slackpkg:
  • Exit XBMC to Desktop
  • Start an xterm console window from the right click menu on the Desktop
  • Type mc to start up Midnight Commander and browse using the arrows into /etc/slackpkg/
  • Highlight using the arrows the mirrors file 
  • Press F4 to edit the file 
  • Remove the # character from the beginning of the line with the ftp or http Slackware mirror close to you
  • Press F2 to save the changes
  • Press F10 twice and confirm the exit from mc
  • Type slackpkg update to update your local copy of available packages with the ones in the mirror
  • You can now search for a package i.e. slackpkg search firefox
  • And use the full name provided from your search on the previous step to download/install it i.e. slackpkg install mozilla-firefox-18.0.2-i486-1_slack14.0
  • To install all security patches use slackpkg upgrade patches
  The above process can also be done manually using the old time classic installpkg/upgradepkg/removepkg/pkgtool programs. Their name is self explanatory, where:
  • installpkg <package name>  is used to install a package 
  • removepkg <package name> is used should you need to remove a package
  • upgradepkg <package name> is used to upgrade an existing package
  • pkgtool is a menu driven combination of the above
  Obviously to use the manual method the required package (*.tgz or *.txz) need to be downloaded first (maybe via a browser or wget)

  NOTE: As of SlaXBMC 14.2 you can use the extended slackpkg script slackpkgext from the right-click menu (System Tools->SlaXBMC Package Tool) on the desktop or a console window to perform the tasks described above in a single window and semi-automated manner.



I am not able to shutdown my HTPC using XBMCs Shutdown menu

  By default SlaXBMC will restart any terminated XBMC session, unless the Exit option is selected on the XBMC menu which allows exiting from XBMC to the Desktop.
  This feature is put in place on purpose to accustom for those users with headless setups and/or use only their TV remote to navigate in XBMC; so in the event of an unfortunate XBMC crash, due to a bug or badly encoded media, they won't be looking for a keyboard/mouse in order to get back into XBMC).
   To bypass the above behavior and allow the XBMC Shutdown menu indeed shutdown your HTPC:
  • Exit XBMC to Desktop
  • Start an xterm console window from the right click menu on the Desktop
  • Type cp /usr/local/bin/QuitXBMCtoDesktop /usr/local/bin/ShutdownXBMC
  • Then type mc to start up Midnight Commander and browse using the arrows into /usr/local/bin/
  • Highlight using the arrows the ShutdownXBMC file 
  • Press F4 to edit the file 
  • Type at the end of the file in a new line shutdown -h now
  • Press F2 to save the changes
  • Press F10 to exit the edit mode
  • Browse again using the arrows into /usr/share/xbmc/addons/skin.confluence/720p/
  • Highlight using the arrows the DialogButtonMenu.xml file
  • Press F4 to edit the file 
  • Using the arrows go down the file (around line 99), locate the string XBMC.Powerdown()and replace it with System.Exec(ShutdownXBMC)
  • Press F2 to save the changes
  • Press F10 twice and confirm the exit from mc
NOTE: The power control functionality is embedded in KODI as of SlaXBMC 14.2 Krypton 17.6 upgrade


----
Kudos to BlackSoul and Kite Lau for some of the tips and fixes above

No comments: