Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Aug 2020
    Posts
    4

    Edit asound.conf on piCorePlayer

    I'm working on a multiroom audio system based on piCorePlayer on Raspberry with Hifiberry amps. It seems to bee possible to split an stereo output into two mono outputs (found on the hifiberry homepage). To configure this I have to edit the etc/asound.conf. I'm not able to edit the asound.conf with the standard user "tc". I need the root password oder super user password to edit. Or is there another possibility to split the amp into two channels?

    Thanks
    Matthias

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,252
    No password is needed for sudo
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Junior Member
    Join Date
    Aug 2020
    Posts
    4
    Quote Originally Posted by paul- View Post
    No password is needed for sudo


    What do you mean? Which Username and password do I need?

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,508
    Quote Originally Posted by MW_FFM2020 View Post


    What do you mean? Which Username and password do I need?
    I use nano (there is an extension to install it)

    user tc
    passwd piCore

    nano /etc/asound.conf

  5. #5
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,876
    Hi MW_FFM2020,

    /etc/asound.conf has rw permission for group staff, so tc will have permissions to edit the file.

    Code:
    tc@piCorePlayer:~$ la /etc/asound.conf
    -rw-rw-r--    1 root     staff          578 Jun  7 01:29 /etc/asound.conf
    
    tc@piCorePlayer:~$ vi  /etc/asound.conf
    If the group staff only had r permissions, then you add the sudo command to gain access via the user permissions (root in this case).

    Code:
    tc@piCorePlayer:~$ sudo vi  /etc/asound.conf
    regards
    Greg

  6. #6
    Junior Member
    Join Date
    Aug 2020
    Posts
    4
    Thanks for your help. I installed the nano editor and changed the asound.conf but after reboot, the "old" asound.conf was loaded.
    Is there a possibility to configure the hifiberry AMP2 into dual mono streams?

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,252
    What you changed was a file on a Ramdisk. That change will not survive a reboot without performing a backup.

    Run backup from the main menu on the web interface, or run `pcp bu` from commandline.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #8
    Junior Member
    Join Date
    Aug 2020
    Posts
    4
    Mostly the problem is sitting in front....
    Anyway, I cant get a dual mono output. Do I need to declare a second instance? (I used this asound.conf: https://www.hifiberry.com/docs/softw...al-mono-setup/)
    Last edited by MW_FFM2020; 2020-08-05 at 06:49.

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,252
    Yes, you will need two squeezelite instances running. Which you will have to manually manage, as pCP only handles one instance internally.

    In the hifiberry example the second squeezelite instance would use "card2" as the output.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #10
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,876
    hi Matthias,

    Maybe, if you only want to set piCorePlayer to mono??, there is a "beta" tool to play around with asound.conf.

    [Main page] > [Extras] > [Asound] (I think, I don't have a pCP6.1.0 setup at the moment)

    I haven't played with it for a long time, but it should give you some ideas.

    regards
    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •