r/linux • u/saajin_bloodborne • 22h ago
Software Release presencelock: locks your session when you walk away
I kept forgetting to lock at work. once you're idle (ext-idle-notify, so a video playing in a tab doesn't fool it) it opens the cam and looks for a face. face: cam off, checks again later. nobody: lock.
it never locks during a call, with the lens covered, or (optionally) during fullscreen video. nothing is recorded, a frame only lives for one look. YuNet on onnxruntime, one thread, 15-45MB. wayland only, any compositor with ext-idle-notify
r/linux • u/AccomplishedFact433 • 9h ago
Discussion How do I better prepare for the Linux Administration certification??
Hey everyone, Im currently panicking about this certification. As of this week, I'll be done with my Adv. Administration using Linux class and I'll be taking the certification afterwards. The only issue, is ive been taking mock tests and getting 40%'s. I feel like everything I leaned in the class hasn't translated at all to the ACTUAL test. Everything seems so much more intense and completely different than what I was taught. Is this normal?? Is there somewhere I can study better than what I was taught or do I just have to keep at it in hopes of it making sense??
r/linux • u/CockroachExciting560 • 10h ago
Kernel I got the original TC Electronic Clarity M firmware running in QEMU on an Apple Silicon Mac
I've been working on a personal reverse-engineering project: getting the original firmware of the TC Electronic Clarity M running inside QEMU on my MacBook Pro M1 Pro.
Not a recreation of its interface, not a software clone. The actual embedded Linux system and the original "tcmeter" application running in an emulated hardware environment.
And after quite a bit of debugging, it's finally working!
The hardware and the challenge
The Clarity M is based on a Freescale i.MX35 SoC, with an ARM1136 CPU, Linux 2.6.31.12-rt21 and an IPUv1 graphics controller driving an 800×480 LCD.
QEMU already had an i.MX31-based KZM machine, which gave me a starting point. However, the i.MX35 is not simply an i.MX31 with a different name. Its memory map, peripherals, interrupts and clock configuration required substantial changes.
I started by extracting the firmware and examining the SD card, kernel, initramfs and application. Then came the first boot attempts.
Linux was running, the application was initializing, but the display was completely black.
Reconstructing the hardware
One of the biggest challenges was getting the original LCD working.
I initially tried reading a fixed framebuffer address, but that wasn't enough. I eventually had to understand how the IPUv1 actually works, decode its CPMEM configuration and reproduce its double-buffering behavior.
The first buffer I was displaying was actually empty. The firmware was drawing into the other one!
I also had to reconstruct significant parts of the i.MX35 hardware model, using the surviving QEMU binary, disassembly, memory maps and register behavior as references.
The work eventually extended beyond graphics: GPIO, the GPT timer, SDMA, ESAI and I2C-based AES receiver emulation all became part of the project.
Making the audio work
The next challenge was getting real audio into the original firmware.
The Clarity M uses an ESAI audio interface fed by SDMA. I implemented a functional DMA model and emulated the AES receiver status so the firmware could recognize a valid input signal.
On macOS, I'm using Loopback to route audio into QEMU.
The current setup captures audio at 44100/48 kHz and feeds it to the firmware. The original application then performs the actual measurements.
I tested it with a known signal: LUFS, true peak and RTA results were consistent with the expected values.
The unexpected part: time itself was broken
Getting the display and audio working wasn't the end of it.
The application would freeze after a while, sometimes after 30 seconds, sometimes after several minutes.
The problem turned out to involve several interacting issues: GPT timer frequency, missed compare interrupts, SDMA channel shutdown and kernel deadlocks.
I ended up inspecting the guest's RAM, reconstructing its kernel symbol table (kallsyms) and examining sleeping kernel stacks to understand what was blocked.
On the macOS side, I also had to deal with App Nap and thread scheduling to keep audio capture stable when the application was running in the background.
Where it stands now
The current version can:
- Boot the original Clarity M firmware.
- Display its native 800×480 interface. (add some changes for having a perfect circle for the radar (800X447)).
- Navigate Radar, RTA and VSCOPE views.
- Control SW1–SW6 using the Mac keyboard. (1 to 6)
- Operate the rotary encoder using the arrow keys.
- Receive and analyze real audio at 41000 and 48 kHz.
- Run for 15 minutes under RTA load, with no freeze or AES lock loss during the test.
I've also packaged everything into a native macOS application: Clarity M.app.
This started with an SD card image, a Linux kernel and a black QEMU window. It turned into a much deeper dive into ARM emulation, SoC reconstruction, graphics, DMA, audio and real-time scheduling.
Still plenty to improve, but seeing the original Clarity M software running and measuring an actual audio signal on a Mac is incredibly satisfying.
I'd be happy to discuss the QEMU hardware emulation, IPUv1 implementation or the audio pipeline with anyone interested!
r/linux • u/WhitePeace36 • 15h ago
Software Release New Nvidia opensource kernel driver reimplementation
github.comr/linux • u/DerpiDanger • 3h ago
Open Source Organization Reverse-engineered open-source Nvidia driver for Linux improves performance by up to 23% over official driver
notebookcheck.netTips and Tricks 1.3MB WiFI QR code scanner in Rust and /nix
When travelling I always connect my phone to WiFI to eg new WiFI hotspots, then I cannot be bothered to enter again on my phone
Android > WiFi > Share (QR Code)
Laptop > qrcodie > Scan > y (connect)
You now have wifi 2x faster than tyrping long strings of random letters of passwords.
r/linux • u/WaltzAway6631 • 15h ago
Discussion Made vanilla Linux working on a Samsung smart TV
I wanted to see how far I could push my Samsung TU65DU7100 Smart TV so I decided to try running fully native Ubuntu 26.04 on it with the help of AI. Since TizenOS is already Linux based the process was somewhat easier than I initially expected.
It’s still very much a work in progress though:
- Ubuntu currently boots from an external hard drive
- the graphical interface doesnt work yet and no graphical acceleration
- The keyboard isnt detected
- Hardware support still needs some work
- It takes 30 mins and many reboots to pass systemd
It’s far from being usable as a desktop computer, but getting Ubuntu to run on a Samsung TV in the first place is pretty exciting. There’s absolutely no practical reason for me to do this. I just wanted to see if it was possible, because why not?
My next goal is to get the graphical interface and USB peripherals working, hope i will success to it !
r/linux • u/mr_MADAFAKA • 17h ago
Discussion Linux Mint has working KDE Plasma, GNOME and lightweight Wayland prototypes, with potential official editions in the future, but nothing is confirmed yet.
r/linux
•
u/RenatsMC
•
21h ago
Software Release NVIDIA announces experimental Linux support for RTX Spark systems
videocardz.comPopular Application Kdenlive fundraiser for 2027
Help implement long-awaited features like:
🚀 Full GPU pipeline for playback, rendering, effects and transitions
🎨 10-bit and 12-bit color depth support
🐢 Variable slow playback speeds
➕ And much, much more!
While also focusing on maintaining stability for a solid video editing experience.
Donate today!
r/linux • u/SirJerryLion • 9h ago
Security Rooting a GPU via CVE-2026-47597 - insight into how NVIDIA vulns can be turned into linux exploit chains
stealthium.ioCVE found by D. Cohen Hillel (@0xDACA) and N. Trobishi, & demoed at DEF CON 34 without releasing exploit details. Stealthium found it interesting so they built a different deterministic linux exploit chain on the NVIDIA 595.84 driver. The blog linked covers the bug, the exploit chain and detection.
The bug: refRemoveMapping() skips a check the create path makes. When a mapping’s context is the resource itself, cleanup removes a list node (except its one that was never inserted), which corrupts the back-reference list, and teardown frees a ref that mappings still point to.
The chain:
1- Reclaim the freed ref
2- Pivot the list
3- Leak addresses through three unlinks
4- Place a target node
5- Do an aimed write that opens a window onto physical memory
6- Patch creds
Starting point: uid 1001 in an ordinary GPU pod, using /dev/nvidia0 and /dev/nvidiactl. No privileged flag, hostPID or hostNetwork. + needs System V IPC with MSG_COPY and about 28 GiB of address space. On the validated kernels (7.0.0-1017-gcp, 6.11.0-1017-gcp) the first placement candidate lands correctly.
r/linux • u/DerpiDanger • 16h ago
Security USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login
thehackernews.comr/linux • u/Liam-DGOL • 2h ago