when I connect my Bluetooth headphone it goes max volume in fedora 41. Everytime I need to manually decrease it to 50-60% and when I disconnect and connect again it goes to 100% volume. linux not remembering my sound settings
What does wpctl settings device.routes.default-sink-volume
show?
$ wpctl settings device.routes.default-sink-volume
Value: 0.064
“Could not find registered settings”
Does sudo rpm -V wireplumber
show any output?
Edit: Appearently one thing that can cause the volume to be remembered incorrectly is the presents of a ~/.local/state/wireplumber/sm-settings
file. (0.4.81/82 (0.5 pre) Forgets Loopback Volume Levels on Restart (#577) · Issues · PipeWire / wireplumber · GitLab)
In any case, you might want to dig through that bug tracker and see if you can find reports of problems similar to yours.
sudo rpm -V wireplumber shows nothing.
Edit: Each time I reconnect my Bluetooth headphone, headphone volume resets to 100%, not only when I startup or reboot my laptop. I discovered that if I use mSBC or CVSD codec it doesn’t happen, only when I use AAC codec I face this problem. But I have to AAC codec because other codecs give really bad audio output. My headphone works fine with my other device (Android phone and my windows pc). so I am sure it has something to do with fedora or am I missing some config file? I started using linux 4 days ago because my laptop is too slow to run windows. I have never used linux before.
Welcome to Linux. There are many aspects of the Linux OS that are in active development. For the devices that are still being implemented, you have to be patient with the developers as they try to get the hardware working. Understand that, in many cases, Linux is a secondary concern for the hardware manufacturers and their main revenue source is from other operating system vendors. Also, there are DRM restrictions that prevent some codecs from being used on Linux.
Is this report a closer match to the one you are experiencing?:
If so, you might tack a “me too” onto the report and, if you can, provide extra details about the problem. Hopefully a developer will get to the problem soon. However, there does appear to be quite a large backlog in that issue tracker (293 open issues). In the meanwhile, you might have to find a workaround such as writing your own small script to set the volume to what you prefer and a udev rule to activate it whenever you attach your headphones.[1]
Same thing happens here. Volume settings reset to 100% every time I reconnect my earbuds. Did not use to happen when I was running Kubuntu. Probably a bug in the wireplumber version being used. Not a big deal for me as a rarely use bt.