From patchwork Sun Aug 21 20:35:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bernie@plugable.com X-Patchwork-Id: 1083852 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7LKaAKQ023433 for ; Sun, 21 Aug 2011 20:36:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755775Ab1HUUgO (ORCPT ); Sun, 21 Aug 2011 16:36:14 -0400 Received: from mail-iy0-f170.google.com ([209.85.210.170]:50178 "EHLO mail-iy0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755615Ab1HUUgN (ORCPT ); Sun, 21 Aug 2011 16:36:13 -0400 Received: by mail-iy0-f170.google.com with SMTP id 16so9120681iye.1 for ; Sun, 21 Aug 2011 13:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=ZR6T9vVRpi0RKrdWKGFsJS/x52GwXeYC5QrcL33Jxs4=; b=FHsQMQ+t6jg9V/awKmy3rmJ1P3KixsLMAAYH/tASrou8zjGdkfpCNgan5/D96yi86f OLuqzX5ubtXOJfhQNx+6qFK3WsqzZhwpMcljHUc5lGgRRajtAHvampA3+XpnBIZZFmNy KLBaAfYZccg3eGUS+WEzoalTO4Jbx71wxNs80= Received: by 10.42.146.2 with SMTP id h2mr1817552icv.458.1313958973533; Sun, 21 Aug 2011 13:36:13 -0700 (PDT) Received: from localhost.localdomain (c-76-22-58-200.hsd1.wa.comcast.net [76.22.58.200]) by mx.google.com with ESMTPS id t4sm5027894icw.19.2011.08.21.13.36.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Aug 2011 13:36:12 -0700 (PDT) From: bernie@plugable.com To: linux-fbdev@vger.kernel.org Cc: FlorianSchandinat@gmx.de, Bernie Thompson Subject: [PATCH 6/6] udlfb: Enable fbcon access to framebuffer by default Date: Sun, 21 Aug 2011 13:35:39 -0700 Message-Id: <1313958939-5681-6-git-send-email-bernie@plugable.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313958939-5681-5-git-send-email-bernie@plugable.com> References: <1313958939-5681-5-git-send-email-bernie@plugable.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sun, 21 Aug 2011 20:36:14 +0000 (UTC) From: Bernie Thompson Signed-off-by: Bernie Thompson --- Documentation/fb/udlfb.txt | 10 ++++++---- drivers/video/udlfb.c | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/fb/udlfb.txt b/Documentation/fb/udlfb.txt index c6d90a6..57d2f29 100644 --- a/Documentation/fb/udlfb.txt +++ b/Documentation/fb/udlfb.txt @@ -107,16 +107,18 @@ fb_defio Make use of the fb_defio (CONFIG_FB_DEFERRED_IO) kernel Disable when running with X server that supports reporting changed regions via ioctl, as this method is simpler, more stable, and higher performance. + default: fb_defio=1 -console Allow fbcon to attach to udlfb provided framebuffers. This - is disabled by default because fbcon will aggressively consume - the first framebuffer it finds, which isn't usually what the - user wants in the case of USB displays. +console Allow fbcon to attach to udlfb provided framebuffers. + Can be disabled if fbcon and other clients + (e.g. X with --shared-vt) are in conflict. + default: console=1 shadow Allocate a 2nd framebuffer to shadow what's currently across the USB bus in device memory. If any pixels are unchanged, do not transmit. Spends host memory to save USB transfers. Enabled by default. Only disable on very low memory systems. + default: shadow=1 Sysfs Attributes ================ diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 5207bd2..c8857da 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c @@ -70,7 +70,7 @@ static struct usb_device_id id_table[] = { MODULE_DEVICE_TABLE(usb, id_table); /* module options */ -static int console; /* Optionally allow fbcon to consume first framebuffer */ +static int console = 1; /* Allow fbcon to open framebuffer */ static int fb_defio = 1; /* Detect mmap writes using page faults */ static int shadow = 1; /* Optionally disable shadow framebuffer */ @@ -1958,7 +1958,7 @@ static int dlfb_submit_urb(struct dlfb_data *dev, struct urb *urb, size_t len) } module_param(console, bool, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP); -MODULE_PARM_DESC(console, "Allow fbcon to consume first framebuffer found"); +MODULE_PARM_DESC(console, "Allow fbcon to open framebuffer"); module_param(fb_defio, bool, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP); MODULE_PARM_DESC(fb_defio, "Page fault detection of mmap writes");