Repository navigation
Closed
Copy link
Labels
Description
PLATFORM:
Trimui Brick (Hammer)
DACs:
- Fiio Snowsky Tiny B
- JCally JM7 Max
NEXTUI VERSION:
NextUI-20260407-0 2fc849a (v6.10.0)
STOCK OS VERSION:
1.1.1
BEHAVIOUR:
(Same behaviour with both DACs.)
Whether the DAC is already plugged in on system start, or it's plugged in after system has already booted:(EDIT: This issue only occurs when the DAC is plugged in during boot. If it's plugged in after boot, it functions as expected. This is still sub-optimal, and I'd still consider it a bug).- Headphone icon appears as expected.
- Sound does come through the DAC while playing Pico8 Native games.
- Changed volume setting in Pico8 doesn't persist after restart, although this is likely a separate issue.
- Sound does come through the DAC when a targeted file is played in SSH terminal with
aplay -D hw:B,0('B' here is the name string given to the Snowsky Tiny B by asound, used rather than index number,since index can change((EDIT: With DAC plugged in during boot, asound seems to consistently apply index 1 to the DAC, and 0 to audiocodec.))) - Sound does not come through the DAC under any other circumstance I've tried. Not in SSH terminal with
aplaywithout-D hw:parameter, not emulators, not PAK music player apps, not Rockbox installed via Portmaster, or within Portmaster itself, etc. The audio either comes through the speakers, or isn't audibly played at all. I didn't keep track of the circumstances under which this result changed, but neither result was the expected one: of audio coming through the DAC.
ATTEMPTED FIXES:
- Power off, leaving powered off for 30 minutes, restart.
- Factory reset performed in stock OS settings menu, formatting of SD card (Lexar 128GB) and re-installation of NextUI.
- Various modifications to the
/etc/asound.conffile to explicitly set all sound output to 'B' (Snowsky Tiny B).asound.conffile restored to its original state after testing a modification. - Creation of persistent user code in
/mnt/SDCARD/.userdata/tg5040/auto.shto override asound.conf. Commands in this file did execute, but did not solve the issue. - There was one instance where targeting the index number for the DAC in
asound.confdid get audio to play properly through the DAC in other apps and games, but this fixed failed upon restart, and didn't resume working when I changed the asound target from the index number to its name string. Trying the identical fix after factory reset and re-installation of NextUI did not reproduce the temporary fix.
NOTES:
- Neither of the DACs I tried have their own volume controls.
- When modifying the
asound.conffile, I tried altering the target device in various places within that code, as well as replacing the code altogether. I didn't keep track of specific attempted changes.
Activity
unrau commentedon May 5, 2026
I'd be happy to cooperate with any attempts to fix this, including live chat and remote SSH into my Trimui Brick.
frysee commentedon May 5, 2026
It is entirely possible a random stock OS update introduced some changes that would explain why it works some users, and entirely fails for others. If I remember correctly, the default
asound.confthats shipping with stock always expect the internal audio path on device index 0. Any chance you could check what constellation you end up with while booting w/ DAC plugged in?unrau commentedon May 6, 2026
@frysee , it changes when I boot. Here's the current output of
cat /proc/asound/cards:But sometimes the index is swapped.
Could you share your own asound.conf (or anyone whose usb audio functions), and I can replace mine with that, and see if it works?
Searching the NextUI code for asound shows references to
"/mnt/SDCARD/.userdata/" PLATFORM "/.asoundrc", but that file doesn't exist in my installation of NextUI (where platform is tg5040, for the Trimui Brick). Is it supposed to?In case it's helpful, here are the contents of my stock asound.conf, without any of the modifications I attempted:
unrau commentedon May 6, 2026
OK, update:
Using ChatGPT (I know, I'm desperate), I tried plugging in the DAC after booting, and now it seems to be working consistently. I know I tried that previously, but maybe something else prevented it from working that time, who knows.
Anyway, for what it's worth ChatGPT thinks that something in the code is expecting the onboard audio to always be index 0, and that this is what's causing the issue. I don't know if that's true, but I did find this in
/etc/modprobe.d/alsa-usb.conf:Changing it did not persist upon reboot, so I couldn't test if that would work or not.
In retrospect, the occasional flipping of the indices may have been due to my tinkering with asound.conf.
I would like to just glue my DAC in place with it plugged into the Brick, so it would be amazing if we could get it working even if it's plugged in during boot.
I know that the alsa code isn't part of NextUI, but maybe there's something that can be done in NextUI to account for this? If anyone has a suggestion for me to try, I'd love to hear it.
frysee commentedon May 6, 2026
I am creating that on the fly for Bluetooth and USB-C, yeah.
The challenge is finding a way to work with the stock OS, not against it so to say. I'm trying to change as little as possible that would affect people down the line, e.g. when booting into stock or changing to another CFW.
frysee commentedon May 19, 2026
Reopening for visibility, this one has more information than the other one.