oe7drt-website/content/notes/fedora/index.md

86 lines
1.6 KiB
Markdown

---
title: Fedora
date: 2024-12-31T13:21:50+0100
lastmod: 2025-01-01T17:22:27+0000
tags:
- fedora
- networkmanager
#showDate: false
showReadingTime: false
showWordCount: false
showPagination: false
#showAuthor: false
showBreadcrumbs: true
feed_exclude: true
# site_exclude: true
draft: true
---
## Fedora 41: broken audio on my X1 Carbon Gen7
Add this to `/etc/modprobe.d/alsa.conf`:
```conf
options snd-intel-dspcfg dsp_driver=1
```
and reboot.
What devices?
```console
$ lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 11)
$ inxi -A
Audio:
Device-1: Intel Cannon Point-LP High Definition Audio driver: snd_hda_intel
API: ALSA v: k6.12.7-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.2.7 status: active
```
## dnf
### increase speed
Add to the end of the config file (`/etc/dnf/dnf.conf`):
```conf
max_parellel_downloads=10
fastestmirror=true
```
### keep cache
Add to `/etc/dnf/dnf.conf`:
```conf
keepcache=1
```
## Fixed MAC address on wifi device
```console
$ sudo touch /etc/NetworkManager/conf.d/22-wifi-mac-addr.conf
```
This prevents loading <kbd>/usr/lib/NetworkManager/conf.d/22-wifi-mac-addr.conf</kbd>,
which should contain something like:
```systemd
[connection.22-wifi-mac-addr]
match-device=type:wifi
wifi.cloned-mac-address=stable-ssid
[.config]
enable=nm-version-min:1.45
```
So if we just want to use the original MAC address on your home network,
we use `nmcli` for that, like for my homenet _Macarant_Net_:
```console
$ nmcli connection modify Macarant_Net wifi.cloned-mac-address permanent
```