Kirjoittaja Aihe: Wine+Reaper+EMU 0404 USB [RATKAISTU]  (Luettu 49771 kertaa)

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #20 : 10.02.16 - klo:17.04 »
Täältä vielä usb-audio vinkkejä.
http://www.rncbc.org/drupal/node/850

Ja muuta konffailua ja "audioscripti".
http://wiki.linuxaudio.org/wiki/system_configuration

-Koivukoski1
 

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #21 : 10.02.16 - klo:17.20 »
Noi menee jo aika diipin analyysin puolelle :) Mutta, kyllä windowsin puolellakin on tullut vuosien mittaan katottua/koluttua forumeita ja tunettamisvinkkejä aika huolella. Jotennii winukan puolella ne on ollu vaan "loogisempia" ja ehken yleistettävempiä. Ja helpommin löydettävissä. En harrasta tässä mitään linuxaudiomaailman dissausta tai muutenkaan "valita", harmittelen vaan kun oisin jo viitisen vuotta sitten ollu aika kiinnostunu ubuntun audiohommista mutta tuli jotennii semmoisia seiniä vastaan ettei vaan sit enää kiinnostanu - oli helpompi buutata "toiselle puolelle" ja alkaa tekemään.. Toivottavasti joku about samanlaisen konfiguraation (sw+hw) omaava sais syttyjä/jeesejä näistä päivittelyistäni. Kirjotin itelleni noi ohjeet koska aikomus on jokaiseen ubuntukoneeseeni asennella samat ja kattoo miten saap "kaiken irti" vehkeistä, säätäminen on aina mukavaa :) Soiton ohessa varsinnii :D
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #22 : 11.02.16 - klo:19.36 »
rtirq:n käyttäminen on aika helppoa.
Esim1. rtirq:n kirjoitettu usb5 ensimmäiseksi, ihan kokeeksi.
Koodia: [Valitse]
rame@rame-System-Product-Name:~$ sudo /etc/init.d/rtirq status
[sudo] password for rame:

  PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
   86 FF      90   - 130  0.0 S    irq/16-ehci_hcd
   91 FF      85   - 125  0.0 S    irq/8-rtc0
  443 FF      80   - 120  0.0 S    irq/17-snd_hda_
   51 FF      50   -  90  0.0 S    irq/9-acpi
   76 FF      50   -  90  0.0 S    irq/25-xhci_hcd
   77 FF      50   -  90  0.0 S    irq/26-xhci_hcd
   78 FF      50   -  90  0.0 S    irq/27-xhci_hcd
   79 FF      50   -  90  0.0 S    irq/28-xhci_hcd
   80 FF      50   -  90  0.0 S    irq/29-xhci_hcd
   81 FF      50   -  90  0.0 S    irq/30-xhci_hcd
   82 FF      50   -  90  0.0 S    irq/31-xhci_hcd
   83 FF      50   -  90  0.0 S    irq/32-xhci_hcd
   84 FF      50   -  90  0.0 S    irq/33-xhci_hcd
   85 FF      50   -  90  0.0 S    irq/34-xhci_hcd
   87 FF      50   -  90  0.0 S    irq/23-ehci_hcd
   89 FF      50   -  90  0.0 S    irq/12-i8042
   90 FF      50   -  90  0.0 S    irq/1-i8042
  169 FF      50   -  90  0.0 S    irq/19-firewire
  170 FF      50   -  90  0.3 S    irq/35-0000:00:
  186 FF      50   -  90  0.0 S    irq/19-0000:04:
  197 FF      50   -  90  0.0 S    irq/37-0000:08:
  363 FF      50   -  90  0.0 S    irq/38-mei_me
  484 FF      50   -  90  0.0 S    irq/22-snd_hda_
  911 FF      50   -  90  0.0 S    irq/36-eth0
  956 FF      50   -  90  0.0 S    irq/39-nvidia
    3 TS       -   0  19  0.0 S    ksoftirqd/0
   17 TS       -   0  19  0.0 S    ksoftirqd/1
   25 TS       -   0  19  0.0 S    ksoftirqd/2
   33 TS       -   0  19  0.0 S    ksoftirqd/3

rame@rame-System-Product-Name:~$
Ja ylärivillä onkin 90 rtpriolla usblaite. Jos käyttää midiä, ehkä antaa rtc:n olla ekana.
Toki pitäisi tietää usbportti mitä nostaa, tai kokeilee mikä xrunaa vähiten.

Käytän firewireä, joten omalla koneella listassa on firewire toisena. Ja...
Koodia: [Valitse]
rame@rame-System-Product-Name:~$ sudo /etc/init.d/rtirq status
[sudo] password for rame:

  PID CLS RTPRIO  NI PRI %CPU STAT COMMAND
   89 FF      90   - 130  0.0 S    irq/8-rtc0
  168 FF      85   - 125  0.0 S    irq/19-firewire
  440 FF      80   - 120  0.0 S    irq/17-snd_hda_
   86 FF      75   - 115  0.0 S    irq/16-ehci_hcd
   87 FF      74   - 114  0.0 S    irq/23-ehci_hcd
   88 FF      70   - 110  0.0 S    irq/1-i8042
   51 FF      50   -  90  0.0 S    irq/9-acpi
   76 FF      50   -  90  0.0 S    irq/25-xhci_hcd
   77 FF      50   -  90  0.0 S    irq/26-xhci_hcd
   78 FF      50   -  90  0.0 S    irq/27-xhci_hcd
   79 FF      50   -  90  0.0 S    irq/28-xhci_hcd
   80 FF      50   -  90  0.0 S    irq/29-xhci_hcd
   81 FF      50   -  90  0.0 S    irq/30-xhci_hcd
   82 FF      50   -  90  0.0 S    irq/31-xhci_hcd
   83 FF      50   -  90  0.0 S    irq/32-xhci_hcd
   84 FF      50   -  90  0.0 S    irq/33-xhci_hcd
   85 FF      50   -  90  0.0 S    irq/34-xhci_hcd
  169 FF      50   -  90  0.3 S    irq/35-0000:00:
  187 FF      50   -  90  0.0 S    irq/19-0000:04:
  193 FF      50   -  90  0.0 S    irq/37-0000:08:
  358 FF      50   -  90  0.0 S    irq/38-mei_me
  469 FF      50   -  90  0.0 S    irq/22-snd_hda_
  941 FF      50   -  90  0.0 S    irq/36-eth0
  986 FF      50   -  90  0.0 S    irq/39-nvidia
    3 TS       -   0  19  0.0 S    ksoftirqd/0
   17 TS       -   0  19  0.0 S    ksoftirqd/1
   25 TS       -   0  19  0.0 S    ksoftirqd/2
   33 TS       -   0  19  0.0 S    ksoftirqd/3

rame@rame-System-Product-Name:~$

Nyt rt-kello nokkii ensin ja heti perään firewire ja sitten snd.

Fstab:n relatimen tilalle noatime auttanee.
Sivustolla oleva scripti kannattaa ajaa ennen audio hommia.
Grub:n cmdline tarvinnee "threadirqs"

Nyt on jo aika hyvät audio asetukset.

Vanhalle läppärilleni tarvitsi noita unbind taikoja, mutta niistä myöhemmin?

-Koivukoski1

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #23 : 11.02.16 - klo:22.50 »
Kappas, aika loogiseltahan tuo näyttää. Pitääpä huomenna tutustua paremmin!
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #24 : 13.02.16 - klo:10.21 »
Audioscriptin tulosta:
Koodia: [Valitse]
== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 4.2.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 2: 'performance' CPU 3: 'performance' CPU 4: 'performance' CPU 5: 'performance' CPU 6: 'performance' CPU 7: 'performance'  - good
Checking swappiness... 60 - not good
** vm.swappiness is larger than 10
set it with '/sbin/sysctl -w vm.swappiness=10'
See also: http://linuxmusicians.com/viewtopic.php?f=27&t=452&start=30#p8916
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... < 524288 - not good
increase max_user_watches by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#sysctlconf
Checking access to the high precision event timer... not readable - not good
/dev/hpet found, but not readable.
make /dev/hpet readable by the 'audio' group
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#hardware_timers
Checking access to the real-time clock... not readable - not good
/dev/rtc found, but not readable.
make /dev/rtc readable by the 'audio' group
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#hardware_timers
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good
Kernel without real-time capabilities found
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#installing_a_real-time_kernel
Checking if kernel system timer is set to 1000 hz... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
not found.
** Warning: no tmpfs partition mounted on /tmp
   For more information, see:
   - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs
   - http://lowlatency.linuxaudio.org
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.
Koodia: [Valitse]
sudo cat /proc/interrupts
Koodia: [Valitse]
      CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       
  0:         28          0          0          0          0          0          0          0   IO-APIC   2-edge      timer
  1:          2          0          0          0          0          0          0          0   IO-APIC   1-edge      i8042
  8:          1          0          0          0          0          0          0          0   IO-APIC   8-edge      rtc0
  9:          3          0          0          0          0          0          0          0   IO-APIC   9-fasteoi   acpi
 12:          4          0          0          0          0          0          0          0   IO-APIC  12-edge      i8042
 16:         31          0          0          0          0          0          0          0   IO-APIC  16-fasteoi   ehci_hcd:usb3
 18:    1601535       1937          0          0          0          0          0          0   IO-APIC  18-fasteoi   ath9k
 19:          2          0          0          0          0          0          0          0   IO-APIC  19-fasteoi   firewire_ohci
 23:      79190     328726     741618     376391          0          0          0          0   IO-APIC  23-fasteoi   ehci_hcd:usb4
 25:          0          0          0          0          0          0          0          0   PCI-MSI 2097152-edge      xhci_hcd
 26:          0          0          0          0          0          0          0          0   PCI-MSI 2097153-edge      xhci_hcd
 27:          0          0          0          0          0          0          0          0   PCI-MSI 2097154-edge      xhci_hcd
 28:          0          0          0          0          0          0          0          0   PCI-MSI 2097155-edge      xhci_hcd
 29:          0          0          0          0          0          0          0          0   PCI-MSI 2097156-edge      xhci_hcd
 30:          0          0          0          0          0          0          0          0   PCI-MSI 2097157-edge      xhci_hcd
 31:          0          0          0          0          0          0          0          0   PCI-MSI 2097158-edge      xhci_hcd
 32:          0          0          0          0          0          0          0          0   PCI-MSI 2097159-edge      xhci_hcd
 33:          0          0          0          0          0          0          0          0   PCI-MSI 2621440-edge      enp5s0
 34:      14788      33603      57558      14948          0          0          0          0   PCI-MSI 512000-edge      0000:00:1f.2
 35:     226299          0          0          0          0          0          0          0   PCI-MSI 32768-edge      i915
 36:         13          0          0          0          0          0          0          0   PCI-MSI 360448-edge      mei_me
 37:       1857          0          0          0          0          0          0          0   PCI-MSI 442368-edge      snd_hda_intel
NMI:         19         17         18         17         11         12         15         10   Non-maskable interrupts
LOC:    1244391    1191320    1295351    1410466     494717     383977     495948     417141   Local timer interrupts
SPU:          0          0          0          0          0          0          0          0   Spurious interrupts
PMI:         19         17         18         17         11         12         15         10   Performance monitoring interrupts
IWI:          0          0          0          0          0          0          0          0   IRQ work interrupts
RTR:          3          0          0          0          0          0          0          0   APIC ICR read retries
RES:      30054      26684      16548      20193      16382      12568      16975      20636   Rescheduling interrupts
CAL:       3097       1007        969        985       1008       1068        997       1049   Function call interrupts
TLB:      43900      38947      42011      42472      26760      29368      29627      26897   TLB shootdowns
TRM:          0          0          0          0          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0          0          0          0          0   Threshold APIC interrupts
DFR:          0          0          0          0          0          0          0          0   Deferred Error APIC interrupts
MCE:          0          0          0          0          0          0          0          0   Machine check exceptions
MCP:         37         37         37         37         37         37         37         37   Machine check polls
HYP:          0          0          0          0          0          0          0          0   Hypervisor callback interrupts
ERR:          0
MIS:          0
PIN:          0          0          0          0          0          0          0          0   Posted-interrupt notification event
PIW:          0          0          0          0          0          0          0          0   Posted-interrupt wakeup event
Koodia: [Valitse]
lsusb
Koodia: [Valitse]
Bus 004 Device 005: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 004 Device 004: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09
Bus 004 Device 003: ID 041e:3f04 Creative Technology, Ltd E-Mu 0404
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Koodia: [Valitse]
sudo cat /proc/asound/modules
Koodia: [Valitse]
0 snd_hda_intel
 1 snd_usb_audio
Eli mitenkähän tässä menis etiäpäin? Varmaan IRQ-hommeli ois helpoin yritellä ja saada jotain vaikutusta? xruneja heittää edelleen vaikka meinaa tuntua ja näyttää siltä että ok eli vakaalta. Audioscripti kertoo paljon kaikenlaista mikä on epäoptimaalisesti, mutta mites jos lähtis tolla IRQ-hommelilla kattomaan efektiä? Ja miten, tota
Koodia: [Valitse]
sudo /etc/init.d/rtirq statushommelia ei mulla näemmä olekaan?

Äkkisiltään katottuna tuo rivi
Koodia: [Valitse]
16:         31          0          0          0          0          0          0          0   IO-APIC  16-fasteoi   ehci_hcd:usb3on se joka pitäis EMU:n tapauksessa kiinnostaa?
« Viimeksi muokattu: 13.02.16 - klo:11.31 kirjoittanut uhappo »
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #25 : 13.02.16 - klo:11.28 »
Taitaa scripti neuvoa ihan hyvin?
Mutta high precision event timer...
Mulla 
Koodia: [Valitse]
/lib/udev/rules.d/40-timer-permissions.rulesSisältää
Koodia: [Valitse]
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
Nyt audio ryhmä saa käyttää noita eväitä.

rtirq tiedosto löytyy
Koodia: [Valitse]
/etc/defaulthakemistosta.
Sielä vain ensimmäiseen kommentoimattomaan riviin tarvii puuttua.
Koodia: [Valitse]
RTIRQ_NAME_LIST="rtc usb snd"Voisi olla usb audiolle hyvä?
Mutta nyt kaikki usb laitteet keulii, joten olisi ehkä tarpeen nostaa vain audion usb porttia.
Silloin tarvitsee laittaa usbportin numero usbX(X=portin nro).
Monet "disablettaa" usb 3.0:n jo bios puolelta. Siis jos laite usb 2.0.

Lopuksi ajat turhat prosessit tappavan scriptin, ennen audioistuntoa.

Edit: Meni usb portinumerot ja usb väylätyypin numerot samaan koriin. Sori.
-Koivukoski1
« Viimeksi muokattu: 13.02.16 - klo:11.49 kirjoittanut koivukoski1 »

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #26 : 13.02.16 - klo:13.24 »
Toi keskeytysten tulostus on ihan hyvä?
Mitä haettiin oli...
Koodia: [Valitse]
          CPU0       CPU1       
  0:    3210606    3352696   IO-APIC   2-edge      timer
  1:       1577       1734   IO-APIC   1-edge      i8042
  8:          1          0   IO-APIC   8-edge      rtc0
  9:       6938       7071   IO-APIC   9-fasteoi   acpi
 12:         74         76   IO-APIC  12-edge      i8042
 16:          1          0   IO-APIC  16-fasteoi   uhci_hcd:usb3, mmc0, firewire_ohci
 18:         70         85   IO-APIC  18-fasteoi   uhci_hcd:usb8
 19:      34653      35737   IO-APIC  19-fasteoi   ata_piix, ata_piix, ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb7
 21:          0          0   IO-APIC  21-fasteoi   uhci_hcd:usb4
 23:      57860      60497   IO-APIC  23-fasteoi   ehci_hcd:usb2, uhci_hcd:usb6
 27:      20140      20665   PCI-MSI 524288-edge      radeon
 28:     465550        161   PCI-MSI 1048576-edge      iwlwifi
 29:        178        166   PCI-MSI 442368-edge      snd_hda_intel
 30:        130        131   PCI-MSI 526336-edge      snd_hda_intel
NMI:       1796       1812   Non-maskable interrupts
LOC:    3774932    3770320   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:       1796       1812   Performance monitoring interrupts
IWI:          0          2   IRQ work interrupts
RTR:          0          0   APIC ICR read retries
RES:     988815    1098663   Rescheduling interrupts
CAL:       6852       4430   Function call interrupts
TLB:      20244      20667   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
DFR:          0          0   Deferred Error APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:         46         46   Machine check polls
HYP:          0          0   Hypervisor callback interrupts
ERR:          0
MIS:          0
PIN:          0          0   Posted-interrupt notification event
PIW:          0          0   Posted-interrupt wakeup event
Ettei ole tälläistä, missä samalla keskeytyksellä monta vermettä usb3, firewire ja mmc0.

-Koivukoski1

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #27 : 13.02.16 - klo:21.35 »
Ok, toi scripti on varsin ihan kuningashommeli!!! Sitten seuraavaan asiaan: mulla ei oo kumpaakaan
Koodia: [Valitse]
/lib/udev/rules.d/40-timer-permissions.rules
Koodia: [Valitse]
/etc/default/rtirqeli tuommoiset pitäis tehdä? udev-homman ymmärränkin mitä sinne pitää tuikata (noi kaks rimpsua) mutta tota
Koodia: [Valitse]
RTIRQ_NAME_LIST="rtc usb snd"synsteemiä en kyllä ymmärrä, tulee tonne rtirq-jutskaan mutta sit töksähtää. Pitäis osata priorisoida toi EMU mutta näkeekö mistään mitä tarkkaa porttia pitäis osata priorisoida ettei kaikki keuli? Pikku jeesiä tartteis että ymmärtäis isomman kokonaisuuden :)
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

nm

  • Käyttäjä
  • Viestejä: 16232
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #28 : 14.02.16 - klo:04.10 »
Asenna paketti rtirq-init. Lisäksi kernelin komentoriville pitää lisätä parametri threadirqs: https://wiki.ubuntu.com/UbuntuStudio/rtirq
Muista ajaa update-grub käynnistysasetusten muokkauksen jälkeen.

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #29 : 14.02.16 - klo:11.21 »
Ok, lähdetääs kokeilemaan:
Koodia: [Valitse]
lsusb -t
Koodia: [Valitse]
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 1, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 2, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 3, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 5: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 5: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 8: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 8: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M

/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
Lyhyellä ala-asteen koululla tuosta päätellen rtirq-hässäkkä näyttää nyt tältä:
Koodia: [Valitse]
#
# 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/sysconfig/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="rtc usb3 snd"

# 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"
Ja öh sitten tuonne
Koodia: [Valitse]
/lib/udev/rules.d/40-timer-permissions.ruleson heitetty
Koodia: [Valitse]
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
sitten
Koodia: [Valitse]
sudo gedit /etc/default/grubja se näyttää sit tältä
Koodia: [Valitse]
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="threadirqs"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Buuttauksen jälkeen audioscripti kertoo tällaista:
Koodia: [Valitse]
== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 4.2.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 2: 'performance' CPU 3: 'performance' CPU 4: 'performance' CPU 5: 'performance' CPU 6: 'performance' CPU 7: 'performance'  - good
Checking swappiness... 60 - not good
** vm.swappiness is larger than 10
set it with '/sbin/sysctl -w vm.swappiness=10'
See also: http://linuxmusicians.com/viewtopic.php?f=27&t=452&start=30#p8916
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... < 524288 - not good
increase max_user_watches by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#sysctlconf
Checking access to the high precision event timer... readable - good
Checking access to the real-time clock... readable - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good
Kernel without real-time capabilities found
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#installing_a_real-time_kernel
Checking if kernel system timer is set to 1000 hz... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
not found.
** Warning: no tmpfs partition mounted on /tmp
   For more information, see:
   - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs
   - http://lowlatency.linuxaudio.org
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.
« Viimeksi muokattu: 14.02.16 - klo:11.26 kirjoittanut uhappo »
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #30 : 14.02.16 - klo:11.37 »
Monissa audio distroissa nuo confit valmiina.
Mutta voi ne tehdä itsekin.
Dmesg saattaa näyttää laitteesi porin, kun tökkäät laitteesi kiinni, näkyy se rimpsun lopussa.
Pelkkä "usb" ilman numeroa on ihan hyvä.
Vain pakolliset usb laitteet kiinni. Ehkä audio yksin usb 3.0 ja muut usb 2.0 tai toisinpäin.

Muistelisin, ettei noista tmp...tarvitse nykyjään? En ihan varma kuitenkaan.
Mutta laita toi swappiness kuntoon.

Jos haluaa pilata päivän voi lueskella näitä?
Koodia: [Valitse]
lsusb -t
lsusb -v
sudo lshw
sudo lsusb -v | less
cat /proc/asound/cards

-Koivukoski1

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #31 : 14.02.16 - klo:11.46 »
Ok, rimpsut tehty. Testailin aika uskomaton stressitestiä ja sanoisin että aika hyvään suuntaan ollaan menossa, toi on se testi: http://www.dawbench.com/benchmarks.htm
Eka xrun tuli kun latas ton session Reaperiin, eli ei pidä varmaan hirveitä syttyjä siitä asiasta ottaa :) xrunit lisääntyi kun rupesin latomaan tuota plugarikasaa isommaks mut onkii silleen aika luonnoton testi. Windowsin puolella sain ladattua about 192 RXC-kompuraa ja silti pysyi audio vakaana ja puhtaana. Mutta jeshh, suunta on vääjäämättä hyvä! Pitää testailla kitaran kanssa tänään tahi huomenna (perhe-elämä..) miten hommat toimii ja onko varmuutta hommassa.
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

koivukoski1

  • Käyttäjä
  • Viestejä: 722
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #32 : 14.02.16 - klo:12.29 »
Kyllä low latency ytimellä dsp kuormat on >90% ennen xruneja.
RT-ytimellä 99-100%.
Ja pitäisi pelata jopa 0,3ms puskureilla. 2.6.31-rt oli aikoinaan eka ydin jollamoisiin pääsin.

-Koivukoski!

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #33 : 14.02.16 - klo:13.41 »
Kyllä low latency ytimellä dsp kuormat on >90% ennen xruneja.
RT-ytimellä 99-100%.
Ja pitäisi pelata jopa 0,3ms puskureilla. 2.6.31-rt oli aikoinaan eka ydin jollamoisiin pääsin.

-Koivukoski!

Ok, eli pitää toi swappiness laittaa kuosiin, sit lisää troubleshoottausta

scripti:
Koodia: [Valitse]
== GUI-enabled checks ==
Checking if you are root... no - good
Checking filesystem 'noatime' parameter... 4.2.0 kernel - good
(relatime is default since 2.6.30)
Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 2: 'performance' CPU 3: 'performance' CPU 4: 'performance' CPU 5: 'performance' CPU 6: 'performance' CPU 7: 'performance'  - good
Checking swappiness... 10 - good
Checking for resource-intensive background processes... none found - good
Checking checking sysctl inotify max_user_watches... < 524288 - not good
increase max_user_watches by adding 'fs.inotify.max_user_watches = 524288' to /etc/sysctl.conf and rebooting
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#sysctlconf
Checking access to the high precision event timer... readable - good
Checking access to the real-time clock... readable - good
Checking whether you're in the 'audio' group... yes - good
Checking for multiple 'audio' groups... no - good
Checking the ability to prioritize processes with chrt... yes - good
Checking kernel support for high resolution timers... found - good
Kernel with Real-Time Preemption... not found - not good
Kernel without real-time capabilities found
For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#installing_a_real-time_kernel
Checking if kernel system timer is set to 1000 hz... found - good
Checking kernel support for tickless timer... found - good
== Other checks ==
Checking filesystem types... ok.
not found.
** Warning: no tmpfs partition mounted on /tmp
   For more information, see:
   - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs
   - http://lowlatency.linuxaudio.org
** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks.
   Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.

GEDIT: Ei kestä vieläkään kunnon kuormia, jostain hyppii xrunia kehiin
« Viimeksi muokattu: 14.02.16 - klo:14.14 kirjoittanut uhappo »
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #34 : 14.02.16 - klo:14.36 »
Koodia: [Valitse]
lsusb -t
Koodia: [Valitse]
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 1, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 2, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 3: Dev 3, If 3, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M
        |__ Port 5: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 5: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 8: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 8: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
Koodia: [Valitse]
cat /proc/asound/cards
Koodia: [Valitse]
0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7f00000 irq 37
 1 [USB            ]: USB-Audio - E-MU 0404 | USB
                      E-MU Systems, Inc. E-MU 0404 | USB at usb-0000:00:1d.0-1.3, high speed
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

Heikki Ketoharju

  • Käyttäjä
  • Viestejä: 716
  • Tee enemmän, harmittaa vähemmän!
    • Profiili
    • heikki.ketoharju.info
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #35 : 15.02.16 - klo:12.18 »
Mukava lukea ketjua, jossa hommat toimii.

Itse kommentoin tästä välistä ketjun alkupään juttuja, että mielestäni Linux-musassa muutamat perussäädöt on yllättävän yleisiä: eli periods/buffer USB-korteilla kolmoseen, ja sit prosessorin virransäästöominaisuudet pois. Eli hyvin tutulta kuulostaa: tasan samat säädöt itsekin on pitänyt tehdä.

Ongelma vaan tuntuu olevan se, että Linux-dokumentaatiossa (ja myös ohjelmien säätöpaneeleissa) menevät sekaisin semmoiset säädöt, joita tarvitsee kaikki hyvin usein ja sitten semmoiset säädöt, joita ei tarvitse juuri kukaan paljon koskaan. Tämähän olisi mahdollista korjata suunnittelemalla musaohjelmistoja paremmiksi ja kirjoittamalla dokumentaatio koherentimmaksi. Ongelma vaan on, että sekä ohjelmia tekevät että dokumentaatiota kirjoittavat ovat itse aika teknisiä ihmisiä, eivätkä siksi osaa karsia ja pelkistää oleelliseen.

Toinen ongelma sitten on Linux-musajärjestelmän hajanaisuus: on olemassa useita hieman päällekäin meneviä standardeja, eikä ole mitenkään selkeästi kuvattavissa, miten järjestelmä rakentuu. Olisi mukava, jos voisi selkeästi kertoa tyyliin: ALSA vastaa ajureista, Jack ristiinkytkennästä, ohjelmat varsinaisesta äänen prosessoinnista. Tuollaiset yleistykset kompastuvat kaikenlaisiin poikkeuksiin ja poikkeuksen poikkeuksiin: Firewire-kortin ajurit ei olekaan Alsassa vaan FFADOssa, Jack ei huolehdikaan ristiinkytkennästä kaikkien midilaitteiden kanssa, vaan tarvitaan Alsa-siltaus jne jne.

Mutta hyvä kuitenkin, että homma alkaa selkiytymään. Linux on siitä kiva systeemi, että kun setupin kerran tekee ja huolella varmuuskopioi/dokumentoi, se on helppo pystyttää uudelleen.

Tämä toisen sivun kama onkin jo minun kannaltani sitten hepreaa kun en moniraitaäänityksiä tai isompia miksauksiakaan tee. Onneksi Koivukoski ja nm on näihin perehtyneet.
-
Minä kirjoittelen suomenkielisiä ohjeita Linux-musiikintekoon:
http://linux.fi/wiki/Musiikinteko_Linuxilla
-
Kansainvälinen Linux-audio -wiki, sovellusluettelo ja äänikorttitietokanta:
http://wiki.linuxaudio.org

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #36 : 15.02.16 - klo:12.36 »
Omasta mielestäin semmoisia pitemmän kaavan how-to-do-it -ohjeita on liian vähän, siis semmosia että jengi kirjoittais ylös toimenpiteet A:sta B:hen miten "studio" on pystytetty. Lähinnä softan tiimoilta. On olemassa semmosiakin ihmisiä jotka ei esim osaa selaimesta laittaa kirjanmerkkipalkkia näkyviin yms "hardcore"-hommia, pointtina siis että yleisellä tasolla jengi ei ihan niin älyttömän kiinnostunut oo "säätämisestä". Hommien pitäis vaan "toimia". Jos ohjeet on täysin pitkinpoikin ympäri nettiä eikä missään ole ns selvästi ja simppelisti onnistumisen "kaavaa" niin aika moni kääntyy kannoillaan ja menee helpomman reitin kautta. Aika monta kertaa oon kuullu Kuopion piireissä (varsinnii joskus 10 vuotta sitten) että hei, jos teet audiohommia niin osta mäkki. Säästyt paljolta. Paitsi rahanmenolta.. Ehkä tässäkin pointtina se että joissakin jutuissa hommat on mietitty etukäteen aika pitkälle, valmiiks, on helppo hypätä veneeseen. Edelleenkään en tosihommia (audio) tee/tekis linuxilla koska kokonaisuus ei ole niin tuttu, turvallisen vakaa ja simppeli. Mutta kyllä tää silmiä on avannut, säätämällä näemmä pääsee eteenpäin ja varsin hyviin tuloksiin.

Edelleenkään en ole vielä tyytyväinen tohon xrun-hommeliin, oisko asiaa tuntevilla herroilla vielä vinkkiä tai analyysia asiaan? Mielellään kyllä säätelen ja samalla yritän ymmärtää miksi mikäkin vaikuttaa mihinkin. Mielenkiintoisia hommia, varsinnii jos kärsivällisyyttä löytyy :)
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

Heikki Ketoharju

  • Käyttäjä
  • Viestejä: 716
  • Tee enemmän, harmittaa vähemmän!
    • Profiili
    • heikki.ketoharju.info
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #37 : 15.02.16 - klo:12.45 »
Olen kyllä samaa mieltä, että askel askeleelta -tyyppinen opas olisi tarpeen. Ja vielä mieluiten semmoinen, joka kestäisi aikaa menemättä heti vanhentuneeksi. Tuonne Linux.fi -wikiin voisi semmoisen suomeksi kyllä kirjoitellakin, jos löytyisi hyvä porukka kaikki asian puolet avaamaan ja helppolukuisen sivun laatimaan.
-
Minä kirjoittelen suomenkielisiä ohjeita Linux-musiikintekoon:
http://linux.fi/wiki/Musiikinteko_Linuxilla
-
Kansainvälinen Linux-audio -wiki, sovellusluettelo ja äänikorttitietokanta:
http://wiki.linuxaudio.org

uhappo

  • Käyttäjä
  • Viestejä: 1029
  • Sissos
    • Profiili
    • Urkin sivut
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #38 : 15.02.16 - klo:14.03 »
Yritän puolikuumeisesti miettiä notta mistä toi mun xrunaus johtu, voiko johtua BIOS-säädöistä? Toisaalta ne toimii winukan puolella..
HP i7-pohjainen desktop ja itsekasattu i7-pohjainen desktop, uusin ubuntu 64bit
Ubuntu since 2008 Feb

nm

  • Käyttäjä
  • Viestejä: 16232
    • Profiili
Vs: Wine+Reaper+EMU 0404 USB [RATKAISTU]
« Vastaus #39 : 15.02.16 - klo:14.22 »
Voi olla myös Winestä johtuva ongelma. Et ole tainnut kokeilla natiiviohjelmilla?

http://wiki.cockos.com/wiki/index.php/How_to_run_Reaper_in_Wine_on_Linux

Lainaus
Preferences->Buffering->Use native events for syncronizing: Due to the way wine works there is a lot of overhead in using IPC (Inter Process Communication). Reaper uses one such mechanism to syncronise it's threads, namely Native Events. Best results can most likely be achieved by unchecking Preferences->Buffering->Use native events for syncronizing. This will have the drawback (on SMP systems) of the cpus/cores running in loops and thus cause extra cpu usage, but the trade off is lower latency and less risk of xruns (audio dropouts) in the ASIO/JACK callback thread. One way of dealing with the high cpu usage is to manually specify a lower amount of cpus, like 1 or 2 in Preferences->Buffering until you really need more cpu.