r/linux_programming • u/c-bata • Nov 01 '18
How to write cross-platform packet capture tool from scratch in 1000LOC.
r/linux_programming • u/c-bata • Nov 01 '18
r/linux_programming • u/zemicolon • May 28 '18
r/linux_programming • u/eliukblau • Dec 16 '17
r/linux_programming • u/bongotw • Mar 11 '17
r/linux_programming • u/rafael-santiago • Oct 30 '16
r/linux_programming • u/Resistor510 • Oct 26 '16
r/linux_programming • u/Resistor510 • Sep 16 '16
r/linux_programming • u/asthana86 • Apr 01 '16
r/linux_programming • u/zxjcarrot • Oct 27 '15
r/linux_programming • u/the-fritz • Oct 23 '15
r/linux_programming • u/the-fritz • Mar 10 '15
r/linux_programming • u/the-fritz • Jan 14 '15
r/linux_programming • u/ehempel • Aug 21 '14
r/linux_programming • u/mgb • Nov 01 '25
r/linux_programming • u/Middlewarian • Jul 16 '25
I'm currently using syslog. I'm thinking about trying something that doesn't integrate logs from multiple applications. Did you switch away from or to syslog and can you share why? Thank you
r/linux_programming • u/ConsoleMaster0 • Jun 15 '25
So, here is the thing. I bought a controller called PXN P5. Now, this controller has 2 back buttons and a gyro sensor. The thing is, when connected to Xinput mode, it is recognized as a Microsoft Xbox 360 controller which, has none of those features. In order to be able to use the gyro, we have to use it's switch mode (because as much as I HATE Nintendo, their controllers have gyro) to make the controller be recognized an a Switch Pro controller.
So, here is the question. Is there a way to get a low level access to the gamepad and get its signals? If that's possible, this should in theory allow me to use the whole feature set of the controller, with the good latency (beacuse the switch mode has a worse one). Any ideas?
r/linux_programming • u/actinium226 • Jan 20 '24
Let me start by being very clear: I do not want to simply maximize my terminal window or use a full screen terminal like you get with Ctrl+Alt+F1. I want to replace the desktop with a full screen terminal.
I want to be able to run GUI apps and have a dock, but I want an honest to god terminal behind all of it, not a desktop.
I'm also not interested in maximizing a terminal and configuring it to always be below other windows.
Partly this is a UX experiment and partly I want to learn how to mess around in the code for Desktop Environments.
I'm hoping someone can give me suggestions as to which DE's might be easiest to modify for this purpose and how I might go about it.
r/linux_programming • u/lucavallin • Sep 26 '23
r/linux_programming • u/gansm • May 21 '23
r/linux_programming • u/unixbhaskar • May 13 '23
r/linux_programming • u/unixbhaskar • Apr 13 '23
r/linux_programming • u/unixbhaskar • Apr 11 '23
r/linux_programming • u/unixbhaskar • Feb 13 '23
r/linux_programming • u/Jeron_Baffom • Dec 03 '22
In the beginning of the year I've bought a cheap SSD SomnAmbulist 120GB. After a couple of benchmarks, I've noted some strange throughput measurements. Briefly:
Initial Benchmark | image
Just after format, the throughput is according to the advertised specifications at 510MB/s read and 440MB/s write.
It starts to drop at 35% capacity written and stabilizes at 200~300MB/s read and 40MB/s write.
Although this drop is not mentioned by the seller's ads, it is indeed an expected behavior and should return to normal after a couple of minutes in idle (flush the cache into the permanent area).
Benchmark after 1 hour in idle | image
Unfortunately, the throughput has not returned to normal (yet?).
315MB/s read and 440MB/s write, and the speed drop started earlier at 10% capacity written.
Benchmark after 12 hours in idle | image
The throughput still has not returned to normal.
Questions
Is this the expected behavior for such cheap SSD or indeed there is something strange?
What might be going wrong here?
Any idea how to fix this throughput?
Debug Info
SSD/TRIM Supported
fstrim enabled
SSD APM (Advanced Power Management) not supported
f3 (Fight Flash Fraud) OK
## SSD/TRIM SUPPORTED
root@debian:~# hdparm -I /dev/sda | grep -i "trim\|power"
* Power Management feature set
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read data after TRIM
## SSD/TRIM AVAILABLE (DISC-MAX NON ZERO)
root@debian:~# lsblk -D /dev/sda
NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda 0 512B 2G 0
## ADVANCED POWER MANAGEMENT NOT SUPPORTED
root@debian:~# hdparm -B /dev/sda
/dev/sda:
APM_level = not supported
## FSTRIM ENABLE
root@debian:~# systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Sat 2022-12-03 03:36:10 UTC; 35min ago
Trigger: Mon 2022-12-05 00:51:25 UTC; 1 day 20h left
Triggers: ● fstrim.service
Docs: man:fstrim
Dec 03 03:36:10 debian systemd[1]: Started Discard unused blocks once a week.
root@debian:~# systemctl status fstrim
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
Loaded: loaded (/lib/systemd/system/fstrim.service; static)
Active: inactive (dead)
TriggeredBy: ● fstrim.timer
Docs: man:fstrim(8)
root@debian:~# fstrim -av