From owner-freebsd-x11@freebsd.org Mon Jan 8 12:18:02 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8B38E6864E for ; Mon, 8 Jan 2018 12:18:02 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7870B784C7 for ; Mon, 8 Jan 2018 12:18:02 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x244.google.com with SMTP id z130so13141240ioe.13 for ; Mon, 08 Jan 2018 04:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fpgi0l283HQ+T43y2zADDFxxy0MPARJfT0tZ+d4y5TM=; b=qpwdnMB7PWwggIime2rLTJQmd8Ckktls8dQ9cjAFMyIwPg7PHJdnauF7YnFFQVIj6h nQ/KuXdJzQSmkKcKUaaF+owelh/v3HUBxyTCiwYaWYmqiyRaq2IWdbqoXdkgBzc6IaN9 0On7RpJVDagywc8TE6TTCltRLTglqxbS2uTBKGEkKxr344O4tP+XkxH6djg4vJFdg+El df6BYQx06kEU+9LdB7K+lP487uwhiF5AGvpRyo3RGEXsB9EcEWRwN1zcwWBwhrLYcoJq OapHCiCgF+ab6GgtFNaWLFRcMt423xK9RmOiDdvkWcChLaEz1s/78t+n6HkmmGH6Etah BHcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fpgi0l283HQ+T43y2zADDFxxy0MPARJfT0tZ+d4y5TM=; b=Hh0t1KehtwqqOcUpiisWMBB/fB4CjFjKtFA5V7yOnhLc1aZojTQesKvpSUV6vrG+qI OlKSzCBq0KUb/ikiA9TKReaKALAWzqqHlok0HRhAJSh0dB+PV+rjaBMY7CGhpcxh7QJH 8nT+tBe49Xn+VvxPGqZj7rcl6C/Nuq8xaJq9ohKzYEODLawCrvEsza7j6e1jKTx873PS mCjc4S2DWPLtDXzxN/L2LnT1s8LVu2JRJ6KMVHk0GPzZ/pS4Ia4pGVp6PtrUi7+vT73f bXpAYL3E+KMt5bFBMh8klB97is2YanGtizzpEJHpMGPbZL1QMPffgPsU4FihZhqa+wzG ROfw== X-Gm-Message-State: AKGB3mJjsbZjBliMZvkXWOSxXAkcjfPC3P4c3T7/CC49Vn7jBMrmmgZ4 EerxjT+uBxbNiqEQPpG8LxqowtvZNvDQ7kMi5ZqB/tkC X-Google-Smtp-Source: ACJfBouwJIKYUBdGCR2MjYkNSsymLgsXoOojsAfh7cioj52K9WeKFuHC7VKJ0bpuOPEO00MGNyhujpgmnsN2hfvlmWM= X-Received: by 10.107.34.147 with SMTP id i141mr11248349ioi.184.1515413881285; Mon, 08 Jan 2018 04:18:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.203 with HTTP; Mon, 8 Jan 2018 04:18:00 -0800 (PST) In-Reply-To: <7c019f75-c827-b1a3-5647-59e8bc808750@unrelenting.technology> References: <7c019f75-c827-b1a3-5647-59e8bc808750@unrelenting.technology> From: blubee blubeeme Date: Mon, 8 Jan 2018 20:18:00 +0800 Message-ID: Subject: Re: FreeBSD framebuffer To: Greg V Cc: x11-list freebsd Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 12:18:02 -0000 On Mon, Jan 8, 2018 at 6:58 PM, Greg V wrote: > On 01/08/2018 12:49, blubee blubeeme wrote: > >> Two questions: >> >> I'm curious why the new console driver vt doesn't have a vesa driver when >> the traditional syscons driver did. >> >> https://wiki.freebsd.org/Newcons >> >> Is there any specific reason why vesa driver wasn't implemented? >> > Do not read the wiki :) > ouch! > > I'm not sure what "VGA vesa" even means in that table. > Of course vt supports legacy BIOS VGA output, IIRC including resolutions > higher than 640x480. That's good to know, I asked elsewhere why would vt drop support for VGA but this explains it. > > > Second: >> Linux has Linux fbdev that act as a simple dumb framebuffer, where's >> FreeBSD basic framebuffer? >> > The framebuffer API doesn't seem very well documented. But it's usually > called 'scfb'. > It's available as /dev/fb0, ioctls are listed in /usr/include/sys/fbio.h. > > It is used by the "scfb" driver in Xorg. > > Also there's a patch for the Weston compositor that adds support for it: > https://reviews.freebsd.org/D10599#change-JPzq3MOnXvje > Thank you for these, fbio.h looks like what I was looking for! Thank you