Re: [Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64
Rafael J. Wysocki wrote: > On Saturday, 19 May 2007 21:31, Stefan Richter wrote: >> # s2ram -f -a3 >> Switching from vt7 to vt1 >> /proc/sys/kernel/acpi_video_flags does not exist; you need a kernel >>> =2.6.16. >> switching back to vt7 >> >> The same happens after I switched this "deprecated" option on: >> CONFIG_ACPI_PROCFS=y > > This is a kernel configuration problem of some sort, I don't know what to > enable to make this work. CONFIG_HOTPLUG_CPU=y -> CONFIG_SUSPEND_SMP=y magically made /proc/sys/kernel/acpi_video_flags appear. The old (released) s2ram works now... except for resume. Thanks, -- Stefan Richter -=-=-=== -=-= =-=-- http://arcgraph.de/sr/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel
Re: [Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64
On Saturday, 19 May 2007 21:31, Stefan Richter wrote: > Hi, > > the last release of s2ram, the one in suspend-0.5, does not work with > Linux 2.6.22-rc2: > > # s2ram -f -a3 > Switching from vt7 to vt1 > /proc/sys/kernel/acpi_video_flags does not exist; you need a kernel > >=2.6.16. > switching back to vt7 > > The same happens after I switched this "deprecated" option on: > CONFIG_ACPI_PROCFS=y This is a kernel configuration problem of some sort, I don't know what to enable to make this work. I can only send you a working .config if that helps. > So I downloaded the cvs version today and learned that it needs libx86 > to be built. Downloaded libx86-0.99.tar.gz because Gentoo Linux > apparently doesn't provide it. > > libx86-0.99 $ make > make LIBRARY=static static > make[1]: Entering directory `/home/stefan/Download/libx86-0.99' > cc -O2 -Wall -DDEBUG -g -c -o lrmi.o lrmi.c > lrmi.c:83: error: field 'vm' has incomplete type > lrmi.c: In function 'get_int_seg': > lrmi.c:111: warning: cast to pointer from integer of different size > lrmi.c: In function 'get_int_off': > lrmi.c:118: warning: cast to pointer from integer of different size > lrmi.c: In function 'LRMI_init': > lrmi.c:147: warning: cast from pointer to integer of different size > lrmi.c:155: warning: cast from pointer to integer of different size > lrmi.c:156: warning: cast from pointer to integer of different size > lrmi.c: In function 'set_regs': > lrmi.c:191: error: 'IF_MASK' undeclared (first use in this function) > lrmi.c:191: error: (Each undeclared identifier is reported only once > lrmi.c:191: error: for each function it appears in.) > lrmi.c:191: error: 'IOPL_MASK' undeclared (first use in this function) > lrmi.c: In function 'em_inbl': > lrmi.c:337: error: invalid lvalue in asm output 0 > lrmi.c: In function 'em_inb': > lrmi.c:345: error: invalid lvalue in asm output 0 > lrmi.c: In function 'em_inw': > lrmi.c:353: error: invalid lvalue in asm output 0 > lrmi.c: In function 'em_inl': > lrmi.c:361: error: invalid lvalue in asm output 0 > lrmi.c: In function 'run_vm86': > lrmi.c:594: warning: implicit declaration of function 'VM86_TYPE' > lrmi.c:594: error: 'VM86_INTx' undeclared (first use in this function) > lrmi.c:595: warning: implicit declaration of function 'VM86_ARG' > lrmi.c:613: error: 'VIF_MASK' undeclared (first use in this function) > lrmi.c:613: error: 'TF_MASK' undeclared (first use in this function) > lrmi.c:618: error: 'VM86_UNKNOWN' undeclared (first use in this function) > lrmi.c: In function 'LRMI_int': > lrmi.c:840: error: 'IF_MASK' undeclared (first use in this function) > lrmi.c:840: error: 'IOPL_MASK' undeclared (first use in this function) > make[1]: *** [lrmi.o] Error 1 > make[1]: Leaving directory `/home/stefan/Download/libx86-0.99' > make: *** [default] Error 2 > > > So I added an #include to lrmi.c because this defines > struct vm86_struct for me. Next try: > > $ make > make LIBRARY=static static > make[1]: Entering directory `/home/stefan/Download/libx86-0.99' > cc -O2 -Wall -DDEBUG -g -c -o lrmi.o lrmi.c > lrmi.c: In function 'get_int_seg': > lrmi.c:112: warning: cast to pointer from integer of different size > lrmi.c: In function 'get_int_off': > lrmi.c:119: warning: cast to pointer from integer of different size > lrmi.c: In function 'LRMI_init': > lrmi.c:148: warning: cast from pointer to integer of different size > lrmi.c:156: warning: cast from pointer to integer of different size > lrmi.c:157: warning: cast from pointer to integer of different size > lrmi.c: In function 'emulate': > lrmi.c:410: warning: cast to pointer from integer of different size > /tmp/cc2LxyZV.s: Assembler messages: > /tmp/cc2LxyZV.s:627: Error: Incorrect register `%rax' used with `l' suffix > /tmp/cc2LxyZV.s:922: Error: Incorrect register `%rax' used with `l' suffix > make[1]: *** [lrmi.o] Error 1 > make[1]: Leaving directory `/home/stefan/Download/libx86-0.99' > make: *** [default] Error 2 > > > There doesn't seem to be any contact address for libx86 bug reports, so > I'm posting here. Yeah, thanks. I think one of the Seife's patches did that. Rafael - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel
[Suspend-devel] s2ram parameters
Hello, here are the s2ram parameters for my laptop valid s2ram call: s2ram -f -s s2ram -i This machine can be identified by: sys_vendor = "FUJITSU SIEMENS" sys_product = "LIFEBOOK E4010" sys_version = " " bios_version = "Version 1.27 " Thank you for your work and greeting wof -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel
[Suspend-devel] empty /sys/power/state?
What's wrong here? # cat /sys/power/state # echo mem > /sys/power/state -su: echo: write error: No such device # uname -a Linux mini 2.6.22-rc2 #3 SMP PREEMPT Sat May 19 20:56:46 CEST 2007 x86_64 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux # grep -e _PM -e _ACPI /usr/src/linux/.config CONFIG_PM=y # CONFIG_PM_LEGACY is not set # CONFIG_PM_DEBUG is not set # CONFIG_PM_SYSFS_DEPRECATED is not set CONFIG_ACPI=y CONFIG_ACPI_PROCFS=y CONFIG_ACPI_AC=m CONFIG_ACPI_BATTERY=m CONFIG_ACPI_BUTTON=m CONFIG_ACPI_FAN=m # CONFIG_ACPI_DOCK is not set CONFIG_ACPI_PROCESSOR=m CONFIG_ACPI_THERMAL=m # CONFIG_ACPI_ASUS is not set # CONFIG_ACPI_TOSHIBA is not set CONFIG_ACPI_BLACKLIST_YEAR=0 # CONFIG_ACPI_DEBUG is not set CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_SYSTEM=y CONFIG_X86_PM_TIMER=y # CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_SBS is not set CONFIG_X86_ACPI_CPUFREQ=m # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set # CONFIG_THINKPAD_ACPI is not set CONFIG_ATA_ACPI=y # CONFIG_FB_PM2 is not set # CONFIG_FB_PM3 is not set -- Stefan Richter -=-=-=== -=-= =--== http://arcgraph.de/sr/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel
[Suspend-devel] s2ram broken for Linux 2.6.22, libx86 broken on x86-64
Hi, the last release of s2ram, the one in suspend-0.5, does not work with Linux 2.6.22-rc2: # s2ram -f -a3 Switching from vt7 to vt1 /proc/sys/kernel/acpi_video_flags does not exist; you need a kernel >=2.6.16. switching back to vt7 The same happens after I switched this "deprecated" option on: CONFIG_ACPI_PROCFS=y So I downloaded the cvs version today and learned that it needs libx86 to be built. Downloaded libx86-0.99.tar.gz because Gentoo Linux apparently doesn't provide it. libx86-0.99 $ make make LIBRARY=static static make[1]: Entering directory `/home/stefan/Download/libx86-0.99' cc -O2 -Wall -DDEBUG -g -c -o lrmi.o lrmi.c lrmi.c:83: error: field 'vm' has incomplete type lrmi.c: In function 'get_int_seg': lrmi.c:111: warning: cast to pointer from integer of different size lrmi.c: In function 'get_int_off': lrmi.c:118: warning: cast to pointer from integer of different size lrmi.c: In function 'LRMI_init': lrmi.c:147: warning: cast from pointer to integer of different size lrmi.c:155: warning: cast from pointer to integer of different size lrmi.c:156: warning: cast from pointer to integer of different size lrmi.c: In function 'set_regs': lrmi.c:191: error: 'IF_MASK' undeclared (first use in this function) lrmi.c:191: error: (Each undeclared identifier is reported only once lrmi.c:191: error: for each function it appears in.) lrmi.c:191: error: 'IOPL_MASK' undeclared (first use in this function) lrmi.c: In function 'em_inbl': lrmi.c:337: error: invalid lvalue in asm output 0 lrmi.c: In function 'em_inb': lrmi.c:345: error: invalid lvalue in asm output 0 lrmi.c: In function 'em_inw': lrmi.c:353: error: invalid lvalue in asm output 0 lrmi.c: In function 'em_inl': lrmi.c:361: error: invalid lvalue in asm output 0 lrmi.c: In function 'run_vm86': lrmi.c:594: warning: implicit declaration of function 'VM86_TYPE' lrmi.c:594: error: 'VM86_INTx' undeclared (first use in this function) lrmi.c:595: warning: implicit declaration of function 'VM86_ARG' lrmi.c:613: error: 'VIF_MASK' undeclared (first use in this function) lrmi.c:613: error: 'TF_MASK' undeclared (first use in this function) lrmi.c:618: error: 'VM86_UNKNOWN' undeclared (first use in this function) lrmi.c: In function 'LRMI_int': lrmi.c:840: error: 'IF_MASK' undeclared (first use in this function) lrmi.c:840: error: 'IOPL_MASK' undeclared (first use in this function) make[1]: *** [lrmi.o] Error 1 make[1]: Leaving directory `/home/stefan/Download/libx86-0.99' make: *** [default] Error 2 So I added an #include to lrmi.c because this defines struct vm86_struct for me. Next try: $ make make LIBRARY=static static make[1]: Entering directory `/home/stefan/Download/libx86-0.99' cc -O2 -Wall -DDEBUG -g -c -o lrmi.o lrmi.c lrmi.c: In function 'get_int_seg': lrmi.c:112: warning: cast to pointer from integer of different size lrmi.c: In function 'get_int_off': lrmi.c:119: warning: cast to pointer from integer of different size lrmi.c: In function 'LRMI_init': lrmi.c:148: warning: cast from pointer to integer of different size lrmi.c:156: warning: cast from pointer to integer of different size lrmi.c:157: warning: cast from pointer to integer of different size lrmi.c: In function 'emulate': lrmi.c:410: warning: cast to pointer from integer of different size /tmp/cc2LxyZV.s: Assembler messages: /tmp/cc2LxyZV.s:627: Error: Incorrect register `%rax' used with `l' suffix /tmp/cc2LxyZV.s:922: Error: Incorrect register `%rax' used with `l' suffix make[1]: *** [lrmi.o] Error 1 make[1]: Leaving directory `/home/stefan/Download/libx86-0.99' make: *** [default] Error 2 There doesn't seem to be any contact address for libx86 bug reports, so I'm posting here. $ uname -m x86_64 $ gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3) -- Stefan Richter -=-=-=== -=-= =--== http://arcgraph.de/sr/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel
[Suspend-devel] IBM (Lenovo) Z61m
Hello, i got a Z61m with ATi X1400 and 1680x1050 display. Due to this i have ti use the closed source fglrx driver to get X with the native display resolution. This is what "s2ram -i" (Version 0.5) emits: --- cut -- This machine can be identified by: sys_vendor = "LENOVO" sys_product = "9450HAG" sys_version = "ThinkPad Z61m" bios_version = "7FET96WW (2.14 )" See http://en.opensuse.org/S2ram for details. If you report a problem, please include the complete output above. --- cut -- In text mode (framebuffer vesafb) suspend works using the vbe options (see table below). However in graphical mode it seems to restore well, but when switching to vt7 (the X display) the display goes black and thats it. None of the s2ram option goes to work. Here is the table of options (use fixed font !): Option | works in text mode ? | works in X +--+ -a 1| no | no -a 2| no | no -a 3| no | no -p -m | yes | no -p -s | yes | no -m | yes, partially | no -s | yes | no -p | no | no -a 1 -m | yes | no -a 1 -s | yes | no It seems that the fglrx driver has a problem at suspending. This also applies when suspending to disk using hibernate (version 1.94 from www.suspend2.net). So - are there any hints for me to get it working under X. Using vesa is not an option. I want to get the native resolution. Installed ATi fglrx has the version 8.35.5. regards Petric - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel