=== HisaoNakai_ is now known as HisaoNakai [09:40] If my kernel hangs at boot when using lowlatency, how can I start tracking the problem down? Using Ubuntu 13.04 with official lowlatency kernel package. [09:40] If started without quiet and splash kernel parameters, it just says "Loading Linux 3.8.0-31-lowlatency ..." then hangs at the purple screen. [09:40] You can see a cursor or underscore at the line below, but it won't react on any keypress. [09:40] Using a ThinkPad X1 Carbon, amd64 kernel. [09:44] zequence_, your expertise^ [09:48] Good. That's a hard to find property. :) [09:50] !kernel [09:50] The core of Ubuntu is the Linux kernel: see https://help.ubuntu.com/community/Kernel - You shouldn't have to compile your own, and if you need to troubleshoot issues, you can try a !Mainline kernel instead, but if you insist, see https://help.ubuntu.com/community/Kernel/Compile (see also !Stages) [09:50] johey, though, linux-lowlatency is very simliar to linux in normal means [09:51] Using the linux-generic is no problem. Booting perfectly. Lowlatency freeze totally. [09:51] OK, that's a specific bug then [09:51] johey, can you run "ubuntu-bug linux-lowlatency" within a terminal? [09:51] I'm using it with other machines without problem. [09:52] Ok, in a moment. === HisaoNakai_ is now known as HisaoNakai [10:30] smartboyhw: Bug reported. https://bugs.launchpad.net/ubuntu/+source/linux-meta-lowlatency/+bug/1232413 [10:30] Ubuntu bug 1232413 in linux-meta-lowlatency (Ubuntu) "Lowlatency kernel hangs at boot, even before any text output" [Undecided,New] [10:30] johey, thanks [10:31] smartboyhw: Currently I am not using Ubuntu Studio on this machine, but it is the same kernel package, isn't it? [10:31] johey, yes. [10:32] I am sorry not being able to give more details. I don't like reporting a bug only saying it just hangs, but what can I do... [10:33] I am quite technically skilled, but I'm not a kernel hacker. If there are things I can do to help debugging, please feel free to ask. [10:33] Last time I even compiled a kernel was 2.4. [10:34] johey, wah:O [10:34] Nowadays, it just works, you know... :) [10:36] Are the lowlatency and generic kernel images built from the same source just with different configurations, or is the lowlatency patched? [10:36] johey, same source [10:36] different configrations [10:37] Ok. So what I could do is trying to narrow down the set of configuration options until I know which one causes the hang... Would it help you think, or is it just one option to enable a large set of code? [10:38] johey, dunno [10:38] I'm not the kernel guy [10:39] Right. That's zequence_. [10:57] Hi [11:00] Hello Heyokha [11:01] smartboyhw: Do I have to use the lowlatency kernel to get realtime permissions for jack btw? [11:06] johey, technically, as long as you're in the "realtime" group, you can get realtime permissions [11:06] http://jackaudio.org/linux_rt_config [11:07] I see. That might do it for me. [11:07] I thought the group was audio. [11:08] Mhm. adduser: The group `realtime' does not exist. .. Maybe this differ from ubuntu and ubuntustudio? Don't tell me I'm asking in the wrong channel... :) [11:10] Technically, you are. [11:10] !support | johey [11:10] johey: This is the Ubuntu Studio development channel. Our official support channel is on #ubuntustudio. Also see http://ubuntuforums.org/forumdisplay.php?f=335 [11:11] johey, it might be the audio group for us [11:11] I forgotten which:P [11:12] Yes I know. I happened to ask about my kernel issue in almost all #ubuntu* channels, and this one gave the best hits. :) [11:12] johey, it should be "audio" for us [11:15] Ok. I will investigate that. Maybe I don't need the lowlatency. As long as I can keep latency <20ms without suffering from too many xruns I'm happy. [12:28] johey: If you don't do any live processing at all, you don't need low latency [12:28] johey: Just to confirm, the -generic that works is the same version as the -lowlatency that doesn't work? [12:32] Ah, yes. I can see it is from the bug report [12:32] It's very unlikely for there to be problems with -lowlatency that do not occur on -generic, as they are almost the same exact kernel [12:33] johey: Earlier versions of -lowlatency works fine, right? [12:34] smartboyhw: johey: We use the audio group for realtime privilege [12:37] There's no lowlatency patchset [12:37] johey: It would be great if you could try other version of linux-lowlatency [12:39] zequence_: I've tried with the oldest version I find in the repos, namely 3.8.0-22 with same result. [12:40] johey: Try something like a 3.2 instead [12:40] https://launchpad.net/~ubuntustudio-kernel/+archive/linux-lowlatency-sru/+packages [12:40] It's fully reproducible on this machine. Haven't successfully passed the kernel load step one single time. Although, on my technically most equal machine, the ThinkPad X220, this is no issue at all. [12:41] Download manually, under linux-lowlatency-* [12:41] the package called linux-image-*-lowlatency-* [12:41] Ok, I'll try that. [12:45] Just to ensure, I don't need the kernel header packages, right? The installation warns me about it. [12:49] zequence_: 3.2.0-54-lowlatency hangs the same way. [12:58] I managed to get realtime permissions without the lowlatency kernel, but after trying recording audio I realize I really need the lowlatency kernel. [12:59] Cannot even manage to get free from xruns with 20 ms. [13:02] 20 ms latency that is. [13:49] johey: You don't need low latency unless you are doing software monitoring [13:50] zequence_: Well, I actually am. [13:50] 20ms IMO is too high anyway [13:50] johey: Can't you monitor externally? [13:50] What is it you are recording? [13:50] I'm using live guitar effects. [13:51] When recording the latency is of lower importance. [13:55] johey: Check your /var/log/dmesg.0 [13:57] zequence_: Nothing is written to /var/log/dmesg.* when booting a lowlatency kernel. [13:58] At least not enough to write it's own kernel version. [13:59] I've never before seen a kernel hang this early. Not one single character is printed to the screen by the kernel. [14:00] It seems like it hangs while it is copied to memory. [14:00] That's a rare bug:O [14:00] johey: This is the diff between -generic and -lowlatency, prior to building http://paste.ubuntu.com/6167050/ [14:00] In the config, that is [14:01] Ok, but the CONFIG_PREEMPT=y enables a large chunk of code I would guess. [14:02] Might be the realtime patch hackers might be interested in solving this problem [14:03] Where can I find them? [14:03] https://rt.wiki.kernel.org/index.php/Mailinglists [14:04] johey: You might want to try a realtime kernel as well [14:05] johey: http://wiki.linuxaudio.org/wiki/system_configuration#build_your_own_real-time_kernel [14:05] Some of the realtime patch has been included into the vanilla kernel. Bit by bit. [14:06] Alright! The lowlatency and realtime are different pieces of code? [14:06] lowlatency is not a patch at all [14:07] linux-lowlatency is linux-generic, but with the preemtp configuration [14:07] I'm sure the preemt used to be a patch... And I thought it came from the realtime code, but I'm likely wrong. I usually am. :) [14:08] As I said, the realtime patch has been included into the vanilla code, bit by bit [14:09] johey: I'd be interested to know if a realtime kernel would work for you or not [14:09] Ok. Anyway, trying out a realtime kernel is the next step I think. [14:09] I will let you know. [14:09] johey: Thanks [14:09] I mean it's the next-next step. Trying AVLinux first. [18:31] zequence-work: It also hangs with 3.10.10-rt. [19:28] zequence-work: GAAAAHHH!! You know what... ThinkPad X1 Carbon is really well prepared for standing up against evil free software. Just disabling every option in the BIOS Security menu fixed the issue. [19:31] figures.