It is currently Fri Jun 25, 2021 9:01 pm
All times are UTC + 8 hours


Linux Center is Linux Container APP, can run different isolated Linux systems on Asustor Nas system using a single Linux kernel.

Re: Sound?

Postby Nazar78 » Tue Feb 25, 2020 10:18 am

1. What apps are you running inside and outside of LXC?

2. Use iostat watch for iowait percentage to see how much disk activities that caused the video to stutter.

3. Try using deadline scheduler when using DE (desktop environments). By default Asustor is using CFQ.

4. Go max 8GB ram, 4GB is a bit low for DE. If the ram usage is low, try adjusting the swappiness (default 60) or disabling swap? I have 16GB yet sometimes the OS tries to swap which caused unwanted disk IO that I disabled the swap entirely. Test first for few days to avoid OOM situation.
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
User avatar
Posts: 295
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: Sound? <TEMP FIX>

Postby yabba234 » Mon Jan 25, 2021 1:26 am

Nazar78 wrote:Just to share a temporary remedy (until they, Asustor themselves, fixed this) for anyone running into this missing sound issue in the Linux Center Debian Desktop after reboot because /dev/snd is not setup by default. As far as I know it's only setup by the Asustor Portal but only one app can be enabled at one time.

Probably in the future I could provide a package app containing diff patch for this but for now I'll try to describe below for someone who's new to unix. If anyone knows a better way to initialize the sound please feel free to share.

1. SSH into your NAS (Windows use putty, Mac use terminal) as root, pass same as admin,
Code: Select all
ssh root@
where the IP is your NAS IP. Ensure SSH is already enabled in the Services->Terminal->SSH prior.

2. Assuming Linux Center has already been installed, edit this file using vi, enter:
Code: Select all
vi /usr/local/AppCentral/linux-center/CONTROL/

3. After opening the file, move your cursor caret to beginning of line 10 which contains several spaces followed by "/sbin/ldconfig" (refer attached screenshot). Get into the insert mode by pressing "i", press enter once to move down the line, place back the cursor at line 10 then paste below (Windows putty paste using right-click):
Code: Select all
                # Fix missing sound upon reboot
                # Requires ASPortal and but disabled
                if [ "`grep HDMI=1 $APP_CENTRAL/linux-center/containers/debian/container.conf`" != "" ] && [ "`$APP_CENTRAL/xorg/usr/bin/amixer|grep PCM`" = "" ];then
                        for i in asportal remote-center web-browser xorg;do
                                apkg --disable $i>/dev/null 2>&1
                        for i in xorg asportal;do
                                $APP_CENTRAL/$i/CONTROL/ start>/dev/null 2>&1
                        while [ "`$APP_CENTRAL/asportal/webman/general.cgi --act run_app --app "ASUSTOR Portal"|grep '"success": true'`" = "" ];do
                                [ $BREAK -ge 60 ] && break
                                sleep 1
                        while [ "`$APP_CENTRAL/xorg/usr/bin/amixer|grep PCM`" = "" ];do
                                [ $BREAK -ge 60 ] && break
                                sleep 1
                        sleep 5
                        for i in asportal xorg;do
                                $APP_CENTRAL/$i/CONTROL/ stop>/dev/null 2>&1
                # Fix missing sound upon reboot

Screenshot from 2020-01-17 02-45-41.png

4. After inserting the lines above, press "ESC" to exit the insert mode then enter ":wq" to save and quit. At anytime you messed up, press "ESC" then enter ":q!" to quit without saving after which you can retry editing again. The usual undo/redo doesn't seems to work with the busybox version of vi!

5. Restart your NAS if the sound is already missing, else this should work the next time your NAS reboot. Note Asustor Portal and needs to be installed but disabled. Also avoid remote sessions like Chrome Remote Desktop as another session would mess up the alsa/pulseaudio or even inputs and could also lockup the HDMI audio sink until next reboot. Use VNC instead.

Final words... After fixing the sound issue, a few tweaks/mods here and there, I'm overall satisfied with the Nimbustor4. Running LXC on the NAS, I could also run few games from Steam like CS:GO on medium settings FHD. The passthrough 5.1 surround also seems to be working well including smooth 4K 100mbps HEVC 10bit video playback on VLC and hardware video decoding acceleration on Chromium. Really wondering why Asustor is still sticking with its sluggish AS Portal? So no more going back to Asustor Portal for me but I'll not replace the core ADM with Ubuntu for its firmware/bios support.

This metod don't work on my Lockestor 2.
Can you share how install ubuntu container over debian 10 ? Maybe sound will be work under ubuntu ??
BTW: Asustor has probably the best hardware in us, but the firmware responsible for using the hdmi output is underdeveloped - no sound, no autodiscovery hdmi output devices - I must restart all nas to discovery appears video output - this is ridiculous !!
Unfortunately - the competition has it 100% refined
Asustor 6602T with 2TB IronWolf and 2x 16GB ssd cashe Optane, backup external drive 8TB + 1TB, Synology RT1900,UPS ACP500, Razer Balde Base 2020, Iphone X
Posts: 22
Joined: Wed Jan 20, 2021 5:44 pm


Return to Linux-Center

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests