using sysctl and sysfs to tweak /proc and /sys parameters

using sysctl and sysfs to tweak /proc and /sys parameters can be useful in order to permanently set powertop suggestions or not to have to recompile the kernel for only one value change.

lm-profiler
helps disabling unneeded services

You can use sysctl to tweak the running kernel parameters (tweak /proc entries)
and /etc/sysctl.conf to apply these settings permanently
e.g. including in the abovementioned file the string

vm.dirty_writeback_centisecs=1500
increases the writeback centisecs

sysctl -p
makes changes effective

—————————-

To tweak /sys entries install sysfsutils package and edit file

/etc/sysfs.conf

e.g. to disable USB autosuspend you can either:

- recompile kernel without CONFIG_USB_SUSPEND
- add to sysfs.conf the line

module/usbcore/parameters/autosuspend = -1

also, to permanently switch off your wireless card (in case you do not have a phisical switch) set

bus/pci/devices/0000:02:02.0/rf_kill = 1

where 0000:02:02.0 is your wireless device address (you can see that via lspci -vvnn or lsusb -vvnn)

| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Page visits

    • 103
  • Polls

    Did you manage using the internal modem?

    View Results

    Loading ... Loading ...
  • Categories

  • Meta

  • Recent Comments

  • Archives

  • Linux On Laptops

    -->