亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: 383228273
打印 上一主題 下一主題

在筆記本電腦上用 Linux 系統(tǒng)的同胞們進(jìn)來下~~~ [復(fù)制鏈接]

論壇徽章:
0
21 [報告]
發(fā)表于 2010-06-29 00:56 |只看該作者
本帖最后由 383228273 于 2010-06-29 01:27 編輯
  1. #! /bin/bash

  2. PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  3. # 測試如果沒有需要用到的文件就直接退出該腳本程序.
  4. [ -e '/proc/acpi/ibm/fan' ] && [ -e '/proc/acpi/ibm/thermal' ] || exit 0
  5. [ $(grep 'commands:' /proc/acpi/ibm/fan | wc -l) -eq '3' ] || exit 0

  6. # 下面 TEMP_1~10 為溫度設(shè)置,其對應(yīng)關(guān)系與 sensors 命令輸出相同;
  7. # 高于設(shè)置溫度則 FAN(風(fēng)扇)設(shè)置為 auto 模式;
  8. # 低于設(shè)置溫度則 FAN(風(fēng)扇)設(shè)置為 1 運行等級.

  9. TEMP_01='45'        # CPU
  10. TEMP_02='45'        # ???
  11. TEMP_04='45'        # GPU
  12. TEMP_05='45'        # ???
  13. TEMP_07='45'        # ???
  14. TEMP_09='45'        # ???
  15. TEMP_10='45'        # ???

  16. SET_T="$TEMP_01 $TEMP_02 -128 $TEMP_04 $TEMP_05 -128 $TEMP_07 -128 $TEMP_09 $TEMP_10 -128 -128 -128 -128 -128 -128"
  17. SET_LEVEL=''

  18. # 用 SYS_T 變量獲取當(dāng)前系統(tǒng)的溫度值.
  19. SYS_T=$(sed 's/temperatures:\t//g' /proc/acpi/ibm/thermal)

  20. # 用 SYS_LEVEL 變量獲取當(dāng)前系統(tǒng)散熱風(fēng)扇的運行等級.
  21. SYS_LEVEL=$(grep '^level' /proc/acpi/ibm/fan | sed 's/level:\t\t//g')

  22. # 定義 SHOW_SYS_SET 函數(shù)來顯示設(shè)置溫度和系統(tǒng)溫度.
  23. SHOW_SYS_SET () {
  24.         echo $SET_T
  25.         echo $SYS_T
  26. }

  27. # 定義 SET_SYS_LEVEL 函數(shù)為 SET_LEVEL 變量設(shè)置運行等級參數(shù).
  28. SET_SYS_LEVEL () {
  29.         I='1'
  30.         for T in $SET_T
  31.         do
  32.                 # 用 if 語句判斷 SYS_T 變量中的溫度值如果高于相對應(yīng)的 SET_T 中設(shè)置的溫度值,
  33.                 # 則 SET_LEVEL 變量設(shè)置為 'auto' 并 return 退出該函數(shù),沒必要再在繼續(xù)比較了.
  34.                 if [ $(echo $SYS_T | cut -d ' ' -f $I) -gt $T ]; then
  35.                         [ 'auto' = $SYS_LEVEL ] || SET_LEVEL='auto'
  36.                         return
  37.                 fi
  38.                 I=$(($I+1))
  39.         done
  40.         # 如果沒有被 for 中的 return 退出函數(shù),順利的走出了 for 循環(huán)來到這里,
  41.         # 則說明 SYS_T 中的溫度值都低于相對應(yīng)的 SET_T 的值,
  42.         # 則 SET_LEVEL 變量設(shè)置為 '1' 把風(fēng)扇轉(zhuǎn)速降下來.
  43.         SET_LEVEL='1'
  44. }

  45. # 定義 HELP 幫助函數(shù)
  46. _HELP () {
  47.         echo "
  48.         用法: $0 [選項]

  49.         可用選項:
  50.                 -t,--show-thermal        顯示設(shè)置溫度和系統(tǒng)溫度
  51.                 -l,--show-level                顯示該腳本設(shè)置風(fēng)扇運行等級( level 1 或 level auto)
  52.                 -s,--set-level                比較設(shè)置溫度和系統(tǒng)溫度后設(shè)置風(fēng)扇運行等級( level 1 或 level auto )
  53. "
  54.         exit 1
  55. }


  56. # 定義 MAIN 主函數(shù)
  57. _MAIN () {
  58.         case $1 in
  59.                 '-t' | '--show-thermal')
  60.                         SHOW_SYS_SET
  61.                         ;;
  62.                 '-l' | '--show-level')
  63.                         SET_SYS_LEVEL
  64.                         echo "level $SET_LEVEL"
  65.                         ;;
  66.                 '-s' | '--set-level')
  67.                         SET_SYS_LEVEL
  68.                         echo "level $SET_LEVEL" > /proc/acpi/ibm/fan
  69.                         ;;
  70.                 '-h' | '--help')
  71.                         _HELP
  72.                         ;;
  73.         esac
  74. }

  75. _MAIN $1
復(fù)制代碼




改進(jìn)了下,感覺還行 {:3_200:}
把這個散熱風(fēng)扇控制腳本加入 cron 中每幾分鐘就執(zhí)行下,應(yīng)該就行了吧 {:3_199:}

論壇徽章:
0
22 [報告]
發(fā)表于 2010-06-29 09:23 |只看該作者
呵呵

論壇徽章:
59
2015七夕節(jié)徽章
日期:2015-08-24 11:17:25ChinaUnix專家徽章
日期:2015-07-20 09:19:30每周論壇發(fā)貼之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38榮譽版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年紀(jì)念徽章
日期:2015-07-20 11:05:27IT運維版塊每日發(fā)帖之星
日期:2015-07-20 11:05:34操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:36程序設(shè)計版塊每日發(fā)帖之星
日期:2015-07-20 11:05:40數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:432015年辭舊歲徽章
日期:2015-07-20 11:05:44
23 [報告]
發(fā)表于 2010-06-29 10:54 |只看該作者
本人還沒有本本啊。只是在臺式機(jī)里跑VMWARE。

論壇徽章:
0
24 [報告]
發(fā)表于 2010-06-29 11:03 |只看該作者
聯(lián)想朝陽筆記本

電池滿時xpsp2可用1.5小時,極限2.5小時;跑大型3D時cpu過熱自動斷電
紅旗Linux7可以用2.5小時,極限4小時。不能很好的跑3D,風(fēng)扇出口恒溫不燙手

其余應(yīng)該不用比了

論壇徽章:
0
25 [報告]
發(fā)表于 2010-06-29 18:31 |只看該作者

論壇徽章:
0
26 [報告]
發(fā)表于 2010-06-30 14:07 |只看該作者
回復(fù) 24# xiaoxiaou0


偏題了,不是電池用多久,只是想了解下電腦運行時,大伙們的機(jī)器各溫度傳感器的溫度是多少? 和散熱風(fēng)扇的運行情況? {:3_200:}

來 CU 論壇同胞們,相信都已接觸過 Linux 系統(tǒng),但真正在自己電腦安裝 Linux 系統(tǒng)并使用的人卻很少,大部分同胞們都選擇通過虛擬機(jī)來用或?qū)W習(xí) Linux 系統(tǒng)。 {:3_198:}

論壇徽章:
0
27 [報告]
發(fā)表于 2010-06-30 14:18 |只看該作者
本帖最后由 383228273 于 2010-06-30 14:20 編輯

風(fēng)扇運行等級為 1 時,有 1000RPM 多(在 2000RPM 以下)
風(fēng)扇運行等級為 2 時,有 3000RPM 多(在 3500RPM 以下)
風(fēng)扇運行等級為 3 時,有 3000RPM 多(在 3700RPM 左右)
... ...
一共有 0 ~ 7 個等級,后面的就沒試了,如果設(shè)置為 auto 模式,我的散熱風(fēng)扇一般在 3300RPM 左右,風(fēng)扇的運行等級應(yīng)該是 2 吧;風(fēng)扇到了 3000RPM 以上就聽得到風(fēng)扇呼呼的聲音了,只有在 2000RPM 以下(運行等級為 1)時感覺安靜,這樣的散熱能力又不夠。

{:3_199:}

論壇徽章:
0
28 [報告]
發(fā)表于 2010-06-30 16:18 |只看該作者
Head of PMO (Asia Pacific) / Software Engineering 招聘


各位,最近我公司正在招聘軟件項目管理人才,詳情請看JD或咨詢,如考慮者,請發(fā)一份個人簡歷到fankie.feng@c-russell.com   謝謝!
TITLE:                        Head of PMO (Asia Pacific) / Software Engineering
                                Manager
LOCATION:                Guangzhou, China

This is a senior appointment.  Our client is the IT arm of a famous global leader in the financial field.  They are looking for the Head of PMO to:

Introduction:

APAC PMO has three major responsibilities:
1.        Planning and Resource Management for the team in the region;
2.        Portfolio Management for the region;
3.        Align the strategy of Global PMO (GPMO) for the region.  Its vision is to instill the best Project Management methodologies in APAC region and enrich the core Project Management knowledge base.

Job Duties:

The job holder will have the following duties:
1.        Main conduit for the AOP process within the region;
2.        Interface relationship to HTSA PMO to align the business development direction and transparent the resource demand and supply;
3.        Govern APAC in-plan resource management to ensure the delivery of the division’s programmes, Regional Flagships and other project initiatives;
4.        Track and report APAC delivery teams’ budgets and resource capacity ensuring that resources are able to support the business demand, and is aligned with the business development direction;
5.        Provide in-plan guidance to the APAC delivery teams through active engagement and communication;
6.        Build a billable pool of project managers and project assistants;
7.        Carry out the GPMO initiatives to the PM community in APAC region;
8.        Obtain the pulse of the PM community in APAC region on the various GPMO initiatives, provide and carry out recommendations which will further incorporate GPMO within the division;
9.        Interact with the PM community in APAC region to understand their needs and working with the GPMO generate solutions for these needs;
10.        Drive the PM knowledge sharing in the PM community.                             

Key Requirements:

        Candidates should possess the following skills or qualification:
1.        Proven program/project and general management skills;
2.        Excellent written/verbal communication skills;
3.        Strong coordination skills;
4.        Good networking skill to build up relationships with key stakeholders rapidly;
5.        Strong sense on data;
6.        A detail person to analysis data in the mean while a big picture person to draw simple and accurate conclusion;
7.        Good presentation skill to prepare the report to Senior Management;
8.        Ability to work well under pressure;
9.        Project Management Professional (PMP) is definitely an advantage;
10.        Knowledge on the charge settlement system, i.e. Webplan/GPDM, Clarity and management information system i.e. GMIS is definitely an advantage.

論壇徽章:
0
29 [報告]
發(fā)表于 2010-07-01 09:14 |只看該作者
我的控制邏輯是這樣的:
total=CPU+GPU+(無線網(wǎng)卡高于50度的部分,低于50則忽略不計)+(PCI高于50度的值,低于50則忽略不計)
1.初始狀態(tài)是level 1
2.如果任意一個傳感器的溫度大于54度,忽略3和4,直接設(shè)置成auto
3.如果total大于98,設(shè)置為level 2
4.如果total大于90,并且當(dāng)前風(fēng)扇為非level 1,設(shè)置為level 2


也就是說,如果total曾經(jīng)升高至98,導(dǎo)致fan level 2那么total必須降到90以下才會觸發(fā)fan level 1
而從fan level 1 躍至fan level 2 的條件是total大于 98
這是為了避免頻繁的level切換


一般機(jī)器負(fù)載不高的時候是規(guī)則1/3/4在起作用.負(fù)載高或者溫度異常的時候規(guī)則2起作用..

論壇徽章:
0
30 [報告]
發(fā)表于 2010-07-01 11:57 |只看該作者
若果是用thinkpad 的, tp_thinkpad 可以控制.
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP