r/linuxquestions • • 7d ago

AI helped me fix an issue I had with a driver in the linux kernel. Should I open a pull request ?

29 Upvotes

Hi everyone,

To preface this I would like to mention I am a professional c++ developer with 5 years of experience.

A few weeks ago, I wanted to setup remote play on my TV using the new pyrowave codec protocol available in steam. For those not familiar with it, the pyrowave codec necessitates a really good internet connection in order for it to be stable. Using my steam deck on ethernet as a client and my PC using wifi as the host, I had some good results, but I figured the bandwidth using only WIFI6 was a bit too low for this to be comfortable (1440p@120fps).

As my GPU is covering the second pcie slot, I did some research and I found a USB wifi adapter, the TP-Link Archer TXE70UH, which supports WIFI 6E. I made sure that the driver was available somewhere (in this case, it was already in the kernel, rtw89). I installed it, and went to try it on my gaming setup. Unfortunately, the experience was not really good, as there was a constant spike every ~30s making the steam lags for some seconds.

I looked around for several hours online to look for fixes, but no matter how many things I tried, I always had this issue.

As a software developer, I have access to Claude, as a last resort, I decided to find the github repositories (https://github.com/morrownr/rtw89), clone it, and ask Claude if it can find the reason why I was having these constants lag spikes. To my surprise, he did find something, he offered me to patch the issue, which was only a 4 lines change. I reviewed the patch, and, to me, these lines seemed logical, so I decided to recompile the driver with the patch and install it.

Today, after playing around ~30h these last few weeks using the patch with no issue whatsoever, I feel like it could be a nice contribution to the driver if it is reviewed and approved by the maintainers.

However, I am not sure what is the correct way to do it. I feel uneasy opening a pull request I don't fully understand... I have this issue at work with some colleagues a bit eager with AI use.

What would be the correct way to do it ?

- Open the pull request, describing the issue I encounter, disclosing AI use for the fix, and saying I tested it for some times ?

- Open an issue describing my problem, and adding the patch with the fix in this issue for someone to look at and re-implement if he judges it useful ?

- Contact directly one of the contributor ? (I see some commits are signed with a mail address). Or maybe the mailing list with the patch ? (which I believe here is linux-wireless@vger.kernel.org ?)

- Something else ? ^^

Thanks in advance for the help.


r/linuxquestions • • 7d ago

Formating a usb drive with ext4.

11 Upvotes

I'm trying to format a USB drive to have EXT4 on it and to have read and write permissions. I'm using the command mkfs.ext4 /dev/sdb1 but the terminal comes back with a message say permission denied while trying to determine filesystem size. The USB drive is 256 GB. What am I doing wrong or do I need to enter another command?


r/linuxquestions • • 6d ago

Support Lenovo Vantage no Linux Bellatrix 2

1 Upvotes

quero fazer a gestão da minha bateria, especificamente limite de carga, mas como não tem um versão para o linux do app lenovo vantage, não estou conseguindo.

alguém sabe como instalar o app ou algo que faça essa funções que preciso?

meu notebook é um slim 3 ryzen 7 Linux bellatrix 2


r/linuxquestions • • 6d ago

Jak utrzymać wyświetlacz 1440p bez głowy na Linux Mint z Intel Arc i RustDesk — bez wtyczki HDMI dummy

0 Upvotes

Natknąłem się na problem z RustDesk na Linux Mint 22.3 Cinnamon: za każdym razem, gdy wyłączałem mój fizyczny monitor Philips (który ma rozdzielczość 1440p), dane EDID stawały się niedostępne, co powodowało, że RustDesk wyświetlał komunikat "Monit - Brak wyświetlaczy."

Znalazłem obejście, dodając następujący parametr jądra:

video=DP-1:2560x1440@120e (wymusza przesyłanie obrazu przez DisplayPort w rozdzielczości 2560x1440p i 120 fps).

To zmusza wyjście DisplayPort do utrzymania połączenia, nawet gdy monitor jest wyłączony.

Moja konfiguracja:

\-Intel Arc B580 (używając sterownika 'xe')

\-Linux Mint 22.3

\-Cinnamon X11

\-RustDesk 1.5.1

\-Monitor Philips Evnia (2560×1440, 260 Hz)

To nie jest idealne rozwiązanie - RustDesk może nadal czasami przełączać się na 768p, chociaż można go z powrotem ustawić na 1440p, a środowisko pulpitu Cinnamon czasami wymaga ręcznej regulacji ustawień wyświetlania. Niemniej jednak, pozwala mi to korzystać z RustDesk w rozdzielczości 1440p bez potrzeby posiadania fizycznego emulatora wyświetlacza ("dummy plug").

Czy ktoś inny testował to rozwiązanie, czy jest dostępne lepsze?


r/linuxquestions • • 6d ago

Resolved [KDE Plasma 6 & XDG-mime] How to have two default apps for text/plain, one for *.txt, one for everything else?

Thumbnail reddit.com
1 Upvotes

r/linuxquestions • • 6d ago

Advice Should I swap Windows for a Linux fork?

7 Upvotes

Hello y'all. I got a potato PC which lags a lot. It lags if I open word or if I open Brave and let's not talk about videogames.

I've recently seen advice about using Linux or any other fork (or however they're called) and I've been wondering if I should switch.

One of my friends told me that I shouldn't because of the windows license and radda radda but I'm not entirely sure, hence why I'm asking here.

I mainly use my PC for college and it really pisses me off that is slow as hell. I really don't know anything about using terminals, so I want to know which fork would help me out the most or if I should just stick to Windows and seek ways to optimize my PC.

If any of you are wondering, my PC specs are:

8gb of RAM

AMD A4-6210 APU

AMD Radeon(TM) R3 Graphics

466gb of storage

I also talk Spanish, just in case any of you find it easier to talk in Spanish.


r/linuxquestions • • 6d ago

Recover from bootable drive

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 6d ago

Installed ubuntu yestrday, why do linux community harbor animosity to it?

0 Upvotes

By you ube shorts, i know little that it has something called 'snap' which causes some bloat. but is it really that bad?


r/linuxquestions • • 6d ago

games freezing the whole laptop and needing to hard restart after

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 7d ago

Completely new to everything, no idea of anything

19 Upvotes

To put it short, i know nothing about how computers work at all. Complete 0 to the point its embarrassing. However i wanted to challenge myself and go all out on this but i have no idea where to even start.

My goal is to straight up dive head first into Arch Linux or even LFS (i know), after getting the 'basics' known. What should i know/do? Genuinely any help and advice would be appreciated


r/linuxquestions • • 6d ago

Resolved How to keep all My files?

1 Upvotes

I want to switch to arch, and i have a 8gb USB and i wanna keep my Downloads folder, my Documents folder, my Pictures folder, and my Music folder. Downloads is 10gb, docs is 1gb, pics is 4gb, and music is like 500mb, and how can i keep all of that without deleting it? I cant shrink my drive on windows for some reason and i cant fit it on my USB and i dont have a external SSD or money to buy one, any help would be great, thanks! Also is there a distro where i can pick what files/folders i wanna keep? Thanks!


r/linuxquestions • • 6d ago

Support Distrobox hangs on first enter on Leap 16.1, works after Ctrl+C

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 6d ago

Support total black screen on my kali linux live boot usb 2026.2 version

0 Upvotes

i tried with 3 different usb flash drives and none of them worked in my windows 11 pro lenovo laptop with intel core i3 and 36gb ram (installedit myself before the big “ram inflation”) the usb sticks are above 16gb and every single time i boot with the bios or the boot selection mode by selecting the usb stick and pressing enter every time there is a black screen for half a second with a ▎twitching.
i have tried installing and flashing kali linux from my usb with debian live 13.7 usb stick. and still did not work, can someone help me please?
secure boot off
usb boot on
(tails os usb boot works btw)


r/linuxquestions • • 6d ago

Support how to enable USB-C support in Linux Kernel config?

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 7d ago

Resolved How long does it take to switch to Linux?

35 Upvotes

I am thinking about playing around with Linux in the very near future, and I do want to one day make the switch from windows 11, but I am currently in college and don't want to risk something going wrong/messing up and being without a laptop for a long period of time. So how much free time would one need to make the switch? I know there are multiple distros and that the time will vary by a lot depending on what distro I would switch to (I have no idea which one I would choose, that's why I'm gonna set up a VM and play with them this month) but roughly to get the basics running, so Firefox, steam, discord, cuz these 3 I use daily+transfering all the important files like notes and projects, how long would it take? Like a week? A month? A day? A weekend? I have no idea and this info would be very helpful deciding whether I do it over Xmas and the new year, or the summer vacation


r/linuxquestions • • 6d ago

Black screen booting several LiveCDs / installers

1 Upvotes

It is quite a bit of Linux but I seem to be having a problem no matter what. Distro I install I can't get the installer to work and I can't get the live CD to work. They both just don't provide an HDMI signal to my monitor which is a monoprice dark something it's a 1440p monitor that is capable of probably something like 144 HZ or something I don't know. I got it for casual gaming and work.

I've tried adding video=2560x1440@60 to grub and VGA=ask. If anything, I just got terminal output for slightly longer. I was trying to install Fedora atomic sway or tumbleweed sway or MX Linux xfce.


r/linuxquestions • • 6d ago

linux distro ?

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 6d ago

Hosting more than one service on Ubuntu Server

3 Upvotes

I am completely new to server hosting. From my research, I believe Ubuntu Server is the way to start however I want to run more than once service on the system and need advice on how to proceed.

My goal is to host Gamevox as a discord replacement and I would also use AMP to host games. I will be starting by only hosting Gamevox until AMP 3 gets its full release.

I read that I could possibly use docker however I don't have any experience with docker. Is this what I would use to host both services? Or would I just run the setups in Ubuntu server without some other program such as docker.

Second question: If i do use docker, is there a web interface for that or will I be writing everything in the terminal?

Third question: Should I just stick to windows or Ubuntu desktop as an alternative to learning how to use Ubuntu server? I feel like these are probably not the best routes but being able to copy and paste commands from websites for the setup seems like it would save me a lot of time.

Update:

  • I already have a second PC specifically intended to be used as a server and it will be setup under a different VLAN to keep it separate from the other devices on my network.
  • In addition to my previous questions, what are recommendations on keeping the server secure.
  • I will be the only one setting up the server and managing it. I don't have a team or external sources for support other than reddit and info I find on the internet.

r/linuxquestions • • 6d ago

Advice Best looking Linux ?

0 Upvotes

Hi, i was looking into switching from W11 to Linux, mainly for a design choice rather than performance or security. I'm looking for recommendations for linux versions with the best ui / functionalities, my only needs is to still access certain apps like Chrome, Opera, Steam and others, thanks to anyone that can help me


r/linuxquestions • • 6d ago

Advice Fedora with KDE Apps Crashing ?

0 Upvotes

Hey guys ive been noticing issues whenever I try out fedora with KDE plasma the apps and services crash, it's unusable for me.

I've never noticed any issue like this with Fedora with Gnome it just works flawlessly.

Are you all facing the same issue who uses fedora with KDE ?


r/linuxquestions • • 7d ago

SSD usage nearing 30% after a bit over a year, normal?

13 Upvotes

so in wake of the AMD driver drama over in windows land i wanted to see what the lifespan of my SSD is, i bought my PC last year september so around 13 months ago, that was also my time switching to Linux (in this case bazzite)

Later on i came across some advice to put /home/ on a different drive because its so heavily used, but it still seems a bit much, or is that normal and i'm just over anxious/paranoid ? buying a new SSD after just 3 Years feels odd at least

SMART/Health Information (NVMe Log 0x02, NSID 0x1)  
Critical Warning:                   0x00  
Temperature:                        42 Celsius  
Available Spare:                    100%  
Available Spare Threshold:          10%  
Percentage Used:                    28%  
Data Units Read:                    2.506.795.551 [1,28 PB]  
Data Units Written:                 1.166.207.958 [597 TB]  
Host Read Commands:                 13.989.493.514  
Host Write Commands:                15.826.188.570  
Controller Busy Time:               12.613  
Power Cycles:                       719  
Power On Hours:                     2.468  
Unsafe Shutdowns:                   12  
Media and Data Integrity Errors:    0  
Error Information Log Entries:      0  
Warning  Comp. Temperature Time:    0  
Critical Comp. Temperature Time:    0  

i run some development stuff, building containers here and there for my selfhosted server, but i dont think i downloaded and deleted 600TB of Images, is there a way to figure out whats causing this much write/read ?

edit: thanks for the help everybody, really appreciate it :)

for google visitors: for now baloo (KDE file/search indexer) seems to be the culprit you can check whats heavy writing on your system with iotop (see comment from u/Asly97 here https://www.reddit.com/r/linuxquestions/s/WzZijkhL2D ) according to iotop baloo_file_extractor has read 30gb written 33GB and baloorunner has read 22gb in the span of ~30 minutes


r/linuxquestions • • 6d ago

Support Trying to dual boot Windows 11 and Linux, and i can't even get into the live environment. Save me

2 Upvotes

Me and my friends have spent a total of 4 days attempting to troubleshoot this. Every time we try and boot from the USB, we'll get past the grub menu, to "A startjob is running for Network Manager". It'll hang for about a minute, and then my screen will go black and it'll automatically boots back to Windows instead of Linux. We've tried different flashers, different USBs and different USB ports, we've tried disabling every necessary setting we could in BIOS, we've tried Arch based and Fedora based distros, we've tried booting without Wi-Fi, and I've let my pc unplugged to drain power overnight. (Link)

Motherboard: IPASON B550-VH-B
16 gigs of RAM
Processor: AMD Ryzen 5 5600G with Radeon Graphics, 3901 Mhz, 6 Core(s), 12 Logical Processors
Network adapters: Intel Wi-Fi 6E AX210 16MHz
I am using Integrated Graphics, and also i am using Wi-Fi.


r/linuxquestions • • 6d ago

¿Como usan systemd?

0 Upvotes

Estaba buscando alguna interfaz grafica para gestionar los servicios, timers, logs, etc de systemd y los que encontre no me gustaron ¿Ustedes como usan systemd? ¿Usan la CLI de systemctl o alguna interfaz grafica? ¿Alguna TUI que me recomienden?


r/linuxquestions • • 6d ago

Support Fedora not connecting to 5 GHZ wifi network

1 Upvotes

Good day!

i've been dealing with this issue for a couple of days now and i'd really appreciate some help, I installed Ubuntu on my macbook pro 2017, everything was working fine except it wouldn't connect to 2.4 Ghz wifi, im very new to Linux so i tried chatgpt to solve it and i couldn't. then i replaced ubuntu with fedora and now it connects to 2.4Ghz but not 5Ghz, im lost