Gentoo: Installazione PC Server (HQPlayer, LMS ) e PC Player (NAA, Mpd, Squeezelite-R2)

Visualizzazione dei risultati da 1 a 10 su 773

Hybrid View

Messaggio precedente Messaggio precedente   Prossimo messaggio Prossimo messaggio
  1. #1
    pebibyte L'avatar di marcoc1712
    Registrato
    Jan 2013
    Messaggi
    5,254
    configurazione

    Predefinito

    Originariamente inviato da antonellocaroli
    Io personalmente non conosco Falcon...l ho usato solo qualche volta per testare il funzionamento e riportare...non ricordo neanche bene cosa faccia....ma mi pare che siano tutte cose che si possono fare tranquillamente via ssh...se non sbaglio....

    ma da ignorante in materia, quello che fai con falcon é impensabile per un plug-in per LMS?
    Si, via SSH (con sudo o su, dato che non ammette login come root) si possono fare, falcon è SOLO un aiuto per capre e nonne come me, che amano giocare con i topolini ed hanno la memoria corta...

    Ni, con un plugin in senso stretto no, ma è certamnete possibile mettere le stesse ozpioni HTML presenti nella web interface di falcon e farle puntare ad un server remoto, come se fossero web services, complicato, ma fattibile. Più semplice mettere un bel link nella pagina del server (questo si tramite un plugin) che apra falcon sull'indirizzo del player, questo lo avrei fatto, non fosse che credo di essere l'unico user di falcon, quindi...

    Altra alternativa è costruire un conteniore e di LMS e di Falcon, visivamente stile daphile o volumio o rune audio o... ma è troppo impegnativo per me, avrebbe senso su un numero limitato di configuazioni ben definite, come sorta di OS distribuito, versione 15.2...
    Ciao, Marco.

    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
    — E. F. Schumacher (mis-attributed to A. Einstein)
    ________________________________________________________________________________
    Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
    Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
    Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE

  2. #2
    pebibyte L'avatar di marcoc1712
    Registrato
    Jan 2013
    Messaggi
    5,254
    configurazione

    Predefinito

    @Filippo:

    il file init.d, pe rcome è costruito, imposta il file di log, lo crea o gli cambia i permesi di accesso ogni volta che viene esguito, quindi imposta l'opzione -f di squeezelite, senza possibilità di toglierla.

    Di fatto l'opzione è sovrascrivibile, nel senso che se aggiungo alla fine -d=all -f pippo, il 'vero' file di log sarà pippo, ma impedisce di usare /var/log/squeezelite-R2.log proprio perchè assegna continuamente chmod 644, per cui si è costertti ad usare un file diverso se lo si vuore condividere in scrittura, per esempio per gestirne la rotazione o il rinnovo (in falcon c'è un metodo per vuotarlo e ripartire)

    Perchè funzioni tutto senza intoppi, basta cambiare questo comando:

    codice:
    start_pre() {
        checkpath --file --owner $user --mode 0644 $logfile
    }
    sostituendo 0644 con 0664.

    Di mio, toglierei proprio l'indicazione 'fissa' del file di log:

    codice:
    command="/usr/bin/squeezelite-R2"
    command_args="
            -f $logfile <<togliere la riga
            ${SL_OPTS}
    "
    manterrei però la creazione del file ed il settaggio dei privilegi (0664), perchè squeezelite non riesce a creare il file direttamente in var/log, la creazione la deve fare root.

    Sono solo consigli che semplificano un po la vita, ma nulla di che, può rimanere anche così. In questo caso, consiglio di usare come file di log:

    /var/log/squeezelite-R2/squeezelite-r2.log

    o simili, dato che creando una cartella dedicata alla quale si possono assegnare privilegi opportuni (es. root:squeezelite 775), sarà possibile poi creare file, mantenere zip, attivare l a rotazione,...

    Niente di che, ma meglio che ricevere messaggi di protezione violata a video.

    Per il resto, tutte le funzionalità sono - nel mio sistema - funzionanti, faccio un qualche giro di test più accurato, ma se qualcuno vuole provarlo è il benvenuto, faccia un fischio e gli passo il link dell'installer della beta.
    Ciao, Marco.

    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
    — E. F. Schumacher (mis-attributed to A. Einstein)
    ________________________________________________________________________________
    Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
    Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
    Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE

  3. #3
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    codice:
    command="/usr/bin/squeezelite-R2"
    command_args="
            -f $logfile <<togliere la riga
            ${SL_OPTS}
    "
    Chiedo a fedeliallalinea se la puó togliere

  4. #4
    pebibyte L'avatar di marcoc1712
    Registrato
    Jan 2013
    Messaggi
    5,254
    configurazione

    Predefinito

    Originariamente inviato da antonellocaroli
    codice:
    command="/usr/bin/squeezelite-R2"
    command_args="
            -f $logfile <<togliere la riga
            ${SL_OPTS}
    "
    Chiedo a fedeliallalinea se la puó togliere
    Chiedi anche il 664, dei due è il più utile.
    Ciao, Marco.

    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
    — E. F. Schumacher (mis-attributed to A. Einstein)
    ________________________________________________________________________________
    Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
    Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
    Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE

  5. #5
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    Anche su Gentoo si puó usare RTirq

    codice:
    emerge --ask rtirq
    solito file di configurazione in conf.d

    codice:
    nano /etc/conf.d/rtirq
    codice:
    #
    # Copyright (C) 2004-2015, rncbc aka Rui Nuno Capela.
    #
    #   This program is free software; you can redistribute it and/or
    #   modify it under the terms of the GNU General Public License
    #   as published by the Free Software Foundation; either version 2
    #   of the License, or (at your option) any later version.
    #
    #   This program is distributed in the hope that it will be useful,
    #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #   GNU General Public License for more details.
    #
    #   You should have received a copy of the GNU General Public License along
    #   with this program; if not, write to the Free Software Foundation, Inc.,
    #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
    #
    # /etc/conf.d/rtirq
    # /etc/default/rtirq
    #
    # Configuration for IRQ thread tunning,
    # for realtime-preempt enabled kernels.
    #
    # This program is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License version 2 or later.
    #
    
    # IRQ thread service names
    # (space separated list, from higher to lower priority).
    # RTIRQ_NAME_LIST="rtc snd usb i8042" # old
    RTIRQ_NAME_LIST="snd usb enp"
    
    # Highest priority.
    RTIRQ_PRIO_HIGH=90
    
    # Priority decrease step.
    RTIRQ_PRIO_DECR=5
    
    # Lowest priority.
    RTIRQ_PRIO_LOW=51
    
    # Whether to reset all IRQ threads to SCHED_OTHER.
    RTIRQ_RESET_ALL=0
    
    # On kernel configurations that support it,
    # which services should be NOT threaded
    # (space separated list).
    RTIRQ_NON_THREADED="rtc snd"
    
    # Process names which will be forced to the
    # highest realtime priority range (99-91)
    # (space separated list, from highest to lower priority).
    RTIRQ_HIGH_LIST="timer networkaudiod squeezelite-R2 mpd"
    codice:
    /etc/init.d/rtirq start
    codice:
    gentooplayerP filippo # /etc/init.d/rtirq restart
     * Stopping rtirq ...
    rtirq.sh: stop [timer] pid=4 prio=1: OK.
    rtirq.sh: stop [timer] pid=21 prio=1: OK.
    rtirq.sh: stop [timer] pid=30 prio=1: OK.
    rtirq.sh: stop [timer] pid=39 prio=1: OK.
    rtirq.sh: stop [squeezelite-R2] pid=4408 prio=1: OK.
    Setting IRQ priorities: stop [xhci_hcd] irq=88 pid=1186: OK.
    Setting IRQ priorities: stop [enp] irq=89 pid=2989: OK.                                                                                                                                                                                [ ok ]
     * Starting rtirq ...
    rtirq.sh: start [timer] pid=4 prio=99: OK.
    rtirq.sh: start [timer] pid=21 prio=99: OK.
    rtirq.sh: start [timer] pid=30 prio=99: OK.
    rtirq.sh: start [timer] pid=39 prio=99: OK.
    rtirq.sh: start [squeezelite-R2] pid=4408 prio=98: OK.
    Setting IRQ priorities: start [xhci_hcd] irq=88 pid=1186 prio=85: OK.
    Setting IRQ priorities: start [enp] irq=89 pid=2989 prio=80: OK.
    codice:
    /etc/init.d/rtirq status
    codice:
    gentooplayerP filippo # /etc/init.d/rtirq status
    
      PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
     1186 FF      85   - 125  7.0 S    irq/88-xhci_hcd
     2989 FF      80   - 120 10.6 S    irq/89-enp1s0
       56 FF      50   -  90  0.0 S    irq/9-acpi
      103 FF      50   -  90  0.0 S    irq/8-rtc0
      703 FF      50   -  90  0.0 S    irq/87-ahci[000
     2262 FF      50   -  90  0.0 S    irq/18-i801_smb
     2273 FF      50   -  90  0.0 S    irq/90-i915
        3 TS       -   0  19  0.0 S    ksoftirqd/0
       22 TS       -   0  19  0.0 S    ksoftirqd/1
       31 TS       -   0  19  0.0 S    ksoftirqd/2
    codice:
      PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
     1186 root     -86   0       0      0      0 S  12,2  0,0   1:26.34 irq/88-xhci_hcd
     2989 root     -81   0       0      0      0 S   0,3  0,0   2:12.90 irq/89-enp1s0
     4408 squeeze+ -99 -20 2143548 1,958g   4664 S   0,3 52,4   0:40.01 squeezelite-R2
     4726 root      20   0   21868   3128   2576 R   0,3  0,1   0:00.09 top
        1 root      20   0    4196   1520   1424 S   0,0  0,0   0:07.95 init
        2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kthreadd
        3 root      20   0       0      0      0 S   0,0  0,0   0:00.90 ksoftirqd/0
        4 root      rt   0       0      0      0 S   0,0  0,0   0:00.87 ktimersoftd/0
        6 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 kworker/0:0H
        8 root      20   0       0      0      0 S   0,0  0,0   0:00.40 rcu_preempt
        9 root      20   0       0      0      0 S   0,0  0,0   0:00.01 rcu_sched
       10 root      20   0       0      0      0 S   0,0  0,0   0:00.20 rcuc/0
       11 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kclksetdelayd
       12 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 posixcputmr/0
    Per aggiungerlo all´avvio

    codice:
    rc-update add rtirq default

  6. #6
    byte L'avatar di blueray
    Registrato
    Oct 2015
    Messaggi
    172
    configurazione

    Predefinito

    Per esperienza soconsiglio di mettere in priorità alta mpd meglio un bel renice, io l' ho settato su "-16" di niceness.

  7. #7
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    Originariamente inviato da blueray
    Per esperienza soconsiglio di mettere in priorità alta mpd meglio un bel renice, io l' ho settato su "-16" di niceness.
    L´ultima riga la lasci commentata o scommentata con solo timer?

  8. #8
    pebibyte L'avatar di marcoc1712
    Registrato
    Jan 2013
    Messaggi
    5,254
    configurazione

    Predefinito

    Originariamente inviato da antonellocaroli

    codice:
    #
    # Copyright (C) 2004-2015, rncbc aka Rui Nuno Capela.
    #
    #   This program is free software; you can redistribute it and/or
    #   modify it under the terms of the GNU General Public License
    #   as published by the Free Software Foundation; either version 2
    #   of the License, or (at your option) any later version.
    #
    #   This program is distributed in the hope that it will be useful,
    #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #   GNU General Public License for more details.
    #
    #   You should have received a copy of the GNU General Public License along
    #   with this program; if not, write to the Free Software Foundation, Inc.,
    #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
    #
    # /etc/conf.d/rtirq
    # /etc/default/rtirq
    #
    # Configuration for IRQ thread tunning,
    # for realtime-preempt enabled kernels.
    #
    # This program is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License version 2 or later.
    #
    
    # IRQ thread service names
    # (space separated list, from higher to lower priority).
    # RTIRQ_NAME_LIST="rtc snd usb i8042" # old
    RTIRQ_NAME_LIST="snd usb enp"
    
    # Highest priority.
    RTIRQ_PRIO_HIGH=90
    
    # Priority decrease step.
    RTIRQ_PRIO_DECR=5
    
    # Lowest priority.
    RTIRQ_PRIO_LOW=51
    
    # Whether to reset all IRQ threads to SCHED_OTHER.
    RTIRQ_RESET_ALL=0
    
    # On kernel configurations that support it,
    # which services should be NOT threaded
    # (space separated list).
    RTIRQ_NON_THREADED="rtc snd"
    
    # Process names which will be forced to the
    # highest realtime priority range (99-91)
    # (space separated list, from highest to lower priority).
    RTIRQ_HIGH_LIST="timer networkaudiod squeezelite-R2 mpd"
    codice:
    /etc/init.d/rtirq start
    codice:
    gentooplayerP filippo # /etc/init.d/rtirq restart
     * Stopping rtirq ...
    rtirq.sh: stop [timer] pid=4 prio=1: OK.
    rtirq.sh: stop [timer] pid=21 prio=1: OK.
    rtirq.sh: stop [timer] pid=30 prio=1: OK.
    rtirq.sh: stop [timer] pid=39 prio=1: OK.
    rtirq.sh: stop [squeezelite-R2] pid=4408 prio=1: OK.
    Setting IRQ priorities: stop [xhci_hcd] irq=88 pid=1186: OK.
    Setting IRQ priorities: stop [enp] irq=89 pid=2989: OK.                                                                                                                                                                                [ ok ]
     * Starting rtirq ...
    rtirq.sh: start [timer] pid=4 prio=99: OK.
    rtirq.sh: start [timer] pid=21 prio=99: OK.
    rtirq.sh: start [timer] pid=30 prio=99: OK.
    rtirq.sh: start [timer] pid=39 prio=99: OK.
    rtirq.sh: start [squeezelite-R2] pid=4408 prio=98: OK.
    Setting IRQ priorities: start [xhci_hcd] irq=88 pid=1186 prio=85: OK.
    Setting IRQ priorities: start [enp] irq=89 pid=2989 prio=80: OK.
    codice:
    /etc/init.d/rtirq status
    codice:
    gentooplayerP filippo # /etc/init.d/rtirq status
    
      PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
     1186 FF      85   - 125  7.0 S    irq/88-xhci_hcd
     2989 FF      80   - 120 10.6 S    irq/89-enp1s0
    codice:
      PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
     1186 root     -86   0       0      0      0 S  12,2  0,0   1:26.34 irq/88-xhci_hcd
     2989 root     -81   0       0      0      0 S   0,3  0,0   2:12.90 irq/89-enp1s0
     4408 squeeze+ -99 -20 2143548 1,958g   4664 S   0,3 52,4   0:40.01 squeezelite-R2
    [/CODE]
    Quel processo irq/88-xhci_hcd (USB) che anche da me impiega un bel po di risorse, se non ricordo male lo avevamo già incontrato e risolto in Debian, non riesco a ricordare se con un intervento sul BIOS osul kernel.
    Ciao, Marco.

    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
    — E. F. Schumacher (mis-attributed to A. Einstein)
    ________________________________________________________________________________
    Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
    Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
    Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE

  9. #9
    tebibyte L'avatar di bigtube
    Registrato
    May 2012
    Località
    cagliari
    Età
    69
    Messaggi
    2,258
    configurazione

    Predefinito

    Originariamente inviato da marcoc1712
    Quel processo irq/88-xhci_hcd (USB) che anche da me impiega un bel po di risorse, se non ricordo male lo avevamo già incontrato e risolto in Debian, non riesco a ricordare se con un intervento sul BIOS osul kernel.
    Allora per fare le cose per bene dopo aver installato rtirq
    bisogna dare il comando per conoscere lo stato attuale degli irq
    (nella situazione di Marco se xhci_hcd non deve ricevere la priorita' alta
    sara estromessa dalla configurazione che sotto rappresento...come ? non
    viene scritta nella riga RTIRQ_NAME_LIST= )

    codice:
    /etc/init.d/rtirq status
    nel mio player ho questo
    codice:
    PID CLS RTPRIO  NI PRI %CPU STAT COMMAND    
       96 FF      95   - 135  0.0 S    irq/8-rtc0    
       84 FF      93   - 133  2.6 S    irq/20-ehci_hcd    
       83 FF      92   - 132  0.0 S    irq/22-ehci_hcd    
     2905 FF      91   - 131  0.0 S    irq/29-enp0s25    
       38 FF      50   -  90  0.0 S    irq/9-acpi    
       85 FF      50   -  90  1.1 S    irq/20-uhci_hcd    
       86 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       87 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       88 FF      50   -  90  0.4 S    irq/20-uhci_hcd    
       89 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       90 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       92 FF      50   -  90  0.0 S    irq/12-i8042    
       93 FF      50   -  90  0.0 S    irq/1-i8042    
      797 FF      50   -  90  0.0 S    irq/28-ahci[000    
     2196 FF      50   -  90  0.0 S    irq/6-floppy    
     2197 FF      50   -  90  0.0 S    irq/18-ata_gene    
     2206 FF      50   -  90  0.0 S    irq/30-snd_hda_    
     2210 FF      50   -  90  0.0 S    irq/31-i915    
        3 TS       -   0  19  0.0 S    ksoftirqd/0    
       22 TS       -   0  19  0.0 S    ksoftirqd/1
    questo stato è la risultante della modifica da me gia' fatta sul file /etc/conf.d/rtirq
    in pratica per ottenerlo si procede cosi
    aprire il file di configurazione del vostro player e dare
    codice:
    nano /etc/conf.d/rtirq
    andiamo al testo che interessa ( dobbiamo modificare il testo fra "" come indicato sotto....dando il nostro ordine di priorita')
    codice:
    ..............................................................
    # IRQ thread service names
    # (space separated list, from higher to lower priority).
    # RTIRQ_NAME_LIST="rtc snd usb i8042" # old
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"
    
    # Highest priority.
    RTIRQ_PRIO_HIGH=99
    
    # Priority decrease step.
    RTIRQ_PRIO_DECR=2
    
    # Lowest priority.
    RTIRQ_PRIO_LOW=51
    
    # Whether to reset all IRQ threads to SCHED_OTHER.
    RTIRQ_RESET_ALL=0
    
    # On kernel configurations that support it,
    # which services should be NOT threaded
    # (space separated list).
    RTIRQ_NON_THREADED=""
    
    # Process names which will be forced to the
    # highest realtime priority range (99-91)
    # (space separated list, from highest to lower priority).
    RTIRQ_HIGH_LIST="timer squeezelite-R2"
    nella prima riga
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"

    rtc ha la massima priority seguita dalla USB-Hi-Speed e poi la rete
    nell'ultima riga la alta priority a squeezelite-R2 (decommentare la riga...togliere # )
    Tutte le righe in rosso devono essere riscritte come indicato

    fatto tutto cio' nel file di configurazione si da'
    codice:
    /etc/init.d/rtirq restart
    per ridefinire permanentemente le priorita'.

    Per assicurarsene si da' il comando
    codice:
    /etc/init.d/rtirq status
    il nuovo e definitivo stato con le priorita' prescelte da noi .

    Tutta questa storia si ripete aggiungendo gli altri player nell'ultima riga come aveva rappresentato Filippo in precedenza.
    Inoltre rtirq puo' e deve essere installato anche sul PC Server .
    Ultima modifica di bigtube : 28-10-2016 a 02:28
    player1:thin client+voyage - player2:futros450+Debian > Usb Transport: I2soverUSB + DAC (6x1704+I/V a tubi) - Attenuatore passivo Lightspeed
    Ampli finale: OTL 6C33 - MyRef Fremen Ed. - Diff.: Diapason Adamantes II - Guida LMS+Squeezelite - B

  10. #10
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    Originariamente inviato da marcoc1712
    Quel processo irq/88-xhci_hcd (USB) che anche da me impiega un bel po di risorse, se non ricordo male lo avevamo già incontrato e risolto in Debian, non riesco a ricordare se con un intervento sul BIOS osul kernel.
    Non ricordo come l hai risolto...so solo che sul mini pc usa quella percentuale (sia con debian che con Gentoo)...e sull´atro pc solo 3%...se ti viene in mente batti un colpo....
    Ultima modifica di antonellocaroli : 28-10-2016 a 07:21

Informazioni Thread

Users Browsing this Thread

Ci sono attualmente 3 utenti che stanno visualizzando questa discussione. (0 utenti e 3 ospiti)

Regole d'invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
nexthardware.com - © 2002-2022