Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10?
Jan Kokemüller
jan.kokemueller at gmail.com
Sat Jun 21 21:41:05 UTC 2014
On 21.06.2014 17:04, Ivan Rokotov wrote:
> 2014-06-21 11:10 GMT+02:00 Jan Kokemüller <jan.kokemueller at gmail.com>:
>> 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.
More information about the freebsd-mobile
mailing list