Re: Race VT+X11 on -current

From: Oliver Pinter <oliver.pinter_at_hardenedbsd.org>
Date: Sun, 10 May 2015 19:00:19 +0200
Hi Hans!

On 5/10/15, Hans Petter Selasky <hps_at_selasky.org> wrote:
> On 05/10/15 18:53, Wolfgang Zenker wrote:
>> Hi,
>>
>> * Hans Petter Selasky <hps_at_selasky.org> [150510 14:47]:
>>> On 05/09/15 23:05, Wolfgang Zenker wrote:
>>>> * Allan Jude <allanjude_at_freebsd.org> [150508 16:29]:
>>>>> [..]
>>>>> My experience is a little different.
>>
>>>>> When suspend/resuming my laptop (Lenovo T530 with nVidia gpu)
>>
>>>>> Sometimes when I resume, it seems like the keyboard is frozen. If I
>>>>> alt+f1, then alt+f9, it seems to work fine after that. I'd never
>>>>> though
>>>>> of trying just alt+f9 right away, as I could already see my X session.
>>
>>>>> Not sure if this is related, but it sounds very similar.
>>
>>>> Similar problem on 10-STABLE: I usually start X by running startx
>>>> on ttyv0. After exiting X screen shows ttyv0 again but keyboard
>>>> appears frozen. Using ctrl-alt-f2 and ctrl-alt-f1 to switch to
>>>> ttyv1 and back "unfreezes" keyboard.
>>
>>> Can you try applying to 10-stable:
>>
>>> https://svnweb.freebsd.org/changeset/base/282645
>>
>> Patch needs a little tweaking to apply in vt_resume() on 10-stable
>> (vd is main_vd here), but appears to fix the problem.
>>
>
> Hi,
>
> Sounds good. I'll MFC the patch sometime next week. Seems like more
> people need it for daily FreeBSD use :-)

I have this fix or enhancements in our HardenedBSD codebase:
https://github.com/HardenedBSD/hardenedBSD/commit/18058137da01598403b6ffa40c37b0a907441530
Please review them, and if you feel this required in FreeBSD too, and
cherry-pick them.

>
> --HPS
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Sun May 10 2015 - 15:00:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:57 UTC