View previous topic :: View next topic |
Author |
Message |
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Tue Jul 23, 2013 2:46 pm Post subject: baselayout1.start commands NOT executing [SOLVED] |
|
|
/etc/local.d/baselayout1.start runs a script which
sets powertop recommended parameters of
various kinds
here is the script:
Code: | #!/bin/bash
# powertop recommended power saving tweaks
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy'
echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy'
echo 'min_power' > '/sys/class/scsi_host/host2/link_power_management_policy'
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'
echo 'auto' > '/sys/bus/usb/devices/usb6/power/control'
echo 'auto' > '/sys/bus/usb/devices/1-2/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb1/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb2/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb5/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb3/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb7/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb4/power/control'
iw dev wlan0 set power_save on |
most of these commands are executed but some are not,
namely
Code: | echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy'
echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy'
echo 'min_power' > '/sys/class/scsi_host/host2/link_power_management_policy'
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save' |
If I run the script manually all commands are executed.
Do I have to run the "bad" commands later ... or what? _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Last edited by albright on Wed Jul 24, 2013 12:42 pm; edited 1 time in total |
|
Back to top |
|
|
broken_chaos Guru
Joined: 18 Jan 2006 Posts: 370 Location: Ontario, Canada
|
Posted: Tue Jul 23, 2013 11:22 pm Post subject: |
|
|
How can you tell they're not executed? The parameters aren't set properly later?
If that's the case, are you running any power management software? pm-utils, laptop-mode-tools, or anything similar? If so, it likely has a script somewhere which gets executed later than your local script, which sets those values itself. |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Wed Jul 24, 2013 12:41 pm Post subject: |
|
|
thanks for the clue, broken-chaos
laptop-mode tools was set to not enable power saving
on usb when on AC and it rewrote the values after
my baselayout.start script ran _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
|