Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udlfb: Enable fbcon access to framebuffer by default

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>

authored by

Bernie Thompson and committed by
Florian Tobias Schandinat
4aa7faff 9f811b72

+8 -6
+6 -4
Documentation/fb/udlfb.txt
··· 107 107 Disable when running with X server that supports reporting 108 108 changed regions via ioctl, as this method is simpler, 109 109 more stable, and higher performance. 110 + default: fb_defio=1 110 111 111 - console Allow fbcon to attach to udlfb provided framebuffers. This 112 - is disabled by default because fbcon will aggressively consume 113 - the first framebuffer it finds, which isn't usually what the 114 - user wants in the case of USB displays. 112 + console Allow fbcon to attach to udlfb provided framebuffers. 113 + Can be disabled if fbcon and other clients 114 + (e.g. X with --shared-vt) are in conflict. 115 + default: console=1 115 116 116 117 shadow Allocate a 2nd framebuffer to shadow what's currently across 117 118 the USB bus in device memory. If any pixels are unchanged, 118 119 do not transmit. Spends host memory to save USB transfers. 119 120 Enabled by default. Only disable on very low memory systems. 121 + default: shadow=1 120 122 121 123 Sysfs Attributes 122 124 ================
+2 -2
drivers/video/udlfb.c
··· 60 60 MODULE_DEVICE_TABLE(usb, id_table); 61 61 62 62 /* module options */ 63 - static int console; /* Optionally allow fbcon to consume first framebuffer */ 63 + static int console = 1; /* Allow fbcon to open framebuffer */ 64 64 static int fb_defio = 1; /* Detect mmap writes using page faults */ 65 65 static int shadow = 1; /* Optionally disable shadow framebuffer */ 66 66 ··· 1948 1948 } 1949 1949 1950 1950 module_param(console, bool, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP); 1951 - MODULE_PARM_DESC(console, "Allow fbcon to consume first framebuffer found"); 1951 + MODULE_PARM_DESC(console, "Allow fbcon to open framebuffer"); 1952 1952 1953 1953 module_param(fb_defio, bool, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP); 1954 1954 MODULE_PARM_DESC(fb_defio, "Page fault detection of mmap writes");