Re: 如何於開機時自動執行指令? - Linux

By Dorothy
at 2010-11-01T21:38
at 2010-11-01T21:38
Table of Contents
※ 引述《"[email protected]" <[email protected]>, 看板: Linux》之銘言:
: I don't know Ubunto. But you may like to look
: for its config-file, which would be something like
: /etc/hdparm.conf and try to edit the file.
謝謝你,我試過了這個做法,可是還是沒用。
後來讀了 readme,才知道 apm 相關的要另外在
/etc/apm/event.d/20hdparm
裏設定,這裏我還要再試試看,剛剛改了一行指令,
是可以關掉 apm,可是連帶使得螢幕亮度變得不能調整,一律是最亮。
: These settings would automatically take effect
: each time you boot the machine. Or, under Debian,
: one usually does
: /etc/init.d/hdparm restart
這個方法,我試過也不行,也不知道是不是哪有錯,
我是照這個網頁
http://www.linuxquestions.org/questions/linux-general-1/
starting-hdparm-at-boot-time-602303/
(抱歉太長斷行)
來做的,先建一個 /etc/init.d/hdparm 檔,裏面寫入
hdparm -B 255 /dev/sda
然後 sudo update-rc.d hdparm defaults
結果得到
warning: /etc/init.d/hdparm missing LSB information
的錯誤,reboot 後也是不行。
我完全是新手,邊看各位的指點、邊讀 google、邊摸索。
--
--
: I don't know Ubunto. But you may like to look
: for its config-file, which would be something like
: /etc/hdparm.conf and try to edit the file.
謝謝你,我試過了這個做法,可是還是沒用。
後來讀了 readme,才知道 apm 相關的要另外在
/etc/apm/event.d/20hdparm
裏設定,這裏我還要再試試看,剛剛改了一行指令,
是可以關掉 apm,可是連帶使得螢幕亮度變得不能調整,一律是最亮。
: These settings would automatically take effect
: each time you boot the machine. Or, under Debian,
: one usually does
: /etc/init.d/hdparm restart
這個方法,我試過也不行,也不知道是不是哪有錯,
我是照這個網頁
http://www.linuxquestions.org/questions/linux-general-1/
starting-hdparm-at-boot-time-602303/
(抱歉太長斷行)
來做的,先建一個 /etc/init.d/hdparm 檔,裏面寫入
hdparm -B 255 /dev/sda
然後 sudo update-rc.d hdparm defaults
結果得到
warning: /etc/init.d/hdparm missing LSB information
的錯誤,reboot 後也是不行。
我完全是新手,邊看各位的指點、邊讀 google、邊摸索。
--
--
Tags:
Linux
All Comments

By Tristan Cohan
at 2010-11-06T19:13
at 2010-11-06T19:13
Related Posts
CP指令(NFS下)的效能問題

By Lauren
at 2010-11-01T19:59
at 2010-11-01T19:59
關於join

By Eden
at 2010-11-01T19:59
at 2010-11-01T19:59
KDE與Qt的核融合

By Faithe
at 2010-11-01T19:41
at 2010-11-01T19:41
ASUS TS300-E5 灌CentOS5.5 出現 kernel: EDAC MC0

By Caitlin
at 2010-11-01T18:06
at 2010-11-01T18:06
i7-950 centOS 5.3?

By Hedda
at 2010-11-01T15:18
at 2010-11-01T15:18