You are not logged in.

#1 2023-04-05 14:52:55

scatherinch
Member
Registered: 2023-02-24
Posts: 160

[SOLVED] Pipewire Audio Crackling: Hardware Clock Value?

I've been trying to eliminate the crackling issue that comes with pipewire when you first install it onto your system. While I've managed to solve it, (I followed this post: https://bbs.archlinux.org/viewtopic.php?id=283324 ) I'm trying to figure out how to make a setting stick. Every time I go and reboot, the values in the two files mentioned in the post (/proc/sys/dev/hpet , /sys/class/rtc/rtc0 ) switch back to the default values of 64 and I want them to stay on 2048.

I feel like I'm missing something that I didn't read from that guy's post and at https://wiki.archlinux.org/title/Professional_audio

How can I make this value stay?

Last edited by scatherinch (2023-04-05 19:08:00)

Offline

#2 2023-04-05 15:23:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,384
Website

Re: [SOLVED] Pipewire Audio Crackling: Hardware Clock Value?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-04-05 15:52:22

scatherinch
Member
Registered: 2023-02-24
Posts: 160

Re: [SOLVED] Pipewire Audio Crackling: Hardware Clock Value?

so from what I'm reading, these are supposed to reset, or simply doing 'echo' only affects the current session?

Offline

#4 2023-04-05 18:15:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,384
Website

Re: [SOLVED] Pipewire Audio Crackling: Hardware Clock Value?

Did you read the link I posted?  Changing those files at runtime only lasts until the next shutdown / reboot and the files are recreated at boot.  The link I posted is specifically for this situation so that you can provide a value to be placed in those files when they are created on boot up.

Last edited by Trilby (2023-04-05 18:38:43)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2023-04-05 19:06:51

scatherinch
Member
Registered: 2023-02-24
Posts: 160

Re: [SOLVED] Pipewire Audio Crackling: Hardware Clock Value?

Oh. Sorry. Yeah, I read it, but I misunderstood it and had to read it a few more times to get it

I followed the template in your link and edited the paths to those two directories like this for anyone else who wants to try and tackle the crackling in pipewire: 

cd /etc/tmpfiles.d
make file of your choosing ( touch <filenamehere>.conf ) and add contents:     
#    Path                  Mode UID  GID  Age Argument
w    /sys/class/rtc/rtc0/max_user_freq     -    -    -    -   2048

make another file with name of your choosing (touch <filenamehere>.conf) and add contents:   
#    Path                  Mode UID  GID  Age Argument
w    /proc/sys/dev/hpet/max-user-freq     -    -    -    -   2048 

Thanks for your time!

Last edited by scatherinch (2023-04-05 19:14:33)

Offline

Board footer

Powered by FluxBB