Skip to content

Instantly share code, notes, and snippets.

View fkpwolf's full-sized avatar
🦉
watch

Kunpeng Fan fkpwolf

🦉
watch
View GitHub Profile
@fkpwolf
fkpwolf / nvme-vf.sh
Last active March 15, 2024 23:47
test PM1733 SR-IOV
#!/bin/bash
sudo nvme virt-mgmt /dev/nvme1 -c 65 -r 1 -a 1 -n 0
sudo nvme virt-mgmt /dev/nvme1 -c 65 -r 0 -a 1 -n 0
sudo nvme reset /dev/nvme1
# check 'nvme virt-mgmt --help' for more details
sudo nvme virt-mgmt /dev/nvme1 -c 1 -r 0 -n 9 -a 8 # first controller
sudo nvme virt-mgmt /dev/nvme1 -c 1 -r 1 -n 9 -a 8
  1. miss some CJK fonts on app like netease CloudMusic
sudo dnf install google-noto-sans-cjk-fonts
@fkpwolf
fkpwolf / install.md
Last active September 16, 2023 01:10
B650M AORUS on Linux

ITE IT8689E SUPER IO

The chip https://yujihw.com/review/gigabyte-b650-aorus-elite-ax-unboxing/5

To get fan speed info , need to install it87 module from https://github.com/frankcrawford/it87 since main stream kernel doesn't support the chip. Then sudo insmod it87.ko ignore_resource_conflict=1 otherwise get error:

[ 1319.834513] it87: it87 driver version v1.0-125-g5853fd9.20230415
[ 1319.834607] it87: Found IT8689E chip at 0xa40, revision 2
[ 1319.834662] it87: Beeping is supported
[ 1319.834685] ACPI Warning: SystemIO range 0x0000000000000A45-0x0000000000000A46 conflicts with OpRegion 0x0000000000000A45-0x0000000000000A46 (\GSA1.SIO1) (20221020/utaddress-204)
@fkpwolf
fkpwolf / gist:7933e9ff1e34b9a54cb3f2589495f350
Last active April 29, 2023 03:13
try nvidia open-gpu-kernel-modules
@fkpwolf
fkpwolf / install.md
Last active December 3, 2022 03:52
Realtek RTL8822BU on Linux

It shows as Bus 001 Device 011: ID 0bda:b82c Realtek Semiconductor Corp. 802.11ac NIC.

The SOC is The Realtek RTL8822BU-CG is a highly integrated single-chip that supports 2-stream 802.11ac solutions with Multi-user MIMO (Multiple-Input, Multiple-Output) and Wireless LAN (WLAN) with integrated Bluetooth 2.1/3.0/4.1 USB-multi interface controller. It combines a WLAN MAC, a 2T2R capable WLAN baseband, and RF in a single chip. The RTL8822BU-CG provides a complete solution for a high-performance integrated wireless and Bluetooth device.

In Feodra 37 with Linux 6.0.10, Bluetooth is working but WiFi is not.

Linux Driver: https://github.com/cilynx/rtl88x2bu

@fkpwolf
fkpwolf / Program.cs
Created October 8, 2019 14:21
C# stream read json
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.IO;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
这个在我的 github.com 下面能看到?还是只能通过链接 share?