/srv/irclogs.ubuntu.com/2023/12/06/#ubuntustudio.txt

semHey everyone. I installed "ubuntustudio" initially on my laptop but I am trying to make it boot into the normal kernel instead of lowlatency for the power saving features.20:08
semI noticed that update-grub pulls in /etc/default/grub.d/ubuntustudio.cfg which always sets the default boot option to lowlatency20:09
semwhat is the "ubuntu studio" preferred method to specify that you want to boot the normal kernel by default? Can I just comment out this line in ubuntustudio.cfg or will this be overwritten in updates (and is it still the best idea) or is there a better way20:10
Eickmeyersem: You can if you want. Up to you.20:18
Eickmeyersem: If you edit that config, updates will not overwrite it, but upgrading to 24.04 will likely overwrite it, though it might ask you first.20:20
semAlright, I think I will put in a comment explaining what I edited and why so when I upgrade, showing the files side by side will explain things20:21
Eickmeyersem: That said, you don't have to worry about that until April or so.20:21
semjust to sanity check, the -generic kernel is the one which will have slightly better power management? I don't need -amd64 or something20:22
EickmeyerYou'll get amd64 by default. The package you want is linux-generic.20:22
Eickmeyeramd64 is likely your architecture.20:22
Eickmeyer!info linux-generic mantic20:23
ubottulinux-generic (6.5.0.14.16, mantic): Complete Generic Linux kernel and headers. In component main, is optional. Built by linux-meta. Size 2 kB / 15 kB. (Only available for amd64, armhf, arm64, ppc64el, s390x.)20:23
semwhen I do 'uname -r' it shows 6.5.0-13-generic ...?20:23
EickmeyerThat means you booted the generic kernel.20:23
semBut I actually should have booted -amd64 for the correct performance stuff?20:24
semor is it correct to boot the generic kernel20:24
EickmeyerNo. amd64 is just the architecture, not a kernel flavor.20:25
semoh ok. I have an old memory of booting the -i386 kernel or the -amd64 kernel; i think that used to be a thing maybe20:25
EickmeyerIf you want the generic by default, all you have to do is edit /etc/default/grub.d/ubuntustudio.cfg and replace "lowlatency" in line 4 to read "generic".20:26
semso if 'threadirqs' is still added to the commandline that's ok?20:27
EickmeyerDepends. Are you trying to avoid xruns at all?20:27
semIdeally I would boot into the lowlatency kernel and avoid xruns when doing audio work (and choose that from the grub menu) but by default, boot into a kernel that optimizes for battery life / performance.20:29
EickmeyerUnfortunately, there's no easy way to do that by just switching kernels. Threadirqs does take a power hit, but it is essential to avoiding xruns and activating the lowlatency effects of both the generic and lowlatency kernel. Without it, the lowlatency kernel isn't as lowlatency as it can be and *will* have xruns.20:30
EickmeyerWith that, you'll have to make compromises.20:30
semMy understanding might be a little confused... can I save the boot entry for "lowlatency" to add "threadirqs", but the boot entry for -generic doesn't have it? (Similar to having one boot entry with "quiet splash" and another one without it)20:32
EickmeyerAnother way is to use the refind bootloader, which is in the repositories. After it's installed, you can use "sudo dpkg-reconfigure ubuntustudio-lowlatency-settings" which will then configure between using threadirqs for lowlatency and not for generic as its postinstall script is refind-aware.20:32
Eickmeyer!info refind mantic20:33
ubotturefind (0.13.2-1, mantic): boot manager for EFI-based computers. In component universe, is optional. Built by refind. Size 3,180 kB / 5,216 kB. (Only available for amd64, arm64, i386.)20:33
Eickmeyersem: Sadly, for grub, it doesn't work that way. It's either all or nothing.20:33
semOk. Maybe it is time I learned to use a new bootloader :)20:33
Eickmeyersem: We used to have it for grub that it automatically put threadirqs only for lowlatency, but the script that did that became incompatible with this version of grub in 23.10, so we were forced to drop it. It was so incompatible our .iso images failed to build.20:34
semthe other thing I don't like about grub is that its OS_Prober does weird things to overwrite your /etc/default/grub configurations, so I have to always disable OS_Prober20:35
Eickmeyersem: You can read more about refind here: http://www.rodsbooks.com/refind/20:36
semaccording to the website it is a bootmanager not a bootloader, but the kernel is able to bootload itself; that is good to know20:42
Eickmeyersem: Exactly. I use it and prefer it.20:43

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