How to upgrade to low latency kernel on Pi OS(Debian bookworm)?
|
Posts: 18
Threads: 3
Joined: Jan 2023
Reputation:
3
Location: China
21-Jan-2024, 12:45 PM
How to upgrade to low latency kernel on Pi OS(Debian bookworm) for snake oil?
Posts: 642
Threads: 37
Joined: Mar 2019
Reputation:
150
Location: Melbourne, Australia
There is no low latency kernel. There may be a real time kernel coming in the next release.
If you cannot wait, you can build one yourself following my process
https://www.snakeoil-os.net/forums/Threa...98#pid6998
Posts: 446
Threads: 23
Joined: Jan 2019
Reputation:
121
(21-Jan-2024, 12:45 PM)clark8888 Wrote: How to upgrade to low latency kernel on Pi OS(Debian bookworm) for snake oil?
Even replaced with lowlatency or even real time kernel, the clock on Pi's motherboard (oscillator) is too lousy. And there is not hpet in Pi. Apart from the convenience, I'm afraid that Pi can't produce very good music quality.
Posts: 18
Threads: 3
Joined: Jan 2023
Reputation:
3
Location: China
22-Jan-2024, 07:51 AM
(This post was last modified: 22-Jan-2024, 07:54 AM by clark8888.)
(21-Jan-2024, 06:25 PM)hkphantomgtr Wrote: (21-Jan-2024, 12:45 PM)clark8888 Wrote: How to upgrade to low latency kernel on Pi OS(Debian bookworm) for snake oil?
Even replaced with lowlatency or even real time kernel, the clock on Pi's motherboard (oscillator) is too lousy. And there is not hpet in Pi. Apart from the convenience, I'm afraid that Pi can't produce very good music quality.
asynchronous usb can use DAC's deluxe oscillator instead of Pi's poor one, don't worry
(21-Jan-2024, 03:57 PM)Snoopy8 Wrote: There is no low latency kernel. There may be a real time kernel coming in the next release.
If you cannot wait, you can build one yourself following my process
https://www.snakeoil-os.net/forums/Threa...98#pid6998
Thanks! If installing Ubuntu server on Pi, can "sudo apt install linux-lowlatency" work?
Posts: 446
Threads: 23
Joined: Jan 2019
Reputation:
121
22-Jan-2024, 09:45 AM
(This post was last modified: 22-Jan-2024, 09:49 AM by hkphantomgtr.)
(22-Jan-2024, 07:51 AM)clark8888 Wrote: (21-Jan-2024, 06:25 PM)hkphantomgtr Wrote: (21-Jan-2024, 12:45 PM)clark8888 Wrote: How to upgrade to low latency kernel on Pi OS(Debian bookworm) for snake oil?
Even replaced with lowlatency or even real time kernel, the clock on Pi's motherboard (oscillator) is too lousy. And there is not hpet in Pi. Apart from the convenience, I'm afraid that Pi can't produce very good music quality.
asynchronous usb can use DAC's deluxe oscillator instead of Pi's poor one, don't worry
(21-Jan-2024, 03:57 PM)Snoopy8 Wrote: There is no low latency kernel. There may be a real time kernel coming in the next release.
If you cannot wait, you can build one yourself following my process
https://www.snakeoil-os.net/forums/Threa...98#pid6998
Thanks! If installing Ubuntu server on Pi, can "sudo apt install linux-lowlatency" work?
Maybe you need some more time and tests to see what I mean. Moreover, there is no hpet, not even TSC clocksource in pi. That also significantly affects the sound quality. Unless you've already brought the Pi, just don't buy it for cas.
Btw, you can install lowlaterncy kernel, and even real time kernel in Ubuntu server. But after reboot, only the stock kernel is used by pi. If you've digged a bit more in recent post (Last December), you'll find another webmate found a way to get Pi to boot with these kernels by renaming them, yet I can't make it. And in another web it provides a ready made real-time kernel Ubuntu Server 22.04LTS. I've used it and mentioned in the same thread, too.
Posts: 642
Threads: 37
Joined: Mar 2019
Reputation:
150
Location: Melbourne, Australia
(21-Jan-2024, 06:25 PM)hkphantomgtr Wrote: Apart from the convenience, I'm afraid that Pi can't produce very good music quality.
That is a very bold claim!
It is not easy to tell the difference between my Pi4 (Mercury V2 Streamer) with a real time time kernel and my NUC with the Ubuntu real time kernel. Maybe the NUC is slightly ahead. Both are using the same linear power supply, CPUset and convolution DSP.
In my setup, the Pi 4 CAN produce very good music quality!
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(22-Jan-2024, 12:55 PM)Snoopy8 Wrote: That is a very bold claim!
It is not easy to tell the difference between my Pi4 (Mercury V2 Streamer) with a real time time kernel and my NUC with the Ubuntu real time kernel. Maybe the NUC is slightly ahead. Both are using the same linear power supply, CPUset and convolution DSP.
In my setup, the Pi 4 CAN produce very good music quality! I think your Mercury V2 is CM4 based? CM4 (and hopefully future CM5) based boards are slightly different. I'm thinking/hoping this player of yours has a crystal (usually encased in a metal can) on a board somewhere. Some even have 2..
You kind of need that to generate a regular tick so that the Pi can be slaved to it (Master clock). Without that, the tick will be generated by some chip or via software (there's also a tickless mode) I actually forgot which is better now. :/ Problem with using software to keep time is the time can "drift" when the CPU is busy. That drift back and forth is considered jitter and may "smear" audio, in the sense you seem to lose a tiny bit of that pin point precision (Just a guess as I can't really confirm this).
Pi on it's own do not have a crystal. But I'm almost certain you can provide a different (hopefully better) clocksource for the Pi (via one of the GPIO).. However I'm no longer in the DIY scene so havn't really keep myself up to that. It's just easier with CM4 as you plug the CM4 daughterboard onto some main board, which should have all the components required for a good audio system.
Pi unit on it's own will not be a high end player. But if using it for ambient background music for work, etc? it'll still be good.. It's like using BT wireless headphones, all those AptX and so on, they all sound terrible. But we still use wireless because it's convenient.
Snakeoil Operating System - Music, your way!
Posts: 123
Threads: 5
Joined: Feb 2020
Reputation:
54
Location: UK
06-Feb-2024, 11:54 PM
(This post was last modified: 08-Feb-2024, 04:29 AM by uglymusic.)
(26-Jan-2024, 10:25 AM)agent_kith Wrote: (22-Jan-2024, 12:55 PM)Snoopy8 Wrote: That is a very bold claim!
It is not easy to tell the difference between my Pi4 (Mercury V2 Streamer) with a real time time kernel and my NUC with the Ubuntu real time kernel. Maybe the NUC is slightly ahead. Both are using the same linear power supply, CPUset and convolution DSP.
In my setup, the Pi 4 CAN produce very good music quality! I think your Mercury V2 is CM4 based? CM4 (and hopefully future CM5) based boards are slightly different. I'm thinking/hoping this player of yours has a crystal (usually encased in a metal can) on a board somewhere. Some even have 2..
You kind of need that to generate a regular tick so that the Pi can be slaved to it (Master clock). Without that, the tick will be generated by some chip or via software (there's also a tickless mode) I actually forgot which is better now. :/ Problem with using software to keep time is the time can "drift" when the CPU is busy. That drift back and forth is considered jitter and may "smear" audio, in the sense you seem to lose a tiny bit of that pin point precision (Just a guess as I can't really confirm this).
Pi on it's own do not have a crystal. But I'm almost certain you can provide a different (hopefully better) clocksource for the Pi (via one of the GPIO).. However I'm no longer in the DIY scene so havn't really keep myself up to that. It's just easier with CM4 as you plug the CM4 daughterboard onto some main board, which should have all the components required for a good audio system.
Pi unit on it's own will not be a high end player. But if using it for ambient background music for work, etc? it'll still be good.. It's like using BT wireless headphones, all those AptX and so on, they all sound terrible. But we still use wireless because it's convenient.
I'm sure it's not the only board for the RPi that has this, but my Allo Digione Signature has its own clock, so it doesn't rely on the RPi's.
Posts: 450
Threads: 30
Joined: Oct 2016
Reputation:
89
Location: Pacific
Plenty of add-on devices that slave the Pi to their clock..Allo, HiFiBerry et al.
Pi 4 and above have more than enough resources for good audio.
Though somehow a modest X86/amd64 device (NUC, Thin-client etc) have the better resolution for me.
Posts: 446
Threads: 23
Joined: Jan 2019
Reputation:
121
I found this in web for more reference clocksource « Remi Bergsma's blog. Of course that's totally out of my knowledge.
|
Users browsing this thread: |
1 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
SnakeoilOS Mission Statement
|
Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.
SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.
If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.
|
|
|