Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1762142imm; Thu, 19 Jul 2018 07:29:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfj4NGKcPTIvOwt9KxKyVBLcUjSvDhRVCNXqIQtS7N6S34wkIEeyJ1k+XqSkTkOyEyZoAiQ X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr9878952pfb.29.1532010588933; Thu, 19 Jul 2018 07:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532010588; cv=none; d=google.com; s=arc-20160816; b=x1wEpsCCR7XeIwkTQaLdcPGQ9/UYENAApSUFxDVadsFQCVJJHxWByk0X+tm5QjJ79t ker5d0BLIuaaqp45/7FCl3VDndsKGoi+4+XnuRk78OMv1cF5d9U53wqmnoyIcEcQ8nh9 /kVbTXZ7KjGAkTs8jPylyOLdfmF7ZIv2cWwUj6FG2yGhd/uRAdzaDt3iv3rQRzc3UYer 5w+X/CUTsF+uLn2EKVSNfg7XESGuZGocvcrXVsUSXoJACeNY+KM4yBWFQ75IjwksBi2Z S2qqakJghsVDMl0z9eukT0yMVdLrw1ryaqEQPk6blUYblJjFqktDbKeW9lhW/AdToEWo KhQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=qggBl6tGKaev2mJQk+DWxs2bNqc9Q+HpKA7BB3PKUbI=; b=c3S+qYrrGlYJy1/SJPOZejpOM5sNNop4T0Wa6QPKI8inNX9zLg9jvMBqAWNAGpvXwR UNFMQSD5N+iV8FTS7nwkOEptWIWgUZRT8ZMdDjDTPKhBKYG4bv7KJs/n7xC4LinHxUIp gvJJrnS1267dny8618kiA7yuZpByCLQZLYwdbszfEy8p9dUr7PRjMwyGpY9Hkd9A0idg EI54Py7jebEiB3PDFz4EdDu2TYzLEdSyn9Htip/uJp1EdqKLP/B09VaJtkOo9eUsNkOn F1WoHg+ZdphdRs844gs3pQMGqcMouSVuktWZH3ko1rdO7u5JOSyLAVGDn8vbERSZx8SJ YrCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l128-v6si6013556pfc.129.2018.07.19.07.29.34; Thu, 19 Jul 2018 07:29:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731735AbeGSPMV (ORCPT + 99 others); Thu, 19 Jul 2018 11:12:21 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:35606 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730922AbeGSPMV (ORCPT ); Thu, 19 Jul 2018 11:12:21 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1fg9vA-0003mO-Fh; Thu, 19 Jul 2018 16:28:44 +0200 Date: Thu, 19 Jul 2018 16:28:44 +0200 From: Adam Borowski To: Alan Cox Cc: Greg Kroah-Hartman , Jiri Slaby , linux-console@vger.kernel.org, Bartlomiej Zolnierkiewicz , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] vt: no blinking on console, 256/24-bit color improvements Message-ID: <20180719142844.u3u4p7tywb54y4yd@angband.pl> References: <20180718030152.kdq53mwpdfusvwl5@angband.pl> <20180719114749.00a7f979@alans-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719114749.00a7f979@alans-desktop> X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 11:47:49AM +0100, Alan Cox wrote: > On Wed, 18 Jul 2018 05:01:52 +0200 > Adam Borowski wrote: > > > Hi! > > Here's a patchset with two entangled improvements: > > > > * it'd be good to get rid of blinking where possible. Even CGA (thus VGA) > > allows disabling it, rendering such characters with a bright background > > instead. > > That's a matter of taste so needs to configurable. Changing the default > ought I think to be its own patch as it's a separate discussion to having > the choice there and easy to make. For vgacon yeah, you have a good point, as it can support either (and to be exact, exactly one of the two as they share a hardware bit). Only reason to not have this configurable would be avoiding bloating the kernel with knobs hardly anyone flips -- but you can already set minutiae like replacement color for underline/italic/dim. Thus you're right that if/when killing blink on vgacon is implemented, it probably should be settable. This is not an option on fbcon, though -- it can't blink (doable but I'm not seeing anyone wanting to implement that) and already interprets that attribute bit the way VGA would. Thus, this patch merely makes vt behave a way to match what the driver does. This fixes some visual corruption in certain user programs. > For the palette why does it needs changing and exactly what standards > document defines 'right', especially given we don't do ICC in console > mode ? Have you tested the values used against multiple monitor types and > cards with a light meter ? You don't need a light meter for a difference of 53-out-of-256. Most desktop environments don't do ICC out of the box either, but there's an assumption that whatever your monitor does, it gives the same result for the same input (in the same lighting conditions). That patch's purpose is: * behave consistently between two APIs to set the same thing (\e[38;5;m vs \e[38;2;m) in a way that matches other terminals * in case a future driver has better color handling we'd be different from other terminals By the way, you can have ICC on console: "apt install vtgamma" (https://github.com/kilobyte/vtgamma). > BTW visibly breaking the Nvidia crud is also fine. They'll then actually > bother to fix it and uually quite soon. Yeah, but they haven't fixed 512-glyph yet (at least the last time I looked), broken since day one. In any case, this patchset doesn't support vgacon yet, thus this is moot for now. I picked the easy case (fbcon which is always unblinking) over writing stuff to ports, we can update other drivers later. And vgacon has code that looks like it can do CGA and MDA (redundant with mdacon?), either of which I haven't used in... quite a while. Might be tricky getting access to such hardware to test... Meow! -- // If you believe in so-called "intellectual property", please immediately // cease using counterfeit alphabets. Instead, contact the nearest temple // of Amon, whose priests will provide you with scribal services for all // your writing needs, for Reasonable And Non-Discriminatory prices.