/srv/irclogs.ubuntu.com/2019/09/23/#ubuntustudio.txt

jamesg27Hello good evening, I have just installed Ubuntu Studio Disco Dingo 19.04 on a Toshiba Satellite C5502:23
jamesg27It did not recognize the built in laptop keyboard or trackpad, I am trying solutions to make them work, working with a usb at the moment, kybrd and mouse, one of the solutions I found was to update the kernel, I currently have 5.0.0-29-lowlatency, and the possible solution advised to update to kernel to 5.1.16 through PPA02:24
jamesg27Since I am new I do not know exactly how to update only the kernel, using ubuntu studios low latency, which is the point I installed Ubuntu Studio, could someone please advice me?02:25
jamesg27Having a rough install, does not detect internal keyboard, trackpad, external bluetooth keyboard, and has wifi intermittengly02:29
jamesg27I installed from scratch on laptop02:30
jamesg27I am really excited to try ubutustudio, used linux many years ago, trying to come back to it02:35
tomreynjamesg27: hmm, that's unfortunate, it's actually quite rare that an internal laptop keyboard isnt detected. sure, you can try a different kernel version, though 19.04 only supports a single kernel version. you could also take a look at your logs and try to understand what's causing these issues, and how to handle them with the kernel version you already have.03:23
tomreyn"journalctl -b"  shows your system and application logs since the latest reboot. to share it here, use     journalctl -b | nc termbin.com 9999   (you can also try getting help in #ubuntu, since this should be an ubuntu 19.04-wide issue with your hardware).03:25
jamesg27Thank you let me try to print the log03:29
jamesg27thank you for your help, here is the link for the log   <pre>https://termbin.com/2kth</pre>03:35
jamesg27I have npo problem with a single kernel, what I do not know is hopw to update it to the 5.1.16 throu8gh ppa like a person said it worked for them, without loosing the low latency kernel which is the reason I installed ubuntustudio for multimedia applications03:37
tomreynjamesg27: i suspect you added those extra kernel parameters in an attempt to fix the issue?03:40
jamesg27no no I currently have the 5.0.0-29-lowlatency that came with the install, I learned that the updating to the 5.1.16 through ppa helped another user with this same problem, So I thought I should try it, but I dont know how03:42
jamesg27yes that is correct03:42
tomreynabout the newer kernel version: i believe i would do you a disfavor by suggesting ways to install different but unsupported kernel versions. what i can suggest is to install 18.04 LTS instead, which will offer at least two, maybe three, kernel versions to choose from.03:42
jamesg27qahhh I c... and how do you choose those kernel versions, do they come up as options in the menu while you are installing03:43
jamesg27I am also going to try and update the bios of the laptop, since it has the 1st version...03:44
jamesg27i think i will try that before installing 18.04 lts03:44
jamesg27did you happen to see something important in the logs?03:45
tomreyni generally recommend bios updates, too03:45
tomreyni'm still reading those logs03:45
tomreyn TOSHIBA Satellite C55-A/Portable PC, BIOS 1.10 12/03/201303:45
jamesg27ok ok ty03:45
tomreynbut i think you should remove those extra kernel parameters, do the bios upgrade and test that way first of all.03:46
tomreynand share another log based on it, too.03:46
jamesg27ty what extra kernel parameters? how do i do that?03:47
tomreyni8042.nomux=1 i8042.reset acpi=noirq03:47
tomreynthose three, did you not add those to /etc/default/grub ?03:47
jamesg27ahh that was somebody elses solution i tried that i found online, did not work03:47
jamesg27yes03:47
jamesg27i did03:47
tomreynyou can copy line that's in the file and comment it out (place a # in front), then remove those options off the non commented line.03:48
tomreynso you keep it for later03:48
jamesg27ok i will remove those, and try the bios update , if it does not work, i will install 18.04 LTS03:48
tomreynthen run     sudo update-grub03:48
jamesg27yes thank you03:48
jamesg27will do that right now, and will make a bootable usb with the bios update,03:49
tomreyngood luck. if you'll return here and want to address me later, be sure to mention my nickname, tomreyn (or i may not notice). but i may also no longer be at the computer then (just logged in).03:52
jamesg27thank you tom I appreciate your help, do i mention your nick with the @ infront?03:54
jamesg27Tom I found some instructions on how to update the bios on linux, they recommend a prog called 'unetbootin' but I do not find it on the software center, can you recommend something else I can use?03:58
jamesg27I have the updated bios, but it is an exe, and inside there is an iso image..03:59
jamesg27that was the only update avaliable on the laptops page on the toshiba website03:59
tomreynno need for the @ here on irc. if yu ever want a better chaqt client, you can install hexchat (on several operating systems including ubuntu linux).04:05
tomreynjamesg27: << this should make your browser tab flash, and similarily it'd try to ge tmy attention here.04:06
tomreynyou can use    usb-creator-gtk    (probably already installed) to write the iso to a USB stick - but be aware that the entire stick gets overwritten that way - backup your data first.04:08
UhfgoodI don't have experience with any version of linux.  I'm running windows 7, and most likely will want to dual-boot.  Where should I start?12:37
jazzslagUhfgood I'd make a bootable USB of the latest version (19.04) and take it for a spin12:41
Uhfgoodok, i'll probably have to burn an iso and use a dvd.  I don't have any extra usb drives (I guess I'm still stuck in the last century ;-))12:44
Uhfgoodjazzslag - thanks12:49
tomreyndvd should work, too (but yes, i'd prefer usb)12:56
wonkoOvenWerks: Well, the good news is jackd appears to be more stable now. Hasn't restarted at all over the weekend. The bad news is I do still get 4-5 xruns per minute, but we also haven't figured out the irq thing so there is hope. :)14:12
jazzslagwonko which version are you using? I just upgraded to 19.04 and is super stable15:27
wonko19.0415:28
wonkoI've tried shortening the USB extension cable to the audio device and I got a proper mic so I'm no longer doing zita-a2j for the shitty webcam mic. One of those things may have solved the issue. :)15:37
wonkoOr neither did and it's a coincidence. :)15:50
Eickmeyerjazzslag: wonko has some IRQ conflict problems, from what I understand. Fairly unique to his hardware.16:02
jazzslagEickmeter ah ok sorry to trivialise16:05
jazzslagsimply installing 19.04 and playing with the Carla settings fixed a very specific problem I had, so I assumed 19.04 was the magic cure-all :D16:06
wonkoWell, the IRQ thing is still an issue. I'm not sure if that's related to the jackd stability or not. A lot of unknowns here. :)16:06
Eickmeyerwonko: It absolutely is. If the IRQ thing is conflicting, you bet jackd is going to have a problem.16:07
wonkooh, getting the audio device onto a different controller than the mouse/keyboard may also have played a part to stability. Hard to say.16:07
wonkoI'm not sure it's conflicting though or not16:07
wonkothose are just guesses Oven and I had. :)16:07
EickmeyerWell, they're decent guesses.16:08
wonkostill need to figure out a way to determine which is the correct irq handler for chrt though.16:09
EickmeyerYeah. That stuff is over my head, unfortunately.16:09
wonkoYeah, I don't quite understand things at this depth either16:14
wonkoThe thing I don't understand is if I follow the path all the way to the pci usb controller its IRQ is 24, but there is no process for that, only for 35 which is the root hub it's connected to16:17
* Eickmeyer whoosh16:20
wonkoEXACTLY16:25
wonkoI'm asking some people smarter than me to see what they say. :)16:25
wonko<deviant-> pcie interrupts are message signaled; the controller puts a message in a ring buffer and then (maybe) flags a physical interrupt line to say the queue needs processing16:52
wonko<deviant-> so the thread in this case is the kthread that's processing that ring buffer16:52
wonkoSo that technically answers the question16:52
wonkoI just don't know how that applies to what I'm doing. :)16:52
OvenWerkswonko: it means that the computer doesn't bother with the physical IRQ... the one listed by lspci16:53
OvenWerks it uses a virtual or messages irq.16:53
wonkois that the one we're getting from /sys?16:53
OvenWerks*messaged16:53
* OvenWerks has forgotten where we were with that16:54
wonkoLost in the woods I think16:55
OvenWerksif the one from sys matches the one shown in /proc/interrupts then that is the correct one16:55
OvenWerks/proc/interrupts shows what is actually being seen by the cpu16:55
wonkoso looking at the irq for the PCIe USB card, they do not match16:56
wonkofor the root hub I think they do16:56
wonkobut there is no process for the USB card anyway so I'm not sure what magic that is16:56
wonkoPCIe PME, aerdrv is what shows up on 35 from /proc/interrupts16:57
OvenWerkswonko: when I was playing with it on my system... I was finding that the irq listed in lspci -v was the right one... not sure what changed... oh maybe I was looking at my ethernet card16:57
wonkohttps://paste.ubuntu.com/p/Nbh5H3WsHm/16:58
wonkough, lspci -v on this system is painful. :)16:58
wonkowonko@deepthought:~/bin$ lspci -v | wc -l16:58
wonko86816:58
wonkoso lspci output matches expectations17:02
wonkohttps://paste.ubuntu.com/p/2yR588xVhs/17:02
wonkousing /sys to fine the irq matches that anyway17:03
wonkos/fine/find/17:03
OvenWerkswonko: first thing is that /sys/devices/ does not show me everything17:41
OvenWerks... /sys/devices has a sub directory pci0000:0017:41
OvenWerksbut lspci seems to show pci0000:02 - 0517:42
OvenWerkswonko: I think you are looking for /sys/bus/pci/devices/<device>/msi_irqs/17:50
OvenWerksthe MSI is the key17:50
OvenWerkswonko: this is for my ethernet because it has the same problem.18:04
OvenWerks$ cat pci/devices/0000\:03\:00.0/irq -> 1718:05
OvenWerksls pci/devices/0000\:03\:00.0/msi_irqs/ -> 26  27  28  29  3018:05
wonkoyeah, looking at the msi IRQs they match nothing else I've collected before. :)18:06
OvenWerksYa 5 of them this is an Intel i21018:06
wonkowonko@deepthought:~/bin$ ls /sys/devices/pci0000:80/0000:80:02.0/0000:81:00.0/msi_irqs18:06
wonko38  39  40  41  42  43  44  4518:06
wonko81:00.0 is the PCIe USB controller18:06
OvenWerksexcept I bet you find the same list for your internal USB pci "card"18:08
OvenWerksI did try blacklisting the xhci module with no success18:10
OvenWerksthere is supposed to be a bit that can be turned off in the usb controller that changes that too.18:10
OvenWerkshttps://www.systutorials.com/241533/how-to-force-a-usb-3-0-port-to-work-in-usb-2-0-mode-in-linux/18:13
OvenWerkswonko: I found a number of pages about turning off xhci and why that are not related to audio but usb device count:18:14
OvenWerkshttps://acroname.com/blog/why-cant-i-connect-more-usb-30-devices-my-system18:14
OvenWerkshttp://marc.merlins.org/perso/linux/post_2018-12-20_Getting-Around-USB3-xhci-32-Device-Limit-_Max-number-of-devices-this-xHCI-host-supports-is-32_.html18:15
OvenWerkswonko: however it is obvious to me that because of the horrible way xhci does things, you may have little choice18:15
wonkough18:17
wonkosmart guy can't figure out how we need to do this because he's pretty sure this interrupt is handled as a kthread so there is no way to alter the priority18:18
OvenWerksyou do need thge right irq one way or the other18:18
wonkothat he's figured out so far anyway18:18
OvenWerkswhat does your jack log look like when there is an xrun?18:20
OvenWerksIs there one particular port that is listed every time?18:20
OvenWerksI am guessing you have both pulse and usb bridging turned off?18:21
wonkohttps://paste.ubuntu.com/p/mNTy5NZsw6/18:22
wonkono, those bridges are both on I believe18:22
OvenWerkspulse in was not fiished seems to be pretty common.18:23
OvenWerksa2j needs to be on, I meant usb bridging and pulse bridge size is greater than 018:23
OvenWerkswonko: also pavucontrol in the Confiuration tab should say "No cards available for configuration"18:25
OvenWerksIt is almost like pulse is picking up another sync source18:27
wonkoindeed it does say that, yes18:27
OvenWerksHmm, normally pulse doesn't give problems like that unless it can see another device.18:31
OvenWerksbut pulse is causing xruns in an almost clock like way.18:32
OvenWerksnot quite18:38
OvenWerkstwo or three in a row then nothing for a bit18:38
wonkoSo I'm reading a bit and they mentioned rtirq18:43
wonkoso I wanted to see what it was doing18:44
wonkohttps://paste.ubuntu.com/p/BdnGjJ3fmx/18:44
wonkoLooks like it just takes the IRQs handling USB devices and blindly assigns decending prioroty18:44
wonkopriority18:45
wonkowith HDA-Intel at the top18:45
wonkoand wtf even is that?18:45
wonkoI have no intel audio18:45
wonkoand yes, it's not handling stuff like usb5 like you want it to it doesn't look like18:47
wonkoWell18:47
wonkoactually I think it would if it found it in the output of /etc/interrupts18:47
wonkobut at least in my case usb5 doesn't show up there18:48
wonkothe only ones that show up are usb1, usb2 and usb318:49
OvenWerksyup...18:55
OvenWerks That has been my experience too.18:56
OvenWerksit has found something that looks like an HDA controller18:57
OvenWerksit could very well be your display has an hdmi line and some MB handle that using hda18:58
OvenWerks(or you graphics card)18:58
wonkoah, yes, that is the case19:02
wonkoI don't use it, but the nvidia card has audio19:02
OvenWerksI have seen hdmi two ways, as a part of hda or PCU or the may be a batch of [hdmi]19:03
OvenWerksit seems the new way is to separate out hdmi which often requires a large latency to even work.19:03
wonkoso if I put usb before snd in /etc/defaults/rtirq it at least puts the USB before that, but honestly it's not even used so I doubt that'll have much impact19:04
OvenWerksif you know the irq you want you can use like 38-xhci in rtirq19:05
wonkothat's the problem, I don't. :)19:05
wonkoI still haven't worked that part out yet19:05
wonkoI mean unless I prioritize the pci hub, but I don't think that's what we want?19:06
OvenWerksso if cat /proc/interrupts has one of the with :usb5 that would be the one or if the same output shows one og the irqs with a lot of activity on only one cpu19:06
wonkothere is no usb5 unfortunately19:07
wonkoonly usb1/2/319:07
wonkono 4/5/619:07
OvenWerkswell looking at  cat /proc/interropts my usb audio device shows as:  20:    2774412          0         30          0   IO-APIC  20-fasteoi   ehci_hcd:usb119:08
OvenWerksnote the first number after the irq is quite high while the next three nujmbers are low or none.19:09
OvenWerks this is compared to: 23:          0      38027     331623         63   IO-APIC  23-fasteoi   ehci_hcd:usb219:09
OvenWerkswhich is my mouse19:09
OvenWerksthe numbers are lower eventhough I just plugged the audio in while the mouse has been there since boot19:10
OvenWerksSo you should be able to guess which of the eh/xhci are handling your USB audio by looking for such a pattern19:11
wonko116:          0     359301          0          0          0       9035          0     202119    2862447       1995          0          0          0      12727          0          0          0          0          0          0          0          0          0          0          0          0          0          0        909          0          0      67105          0          0          0          0          0   32437585          0          019:13
wonko5524745    5286763          0          0          0          0          0          0          0          0          0          0          0          0          0          0  IR-PCI-MSI 512000-edge      ahci[0000:00:1f.2]19:13
wonkooh wait19:13
wonkothat's all the CPUs, isn't it?19:13
wonkoso I'll need to look at every other one?19:13
wonkoGRRR19:14
OvenWerksso maybe show me what cat /proc/interrputs |grep hcd19:14
wonkohttp://paste.ubuntu.com/p/5y5t6VmVjB/19:14
wonko38 looks like a winner19:14
OvenWerksya that would be my guess19:15
wonkoso how would I tell rtirq to set that one highest?19:15
OvenWerksso for rtirq use 38-xhci19:16
OvenWerksI would do "38-xhci snd usb"19:17
OvenWerksbut you should be able to not include usb or snd try it both ways :)19:17
wonkowonko@deepthought:~/.log/jack$ sudo /etc/init.d/rtirq restart19:18
wonkoSetting IRQ priorities: start [HDA-Intel] irq=184 pid=1498 prio=85: OK.19:18
wonkoSetting IRQ priorities: start [ehci_hcd] irq=18 pid=557 prio=80: OK.19:18
wonkoSetting IRQ priorities: start [ehci_hcd] irq=19 pid=556 prio=79: OK.19:18
wonkoSetting IRQ priorities: start [xhci_hcd] irq=38 pid=559 prio=80: OK.19:18
OvenWerks38 and 18 are conected then19:18
OvenWerksalso rtirq does not reset stuff it did last time very well may have to reboot to see the real effect19:19
wonkoit's still putting hda ahead of it though19:20
wonkowhich is a tad confusing19:20
OvenWerksyes, but it may be left from last boot19:20
wonkohmm, ok19:20
OvenWerksrtirq does not lower old irq settings19:20
wonkoah, ok19:20
wonkoI can try a reboot19:21
OvenWerksat least that was what the docs used to say... thogh I haven't read them lately19:21
OvenWerksbut even still with what you had, your audio card should be a higher priority than yur mouse19:21
OvenWerkswonko: are you running hyperthreading?19:23
OvenWerksie, is you cpu x cores/(x*2)threads?19:24
wonkoyes, hyperthreading19:30
wonkoafter reboot:19:30
wonkowonko@deepthought:~$ /etc/init.d/rtirq status19:30
wonko  PID CLS RTPRIO  NI PRI %CPU STAT COMMAND19:30
wonko 1444 FF      85   - 125  0.0 S    irq/184-snd_hda19:30
wonko  555 FF      80   - 120  0.0 S    irq/18-ehci_hcd19:30
wonko  557 FF      80   - 120  0.7 S    irq/38-xhci_hcd19:30
wonko  554 FF      79   - 119  0.0 S    irq/19-ehci_hcd19:30
wonko  558 FF      79   - 119  0.0 S    irq/39-xhci_hcd19:30
wonkoso snd is still top, but 38/18 is at least second highest19:30
OvenWerksin testing I did some time ago (think P4) I found that with hyperthreading enabled the lowest quite stable low xrun latency I could go on my PCI audio was about 62/2. with hyperthreading disabled I was able to have 16/2 with no xruns19:33
wonkoHmmm19:34
wonkoI probably don't *need* hyperthreading19:34
wonko28 cores should be more than enough. :)19:34
OvenWerkswith latencies above 64/2 there seemed to be little difference19:35
wonkowell, i'm at 128/219:35
OvenWerks I have also found that having "Boost" turned off helps19:35
wonkoalthough shouldn't I have 3? Is that still the recommended number of periods for usb?19:36
OvenWerksby the time you get to 128 it should not matter.19:36
wonkook, well let's watch it and see what happens19:37
wonkoso far no xruns19:37
OvenWerksUSB is 1 ms cycles (maybe 1.25ms I have heard other places)19:37
wonkostarting qsynth caused an xrun19:37
OvenWerksso 16/3 at 48k is 1ms19:38
OvenWerksSo long as you don't get them while using qsynth that is ok19:38
wonkoyeah, played some stuff an no xruns while playing19:38
OvenWerksso the minimum a USB device can run is 32/3 ish19:39
wonkoThe annoying part about debugging this is now there's nothing really to do except wait and see what happens19:43
OvenWerksI purposely chose the i5 over the i7 (there was no i9 at the time and xeon was too pricey) because I felt that paying for hyperthreading I wasn't going to use anyway :)19:44
wonkoI didn't pay for these CPUs/RAM so I wasn't complaining. :)19:44
OvenWerks :)19:44
OvenWerksbest way.19:44
wonkoI probably should have sold them and gotten something else with the money but at the time they made sense19:45
wonkoto keep that is19:45
OvenWerksI likely would have done the same19:46
wonkoWe were possibly moving out of the country and dragging a rack full of server gear wasn't feasable so this became my everything box. It is *really* good at that. :)19:46
wonkoAlso, it's very good at building UnrealEngine4 for linux. :)19:47
OvenWerksYa, I build enough stuff I would like it for that19:47
wonko11 minutes. Last I tried building it was on an i7 laptop and it took like 2 hours and didn't even finish. :)19:48
wonkotheir build process scales nicely across CPUs19:48
wonkoand ran the thing up to 4% idle19:48
OvenWerksI build Ardour quite a bit. my laptop takes an hour at least, this is 14 min and someone with a server similar to your's reports less than 1 min19:49
OvenWerksArdour pins all of my cpus to 10019:49
OvenWerks I use that to monitor my temperature if it gets too high it is time to clean dust out19:50
wonkonice. :)19:50
wonkoI haven't run into too many dust issues yet19:50
wonkoalthough the radiator for the 1080 will clog up eventually19:51
studiobot<miftahulAlvinRizki> 😔19:51
studiobot<Eickmeyer> @miftahulAlvinRizki [😔], Do you have a support issue?19:55
wonkoOvenWerks: as things stand now my CPUs are running at 49C and 54C19:56
OvenWerkswhile working hard or at idle?19:56
wonkomostly idle19:56
wonkoit's hard to make this thing work hard19:56
wonkoI should build UE4 again19:56
wonkoso far still no xruns except for that one starting qsynth19:57
OvenWerksmine idles at around 25C and gets to about 70C at 100% times 419:57
wonkoXeons run a lot hotter in my experience19:57
studiobot<miftahulAlvinRizki> No, i just confused about bot. Did you know something?19:58
OvenWerksI think my do not excede is 90C19:58
OvenWerksSo 20 min with no x runs. that is not a bad place to start19:59
studiobot<Eickmeyer> @miftahulAlvinRizki [No, i just confused about bot. Did you know something?], The bot is a bridge to our IRC channel.19:59
OvenWerksIt remains to be seen if your IF will use the same IRQ every boot. But time will tell. If you boot some time and the xruns go up that would be something to check20:00
wonkoboo, just got come20:02
wonkosome20:02
OvenWerksDid cron just run something in the background? (apt update for example)20:02
wonkoI started doing a sizable apt install20:02
OvenWerks That would do it, some network operations are more atomic than I like20:03
wonkook, that's good to know20:03
OvenWerksIf you had to do an apt anything to get xruns you are doing well20:03
OvenWerkswonko: next test: set sample buffer to 64/320:04
OvenWerksor 64/2 or 32/320:04
OvenWerks  :)20:04
wonkoThat was my plan. :)20:04
studiobot<miftahulAlvinRizki> @Eickmeyer [The bot is a bridge to our IRC channel.], Okay, thank you20:18
wonkoOvenWerks: building UE4 (takes idle to 0.2%) and the CPUs topped out at 59C and 68C20:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!