[Hardware] 2.6.18 wks26-smp

Dmytro Kovalskyy D.Kovalskyy на enamine.net
Пн Дек 18 12:37:34 MSK 2006


On Friday 15 December 2006 18:30, Andrey Rahmatullin wrote:
> On Fri, Dec 15, 2006 at 06:24:00PM +0200, Dmytro Kovalskyy wrote:
> > а hibernate/powersave в стандартном ядре будут когда нибудь?
>
> Это юзерспейсные программы. Конкретизируйте вопрос.
По хибернейту
[root на dnote root]# hibernate
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
Your kernel does not appear to have Software Suspend 2 support compiled in.
Please follow the HOWTO linked from http://www.suspend2.net/ for instructions
on how to compile Software Suspend into your kernel.
hibernate: EnsureSwsusp2Capable refuses to let us continue.
hibernate: Aborting.
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
на ядре
[root на dnote root]# uname -a
Linux dnote.enamine.net 2.6.18-std-smp-alt2 #1 SMP Fri Dec 1 19:14:16 MSK 2006 
i686 unknown unknown GNU/Linux

А также по остутствию следющих следующих записей в логах, которые присутствуют 
при загрузке ядра wks

Dec 18 11:21:58 dnote kernel: Suspend2 Core.
Dec 18 11:21:58 dnote kernel: Time: tsc clocksource has been installed.
Dec 18 11:21:58 dnote kernel: Suspend2 Userspace UI Support module loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Checksumming module loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Userspace Storage Manager module
loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Compressor module loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Encryptor module loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Block I/O module loaded.
Dec 18 11:21:58 dnote kernel: Suspend2 Swap Allocator module loaded.
Dec 18 11:21:58 dnote kernel: ACPI: (supports S0 S3 S4 S5)

По powersawe.

[root на dnote root]#
Broadcast message from root (Mon Dec 18 11:32:05 2006):

The kernel version "2.6.18-std-smp-alt2" in /boot does not match
the running kernel version "2.6.18-wks-smp-alt1". Resuming with
this kernel will not work. If you know what you are doing, you can
override this in /etc/sysconfig/powersave/sleep with the variable
SUSPEND2DISK_IGNORE_KERNEL_MISMATCH=yes.

хотя
[root на dnote root]# uname -a
Linux dnote.enamine.net 2.6.18-wks-smp-alt1 #1 SMP Wed Dec 13 01:43:50 MSK 
2006 i686 unknown unknown GNU/Linux 
и
[root на dnote root]# l /boot/
total 10488
-rw-------   1 root root  293376 Dec 16 00:54 map
drwx------   3 root root    4096 Dec 16 00:54 ./
drwxr-xr-x  22 root root    4096 Dec 16 00:17 ../
-rw-------   1 root root  549442 Dec 15 21:59 initrd-2.6.18-std-smp-alt2.img
lrwxrwxrwx   1 root root      30 Dec 15 21:59 initrd-smp.img -> 
initrd-2.6.18-std-smp-alt2.img
lrwxrwxrwx   1 root root      30 Dec 15 21:59 initrd.img -> 
initrd-2.6.18-std-smp-alt2.img
lrwxrwxrwx   1 root root      27 Dec 15 21:59 vmlinuz -> 
vmlinuz-2.6.18-std-smp-alt2
lrwxrwxrwx   1 root root      27 Dec 15 21:59 vmlinuz-smp -> 
vmlinuz-2.6.18-std-smp-alt2
-rw-------   1 root root  549988 Dec 15 00:07 initrd-2.6.18-wks-smp-alt1.img
-rw-r--r--   1 root root 1410622 Dec 13 00:43 vmlinuz-2.6.18-wks-smp-alt1
-rw-r--r--   1 root root  729754 Dec 13 00:43 System.map-2.6.18-wks-smp-alt1
-rw-r--r--   1 root root   70132 Dec 13 00:36 config-2.6.18-wks-smp-alt1
-rw-r--r--   1 root root 1373486 Dec  1 18:14 vmlinuz-2.6.18-std-smp-alt2
-rw-r--r--   1 root root  714028 Dec  1 18:14 System.map-2.6.18-std-smp-alt2
-rw-r--r--   1 root root   69329 Dec  1 18:07 config-2.6.18-std-smp-alt2
-rw-------   1 root root  499569 Nov 21 09:10 initrd-2.6.16-std26-up-alt13.img
lrwxrwxrwx   1 root root      32 Nov 21 09:10 initrd-up.img -> 
initrd-2.6.16-std26-up-alt13.img
lrwxrwxrwx   1 root root      29 Nov 21 09:10 vmlinuz-up -> 
vmlinuz-2.6.16-std26-up-alt13
-rw-------   1 root root  502720 Nov 18 13:59 initrd-2.6.16-wks26-up-alt3.img
-rw-r--r--   1 root root 1132916 Nov  5 01:36 vmlinuz-2.6.16-std26-up-alt13
-rw-r--r--   1 root root  686841 Nov  5 01:36 System.map-2.6.16-std26-up-alt13
-rw-r--r--   1 root root   66100 Nov  5 01:35 config-2.6.16-std26-up-alt13
-rw-r--r--   1 root root 1192112 Apr 17  2006 vmlinuz-2.6.16-wks26-up-alt3
-rw-r--r--   1 root root  704849 Apr 17  2006 System.map-2.6.16-wks26-up-alt3
-rw-r--r--   1 root root   66564 Apr 17  2006 config-2.6.16-wks26-up-alt3
-rw-r--r--   1 root root     512 Mar 13  2006 boot.0800
drwxr-xr-x   3 root root    4096 Mar 13  2006 splash/

Тут насколько я понял, что заработало нада саспендить из того ядра, которое 
прописано как /boot/vmlinuz. я прав? 

Далее
[root на dnote root]# powersave -u
Suspend-To-RAM has been disabled by administrator.

но 
echo mem > /sys/power/state  опускает таки машину в саспенд. 
ТОгда обьясните мне чем 
echo mem > /sys/power/state  
отличается от
powersave -u
если это команды одной программы

Дима

-- 
-----------------------------------------------------
Dmytro Kovalskyy, PhD                D.Kovalskyy на enamine.net
Molecular Modelling Group Leader     tel.: +38 044 537 32 18
Enamine ltd.                         fax : +38 044 537 32 53
23, Matrosova str.
01103 Kiev, Ukraine


Подробная информация о списке рассылки Hardware