Date: Sat, 21 Jun 2014 23:41:01 +0200 From: =?UTF-8?B?SmFuIEtva2Vtw7xsbGVy?= <jan.kokemueller@gmail.com> To: Ivan Rokotov <ivan.rokotov.bsd@gmail.com> Cc: "freebsd-mobile@freebsd.org" <freebsd-mobile@freebsd.org> Subject: Re: Suspend/Resume on Lenovo IdeaPad S400 with FreeBSD 10? Message-ID: <53A5FBED.6090106@gmail.com> In-Reply-To: <CAOTTJKG5fnbEWXdLcFFMi3Qvwo9WjNQJ61vj=_NLYo%2BxKdr_9w@mail.gmail.com> References: <CAOTTJKFPTTbg9GZv1Vvwc%2BRYRQXXYA2pk5Lr%2BZid64gp3b4-9w@mail.gmail.com> <53A54C05.7060403@gmail.com> <CAOTTJKG5fnbEWXdLcFFMi3Qvwo9WjNQJ61vj=_NLYo%2BxKdr_9w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 21.06.2014 17:04, Ivan Rokotov wrote: > 2014-06-21 11:10 GMT+02:00 Jan Kokemüller <jan.kokemueller@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A5FBED.6090106>