TuxOnIceã®ä¼æ¢ã¨å¾©å¸°ã®å®é(3.0-rc1ã®æç¹)
- hibernate-scriptã使ç¨ããä¼æ¢ã®å®è¡
- å®è¡æ¹æ³
- sudoã³ãã³ãã§ãã¹ã¯ã¼ããå ¥åããã«ã¹ã¯ãªãããå®è¡ããè¨å®
- ã«ã¹ã¿ã ã©ããã¼ã¹ã¯ãªããã®ä¾
- NVIDIAã¢ã¸ã¥ã¼ã«ã®åé¤ã«å¤±æãã¦æ¢ã¾ã
- 復帰
hibernate-scriptã使ç¨ããä¼æ¢ã®å®è¡
hibernate-scriptã¯ãTuxOnIceã ãã§ãªããä»ã®ãã¤ããã¼ã·ã§ã³æ¹å¼(å¤ãsysfsæ¹å¼ã¨ãã¦ã¼ã¶ç©ºéã§åä½ããuswsusp)ã«ã対å¿ããä¼æ¢/復帰ãµãã¼ãã¹ã¯ãªããã§ãä¼æ¢åã¨å¾©å¸°å¾ã«è¡ãå¿ è¦ã®ããæ§ã ãªå¦çãèªåã§è¡ã£ã¦ããã(ããç¨åº¦ã®è¨å®ã¯å¿ è¦ã ãããã®è¨äºã§ã¯æ±ããªã)ãX Window Systemä¸ã§ã®ä½æ¥ã®ä¿åã«é¢ããè£å©ãã¹ã¯ãªã¼ã³ã»ã¼ãã§ã®ããã¯ãªã©ã便å©ãªæ©è½ãæä¾ãã¦ããã
è¨å®ãã¡ã¤ã«ãç¨ãã¦ãç°å¢ã«åãããæè»ãªã«ã¹ã¿ãã¤ãºãè¡ããã¨ãå¯è½ãã¢ã¸ã¥ã¼ã«ããã¼ã¢ã³ã®å¶å¾¡ãªã©ãã§ããã
å®å ¨ã«æã¿ã®æåã«ããããã«ã¯ãç°å¢ã«ãããhibernate-scriptã®è¨å®ãã¡ã¤ã«ãã«ã¼ãã«è¨å®ã®èª¿æ´ã¨è©¦è¡é¯èª¤ãããç¨åº¦å¿ è¦ãããããªãã
å®è¡æ¹æ³
$ sudo /usr/sbin/hibernate ããã㯠# /usr/sbin/hibernate
ãå®è¡ããã®ã¿ã
Gentoo Linuxã§ã¯ãä¿åãããã¤ã¡ã¼ã¸ã®å¦çãèªåã§è¡ãããã«ãããã
$ sudo rc-update add hibernate-cleanup boot
ãäºåã«(ä¸åº¦ã ã)å®è¡ãã¦ããã
TuxOnIceæ¹å¼éå®ã®æ©è½ã¨ãã¦ã--reboot=1ãªãã·ã§ã³ãä»ãããã¨ã§ãã¤ã¡ã¼ã¸æ¸ãè¾¼ã¿å¾ãé»æºæãã代ããã«åèµ·åããããã¨ãã§ãããhibernate-scriptã®åä½ãã¹ããããã®ã«æç¨ã
sudoã³ãã³ãã§ãã¹ã¯ã¼ããå ¥åããã«ã¹ã¯ãªãããå®è¡ããè¨å®
ä¸ã®ä¾ã§ã¯ãwheelã°ã«ã¼ãã«å¯¾ãã¦ãã¹ã¯ãªããã®ç®¡çè 権éã§ã®å®è¡ã許å¯ãã¦ãããã%wheelãã®é¨åãã¦ã¼ã¶åã«ããã¨ãã¦ã¼ã¶åä½ã§ã®æå®ãã§ããã管çè 権éã§visudoãå®è¡ãã¦ã以ä¸ã®è¨å®ããããCmnd_Alias HIBERNATE=/usr/sbin/hibernate %wheel ALL = NOPASSWD: HIBERNATE
ã«ã¹ã¿ã ã©ããã¼ã¹ã¯ãªããã®ä¾
hibernate-scriptèªä½ãè²ã ãªæ©è½ãããã®ã ãããã¹ã¯ãããç°å¢ã使ç¨ãã¦ããå ´åãªã©ãä¼æ¢åã¨å¾©å¸°å¾ã«ä½ãã®å¦çããããããã¨ããããä¾ãã°ãnvclockã§GPUã®ã¯ããã¯èª¿æ´ããã¦ããå ´åã復帰æã«å®æ ¼ã«æ»ã£ã¦ãã¾ãããããããåè¨å®ããããã«ãããGPUã¯ããã¯å¤ã®ã150ãã¯ã好ã¿ã«ãã£ã¦æ¸ãæããã*1numlockxã¯ãNumLockã®LEDã復帰å¾ã«æ¶ãã¦ãã¾ãã®ãé²ãããã«å®è¡ãã¦ããã
[ä»»æ]ãã¡ã¤ã«å: ~/bin/hibernate-wrapper
#! /bin/dash USERUIDIR=/sbin HIBERNATEDIR=/usr/sbin HIBERNATE_OPT="--force" VERSTYLE_OPEN="<span style='italic' weight='bold' foreground='darkred'>" VERSTYLE_CLOSE="</span>" if [ "$1" != "-f" ]; then zenity --question --title="ä¼æ¢ç¶æ ã®ç¢ºèª" --text "\ TuxOnIce core:\t\t${VERSTYLE_OPEN}$(cat /sys/power/tuxonice/version)${VERSTYLE_CLOSE} TuxOnIce UserUI:\t${VERSTYLE_OPEN}$(${USERUIDIR}/tuxoniceui_text -h 2>&1 | tail -n 1 | cut -d ' ' -f 4)${VERSTYLE_CLOSE} hibernate-script:\t${VERSTYLE_OPEN}$(${HIBERNATEDIR}/hibernate --version | cut -d ' ' -f 3)${VERSTYLE_CLOSE} ä¼æ¢ããã¾ãã?" if [ $? = 1 ]; then exit 1 fi fi sudo /usr/sbin/hibernate ${HIBERNATE_OPT} nvclock -n 150 numlockx off; numlockx on
ãã®ä»ã好ã¿ã«ãããè¡ãå¦çã調æ´ã
ä¸ã®ã¹ã¯ãªããã¯ãsudoããã¹ã¯ã¼ãç¡ãã§å®è¡ã§ããè¨å®ãæ¸ãã§ããåæã§ã-fãªãã·ã§ã³ãä»ããã¨ããé¤ãã¦zenityã«ãã確èªãã¤ã¢ãã°ãåºãããã«ãã¦ãã(å¼æ°è§£æã¯ææã)ã
ãã¤ã¢ãã°ã®ä¸ã«ã¯ãã¼ã¸ã§ã³æ
å ±ã表示ãã¦ãããããã®ããã¹ãã®ã¹ã¿ã¤ã«ã¯Pangoã®ããã¥ã¢ã«ã®「Pango Text Attribute Markup Language」(英語)ãåèã«ãã¦ããã
NVIDIAã¢ã¸ã¥ã¼ã«ã®åé¤ã«å¤±æãã¦æ¢ã¾ã
NVIDIAã¢ã¸ã¥ã¼ã«ã¯ããä¼æ¢æã«åé¤ããªãã¨åé¡ã®èµ·ããã¢ã¸ã¥ã¼ã«ãã®ãªã¹ãã«å ¥ã£ã¦ãã¦ããã¡ã¤ã«å: /etc/hibernate/common.conf
UnloadBlacklistedModules yes
ãæ¸ããã¦ããã¨ãã¢ã³ãã¼ãã«å¤±æãã¦ä¼æ¢å¦çãä¸æããããããããå°ãªãã¨ãæå ã®GeForce 7300 LEã§ã¯ã¢ã³ãã¼ããããªããã¨ã«ããåé¡ã¯èµ·ãããªãããã/etc/hibernate/blacklisted-modulesãããnvidiaããæ¶ãããä¸ã®ããã«
$ sudo /usr/sbin/hibernate --force
ä¸æããªãããã«å®è¡ãããã®ã©ã¡ããããªããåGPUã§ã¯ãvbetoolãå¿ è¦ãªãã使ç¨ããã¨ãã¬ã¼ã ãããã¡ã³ã³ã½ã¼ã«(fbcon)ã®è¡¨ç¤ºãä¹±ããã ãã ã£ãã
復帰
次åèµ·åæãååã¨åãã«ã¼ãã«ãåããã©ã¡ã¼ã¿ã渡ãã¦èµ·åãã(ãã¼ããã¼ãã¡ãã¥ã¼ã§ååã¨åããã®ãé¸æãã)ã¨ãèªåçã«ã¤ã¡ã¼ã¸ãèªã¿è¾¼ã¾ããhibernate-scriptã復帰å¦çãè¡ã£ã¦ããããã¡ã¢ãªã¤ã¡ã¼ã¸ã¯ãã®ã¨ãã«ç¡å¹åããããäºæ ã«ããã復帰ãããã«é常起åããããå ´åã«ã¯ãã«ã¼ãã«ã³ãã³ãã©ã¤ã³ãä¿®æ£ãããnoresumeã(3.0-rc1ã®æç¹ã§ã¯ãnoresume2ãã§ã¯ãªã)ã追å ããã
GRUBã®å ´åãã¾ãã¡ãã¥ã¼ãåºãã«ã«ã¦ã³ããã¦ã³ããå ´åEscã§ã¡ãã¥ã¼ã表示ããã次ã«ä¸è¦§ãã該å½ã«ã¼ãã«ã®é ç®ãé¸æãã¦eãæ¼ãããã®å¾ãkernelè¡ãé¸æããç¶æ ã§eãæ¼ããã«ã¼ãã«ã³ãã³ãã©ã¤ã³ã®ç·¨éã«å ¥ããå¾ãã«ãnoresumeããä»ãã¦Enterãããã®å¾bã§èµ·åãããã
*1:ã¡ã¢ãªã¯ããã¯å¤ãå¤æ´ã§ããã«ã¼ãã®å ´åã-mãªãã·ã§ã³ãæå®ããã¨ãã