[SOLVED] suspend/wake on AMD C-50 with fglrx
Posted: Mon Jun 11, 2012 9:19 pm
Suspend/wake on this laptop (acer ao722) with fglrx is functional on Mint10. On any distribution with a more recent kernel (actually LMDE 201204-xfce), I get a black screen on resume (with catalyst driver). This is a known problem with AMD C-50 CPU (and similar). However, I can resume the laptop if I initiate the suspend from a tty, so it seems possible to develop a workaround, but need help.
Here is what I do from the desktop:
1) CTRL-ALT-F1 and login on this text console.
2) sudo /usr/sbin/pm-suspend
3) press a key to wake the laptop => see nothing but...
4) sudo vbetool post => I enter this command "in blind" and then the backlight appears
5) with one or two "enter", I get the command prompt!
At this point, I can't return to X (CTRL-ALT_F7). If I do, I will have to reboot the laptop. However, if I do another suspend-wake-vbetool in the text console I can return to X after. No idea why I have to do it twice, but it works. The funny thing is that if I suspend the laptop from X at this point, it works but I get a corrupted display at resume and have to restart X. This may be another issue.
I had the idea to add the "vbetool post" command in a script called in the wake process. I did it in /usr/lib/pm-utils/sleep.d/000kernel-change because it seems to be the last script called. It works! No need to run the step 4 in blind anymore! However, I still have to suspend from a tty, do it twice and by hand since I don't know how the apply the power management settings in xfce system-wide (close the lid or suspend button do nothing in a tty).
Clearly, the laptop can sleep and resume. Does anybody have a clue to improve the workaround? Of course, I would like to suspend from X. But if I have to do it in a tty, if would be nice to just close the lid and do it only one time.
I don't think it's LMDE specific but I posted here since it's the actual distribution I'm testing.
Here is what I do from the desktop:
1) CTRL-ALT-F1 and login on this text console.
2) sudo /usr/sbin/pm-suspend
3) press a key to wake the laptop => see nothing but...
4) sudo vbetool post => I enter this command "in blind" and then the backlight appears
5) with one or two "enter", I get the command prompt!
At this point, I can't return to X (CTRL-ALT_F7). If I do, I will have to reboot the laptop. However, if I do another suspend-wake-vbetool in the text console I can return to X after. No idea why I have to do it twice, but it works. The funny thing is that if I suspend the laptop from X at this point, it works but I get a corrupted display at resume and have to restart X. This may be another issue.
I had the idea to add the "vbetool post" command in a script called in the wake process. I did it in /usr/lib/pm-utils/sleep.d/000kernel-change because it seems to be the last script called. It works! No need to run the step 4 in blind anymore! However, I still have to suspend from a tty, do it twice and by hand since I don't know how the apply the power management settings in xfce system-wide (close the lid or suspend button do nothing in a tty).
Clearly, the laptop can sleep and resume. Does anybody have a clue to improve the workaround? Of course, I would like to suspend from X. But if I have to do it in a tty, if would be nice to just close the lid and do it only one time.
I don't think it's LMDE specific but I posted here since it's the actual distribution I'm testing.