Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10?

Adrian Chadd <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <CAJ-VmonVj-J=hp7iK6XmoPQNpGxMsoyv2Y=Ptutv7c596eUs4Q@mail.gmail.com>
Hi all!,

There's a bugzilla ticket for this:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188833

It seems like it's reasonably important; would you mind adding
comments to the ticket that it works or doesn't work for you? That way
whoever doing DRI/Xorg work can see not only the fix but who's been
testing it and on what platforms.

Thanks!


-a


On 21 June 2014 15:16, Ivan Rokotov <[email protected]> wrote:
> 2014-06-21 23:41 GMT+02:00 Jan Kokemüller <[email protected]>:
>> I'm putting it before the calls to /usr/bin/logger.
>>
>> rc.suspend:
>> vidcontrol -s 1 < /dev/console
>> pkill -STOP X
>>
>> rc.resume:
>> pkill -CONT X
>> vidcontrol -s 9 < /dev/console
>>
>> I'm not sure if the vidcontrol call is needed anymore, but for me it worked
>> more reliably than the kern.vt.suspendswitch sysctl last time I checked.
>
> Unfortunately, that doesn't work for me. I tried two combinations
> (with unpatched driver of course):
>
> (1) just pkill commands before /usr/bin/logger:
> the laptop doesn't suspend at all after closing the lid; after opening
> the lid, I got just frozen screen, non-responsive machine and not a
> single line in Xorg log;
>
> (2) pkill commands with vidcontrol, kern.vt.suspendswitch set to 0:
> the laptop doesn't suspend after closing the lid; after opening, the
> screen is switched to console 1; after pressing Alt+F9, I the machine
> gets frozen. I found this in the log:
>
> [  2678.788] (II) AIGLX: Suspending AIGLX clients for VT switch
> [  2678.788] (WW) intel(0): drmDropMaster failed: Unknown error: -22
>
> Anyway, your original patch works perfectly. After two months and
> hundreds of suspends/resumes (sometimes 10-20 without powering down),
> it works without a single issue. Thanks for making my life easier. :)
>
> Ivan
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> To unsubscribe, send any mail to "[email protected]"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.