Add sysfsutils

  • The latest sysfsutils code appears to have been released and last updated in 2006 so whatever it is or does is probably superseded by other tools by now. It's also the first time I heard of anyone requesting it (in the decade+ time I've been hanging around the project) so the number of users who might think it's handy is probably you and .. (don't hold breath).

    Step back a level. What were you trying to do?

  • i am using LibreElec on an old NUC which needs certain parameters adjustment to function properly so in LibreElec i made a file .config/modprobe.d/my.conf with following kernel module parameters

    when i make changes there i have to manually run following commands after reboot to see if the changes have been applied successfully

    Bash
    LibreELEC:~ # cat /sys/module/btusb/parameters/
    disable_scofix      enable_autosuspend  force_scofix        reset
    LibreELEC:~ # cat /sys/module/btusb/parameters/force_scofix 
    N
    LibreELEC:~ # cat /sys/module/btusb/parameters/enable_autosuspend 
    N
    LibreELEC:~ # cat /sys/module/btusb/parameters/reset
    Y

    on my ArchLinux system i just run the following one line command see this all

  • Bash
    #!/bin/bash
    for param in $(ls /sys/module/btusb/parameters/*); do
      value=$(cat $param)
      printf '%-20s= %s\n' "$(basename $param)" "$value"
    done

    Gives output like:

    Code
    disable_scofix      = N
    enable_autosuspend  = N
    force_scofix        = N
    reset               = Y

    Repeat the same four lines for other modules and their paths and you're done. Tweak the %-20s= value to change the = offset.