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

Jan Kokemüller <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
On 21.06.2014 17:04, Ivan Rokotov wrote:
> 2014-06-21 11:10 GMT+02:00 Jan Kokemüller <[email protected]>:
>> I think I found a less hackish workaround for this problem. I've put "pkill
>> -STOP X" into /etc/rc.suspend and "pkill -CONT X" into /etc/rc.resume. This
>> seems to work fine so far with an unmodified xf86-video-intel driver on my
>> SL510.
>
> Interesting! Where in rc.suspend/rc.resume did you put it exactly?
> Ivan

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.
_______________________________________________
[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.