S3 wakeup code
Hi,
i just tried 2.6.0-test1 and to my expectation the S3 resume stuff still does not work on the Sony Vaio PCG-C1MHP aka Picturebook. It turns on - Bios set the powerled correct but then - nothing - Nothing on the screen, no backlight, no disk activity.
Is there any way to dump the Windows wakeup code ? Is that machine specific ?
Might it be useful ?
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
A message that is not in the archive (sent off-list or not yet received): 20030723152809.GA591-L3tpvOS5ZD2KugBFyThYrEB+6BGkLq7r@public.gmane.org
Hi!
Quoted 7 lines
i just tried 2.6.0-test1 and to my expectation the S3 resume stuff still does not work on the Sony Vaio PCG-C1MHP aka Picturebook. It turns on - Bios set the powerled correct but then - nothing - Nothing on the screen, no backlight, no disk activity.
Is there any way to dump the Windows wakeup code ? Is that machine specific ?
Wakeup code should *not* be machine-specific, but video card save/restore is obviously video-card specific (and you basically can't get docs). Write beeping code in 8086 assembly and start debuggin' ;-))).
Pavel
Signature · 9 lines
Horseback riding is like software... ...vgf orggre jura vgf serr. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
A message that is not in the archive (sent off-list or not yet received): 20030723162423.GD9013-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org
Am Mit, 2003-07-23 um 18.24 schrieb Pavel Machek:
Quoted 4 lines
Quoted 4 lines
i just tried 2.6.0-test1 and to my expectation the S3 resume stuff still does not work on the Sony Vaio PCG-C1MHP aka Picturebook. It turns on - Bios set the powerled correct but then - nothing - Nothing on the screen, no backlight, no disk activity.
Hmmm...if I understand that right its (still) the very same behaviour with my Z600TEK and I remember someone else having that type of problem. Now I once did some debugging and...nothing. As far as I can tell it does not jump into wakeup code. I never could get any further on that. Though I might have done something wrong - is there any foolproof method on checking wether the system jumps to the wakeup address?
-Knut
Quoted 10 lines
Quoted 3 lines
Is there any way to dump the Windows wakeup code ? Is that machine specific ?
Wakeup code should *not* be machine-specific, but video card save/restore is obviously video-card specific (and you basically can't get docs). Write beeping code in 8086 assembly and start debuggin' ;-))).
Pavel
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 1059041888.19684.8.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org
Quoted 8 lines · Knut Neumann
Hmmm...if I understand that right its (still) the very same behaviour with my Z600TEK and I remember someone else having that type of problem. Now I once did some debugging and...nothing. As far as I can tell it does not jump into wakeup code. I never could get any further on that. Though I might have done something wrong - is there any foolproof method on checking wether the system jumps to the wakeup address?
Yea - Would be my request too - Currently S3 is top on my wishlist. I did a lot of m68k assembly but i tryed to stay as far away from x86 assembly as i could. So it would be nice if the more experienced ones would provide some #define DEBUG where we would hear interesting sounds or blinking keyboard leds or parallel/serial output if certain steps are handled successfully.
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
A message that is not in the archive (sent off-list or not yet received): 20030724104518.GA12041-L3tpvOS5ZD2KugBFyThYrEB+6BGkLq7r@public.gmane.org
Hi!
Quoted 8 lines
Quoted 7 lines
Hmmm...if I understand that right its (still) the very same behaviour with my Z600TEK and I remember someone else having that type of problem. Now I once did some debugging and...nothing. As far as I can tell it does not jump into wakeup code. I never could get any further on that. Though I might have done something wrong - is there any foolproof method on checking wether the system jumps to the wakeup address?
Quoted 6 lines
Yea - Would be my request too - Currently S3 is top on my wishlist. I did a lot of m68k assembly but i tryed to stay as far away from x86 assembly as i could. So it would be nice if the more experienced ones would provide some #define DEBUG where we would hear interesting sounds or blinking keyboard leds or parallel/serial output if certain steps are handled successfully.
Hey, i386 assembly is not that hard, and if you are serious about debugging S3 wakeup, you'll need to know it, anyway.
I don't remember code for beeping... To send data to the paralel port,
movb $0x12, %al movw $0x378, %dx outb %al, %dx
should do the trick (of course, you need to preserve eax/edx if they contain something important). Beeping used to be done in case of panic in some versions of kernel.
*And* someone actually posted patch to do beeping in acpi wakeup, search the archives. [It would be nice if you could transform that patch to something that could be used by #ifdef DEBUG and submitted me a patch).
Pavel
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030724110048.GA312-I/[email protected]
Am Do, 2003-07-24 um 13.00 schrieb Pavel Machek:
Quoted 5 lines
I don't remember code for beeping... To send data to the paralel port,
movb $0x12, %al movw $0x378, %dx outb %al, %dx
Ok. I actually got myself up and created a parallel port plug with Leds
- works fine with test program. Nothing on resume/wakeup (I put the above code into first place in wakeup.S, is that supposed to work?)...so obviously the computers now for sure never jumps to wakeup address, so either somethings wrong with that wakeup address or with pre-jump-to-wakeup-address-stuff. Any idea?
-Knut
Signature · 20 lines
Knut Neumann <[email protected]> Physikalische Grundpraktika - Heinrich-Heine Universitaet Duesseldorf Raum 25.33.01.63 - Universitaetsstrasse 1 - D-40225 Duesseldorf fon: +49-211-81-11314 fax: +49-211-81-13105 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 6 lines
Quoted 5 lines
I don't remember code for beeping... To send data to the paralel port,
movb $0x12, %al movw $0x378, %dx outb %al, %dx
Quoted 6 lines
Ok. I actually got myself up and created a parallel port plug with Leds
- works fine with test program. Nothing on resume/wakeup (I put the above code into first place inwakeup.S, is that supposed to work?)...so obviously the computers now for sure never jumps to wakeup address, so either somethings wrong with that wakeup address or with pre-jump-to-wakeup-address-stuff. Any idea?
1st try to putting this code followed by
1: jmp 1b
into, say, powerdown code (or maybe suspend_save_state?) to make sure the code works as expected. Then send me diff -u wakeup.S.old wakeup.S. You might want to add that jmp there, too. Not sure if parport should be powered up at that point, but if not even parport is powered, I don't know how to debug that.
Pavel
Signature · 9 lines
Horseback riding is like software... ...vgf orggre jura vgf serr. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030730182250.GL10276-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org
Hi,
Am Mi, 2003-07-30 um 20.22 schrieb Pavel Machek:
Quoted 1 line
the code works as expected. Then send me diff -u wakeup.S.old
Attached. Code works. Still nothing after resume though - I rememeber someone debugging S3 via parport/serial so I dont think its still powered down.
Actually changing _set_wakeup_vector ((acpi_physical_address) acpi_wakeup_vector)) to _set_wakeup_vector ((acpi_physical_address) 0)) gives the very same result on resume.
Thanks
-Knut
Signature · 20 lines
Knut Neumann <[email protected]> Physikalische Grundpraktika - Heinrich-Heine Universitaet Duesseldorf Raum 25.33.01.63 - Universitaetsstrasse 1 - D-40225 Duesseldorf fon: +49-211-81-11314 fax: +49-211-81-13105 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 6 lines
Am Mi, 2003-07-30 um 20.22 schrieb Pavel Machek:
Quoted 1 line
the code works as expected. Then send me diff -u wakeup.S.old
Attached. Code works. Still nothing after resume though - I rememeber someone debugging S3 via parport/serial so I dont think its still powered down.
Sorry, I do not see anything attached.
On two of my machines, even video is up and running when we enter acpi_wakeup_vector. Machines differ in these little details :-(.
Quoted 3 lines
Actually changing
_set_wakeup_vector((acpi_physical_address)acpi_wakeup_vector)) to_set_wakeup_vector((acpi_physical_address) 0)) gives the very same result on resume.
Pavel
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Am Don, 2003-07-24 um 12.45 schrieb Florian Lohoff:
Quoted 6 lines
Yea - Would be my request too - Currently S3 is top on my wishlist. I did a lot of m68k assembly but i tryed to stay as far away from x86 assembly as i could. So it would be nice if the more experienced ones would provide some #define DEBUG where we would hear interesting sounds or blinking keyboard leds or parallel/serial output if certain steps are handled successfully.
I received some tips from Ole Rohne some time ago, which were:
* Insert lcall $0xffff,$0 or machin_restart in various places in wakeup.S and upwards and see if your machine reboots on S3 resume
* If you have a parallel port, make a dongle with eight LEDs and trace your way with OUTB until it hangs
Unfortunately, none of this did anything on resume. We had some more discussions (see archives for Ole Myren Rohne or my name or S3 vaio), which ended up with the conclusion, that the wakeup vector does not get called on resume. I played around with pre-suspend code a little to see if that changes anything, but it didnt. So I stopped looking into it - though I would be happy to have S3 running.
I think I will put up a webpage with all the information I have collected so far. Maybe that will help someone else to track the problem down.
-Knut
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 1059045536.19684.21.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org
Quoted 4 lines · Knut Neumann
I received some tips from Ole Rohne some time ago, which were:
* Insert lcall $0xffff,$0 or
machin_restartin various places inwakeup.Sand upwards and see if your machine reboots on S3 resume
Ok - i tried this - Doesnt work - Machine seems not to execute the wakeup code at all.
And now ?
I read a bit in the ACPI Specs - It seems there are a 32Bit and a 64Bit pointer to the wakeup routine. The 32Bit pointer says "superseeded by "X_Firmware_Waking_Vector" which seems not to be set in drivers/acpi/hardware/hwsleep.c:acpi_set_firmware_waking_vector
Might that be one of the causes ?
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
A message that is not in the archive (sent off-list or not yet received): 20030724144535.GA629-L3tpvOS5ZD2KugBFyThYrEB+6BGkLq7r@public.gmane.org
Hi!
Quoted 8 lines
Quoted 4 lines
I received some tips from Ole Rohne some time ago, which were:
* Insert lcall $0xffff,$0 or
machin_restartin various places inwakeup.Sand upwards and see if your machine reboots on S3 resumeOk - i tried this - Doesnt work - Machine seems not to execute the wakeup code at all.
Quoted 6 lines
And now ?
I read a bit in the ACPI Specs - It seems there are a 32Bit and a 64Bit pointer to the wakeup routine. The 32Bit pointer says "superseeded by "
X_Firmware_Waking_Vector" which seems not to be set in drivers/acpi/hardware/hwsleep.c:acpi_set_firmware_waking_vector
What specs is that? As wakeup code starts in *real* mode, I don't see how 64bit pointer is going to be usefull...
Quoted 1 line
Might that be one of the causes ?
I don't think so. lcall $0xffff, $0 is not guaranteed to reboot. Machine is in pretty weird state at that point.
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030724200411.GA444-I/[email protected]
Re: S3 suspend code
Are there any Linux users with a Dell Latitude C640?
S3 suspend returns immediately, and is therefor not really usefull ;-)
I'm using FreeBSD myself, but have checked this awhile go in Linux too, and had the same problem.
It would be nice if people can confirm if this is still the case.
If not, are there people that have advise how I can fix this problem.
Like I said, the suspend returns immediately, but it does succeed. It seems that it gets a wakeup signal immediately though.
Any help appreciated.
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: S3 suspend code
Hi!
Quoted 2 lines
Like I said, the suspend returns immediately, but it does succeed. It seems that it gets a wakeup signal immediately though.
Like it turns into sleep mode then wakes up? You probably have some device that is enabled to wake the machine up, which should not really do that... Check 2.6.0-t1.
Pavel
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030724224141.GA430-I/[email protected]
Re: S3 suspend code
Quoted 6 lines · Pavel Machek
Quoted 2 lines
Like I said, the suspend returns immediately, but it does succeed. It seems that it gets a wakeup signal immediately though.
Like it turns into sleep mode then wakes up? You probably have some device that is enabled to wake the machine up, which should not really do that... Check 2.6.0-t1.
I've put a different disk in my laptop and installed Linux on it. With 2.6.0-t1 it does the right thing. Also 2.5.75 works.
I'm going do to a binary search to find the specific change that fixed it.
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: S3 suspend code
Hi,
Quoted 11 lines · Mark Santcroos
Quoted 6 lines · Pavel Machek
Quoted 2 lines
Like I said, the suspend returns immediately, but it does succeed. It seems that it gets a wakeup signal immediately though.
Like it turns into sleep mode then wakes up? You probably have some device that is enabled to wake the machine up, which should not really do that... Check 2.6.0-t1.
I've put a different disk in my laptop and installed Linux on it. With 2.6.0-t1 it does the right thing. Also 2.5.75 works.
I'm going do to a binary search to find the specific change that fixed it.
It looks like I had confused my earlier tests with something else, because also old Linux kernels do it "correctly".
My machine suspends as early as with 2.5.6 (the first kernel with /proc/acpi/sleep), note that it doesn't resume correctly up until 2.5.30 or so, but that doesn't really matter.
Do you know if there is any way to find out what device or bus triggers the wakeup? A state stored somewhere or so.
Thanks
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: S3 suspend code
Hi!
Quoted 14 lines
Quoted 10 lines
Quoted 6 lines
Quoted 2 lines
Like I said, the suspend returns immediately, but it does succeed. It seems that it gets a wakeup signal immediately though.
Like it turns into sleep mode then wakes up? You probably have some device that is enabled to wake the machine up, which should not really do that... Check 2.6.0-t1.
I've put a different disk in my laptop and installed Linux on it. With 2.6.0-t1 it does the right thing. Also 2.5.75 works.
I'm going do to a binary search to find the specific change that fixed it.It looks like I had confused my earlier tests with something else, because also old Linux kernels do it "correctly".
Quoted 7 lines
My machine suspends as early as with 2.5.6 (the first kernel with
/proc/acpi/sleep), note that it doesn't resume correctly up until 2.5.30 or so, but that doesn't really matter.Do you know if there is any way to find out what device or bus triggers the wakeup? A state stored somewhere or so.
I do not know how to tell which device is that. Older kernels simply disabled all wakeups altogether (that change should be easy to spot, it is somewhere really close to entering sleep), which is wrong but worked for a lot of people. This change was taken/reverted few times, iirc.
Signature · 10 lines
Pavel Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need... ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Quoted 9 lines · Pavel Machek
Quoted 5 lines
I read a bit in the ACPI Specs - It seems there are a 32Bit and a 64Bit pointer to the wakeup routine. The 32Bit pointer says "superseeded by "
X_Firmware_Waking_Vector" which seems not to be set in drivers/acpi/hardware/hwsleep.c:acpi_set_firmware_waking_vectorWhat specs is that? As wakeup code starts in *real* mode, I don't see how 64bit pointer is going to be usefull...
ACPI 2.0 Page 128 - I think these are extensions to support ia64 - But forget about that - used debug code - its using the 32bit pointer.
And i was misreading the code - Basically it puts a "generic" pointer to the right Firmware vector inthe gbl_common_fACS and writes to the previously defined position.
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
Quoted 5 lines · Florian Lohoff
Quoted 2 lines
* Insert lcall $0xffff,$0 or
machin_restartin various places inwakeup.Sand upwards and see if your machine reboots on S3 resumeOk - i tried this - Doesnt work - Machine seems not to execute the wakeup code at all.
IIRC, at one point linux wrote the kernel VM address to the firmware wakeup vector, typically 0xc0000000 + hardware address. Now, there is of course only one way to interpret that as a real-mode seg:off address, but it did strike me as weird. I once checked that the leading 0xc is irrelevant on my P2120, but YMMV.
I would also check that the suspend/resume doesn't choke somewhere in 32-bit land by jumping over the call to acpi_enter_sleep_state in wakeup.S.
Ole
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): m3r84eaj3z.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]
Quoted 6 lines · Ole Myren Rohne
IIRC, at one point linux wrote the kernel VM address to the firmware wakeup vector, typically
0xc0000000+ hardware address. Now, there is of course only one way to interpret that as a real-mode seg:off address, but it did strike me as weird. I once checked that the leading0xcis irrelevant on my P2120, but YMMV.
Hmmm - I didnt have a look at that - I was assuming that alloc_bootmem returned a physical address. In 2.5 it seems we dont write out the allocated address on boot as we did in 2.4 (hint, hint)
Quoted 3 lines
I would also check that the suspend/resume doesn't choke somewhere in 32-bit land by jumping over the call to
acpi_enter_sleep_stateinwakeup.S.
I kind of had to debug this on this machine - No legacy hardware nice for debugging (Parallel, Serial etc). Even the speaker is switched through the sound card so when the chip is still powered down - no sound.
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
A message that is not in the archive (sent off-list or not yet received): 20030725125052.GC910-L3tpvOS5ZD2KugBFyThYrEB+6BGkLq7r@public.gmane.org
Am Fre, 2003-07-25 um 14.50 schrieb Florian Lohoff:
Quoted 3 lines
Hmmm - I didnt have a look at that - I was assuming that
alloc_bootmemreturned a physical address. In 2.5 it seems we dont write out the allocated address on boot as we did in 2.4 (hint, hint)
Without a look and everything I remember that S3 once at least worked with disk and stuff resuming - no video though. I actually though it stopped working in course of 2.5 - but might have been the change from 2.4 to 2.5. You wouldnt mind testing with 2.4, would you?
-Knut
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 1059138637.20426.7.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org
Quoted 9 lines · Knut Neumann
Am Fre, 2003-07-25 um 14.50 schrieb Florian Lohoff:
Quoted 3 lines
Hmmm - I didnt have a look at that - I was assuming that
alloc_bootmemreturned a physical address. In 2.5 it seems we dont write out the allocated address on boot as we did in 2.4 (hint, hint)Without a look and everything I remember that S3 once at least worked with disk and stuff resuming - no video though. I actually though it stopped working in course of 2.5 - but might have been the change from 2.4 to 2.5. You wouldnt mind testing with 2.4, would you?
S4/swsusp works like a charm for me on 2.4 - S3 is not available for 2.4 i thought ?
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
Quoted 5 lines · Ole Myren Rohne
IIRC, at one point linux wrote the kernel VM address to the firmware wakeup vector, typically
0xc0000000+ hardware address. Now, there is of course only one way to interpret that as a real-mode seg:off address, but it did strike me as weird. I once checked that the leading0xcis irrelevant on my P2120, but YMMV.
I tried to make a &0xfffff on setting of the address - no success.
Quoted 3 lines
I would also check that the suspend/resume doesn't choke somewhere in 32-bit land by jumping over the call to
acpi_enter_sleep_stateinwakeup.S.
That one works without any problem ...
Flo
Signature · 2 lines
Florian Lohoff [email protected] +49-171-2280134 Heisenberg may have been here.
Hi,
My problem is the backlight on a Dell Inspiron 8100 with the nVidia VGA controller. Everything seems to work as expected in all modes detected (S0, S1, S3, S4bios, S4, S5), except that the backlight stays on after "echo [1,3] > /proc/acpi/sleep". S1 just refrigerates everything, and leaves the display on, resume works fine.
S3 refrigerates everything and suspends, leaving the display white. Resuming turns the backlight off. I can retrieve the backlight with the LCD/CRT button.
Both S4's behave properly (full power off/restore with the power button).
What part of the code should I look at to attack this problem (ACPI tables, linux/arch/i386/kernel/acpi/*, or linux/drivers/acpi/*)? DSDT compiles ok with the iasl assembler/disassembler, and Windows XP goes into standby properly; so I assume that the ACPI tables can be driven by the OS. Perhaps something along the lines of the asus_acpi code?
dave
Quoted 10 lines · Pavel Machek
Hi!
Quoted 7 lines
i just tried 2.6.0-test1 and to my expectation the S3 resume stuff still does not work on the Sony Vaio PCG-C1MHP aka Picturebook. It turns on - Bios set the powerled correct but then - nothing - Nothing on the screen, no backlight, no disk activity.
Is there any way to dump the Windows wakeup code ? Is that machine specific ?
Quoted 6 lines
Wakeup code should *not* be machine-specific, but video card save/restore is obviously video-card specific (and you basically can't get docs). Write beeping code in 8086 assembly and start debuggin' ;-))).
Pavel
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): Pine.LNX.4.44.0307250755460.2827-100000-zmH7q5lE+0tBz13eCZem0Q@public.gmane.org
In message: <Pine.LNX.4.44.0307250755460.2827-100000-zmH7q5lE+0tBz13eCZem0Q@public.gmane.org>
David G Hamblen <dave-RfZrpLcwWZ/[email protected]> writes:
: S3 refrigerates everything and suspends, leaving the display white.
: Resuming turns the backlight off. I can retrieve the backlight with the
: LCD/CRT button.
I've seen exactly the same problem under FreeBSD which has supported S3 state for a long time. I've seen the problem going back at least 9 months.
Warner
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030725.072504.126452882.imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org
Quoted 9 lines · M. Warner Losh
In message: <Pine.LNX.4.44.0307250755460.2827-100000-zmH7q5lE+0tBz13eCZem0Q@public.gmane.org>
David G Hamblen <dave-RfZrpLcwWZ/[email protected]> writes:
: S3 refrigerates everything and suspends, leaving the display white.
: Resuming turns the backlight off. I can retrieve the backlight with the
: LCD/CRT button.I've seen exactly the same problem under FreeBSD which has supported S3 state for a long time. I've seen the problem going back at least 9 months.
This needs to be handled by the video driver afaik.
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Mark Santcroos
Quoted 6 lines · M. Warner Losh
In message: <Pine.LNX.4.44.0307250755460.2827-100000-zmH7q5lE+0tBz13eCZem0Q@public.gmane.org>
David G Hamblen <dave-RfZrpLcwWZ/[email protected]> writes:
: S3 refrigerates everything and suspends, leaving the display white.
: Resuming turns the backlight off. I can retrieve the backlight with the
: LCD/CRT button.
Quoted 5 lines
Quoted 3 lines
I've seen exactly the same problem under FreeBSD which has supported S3 state for a long time. I've seen the problem going back at least 9 months.
This needs to be handled by the video driver afaik.
I'm using the vesafb driver; I also tried with non-framebuffer VGA console with the same behavior. I'm not running XF86 for these experiments. Should I look into the vesafb code?
dave
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): Pine.LNX.4.44.0307250936080.3334-100000-zmH7q5lE+0tBz13eCZem0Q@public.gmane.org
Quoted 8 lines · David G Hamblen
Quoted 8 lines
Quoted 7 lines
: S3 refrigerates everything and suspends, leaving the display white. : Resuming turns the backlight off. I can retrieve the backlight with the : LCD/CRT button.
I've seen exactly the same problem under FreeBSD which has supported S3 state for a long time. I've seen the problem going back at least 9 months.
Quoted 5 lines
Quoted 1 line
This needs to be handled by the video driver afaik.
I'm using the vesafb driver; I also tried with non-framebuffer VGA console with the same behavior. I'm not running XF86 for these experiments. Should I look into the vesafb code?
I don't think there is a generic solution for this. We need specific code for every video driver that needs it.
That's my educated guess though.
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Hi!
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
: S3 refrigerates everything and suspends, leaving the display white. : Resuming turns the backlight off. I can retrieve the backlight with the : LCD/CRT button.
I've seen exactly the same problem under FreeBSD which has supported S3 state for a long time. I've seen the problem going back at least 9 months.
Quoted 5 lines
Quoted 1 line
This needs to be handled by the video driver afaik.
I'm using the vesafb driver; I also tried with non-framebuffer VGA console with the same behavior. I'm not running XF86 for these experiments. Should I look into the vesafb code?
I believe you need to use specific kernel fb driver, and write suspend/resume code for it :-(.
Pavel
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030725153110.GD310-I/[email protected]
Quoted 2 lines · Pavel Machek
I believe you need to use specific kernel fb driver, and write suspend/resume code for it :-(.
I did it once for my ATI Radeon 7500, I will look it up and post it here.
Mark
Signature · 9 lines
Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Mark Santcroos
Quoted 2 lines · Pavel Machek
I believe you need to use specific kernel fb driver, and write suspend/resume code for it :-(.
I did it once for my ATI Radeon 7500, I will look it up and post it here.
Stuff like this might help. I haven't looked closely, but grepping thru linux/drivers/video shows a few drivers (including atiradeonfb.c) that have code relating to backlight power.
Dave
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Hi!
Quoted 10 lines
My problem is the backlight on a Dell Inspiron 8100 with the nVidia VGA controller. Everything seems to work as expected in all modes detected (S0, S1, S3, S4bios, S4, S5), except that the backlight stays on after "echo [1,3] >
/proc/acpi/sleep". S1 just refrigerates everything, and leaves the display on, resume works fine.S3 refrigerates everything and suspends, leaving the display white. Resuming turns the backlight off. I can retrieve the backlight with the LCD/CRT button.
Quoted 7 lines
Both S4's behave properly (full power off/restore with the power button).
What part of the code should I look at to attack this problem (ACPI tables, linux/arch/i386/kernel/acpi/*, or linux/drivers/acpi/*)? DSDT compiles ok with the iasl assembler/disassembler, and Windows XP goes into standby properly; so I assume that the ACPI tables can be driven by the OS. Perhaps something along the lines of the
asus_acpicode?
Video is hard to do... You should write specific suspend/resume support for your video card. Bad luck if you are using vesafb :-(.
Quoted 4 lines
Quoted 4 lines
Wakeup code should *not* be machine-specific, but video card save/restore is obviously video-card specific (and you basically can't get docs). Write beeping code in 8086 assembly and start debuggin' ;-))).
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Thus wrote David G Hamblen:
Quoted 2 lines
standby properly; so I assume that the ACPI tables can be driven by the OS. Perhaps something along the lines of the
asus_acpicode?
The asus_acpi module uses the ASUS-specific DSDT methods to handle the backlight switching. I have quite the same problem with S1 on my machine, but I get around it by doing echo 0 > /proc/acpi/asus/lcd; echo 1 > /proc/acpi/sleep; echo 1 > /proc/acpi/asus/lcd. You may want to look for the relevant methods in your DSDT and write a kernel interface to call them, so that you could then activate it prior to suspending. I suppose that's exactly what the Windows drivers do. You may also try something video-specific, i.e. radeontool.
BTW: Pavel: will there be a place in the new PM interface for functions that drivers could bind onto, i.e. something like a generic disable_backlight(), assigned to {asus,dell,toshiba,nvidia,radeon,etc.}_disable_backlight()? I think this could solve some important problems.
Best regards,
Signature · 9 lines
Karol 'sziwan' Kozimor sziwan-DETuoxkZsSqrDJvtcaxF/[email protected] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
A message that is not in the archive (sent off-list or not yet received): 20030725175625.GC1526-DETuoxkZsSqrDJvtcaxF/[email protected]
Quoted 13 lines · Karol Kozimor
Thus wrote David G Hamblen:
Quoted 2 lines
standby properly; so I assume that the ACPI tables can be driven by the OS. Perhaps something along the lines of the
asus_acpicode?The
asus_acpimodule uses the ASUS-specific DSDT methods to handle the backlight switching. I have quite the same problem with S1 on my machine, but I get around it by doing echo 0 >/proc/acpi/asus/lcd; echo 1 >/proc/acpi/sleep; echo 1 >/proc/acpi/asus/lcd. You may want to look for the relevant methods in your DSDT and write a kernel interface to call them, so that you could then activate it prior to suspending. I suppose that's exactly what the Windows drivers do. You may also try something video-specific, i.e. radeontool.
Quoted 5 lines
BTW: Pavel: will there be a place in the new PM interface for functions that drivers could bind onto, i.e. something like a generic
disable_backlight(), assigned to {asus,dell,toshiba,nvidia,radeon,etc.}_disable_backlight()? I think this could solve some important problems.
The /linux/drivers/skeletonfb.c file has some potential sample hooks for this kind of thing. Several of the drivers in that directory have code drive the various power states. When I get a chance, I might try hacking the vesafb driver. I don't know if I can get any hints out of the nv driver for XF86.
Dave
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Hi!
Quoted 5 lines
BTW: Pavel: will there be a place in the new PM interface for functions that drivers could bind onto, i.e. something like a generic
disable_backlight(), assigned to {asus,dell,toshiba,nvidia,radeon,etc.}_disable_backlight()? I think this could solve some important problems.
I guess you should create sysfs node for your video card, and hook your methods there. If you can't place it in the sysfs hierarchy place it into system devices...
BTW ACPI lid refresh code should be also moved to sysfs like that...
Pavel
Signature · 9 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01