Spyke

Posts

I got my Wifi 7 back, and I learned some stuff.

A couple weeks back, suddenly my MSI 6500 BE Wifi 7 USB stick stopped working. I guess Realtek uses a non compliant method to make these things go vroom (with their RLT8912AU chip) and in the the newer kernels a choice was made to no longer support those. I can understand that, but my onboard wifi sucks and pulling cables is not immediately an available option, I bought the stick before I knew I was switching over to Linux fulltime, so, here I was.

In the end i had to:

sudo dnf install git kernel-devel kernel-headers make gcc dkms

git clone https://github.com/morrownr/rtw89.git

cd rtw89

make clean

make

sudo make install

sudo modprobe -r mt7925u #stop the wrong driver it was using for it.

sudo modprobe rtw_8922au

I thought I tried all these steps before, but building the driver somehow didn't work then. So maybe there is some step missing.

Things i did but not sure if that was necessary:

echo "blacklist mt7925u" | sudo tee /etc/modprobe.d/blacklist-mt7925.conf sudo modprobe -r mt7925u #Blacklist old driver

sudo nano /etc/modprobe.d/rtw89.conf

add these lines to that file:

options rtw89_usb disable_usb_autosuspend=y
options rtw89_core disable_ps_mode=y

then i

sudo modprobe rtw89_8922au_git

but it said

`rtw89 git:(main) sudo modprobe rtw89_8922au_git

modprobe: ERROR: could not insert 'rtw89_8922au_git': Key was rejected by service `

so now i had to manually sign this kernel change because i use secureboot for some multiplayer games.

sudo dnf install openssl keyutils

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=RTW89 Driver/"

sudo /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der /lib/modules/$(uname -r)/extra/rtw89/rtw89_8922au_git.ko

sudo mokutil --import MOK.der #*It will ask you to create a temporary password. **Don't forget it.***

  1. Restart your computer.
  2. Before Fedora boots, a blue screen titled "Shim UEFI Key Management" or "MOK Manager" will appear.
  3. Select Enroll MOKContinueYes.
  4. Enter the password you created in Step 2.
  5. Select Reboot.

Still got errors, because more things need to be signed with my new keys?

cd ~/rtw89

sudo find /lib/modules/$(uname -r)/extra/rtw89/ -name "*.ko" -exec /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der {} \;

sudo depmod -a

sudo modprobe rtw89_8922au_git

Phew, now it was showing up in more then just a notification. I couldn't connect to my WPA2/WPA3 network, so as a last step I changed my network to WPA2 only, now i'm finally connected with wifi7 again, which in my usecase gives me a lot more stable/lower latency connection :) it took a bit of tinkering. Maybe sharing it like this will save the next person some time.

**EDIT

the WPA2/WPA3 switch was causing problems for other users of my network. I changed the USB-sticks mode so it wont hang on configuring interface while, on the router, WPA2/3 (transition) mode is still enabled

nmcli connection show

Find the connection that needs to be told to keep their encryption method steady and give it this rule:

sudo nmcli connection modify fcf94a45-ba9e-4591-8cbb-e2e899229fa9 802-11-wireless-security.pmf 1

Also added this, don't know if it is crucial:

sudo nano /etc/modprobe.d/rtw89.conf

add this lines to that file:

options rtw89_8922au_git disable_vht=n disable_he=n

EDIT 2

New kernel, new day in the terminal coal mines. I made a script that should do the work for me next time.

#!/bin/bash
# Automation script for rtw89 driver updates on Fedora
# Target: /usr/local/bin/rtw89-update

DRIVER_DIR="$HOME/rtw89"
KERN_VER=$(uname -r)
SIGN_TOOL="/usr/src/kernels/$KERN_VER/scripts/sign-file"
MOK_PRIV="$DRIVER_DIR/MOK.priv"
MOK_DER="$DRIVER_DIR/MOK.der"

echo "--- Starting rtw89 update for kernel: $KERN_VER ---"

# 1. Update and Build
cd "$DRIVER_DIR" || { echo "Error: Driver directory not found"; exit 1; }
echo "[1/4] Pulling latest driver code..."
git pull
echo "[2/4] Rebuilding driver..."
make clean && make -j$(nproc)
sudo make install

# 2. Bulk Sign
echo "[3/4] Signing all modules in /extra/rtw89/..."
sudo find "/lib/modules/$KERN_VER/extra/rtw89/" -name "*.ko" -exec "$SIGN_TOOL" sha256 "$MOK_PRIV" "$MOK_DER" {} \;

# 3. Load
echo "[4/4] Refreshing module list and loading..."
sudo depmod -a
sudo modprobe rtw89_8922au_git

if [ $? -eq 0 ]; then
    echo "--- SUCCESS: WiFi Driver loaded ---"
else
    echo "--- FAILURE: Check dmesg for errors ---"
fi

If you 'sudo nano /usr/local/bin/rtw89-update' you can apparently call that script afterward with just rtw89-update , neat! dont forget to sudo chmod +x /usr/local/bin/rtw89-update so the os knows to treat it as an executable.

View original on lemmy.world
infinitree·InfinitreebyChee_Koala

Prototype Release Date

Hey everyone, it's me, the developer for Infinitree! Thanks for checking out the community for it.

After having to delay the prototype release again, I have now set jan. 31st 21:00 CET as definitive prototype release date (for windows) Seeing as this is my first release evah, there will be some kinks in the cable. Don't worry, we'll get though it, together 😅.

https://playinfinitree.com/index.php/2024/12/23/d-d-delays/

Read more about that and everything else concerning Infinitree, on the official website! Subscribe to the newsletter to get updates right in your inbox.

View original on lemmy.world
projectzomboid·Project ZomboidbyChee_Koala

A grim story told through a friends diary

https://imgur.com/a/e5GVZPO

Night one in the mall - it is very dark here, i brought my tent it will do for the time being. Its very scary hearing the dead roam the mall. Hopefully backup will arrive soon. In the mean time i'm going to clear some more. If anyone finds this note, I'm either dead or had to run and lick my wounds. Fuzz

Night two in the mall - I hooked up some speakers to a radio and played my favourite song to attract some zeds. It's quite eerie hearing the music echo in the hall, followed by the groans of the undead. I ready my shotgun and see the shells piled up in my bag, I should be able to rid a big group of them. Ironically the song is called "You're gone"... will this be my last stand off?

Night 3 and 4 at the mall - I was making great progress in the mall. It started to get quieter and I started to feel safe. Clearing it with that shotgun and ammo that I found was so satisfying. Thought it did nearly get me killed. My shotgun jammed just as I was going to kill a zombie at point blank range. Luckily I could hit the zombie in the face with it and distanced myself again.

While I was looting the BBQ store, I found the holy grail that we have been looking for quite some time. It's the magazine that teaches us how to use generators. In my enthusiasm I radioed back home, shouting with joy.

Ché, Anvi and Peet were chuffed and told me to rest there one more night. Come dawn they were going to head towards me and fetch me by car.

I was exhausted but exited to see my friends again so I went back to my tent. I made sure I barricaded the storage room I was camped in and put the shotgun next to my sleeping bag. I actually slept really well since the first time in ages.

The next day we all were chatting and laughing on the walkietalkies while they were heading to the mall. For the very first time in ages, I really felt alive. Anvi souped up one of the cars making him drive like a speed demon. It was funny but also nerve wrecking to hear him nearly kill himself while swerving out of the away from the zombies while racing the rest of the crew.

When they arrived the mood was still joyful. Perhaps I was too optimistic and gave them a false sense of security. We put the magazine and some supplies I gathered in the trunk of the car. We decided to do a quick look before we left. We all to separate parts of the mall trying to find some more valuable loot. It wasn't long before we could hear screaming and shouting coming from the south side of the mall. It was Anvi, he got boxed in on the escalator and was panicking and screaming for helm. I ran there as fast as I could, and readied my shotgun. Just as I walked around the corner I saw that my friend was being mauled and eaten by the undead. I was filled with rage and started to blast them. Perhaps I could still save him.

The zombies around him were dead, though not much was left of him. I couldn't bare the sight, so I turned around and tried to find the rest of my friends. I heard another groan and looked behind my shoulder. It was Anvi he was shambling towards me while almost tripping over his own intestines. I couldn't shoot him, even though he turned into a zed.

I started to run to my other friends and saw Che, he saw my grim look and didn't ask any questions. Just as we made eye contact we heard more screams of pain. Before we could react and figure out where he was they stopped. We eventually found his eaten corpse with his duffel bag just behind the counter with the popcorn machine. The zeds were no where to be seen.

We fled to the car and drove back to our base. We didn't say a word during this ride. I felt terrible and very guilty. It's because of me and my stupid idea of living in the mall, that my friends are gone. I shouldn't have stayed there for so long and shouldn't have said it was safe. I'm going to drink that bottle of bourbon I found and hopefully drown my sorrows. Tomorrow will be another day in this hell infested world and I cannot let it consume me too. "

The community seemed a bit low on content, so I rummaged through our private dedicated servers history to get some OG lemmy content up in here. A friend of mine wrote this when he was off solo. Hope you enjoyed!

View original on lemmy.world

You reached the end