Draußen an der Donau ist’s grau und kalt, fast kein Wind. Genau so ein Licht, in dem ich mich gern an Zahlen festhalte. Der offene Loop aus den letzten Tagen — boot-übergreifend TSC stable/unstable — hat heute endlich Struktur bekommen. Ich hab mir ein kleines Boot-Logger-Setup gebaut, das bei jedem Start automatisch einsammelt: Kernel-Cmdline Hinweise aus dmesg rund um TSC/clocksource den aktuellen Clocksource-Status aus sysfs Nach drei Reboots war klar: Der TSC-Status ist nicht […]
If you want to set the minimum CPU freq
sudo nano -$ /etc/sysfs.conf
Add this:
devices/system/cpu/cpu*/cpufreq/scaling_min_freq = 1000000
This would set the minimum 1.0 GHz
#sysfs #Power #Linux #Intel
On my #kubuntu #Linux in dmesg I see this:
"ENERGY_PERF_BIAS: Set to 'normal', was 'performance'"
(If your #Intel #CPU runs EPB)-> cat /sys/devices/system/cpu/cpu*/power/energy_perf_bias
So I'm trying to get ENERGY_PERF_BIAS to be 0 aka performance on boot
Many posts say install cpupower, well it's not on #Ubuntu repo.
My-FIX: install sysfsutils
sudo nano -$ /etc/sysfs.conf
Add this:
devices/system/cpu/cpu*/power/energy_perf_bias = 0
save & reboot
I feel this is just a better way
#sysfs #Power

So I made a quick and (very very) dirty Linux USB-PD sysfs pretty-printer: https://gist.github.com/ge0rg/085874e810bbc79cb9bd0b6224f7b0ed

cc @Orb2069

#usbpd #sysfs #usb

USB-PD pretty-printer for data exposed over Linux sysfs

USB-PD pretty-printer for data exposed over Linux sysfs - usb-pd.py

Gist
#RaspberryPi #WiringPi Version 3.2 fixes ISR on current Linux kernels on all boards without #sysfs - grab it while it's hot!
🌶️ https://github.com/WiringPi/WiringPi/releases/tag/3.2 🌶️
Release Version 3.2 · WiringPi/WiringPi

This release fixes ISR on debian/ubuntu kernels >= 6.6 🥳 => everyone using an up-to-date OS should move to this release in order to (re-)enable ISR functionality. What's Changed 🎈 Implement ISR f...

GitHub

Wrote a (cursed?) tool to emulate the now deprecated /sys/class/gpio interface using FUSE (via libfuse) and libgpiod. Mount it over /sys/class/gpio and the legacy interface is back 🧟. Old scripts should continue to work. Even edge polling on /value works. Code is at https://github.com/info-beamer/sysfs-gpio-shim.

#raspberrypi #gpio #sysfs

GitHub - info-beamer/sysfs-gpio-shim: Reviving /sys/class/gpio using FUSE

Reviving /sys/class/gpio using FUSE. Contribute to info-beamer/sysfs-gpio-shim development by creating an account on GitHub.

GitHub
【2024年01月版】 /sys メモ 【中年エンジニアのためのLinuxメモ】 - Qiita

はじめに/sys って仮想ファイルシステムで、いろいろシステム情報入ってる、ぐらいしかわからんから、調べてみる/sys とはLinuxの /sys ディレクトリは、システムファイルシステム(s…

Qiita

i mean i know this won't get scraped by google but just in case: if you're on #Linux and your #IntelGraphics card with the #i915 driver suddenly shows a blank screen, and the #sysfs #backlight class shows actual_brightness=0 no matter what: just downgrade ur kernel. lol

guess i will be on lts for a while?

Use #sysfs to #restart failed #PCI devices ( #WiFiCards, #SoundCards, etc.) - #Fedora Magazine

Looks like a useful fix for when #adaptors crash.

https://fedoramagazine.org/use-sysfs-to-restart-failed-pci-devices/

#GNU #Linux

Use sysfs to restart failed PCI devices (WiFi cards, sound cards, etc.) - Fedora Magazine

If you have a buggy WiFi card or sound card, use this neat trick to restart your PCI devices without having to restart your PC!

Fedora Magazine

Anyone here who knows #sysfs/#kobject internals in #Linux?

When I'm using sysfs_create_group. Can I delete (or rather reuse) an attribute_group object or does the kernel need _my_ attribute_group structure? I've browsed through the code, I see that the attribute is handed as private data to __kernfs_create_file, but I am unsure about the attribute_group.

Does anyone know?

Using 5.4 Kernel here.

#PleaseBoost #Kernel