Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4269720imm; Sat, 21 Jul 2018 14:40:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc6BIWOm4Lymona+YPI+I+PtKOpH8xgDGZxPHS4bu56hXimkIH58b+XG11TWUrdzt/lhADo X-Received: by 2002:a63:c114:: with SMTP id w20-v6mr6777564pgf.234.1532209206128; Sat, 21 Jul 2018 14:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532209206; cv=none; d=google.com; s=arc-20160816; b=XVSBCxAnj4LATR2NOgoYyJVamLdKWcqOure8xjlTjmb2JcGCsSYKoc/vi+askmlH5E yBIdE1LkZagtztbKNJxLlFbz3bNUbOJRNJcogAHLo/NljdehIg/OKCp4iZ2BZnsWvbY/ pZLl89naDn+6qLuQP+Av3UX5noJlmg+t6Vt02Sd3naOS5TADv4qZOyMgcDb7XU86v7Ko F47yYA7KP5sYdfWQs9BJmQnEU+fjkaXcC3eqjQsf0kMloOfb4CQhrHrUlCeFQR+/saut FQvZGEX8Gv5EMd5u1O17uYcZ/7oObjUl1k4ySHRfY+w06Dxoty2Zv7R1hs89AmSkO5Kg P2hg== 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=aj+ATFcLg5e8Rl2KYC+bRm/w0KvlFgV/9wSoyIdgpbo=; b=HfCMZdU3NDp4v5UKqgJLrNZDxqFgGzL1hOsccECV3TVcmHUjvt1ScJxR7ZWzRpNXFy 29ouACeWdVngCKJINA3Svgt/Kjj+gJG0rpkSFa50KDgfOsdYzO9BOpQ4HCHPjCYbhIqA BidgEVtc0pyK7Uefhzni52UOR8YwTzrfJjFQhCOw8tUoomHhKjbHP0DSsa8imaYrKVV6 B85OkDeob2WuA7OvknZZq5ffQN9k7Ew7Igb0vvIiy+D1I9DIilO77blr9XxvAjlzsKmD GjaAcZg2tM0S1DAkQRiCfOhECHuMHfEPtsTIt4Vf2ipFlgRqLSUhjY2gNj+DMXl4XLCp 9AtQ== 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 d30-v6si4373020pla.64.2018.07.21.14.39.51; Sat, 21 Jul 2018 14:40:06 -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 S1728253AbeGUWdH (ORCPT + 99 others); Sat, 21 Jul 2018 18:33:07 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:45782 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbeGUWdH (ORCPT ); Sat, 21 Jul 2018 18:33:07 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1fgzaN-0002Qh-5T; Sat, 21 Jul 2018 23:38:43 +0200 Date: Sat, 21 Jul 2018 23:38:43 +0200 From: Adam Borowski To: Greg Kroah-Hartman Cc: 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: <20180721213843.wkculy5cdrrbmuij@angband.pl> References: <20180718030152.kdq53mwpdfusvwl5@angband.pl> <20180721074319.GA30454@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180721074319.GA30454@kroah.com> 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 Sat, Jul 21, 2018 at 09:43:19AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 18, 2018 at 05:01:52AM +0200, Adam Borowski wrote: > > 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. > > * due to my error, 256-color mode uses a much darker palette for conversion, > > resulting in behaving inconsistently with 24-bit mode. > > > > The new code uses bright backgrounds when possible, enabled with \e[100m or > > \e[48;m. > > > > Despite the whole idea following a VGA capability, this patchset doesn't > > change vgacon yet, just fbcon. [Not breaking nvidia-proprietary.] > > > > Thus, let's enable unblinking on fbcon for now. We can flip that bit (in > > register 0x10) later. > > > > This fixes the display of catimg and similar tools. > > I've applied the first patch, as it was obvious :) > > For the rest, can you make it a config option as Alan said? And I > agree, we don't care about breaking nvidia systems, go ahead :) The only thing such an option would be able to set is disabling blinking on vgacon, which is not yet implemented. fbcon never blinks, and the only case it can't display bright background is 1-bit black&white. I probably should change the line in fbcon: + vc->vc_unblinking = vc->vc_can_do_color; to always use 1, but it doesn't matter either way. Only difference would be matching the variable name ("unblinking" vs "shows_bright_bg"). Console drivers can interpret that bit of attribute as: * blinking (vc_unblinking = 0) * bright background (vc_unblinking = 1) * neither (result is ignored down the pipeline) The matrix is: color b&w -------+-------------------------------------------+-------------- fb bright bg neither mda N/A blink newport ?bright bg? ?N/A? sti ?neither? ? vga CGA/VGA: hardware switch (write to port) MDA: blink sisusb ? ? Technically, every console can be made to blink by drawing/clearing affected characters a few times per second, but that'd be quite a waste of coding time and kernel size. There's a reason browsers dropped support for and text-decoration:blink. This patchset doesn't drop blink in any case that was supported before, though. I did the easy part used by most people first (fbcon), so it can be reviewed/merged. Doing the hard part is quite pointless if this is NAKed (but obviously doesn't require actual merging). But perhaps by "option" you mean letting the user drop blink with no replacement, which might also be a good idea if configurable? 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.