Debian Bug report logs - #595696
console-setup should be able to select the font size according to SCREEN_WIDTH/HEIGHT, rasterizing one if needed

version graph

Package: console-setup; Maintainer for console-setup is Debian Install System Team <debian-boot@lists.debian.org>; Source for console-setup is src:console-setup.

Reported by: Samuel Thibault <sthibault@debian.org>

Date: Sun, 29 Aug 2010 19:09:02 UTC

Severity: wishlist

Found in version console-setup/1.55

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-accessibility@lists.debian.org, sebastien.hinderer@ens-lyon.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#594817; Package console-setup. (Sun, 29 Aug 2010 19:09:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
New Bug report received and forwarded. Copy sent to debian-accessibility@lists.debian.org, sebastien.hinderer@ens-lyon.org, Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 29 Aug 2010 19:09:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: console-setup should configure the width&height of the console
Date: Sun, 29 Aug 2010 21:08:05 +0200
Package: console-setup
Version: 1.55
Severity: normal

Hello,

Squeeze brings an accessibility regression: with some setups (like kms),
the framebuffer console is enabled by default, which thus brings a
high-resolution video mode, thus a screen larger than 80 columns.

This is a problem for braille users: braille displays are quite often 40
cells wide, thus exactly half the screen width. Having to cope with some
more text is a pain.  There are also other braille display sizes, like
64, 88, etc. Also, things like 50 lines is not necessarily convenient,
depending on users.

A nice way to fix the regression and actually provide better support for
various display sizes would be to have console-setup tune the screen
size according to user's decision, thanks to a combination of proper
font size and call to stty rows/cols. The way I see this is to add
SCREEN_WIDTH and SCREEN_HEIGHT to /etc/default/console-setup (unset by
default):

- if only FONTSIZE is set, just load the font and be fine with it.
- if FONTSIZE is set as well as SCREEN_WIDTH/HEIGHT, load the specified
  font, and call stty cols $SCREEN_WIDTH rows $SCREEN_HEIGHT to fix the
  screen size.
- if FONTSIZE is not set but SCREEN_WIDTH/HEIGHT is, look for a font
  size that is almost big enough to get only the desired width and
  height. Calling stty cols $SCREEN_WIDTH rows $SCREEN_HEIGHT then helps
  to get rid of the few extra columns and rows. We could even imagine to
  rasterize a vector font on the fly for very big sizes.

Of course, since Squeeze is frozen, we should probably not care about
the 3rd case for now.  I however believe that handling the second case
would permit to fix the regression nicely and easily enough without
bringing any other potential regressions.

What do you think?

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages console-setup depends on:
ii  console-terminus              4.30-2     Fixed-width fonts for fast reading
ii  debconf [debconf-2.0]         1.5.35     Debian configuration management sy
ii  keyboard-configuration        1.55       system-wide keyboard preferences
ii  xkb-data                      1.8-1      X Keyboard Extension (XKB) configu

Versions of packages console-setup recommends:
ii  kbd                           1.15.2-1   Linux console font and keytable ut

Versions of packages console-setup suggests:
ii  locales                       2.11.2-2   Embedded GNU C Library: National L
ii  locales-all [locales]         2.11.2-2   Embedded GNU C Library: Precompile
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip

-- debconf information:
* console-setup/variant: France
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic languages
  console-setup/unsupported_options: true
  console-setup/ctrl_alt_bksp: true
  console-setup/modelcode: geniuskb19e
  console-setup/use_system_font:
  console-setup/fontsize: 8
* console-setup/unsupported_layout: true
  console-setup/layoutcode: fr,brai
  debian-installer/console-setup/title:
  console-setup/codesetcode: Lat15
  console-setup/altgr: The default for the keyboard layout
* console-setup/ttys: /dev/tty[1-6]
* console-setup/codeset: # Latin1 and Latin5 - western Europe and Turkic languages
  console-setup/toggle: Alt+Caps Lock
* console-setup/fontface: VGA
* console-setup/fontsize-text: 8
  console-setup/compose: Right Logo key
  debian-installer/console-setup-udeb/title:
  console-setup/other:
  console-setup/store_defaults_in_debconf_db: true
  console-setup/switch: No temporary switch
* console-setup/unsupported_config_layout: true
* console-setup/charmap: UTF-8
* console-setup/fontface47: VGA
* console-setup/fontsize-text47: 8
* console-setup/optionscode: grp:alt_caps_toggle,compose:rwin,nbsp:level3n,terminate:ctrl_alt_bksp
  console-setup/unsupported_config_options: true
* console-setup/charmap47: UTF-8
* console-setup/layout: France
  console-setup/variantcode: oss,
* console-setup/model: Genius KB-19e NB
  console-setup/fontsize-fb: 8
* console-setup/fontsize-fb47: 8

-- 
Samuel Thibault <samuel.thibault@fnac.net>
"...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
the Ugly)."
(By Matt Welsh)




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#594817; Package console-setup. (Mon, 30 Aug 2010 06:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian PERRIER <bubulle@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 30 Aug 2010 06:36:03 GMT) Full text and rfc822 format available.

Message #10 received at 594817@bugs.debian.org (full text, mbox):

From: Christian PERRIER <bubulle@debian.org>
To: 594817@bugs.debian.org
Subject: Re: Bug#594817: console-setup should configure the width&height of the console
Date: Mon, 30 Aug 2010 06:33:16 +0200
[Message part 1 (text/plain, inline)]
Quoting Samuel Thibault (sthibault@debian.org):

> Of course, since Squeeze is frozen, we should probably not care about
> the 3rd case for now.  I however believe that handling the second case
> would permit to fix the regression nicely and easily enough without
> bringing any other potential regressions.
> 
> What do you think?


Seems safe to me, yes.


[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#594817; Package console-setup. (Thu, 02 Sep 2010 21:51:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Thu, 02 Sep 2010 21:51:13 GMT) Full text and rfc822 format available.

Message #15 received at 594817@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: 594817@bugs.debian.org
Subject: Re: Bug#594817: console-setup should configure the width&height of the console
Date: Thu, 2 Sep 2010 23:45:49 +0200
[Message part 1 (text/plain, inline)]
Hello,

Here is a patch proposition.

Samuel
[patch (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#594817; Package console-setup. (Sun, 05 Sep 2010 17:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Otavio Salvador <otavio@ossystems.com.br>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 05 Sep 2010 17:45:02 GMT) Full text and rfc822 format available.

Message #20 received at 594817@bugs.debian.org (full text, mbox):

From: Otavio Salvador <otavio@ossystems.com.br>
To: Samuel Thibault <sthibault@debian.org>, 594817@bugs.debian.org
Subject: Re: Bug#594817: console-setup should configure the width&height of the console
Date: Sun, 5 Sep 2010 14:42:55 -0300
Hello Samuel,

On Thu, Sep 2, 2010 at 6:45 PM, Samuel Thibault <sthibault@debian.org> wrote:
> Hello,
>
> Here is a patch proposition.

This looks safe for me too; please commit it.

-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#594817; Package console-setup. (Sun, 05 Sep 2010 21:45:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 05 Sep 2010 21:45:06 GMT) Full text and rfc822 format available.

Message #25 received at 594817@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: 594817@bugs.debian.org
Cc: accessibility@lists.debian.org
Subject: Re: Bug#594817: console-setup should configure the width&height of the console
Date: Sun, 5 Sep 2010 23:44:52 +0200
clone 594817 -1
retitle -1 console-setup should be able to select the font size according to SCREEN_WIDTH/HEIGHT
severity -1 wishlist
tags 594817 + pending
thanks

Otavio Salvador, le Sun 05 Sep 2010 14:42:55 -0300, a écrit :
> On Thu, Sep 2, 2010 at 6:45 PM, Samuel Thibault <sthibault@debian.org> wrote:
> > Here is a patch proposition.
> 
> This looks safe for me too; please commit it.

Done.  I'm cloning this bug to keep the "console-setup should be able to
select the font size according to SCREEN_WIDTH/HEIGHT" part.

Samuel




Bug 594817 cloned as bug 595696. Request was from Samuel Thibault <sthibault@debian.org> to control@bugs.debian.org. (Sun, 05 Sep 2010 21:45:07 GMT) Full text and rfc822 format available.

Changed Bug title to 'console-setup should be able to select the font size according to SCREEN_WIDTH/HEIGHT' from 'console-setup should configure the width&height of the console' Request was from Samuel Thibault <sthibault@debian.org> to control@bugs.debian.org. (Sun, 05 Sep 2010 21:45:09 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Samuel Thibault <sthibault@debian.org> to control@bugs.debian.org. (Sun, 05 Sep 2010 21:45:10 GMT) Full text and rfc822 format available.

Changed Bug title to 'console-setup should be able to select the font size according to SCREEN_WIDTH/HEIGHT, rasterizing one if needed' from 'console-setup should be able to select the font size according to SCREEN_WIDTH/HEIGHT' Request was from Samuel Thibault <sthibault@debian.org> to control@bugs.debian.org. (Sat, 29 Jan 2011 19:03:10 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#595696; Package console-setup. (Sun, 27 Feb 2011 16:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Anton Zinoviev <anton@lml.bas.bg>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 27 Feb 2011 16:36:03 GMT) Full text and rfc822 format available.

Message #38 received at 595696@bugs.debian.org (full text, mbox):

From: Anton Zinoviev <anton@lml.bas.bg>
To: 595696@bugs.debian.org
Subject: Re: Bug#594817: console-setup should configure the width&height of the console
Date: Sun, 27 Feb 2011 18:32:28 +0200
On Sun, Aug 29, 2010 at 09:08:05PM +0200, Samuel Thibault wrote:
>
> - if FONTSIZE is not set but SCREEN_WIDTH/HEIGHT is, look for a font
>   size that is almost big enough to get only the desired width and
>   height. Calling stty cols $SCREEN_WIDTH rows $SCREEN_HEIGHT then helps
>   to get rid of the few extra columns and rows. We could even imagine to
>   rasterize a vector font on the fly for very big sizes.

In order to do something like this, it would be necessary to make 
console-setup predepend on fbset (in order to detect the screen 
resolution).  Is this OK?

Anton Zinoviev





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#595696; Package console-setup. (Sun, 27 Feb 2011 16:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 27 Feb 2011 16:51:03 GMT) Full text and rfc822 format available.

Message #43 received at 595696@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: Anton Zinoviev <anton@lml.bas.bg>, 595696@bugs.debian.org
Subject: Re: Bug#595696: Bug#594817: console-setup should configure the width&height of the console
Date: Sun, 27 Feb 2011 17:47:37 +0100
Anton Zinoviev, le Sun 27 Feb 2011 18:32:28 +0200, a écrit :
> On Sun, Aug 29, 2010 at 09:08:05PM +0200, Samuel Thibault wrote:
> >
> > - if FONTSIZE is not set but SCREEN_WIDTH/HEIGHT is, look for a font
> >   size that is almost big enough to get only the desired width and
> >   height. Calling stty cols $SCREEN_WIDTH rows $SCREEN_HEIGHT then helps
> >   to get rid of the few extra columns and rows. We could even imagine to
> >   rasterize a vector font on the fly for very big sizes.
> 
> In order to do something like this, it would be necessary to make 
> console-setup predepend on fbset (in order to detect the screen 
> resolution).  Is this OK?

I don't see any red light with that.

Samuel




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#595696; Package console-setup. (Sun, 27 Feb 2011 17:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 27 Feb 2011 17:51:03 GMT) Full text and rfc822 format available.

Message #48 received at 595696@bugs.debian.org (full text, mbox):

From: Julien Cristau <jcristau@debian.org>
To: Anton Zinoviev <anton@lml.bas.bg>, 595696@bugs.debian.org
Subject: Re: Bug#595696: Bug#594817: console-setup should configure the width&height of the console
Date: Sun, 27 Feb 2011 18:48:49 +0100
On Sun, Feb 27, 2011 at 18:32:28 +0200, Anton Zinoviev wrote:

> On Sun, Aug 29, 2010 at 09:08:05PM +0200, Samuel Thibault wrote:
> >
> > - if FONTSIZE is not set but SCREEN_WIDTH/HEIGHT is, look for a font
> >   size that is almost big enough to get only the desired width and
> >   height. Calling stty cols $SCREEN_WIDTH rows $SCREEN_HEIGHT then helps
> >   to get rid of the few extra columns and rows. We could even imagine to
> >   rasterize a vector font on the fly for very big sizes.
> 
> In order to do something like this, it would be necessary to make 
> console-setup predepend on fbset (in order to detect the screen 
> resolution).  Is this OK?
> 
Why pre-depends?

Cheers,
Julien




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#595696; Package console-setup. (Mon, 28 Feb 2011 16:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Anton Zinoviev <anton@lml.bas.bg>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 28 Feb 2011 16:09:03 GMT) Full text and rfc822 format available.

Message #53 received at 595696@bugs.debian.org (full text, mbox):

From: Anton Zinoviev <anton@lml.bas.bg>
To: 595696@bugs.debian.org
Subject: Re: Bug#595696: Bug#594817: console-setup should configure the width&height of the console
Date: Mon, 28 Feb 2011 18:07:00 +0200
On Sun, Feb 27, 2011 at 06:48:49PM +0100, Julien Cristau wrote:
> 
> > In order to do something like this, it would be necessary to make 
> > console-setup predepend on fbset (in order to detect the screen 
> > resolution).  Is this OK?
> > 
> Why pre-depends?

Well, for now I am not exactly sure what to do so I will appreciate any 
suggestions.  Maybe it won't be necessary to pre-depend after all.

For now this is what I am planning for the configuring script of 
console-setup:

1. Try to detect the screen resolution.

1a. If framebuffer is used and fbset is installed, then use "fbset -s".
1b. If framebuffer is used but fbset is not installed, then unknown.
1c. If framebuffer is not used and /proc/cmdline doesn't contain "vga" 
    option, then assume standard VGA text mode resolution.
1d. If framebuffer is not used and there is an "vga" option, then unknown.

2. If the resolution is unknown, then ask the questions the same way as now.

3. If the resolution is known, then add the screen resolution to the 
font size to make the choice easier:

6x12 (213x85) framebuffer only
8x14 (160x64)
8x16 (160x73)
10x20 (128x51) framebuffer only
11x22 (116x46) framebuffer only
12x24 (106x42) framebuffer only
14x28 (91x36) framebuffer only
16x32 (80x32) framebuffer only

4. Propose the user to reduce the number of the columns on the screen 
(suggesting 80).  

I suppose reducing the number of rows is not that useful, so no need for 
a question for SCREEN_HEIGHT.

Anton Zinoviev




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#595696; Package console-setup. (Mon, 28 Feb 2011 16:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <sthibault@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 28 Feb 2011 16:30:02 GMT) Full text and rfc822 format available.

Message #58 received at 595696@bugs.debian.org (full text, mbox):

From: Samuel Thibault <sthibault@debian.org>
To: Anton Zinoviev <anton@lml.bas.bg>, 595696@bugs.debian.org
Subject: Re: Bug#595696: Bug#594817: console-setup should configure the width&height of the console
Date: Mon, 28 Feb 2011 17:26:24 +0100
Anton Zinoviev, le Mon 28 Feb 2011 18:07:00 +0200, a écrit :
> 1a. If framebuffer is used and fbset is installed, then use "fbset -s".
> 1b. If framebuffer is used but fbset is not installed, then unknown.
> 1c. If framebuffer is not used and /proc/cmdline doesn't contain "vga" 
>     option, then assume standard VGA text mode resolution.
> 1d. If framebuffer is not used and there is an "vga" option, then unknown.

Mmm, I believe you can get the actual resolution by using the KDFONTOP's
KD_FONT_OP_GET ioctl() to know the current font size.

> 3. If the resolution is known, then add the screen resolution to the 
> font size to make the choice easier:
> 
> 6x12 (213x85) framebuffer only
> 8x14 (160x64)
> 8x16 (160x73)
> 10x20 (128x51) framebuffer only
> 11x22 (116x46) framebuffer only
> 12x24 (106x42) framebuffer only
> 14x28 (91x36) framebuffer only
> 16x32 (80x32) framebuffer only

That'd be a good thing, indeed.

> 4. Propose the user to reduce the number of the columns on the screen 
> (suggesting 80).  
> 
> I suppose reducing the number of rows is not that useful, so no need for 
> a question for SCREEN_HEIGHT.

Ok.

Samuel




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 13:25:05 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.