hifiberry / hifiberry-os

Linux distribution optimized for audio playback
MIT License
985 stars 125 forks source link

Optical source missing after 20201213 update #197

Closed laurillev closed 2 years ago

laurillev commented 3 years ago

Describe the bug Optical source is not visible anymore in Sources and no sound is produced from toslink input.

HiFiBerryOS version 20201213

HiFiBerry sound card DAC+DSP

To Reproduce Steps to reproduce the behavior:

  1. Go to Sources-tab in Hifiberry OS
  2. Look through the list

Expected behavior Expected to have Optical source as option and sound to be produced as before.

Browser (if applicable)

Additional context DSP program is “DAC+ DSP Universal Version 12”

LarsenDX commented 3 years ago

Hi, Same here. Optical source missing since 20201213.

ndamkjaer commented 3 years ago

Hi, I also have this issue. Running Pi 4 with DAC+ DSP.

TheWaveHunter commented 3 years ago

Hi, Same here. Using optical input as primary source. Pi 4, after update from 20201101 to 20201213

hifiberry commented 3 years ago

Ok, this is a bug in the upgrade process. Try the following

rm /etc/hifiberry.state /opt/hifiberry/bin/reconfigure-players

laurillev commented 3 years ago

Unfortunately that didn't solve it for me.

Mine is a new installation, so it shouldn't have to do with upgrade. But thus I cannot temporarily go back to previous version either.

hifiberry commented 3 years ago

What's the output of the reconfigure-players command?

laurillev commented 3 years ago

cat: /tmp/eeprom.txt: No such file or directory cat: /tmp/eeprom.txt: No such file or directory /etc/hifiberry ~ ~ pi bluetooth pi3orlater arm7 dsp localui DAC+ DSP 1 Nothing changed, exiting...

hifiberry commented 3 years ago

Hmm, this looks different than what it should be. What's the output of

grep toslink /opt/hifiberry/bin/reconfigure-players

laurillev commented 3 years ago

grep toslink /opt/hifiberry/bin/reconfigure-players FEATURES="$FEATURES spdifnoclock toslink" FEATURES="$FEATURES toslink" FEATURES="$FEATURES dsp toslink"

hifiberry commented 3 years ago

Ok, that also looks right. I need to have another look.

laurillev commented 3 years ago

Maybe that toslink "feature" is not correctly set for DAC+DSP somewhere.

hifiberry commented 3 years ago

Yes, that's right. Question is just WHY

hifiberry commented 3 years ago

Ok, looks like I found the problem. We'll fix it in the next release. For now, just use a workaround:

touch/etc/hifiberry/toslink.feature /opt/hifiberry/bin/reconfigure-players

schwachstelle commented 3 years ago

Looks like a typo; in which directory should the feature file be placed?

laurillev commented 3 years ago

@schwachstelle use space between touch-command and '/etc/...'

schwachstelle commented 3 years ago

@laurillev yes, but there is no directory /etc/hifiberry. Maybe /opt/hifiberry/etc ?

hifiberry commented 3 years ago

Just create the directory

zaneclaes commented 3 years ago

Just confirming that the following two commands, alone, worked for me with my Beocreate (note there was a typo with a slash after touch in the original):

touch etc/hifiberry/toslink.feature
/opt/hifiberry/bin/reconfigure-players
David91919 commented 3 years ago

I have the same issue and needed to make a fresh install so I can´t go back to the old version.

What are the exact commands for the fix ?

Which directory do I need to create?

Running these commands just gets me errors: touch etc/hifiberry/toslink.feature > touch: cannot touch 'etc/hifiberry/toslink.feature': No such file or directory

/opt/hifiberry/bin/reconfigure-players

# /opt/hifiberry/bin/reconfigure-players
cat: /tmp/eeprom.txt: No such file or directory
cat: /tmp/eeprom.txt: No such file or directory
/etc/hifiberry ~
~
pi
bluetooth
pi3orlater
arm7
dsp
localui
Beocreate 4-Channel Amplifier 1
Nothing changed, exiting...
hifiberry commented 3 years ago

See https://github.com/hifiberry/hifiberry-os/issues/197#issuecomment-748946792

David91919 commented 3 years ago

See #197 (comment)

its not working :-( fresh install after download from website, root login

# touch/etc/hifiberry/toslink.feature
-bash: touch/etc/hifiberry/toslink.feature: No such file or directory
# /opt/hifiberry/bin/reconfigure-players
cat: /tmp/eeprom.txt: No such file or directory
cat: /tmp/eeprom.txt: No such file or directory
/etc/hifiberry ~
~
pi
bluetooth
pi3orlater
arm7
dsp
localui
Beocreate 4-Channel Amplifier 1
Nothing changed, exiting...
hifiberry commented 3 years ago

Just put a space between touch and the filename

TheWaveHunter commented 3 years ago

Just put a space between touch and the filename

1. touch /etc/hifiberry/toslink.feature

2. /opt/hifiberry/bin/reconfigure-players

Thanks, it works!

bravecorvus commented 3 years ago

Maybe this is unrelated, because I am having this issue on a newer OS (20210804), but running touch /etc/hifiberry/toslink.feature && rm /etc/hifiberry.state && /opt/hifiberry/bin/reconfigure-players prints:

Terminated
/etc/hifiberry ~
~
Sound card settings have been changed, reconfiguring...
Applying settings:
 Players:  (was )
 Raspberry Pi model: 4
 System name: HiFiBerry (was )
 Sound card: DAC+ Zero/Light/MiniAmp (was )
 Interrupt pin for power controller: 2 (was )
 DSP type:  (was )
 HW device: card 0 (was )
 ALSA mixer control: Softvol (was )
 Recording:  (was )
 Vendor/product   (was )
 Features: pi bluetooth pi3orlater arm7 localui toslink (was )

Saving settings to /etc/hifiberry.state
Reconfigure features
Reconfiguring Spotifyd
 updated mixer
 updated system name
Restarting spotify
Reconfiguring Vollibrespot
 updated mixer
 updated system name
 updated mixer-card
Restarting spotify
Reconfiguring Shairport-sync
 updated mixer
 updated system name
Restarting shairport-sync
Reconfiguring Bluetooth
 updated system name
 updated mixer
Restarting bluetooth.service
Reconfiguring squeezelite
 updated system name
Reconfiguring MPD
Restarting mpd
 updated mixer
Reconfiguring DLNA
Reconfiguring Mopidy
modidy not installed, ignoring
Reconfigure AudioControl2
 updated mixer
 updated interrupt pin
Restarting audiocontrol2
Reconfigure upmpdcli
 updated system name
Reconfigure RAAT
Configuring RAAT server for UUID [hidden] on DAC+ (snd_rpi_hifiberry_dac)
Reconfiguring Beocreate software
Value could not be interpreted as JSON, falling back to old method.
Settings updated for 'system'.
 updated card type
Value could not be interpreted as JSON, falling back to old method.
Settings updated for 'sound'.
 updated mixer
["pi","bluetooth","pi3orlater","arm7","localui","toslink"]

My device is getting recognized as a DAC+ Zero/Light/MiniAmp rather then a 12/2019 DAC + DSP.

If it is, I can open a new Issue on Github.

ghamauricio commented 2 years ago

I've had this problem before and the workaround solved my problem.

Now I've upgraded both my RL 60.2 to a Raspberry Pi 4B 4GB and I reformatted the card with the proper Pi4 image.

Both of them came "out of the box" without the optical source. The workaround solved again, but I just wanted to inform the bug is still present as of 20211105.

philaub commented 2 years ago

Ok, looks like I found the problem. We'll fix it in the next release. For now, just use a workaround:

touch/etc/hifiberry/toslink.feature /opt/hifiberry/bin/reconfigure-players

Are there any updates? The "next release" batch seems a bit odd now I think.

hifiberry commented 2 years ago

This had been fixed already. If you still see this issue, please create a new bug report for your release.