Commit 4aa7faff authored by Bernie Thompson's avatar Bernie Thompson Committed by Florian Tobias Schandinat
Browse files

udlfb: Enable fbcon access to framebuffer by default

parent 9f811b72
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -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
		Disable when running with X server that supports reporting
		changed regions via ioctl, as this method is simpler,
		changed regions via ioctl, as this method is simpler,
		more stable, and higher performance.
		more stable, and higher performance.
		default: fb_defio=1


console	Allow fbcon to attach to udlfb provided framebuffers. This
console	Allow fbcon to attach to udlfb provided framebuffers.
		is disabled by default because fbcon will aggressively consume
		Can be disabled if fbcon and other clients
		the first framebuffer it finds, which isn't usually what the
		(e.g. X with --shared-vt) are in conflict.
		user wants in the case of USB displays.
		default: console=1


shadow		Allocate a 2nd framebuffer to shadow what's currently across
shadow		Allocate a 2nd framebuffer to shadow what's currently across
		the USB bus in device memory. If any pixels are unchanged,
		the USB bus in device memory. If any pixels are unchanged,
		do not transmit. Spends host memory to save USB transfers.
		do not transmit. Spends host memory to save USB transfers.
		Enabled by default. Only disable on very low memory systems.
		Enabled by default. Only disable on very low memory systems.
		default: shadow=1


Sysfs Attributes
Sysfs Attributes
================
================
+2 −2
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@ static struct usb_device_id id_table[] = {
MODULE_DEVICE_TABLE(usb, id_table);
MODULE_DEVICE_TABLE(usb, id_table);


/* module options */
/* 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 fb_defio = 1;  /* Detect mmap writes using page faults */
static int shadow = 1; /* Optionally disable shadow framebuffer */
static int shadow = 1; /* Optionally disable shadow framebuffer */


@@ -1948,7 +1948,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_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_param(fb_defio, bool, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP);
MODULE_PARM_DESC(fb_defio, "Page fault detection of mmap writes");
MODULE_PARM_DESC(fb_defio, "Page fault detection of mmap writes");