[Nouveau] [PATCH] drm/nouveau/fb: fix suspend/resume fbcon

Emil Velikov emil.l.velikov at gmail.com
Sat Nov 16 15:22:37 PST 2013


On 04/10/13 01:54, Christoph Rudorff wrote:
> Am Donnerstag, den 03.10.2013, 23:50 +0100 schrieb Emil Velikov:
>> I'm not entirely sure this is correct. One needs to save and disable
>> accleration before suspending the fb. Please try the following
>>
>> -	if (state == 0)
>> +	if (state == 1)
>> 		nouveau_fbcon_save_disable_accel(dev);
>> 	fb_set_suspend(drm->fbcon->helper.fbdev, state);
>> -	if (state == 1)
>> +	if (state == 0)
>> 		nouveau_fbcon_restore_accel(dev);
>> 	console_unlock();
>>
>> Cheers,
>> Emil
> 
> Hi!
> 
> That was my first try! I guessed the same but I got exactly one trap
> message on resume.
> 
Hi Chris,

Just got around to playing with s2disk on my laptop(nv96) and AFAICS
it seems to be OK without either patch.

Can you provide some more context regarding the issue ?
* What hardware are you running
* Which kernel are you having problems with
* Can you resume from s2disk correctly if you never start X
* Do you have the problem with s2ram
* dmesg without and with either patch

It might be useful if you can open a bug report and attach the
information in there [1]

Cheers,
Emil

[1] http://nouveau.freedesktop.org/wiki/Bugs/

> So it's about first put the bucket and then open the water tap.
> 
> ;)
> 
> chris
> 
> ps: just found these macros for the state in fb.h:
> 
> FBINFO_STATE_RUNNING = 0
> FBINFO_STATE_SUSPENDED = 1
> 
> 



More information about the Nouveau mailing list