Your message dated Wed, 25 May 2011 21:03:17 +0000
with message-id <[email protected]>
and subject line Bug#618573: fixed in kbd 1.15.3-1
has caused the Debian Bug report #618573,
regarding Needed some way to test whether we are on the console
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
618573: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618573
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kbd
Severity: wishlist

Hello,

Console-setup needs some way to test whether we are on the console or 
not (in order not to damage a running X).  Because of Debconf this 
should work when the program is detached from the actual virtual 
terminal (so /usr/bin/tty doesn't work).

For FreeBSD I found the following solution in the net 
(http://www.opennet.ru/tips/info/1448.shtml, in Russian language):

if vidcontrol -i adapter >&- 2>&-; then
   echo We are on the console
else
   echo We are not on the console.
fi

(Vidcontrol is the FreeBSD analogue of the setfont+fbset combination.)

Unfortunately I don't know if something similar can work for Linux but 
Julien Cristau contributed the following code:

#include <stdio.h>
#include <err.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/kd.h>

int main() {
        int fd;
        int rc;
        int mode;

        fd = open("/dev/tty0", O_RDONLY);
        if (fd < 0)
                err(1, "open(/dev/tty0)");
        rc = ioctl(fd, KDGETMODE, &mode);
        if (rc < 0)
                err(1, "ioctl(KDGETMODE)");
        switch (mode) {
                case KD_TEXT:
                        printf("text\n");
                        break;
                case KD_GRAPHICS:
                        printf("graphics\n");
                        break;
                default:
                        printf("other (%d)\n", mode);
                        break;
        }
        return 0;
}

Would it be possible to include something like this in kbd?  I don't 
like the idea to include a binary Linux-only utility in an architecture 
independent package such as console-setup.

Anton Zinoviev




--- End Message ---
--- Begin Message ---
Source: kbd
Source-Version: 1.15.3-1

We believe that the bug you reported is fixed in the latest version of
kbd, which is due to be installed in the Debian FTP archive:

kbd-udeb_1.15.3-1_i386.udeb
  to main/k/kbd/kbd-udeb_1.15.3-1_i386.udeb
kbd_1.15.3-1.debian.tar.gz
  to main/k/kbd/kbd_1.15.3-1.debian.tar.gz
kbd_1.15.3-1.dsc
  to main/k/kbd/kbd_1.15.3-1.dsc
kbd_1.15.3-1_i386.deb
  to main/k/kbd/kbd_1.15.3-1_i386.deb
kbd_1.15.3.orig.tar.gz
  to main/k/kbd/kbd_1.15.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Schutte <[email protected]> (supplier of updated kbd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 25 May 2011 21:48:07 +0200
Source: kbd
Binary: kbd kbd-udeb
Architecture: source i386
Version: 1.15.3-1
Distribution: unstable
Urgency: low
Maintainer: Console utilities maintainers 
<[email protected]>
Changed-By: Michael Schutte <[email protected]>
Description: 
 kbd        - Linux console font and keytable utilities
 kbd-udeb   - Linux console keyboard setup utilities (udeb)
Closes: 617416 618573
Changes: 
 kbd (1.15.3-1) unstable; urgency=low
 .
   * New upstream release.
     - Drop the compose_as_usual patch (merged upstream).
     - Includes Dustin Kirkland’s setvtrgb utility, closes: #617416; and
       kbdinfo, vaguely based on Julien Cristau’s VT mode query code,
       closes: #618573.
     - Reflect changes to the build system in debian/rules.
     - Spanish translations had to be dropped due to problems with the
       es.po file.
   * Upgrade Standards-Version to 3.9.2, no changes needed.
   * Point Vcs-* to anonscm.debian.org.
Checksums-Sha1: 
 0238df94c90fbddd70c564b529e7bd99ce800b33 1556 kbd_1.15.3-1.dsc
 1da0c02cb802d2e68b34b1ba68839929b4255cde 1659867 kbd_1.15.3.orig.tar.gz
 147f8beab21eaed8aa95d8817c7607817f665725 32851 kbd_1.15.3-1.debian.tar.gz
 c7ede7934e727283363b56c00d43d68ca6d55406 451374 kbd_1.15.3-1_i386.deb
 d21e810194b5aaaa1d003b11e922f79e30597f8f 54418 kbd-udeb_1.15.3-1_i386.udeb
Checksums-Sha256: 
 e1d6cae12fe029c306183a4bbe5253869b572cd20ea7990f40a1794a2a16f4db 1556 
kbd_1.15.3-1.dsc
 86505713c3bb81b1517203c5bd1ad8ffacf90ef211214ee26d12ea1ed21194ed 1659867 
kbd_1.15.3.orig.tar.gz
 872123eb79fb6c56571690b0b72a9f6fbe8cd5d7cdfea41e544be42985d012bb 32851 
kbd_1.15.3-1.debian.tar.gz
 9450e4a6818ee0a5d782bf3700e652391c9f3abcfc4c96c21ed1ea5c23a2e88b 451374 
kbd_1.15.3-1_i386.deb
 f926b0f003f8cfd163684c83a9457c7ae93d6d37434287d43749bd824c3c858e 54418 
kbd-udeb_1.15.3-1_i386.udeb
Files: 
 2711e1fa527d0e220bf50ebaef28c75d 1556 utils optional kbd_1.15.3-1.dsc
 8143e179a0f3c25646ce5085e8777200 1659867 utils optional kbd_1.15.3.orig.tar.gz
 88fa8a80e7872b11a6b6c476949a8076 32851 utils optional 
kbd_1.15.3-1.debian.tar.gz
 69f061bce90278d78292253f4202a272 451374 utils optional kbd_1.15.3-1_i386.deb
 3777fef7803462ecaa96d713bd66da09 54418 debian-installer optional 
kbd-udeb_1.15.3-1_i386.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBCAAGBQJN3V5DAAoJEPPkEi8djCYagK4H/i8D0bOqrzJsFDbG2iO1yiML
acNosuFdcJNVhap0wyHuv3W+SP9PzPjWShVhCNUTY1BKmVe8u3JlFSXjMkYwWXkD
fjTDaXRcwqhic1itDszLHXXoVR1ndzUw68I0i9vTT3zUpnS0wWJcAF9+z7mdAMob
ozaeMzruPzlTvJkq6776xdwEB2X2Jp+VFUtpGoKxFErOrqAn+sikMCP7OA92rUQx
gKyKgBeoEPx2yfRJMV6CoUWEWVDbpidzwNTSjOLvb5eXHXYtz31zRRuqgFawOqrl
THQ2R0A7zfs9RZFY6LBU8RsIvY/vxajxSTrpY5Kj382VpxEPP/DDKLGecoUGIIk=
=PENB
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to