Advertisement
rockdrilla

mi.sh - linux kernel [M]odule [I]nfo

May 26th, 2015
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.29 KB | None | 0 0
  1. #!/bin/sh
  2. exec 2>/dev/null
  3.  
  4. R=0
  5. for M; do
  6.     D=/sys/module/$M/parameters
  7.     test -d "$D" || continue
  8.     cd "$D"
  9.  
  10.     test "$R" = 1 && echo
  11.  
  12.     for P in $(find ./ -xdev -type f -printf '%P\n' | sort -n); do
  13.         V=$(cat "$P")
  14.         echo "$M.$P=$V"
  15.     done
  16.  
  17.     R=1
  18. done
  19.  
  20. #### example: `ath9k' and `i915' are loaded modules, and `athwtf' is nonexistent module
  21. #>> $ sudo mi.sh ath9k athwtf i915
  22. #>> ath9k.blink=0
  23. #>> ath9k.bt_ant_diversity=0
  24. #>> ath9k.btcoex_enable=0
  25. #>> ath9k.nohwcrypt=0
  26. #>> ath9k.ps_enable=0
  27. #>> ath9k.use_chanctx=0
  28. #>>
  29. #>> i915.disable_display=N
  30. #>> i915.disable_power_well=1
  31. #>> i915.disable_vtd_wa=N
  32. #>> i915.enable_cmd_parser=1
  33. #>> i915.enable_execlists=1
  34. #>> i915.enable_fbc=-1
  35. #>> i915.enable_hangcheck=Y
  36. #>> i915.enable_ips=1
  37. #>> i915.enable_ppgtt=2
  38. #>> i915.enable_psr=0
  39. #>> i915.enable_rc6=1
  40. #>> i915.fastboot=N
  41. #>> i915.invert_brightness=0
  42. #>> i915.lvds_channel_mode=0
  43. #>> i915.lvds_downclock=0
  44. #>> i915.lvds_use_ssc=-1
  45. #>> i915.mmio_debug=N
  46. #>> i915.modeset=-1
  47. #>> i915.nuclear_pageflip=N
  48. #>> i915.panel_ignore_lid=1
  49. #>> i915.powersave=1
  50. #>> i915.prefault_disable=N
  51. #>> i915.preliminary_hw_support=1
  52. #>> i915.reset=Y
  53. #>> i915.semaphores=-1
  54. #>> i915.use_mmio_flip=0
  55. #>> i915.vbt_sdvo_panel_type=-1
  56. #>> i915.verbose_state_checks=Y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement