So I made a quick and (very very) dirty Linux USB-PD sysfs pretty-printer: https://gist.github.com/ge0rg/085874e810bbc79cb9bd0b6224f7b0ed
cc @Orb2069
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.
【2024年01月版】 /sys メモ 【中年エンジニアのためのLinuxメモ】
https://qiita.com/nouernet/items/05ddeed9b3a8fc515692?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
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/
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.