Debian Bug report logs - #438915
disable keyboard and mouse in fbcon

version graph

Package: libsdl1.2; Maintainer for libsdl1.2 is Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>;

Reported by: Bernhard Kauer <kauer@os.inf.tu-dresden.de>

Date: Mon, 20 Aug 2007 18:06:02 UTC

Severity: wishlist

Tags: patch

Found in version 1.2.11-9

Fixed in version libsdl1.2/1.2.13-5

Done: Barry deFreese <bdefreese@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#438915; Package libsdl1.2. (full text, mbox, link).


Acknowledgement sent to Bernhard Kauer <kauer@os.inf.tu-dresden.de>:
New Bug report received and forwarded. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Bernhard Kauer <kauer@os.inf.tu-dresden.de>
To: bugs@debian.org
Subject: disable keyboard and mouse in fbcon
Date: Mon, 20 Aug 2007 20:03:05 +0200
Package: libsdl1.2
Version: 1.2.11-9
Tags: patch
Severity: wishlist


The fbcon driver does not allow to disable the initialization
of the keyboard. Only the initialization of the mouse could
be disabled.

The attached patch checks whether a SDL_NOKBD environment variable
is present and does not init the keyboard in this case. This feature
is quite usefull in situations where the application does not need
user input and crashes without releasing the console.


	Bernhard Kauer



Information forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#438915; Package libsdl1.2. (full text, mbox, link).


Acknowledgement sent to Bernhard Kauer <kauer@os.inf.tu-dresden.de>:
Extra info received and forwarded to list. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Bernhard Kauer <kauer@os.inf.tu-dresden.de>
To: 438915@bugs.debian.org
Subject: Re: Bug#438915: Acknowledgement (disable keyboard and mouse in fbcon)
Date: Mon, 20 Aug 2007 20:23:13 +0200
[SDL_fbvideo.c.diff (text/x-diff, attachment)]
--- libsdl1.2-1.2.11.orig/src/video/fbcon/SDL_fbvideo.c
+++ libsdl1.2-1.2.11/src/video/fbcon/SDL_fbvideo.c
@@ -697,14 +697,19 @@
 		}
 	}
 
-	/* Enable mouse and keyboard support */
-	if ( FB_OpenKeyboard(this) < 0 ) {
-		FB_VideoQuit(this);
-		return(-1);
-	}
+	if (!SDL_getenv("SDL_NOKBD"))
+	  {
+	    fprintf(stderr, "init kbd.\n");
+	    /* Enable mouse and keyboard support */
+	    if ( FB_OpenKeyboard(this) < 0 ) {
+	      FB_VideoQuit(this);
+	      return(-1);
+	    }
+	  }
 	if ( FB_OpenMouse(this) < 0 ) {
 		const char *sdl_nomouse;
 
+		fprintf(stderr, "init mouse failed.\n");
 		sdl_nomouse = SDL_getenv("SDL_NOMOUSE");
 		if ( ! sdl_nomouse ) {
 			SDL_SetError("Unable to open mouse");
@@ -914,7 +920,6 @@
 
 	/* Set the terminal into graphics mode */
 	if ( FB_EnterGraphicsMode(this) < 0 ) {
-		return(NULL);
 	}
 
 	/* Restore the original palette */
@@ -1620,7 +1626,7 @@
 
 	if ( this->screen ) {
 		/* Clear screen and tell SDL not to free the pixels */
-		if ( this->screen->pixels && FB_InGraphicsMode(this) ) {
+	  if ( this->screen->pixels && (FB_InGraphicsMode(this) || SDL_getenv("SDL_NOKBD")) ) {
 #if defined(__powerpc__) || defined(__ia64__)	/* SIGBUS when using SDL_memset() ?? */
 			Uint8 *rowp = (Uint8 *)this->screen->pixels;
 			int left = this->screen->pitch*this->screen->h;
@@ -1669,7 +1675,7 @@
 		}
 
 		/* Restore the original video mode and palette */
-		if ( FB_InGraphicsMode(this) ) {
+		if ( FB_InGraphicsMode(this) || SDL_getenv("SDL_NOKBD") ) {
 			FB_RestorePalette(this);
 			ioctl(console_fd, FBIOPUT_VSCREENINFO, &saved_vinfo);
 		}



Reply sent to Barry deFreese <bdefreese@debian.org>:
You have taken responsibility. (Mon, 05 Oct 2009 20:06:46 GMT) (full text, mbox, link).


Notification sent to Bernhard Kauer <kauer@os.inf.tu-dresden.de>:
Bug acknowledged by developer. (Mon, 05 Oct 2009 20:06:46 GMT) (full text, mbox, link).


Message #15 received at 438915-close@bugs.debian.org (full text, mbox, reply):

From: Barry deFreese <bdefreese@debian.org>
To: 438915-close@bugs.debian.org
Subject: Bug#438915: fixed in libsdl1.2 1.2.13-5
Date: Mon, 05 Oct 2009 19:47:29 +0000
Source: libsdl1.2
Source-Version: 1.2.13-5

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

libsdl1.2-dev_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2-dev_1.2.13-5_i386.deb
libsdl1.2_1.2.13-5.diff.gz
  to pool/main/libs/libsdl1.2/libsdl1.2_1.2.13-5.diff.gz
libsdl1.2_1.2.13-5.dsc
  to pool/main/libs/libsdl1.2/libsdl1.2_1.2.13-5.dsc
libsdl1.2debian-all_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-all_1.2.13-5_i386.deb
libsdl1.2debian-alsa_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-alsa_1.2.13-5_i386.deb
libsdl1.2debian-arts_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-arts_1.2.13-5_i386.deb
libsdl1.2debian-esd_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-esd_1.2.13-5_i386.deb
libsdl1.2debian-nas_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-nas_1.2.13-5_i386.deb
libsdl1.2debian-oss_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-oss_1.2.13-5_i386.deb
libsdl1.2debian-pulseaudio_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-pulseaudio_1.2.13-5_i386.deb
libsdl1.2debian-udeb_1.2.13-5_i386.udeb
  to pool/main/libs/libsdl1.2/libsdl1.2debian-udeb_1.2.13-5_i386.udeb
libsdl1.2debian_1.2.13-5_i386.deb
  to pool/main/libs/libsdl1.2/libsdl1.2debian_1.2.13-5_i386.deb



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 438915@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry deFreese <bdefreese@debian.org> (supplier of updated libsdl1.2 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 01 Oct 2009 16:45:49 -0400
Source: libsdl1.2
Binary: libsdl1.2debian libsdl1.2debian-all libsdl1.2debian-alsa libsdl1.2debian-oss libsdl1.2debian-esd libsdl1.2debian-arts libsdl1.2debian-nas libsdl1.2debian-pulseaudio libsdl1.2debian-udeb libsdl1.2-dev
Architecture: source i386
Version: 1.2.13-5
Distribution: unstable
Urgency: low
Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>
Changed-By: Barry deFreese <bdefreese@debian.org>
Description: 
 libsdl1.2-dev - Simple DirectMedia Layer development files
 libsdl1.2debian - Simple DirectMedia Layer
 libsdl1.2debian-all - Simple DirectMedia Layer (with all available options)
 libsdl1.2debian-alsa - Simple DirectMedia Layer (with X11 and ALSA options)
 libsdl1.2debian-arts - Simple DirectMedia Layer (with X11 and aRts options)
 libsdl1.2debian-esd - Simple DirectMedia Layer (with X11 and esound options)
 libsdl1.2debian-nas - Simple DirectMedia Layer (with X11 and NAS options)
 libsdl1.2debian-oss - Simple DirectMedia Layer (with X11 and OSS options)
 libsdl1.2debian-pulseaudio - Simple DirectMedia Layer (with X11 and PulseAudio options)
 libsdl1.2debian-udeb - Simple DirectMedia Layer (with directfb graphics and no sound) (udeb)
Closes: 438915 450689 502993 541365 549240
Changes: 
 libsdl1.2 (1.2.13-5) unstable; urgency=low
 .
   [ Barry deFreese ]
   * Add myself to uploaders.
   * Add watch file.
   * Add Homepage: field to source stanza.
   * Fix Vcs-Browser path.
   * 310_segfault_noGLX.diff - Don't segfault when no GLX. (Closes: 541365).
     + Thanks to Gonéri Le Bouder for the fix.
   * 050_altivec_detection.diff - Detect Altivec machines. (Closes: #502993).
     + Update 100_libtoolize.diff.
   * 320_activate_xrandr_on_default.diff - Enable xrandr. (Closes: #450689).
     + Thanks to Kai Wasserbäch for the patch.
   * 221_check_SDL_NOKBD_environment_variable.diff. (Closes: #438915).
     + Thanks to Bernhard Kauer for the patch.
   * Remove manpage from libsdl1.2-dev.install, installed by dh_installman.
   * Remove duplicate sections from binary packages.
   * Bump debhelper build-dep version and compat to 5.
   * Bump Standards Version to 3.8.3
 .
   [ Aurelien Jarno ]
   * 100_config_update.diff: update config.guess/sub. (Closes: #549240).
Checksums-Sha1: 
 cc5039a1058315c2626bf8b1ee6f65bef83b0a9c 1967 libsdl1.2_1.2.13-5.dsc
 180e009c66240a8edb2facd493c6e596ac2284b5 518741 libsdl1.2_1.2.13-5.diff.gz
 74e5ae4e237adec8381795d3f87891618d463cdd 20010 libsdl1.2debian_1.2.13-5_i386.deb
 9775f553a525fffbda144159a96c0e473268bf02 224198 libsdl1.2debian-all_1.2.13-5_i386.deb
 448c3ac05ded7112ffcea2ca5544d092eb4569c1 213814 libsdl1.2debian-alsa_1.2.13-5_i386.deb
 b3ee898379a001db89d12940436570342706f2ce 214514 libsdl1.2debian-oss_1.2.13-5_i386.deb
 8af661cf344845828d1db56a0db3aaa1e49a6d98 212878 libsdl1.2debian-esd_1.2.13-5_i386.deb
 247a987aae0561cd274b8219e7074582e1fd3aaf 212896 libsdl1.2debian-arts_1.2.13-5_i386.deb
 f5eb4c818466d539b9bdf780b12c4d13fb597135 213082 libsdl1.2debian-nas_1.2.13-5_i386.deb
 4f3b55440148335e6177a95aad314865188a99d8 212862 libsdl1.2debian-pulseaudio_1.2.13-5_i386.deb
 f4592857e5f817bbf6f31a760ed6b59b7e87409c 121148 libsdl1.2debian-udeb_1.2.13-5_i386.udeb
 9198e16a5e9bf10fc523b7f881e7e1d1753d6dd6 853520 libsdl1.2-dev_1.2.13-5_i386.deb
Checksums-Sha256: 
 4fcde80ba26b39b18ba0219a98a3e64388b0ab933b3a8c7978fa138c4aeae5d6 1967 libsdl1.2_1.2.13-5.dsc
 6994e6114fa6c2e6d36b3b30013f4d32b100f948a275e0e603dff8232213ab33 518741 libsdl1.2_1.2.13-5.diff.gz
 c8acdb56e8cde5b1461598e5d3286cd4f763397c0af625d57a80a204308d3592 20010 libsdl1.2debian_1.2.13-5_i386.deb
 2ceba917da7e2920cd3f8959f7009ce7d1972f4b9aaeed08c44f0e41cdbbff52 224198 libsdl1.2debian-all_1.2.13-5_i386.deb
 65bb48f4e610ac9b3ab1e89fbc57798752bf3cada6cd5d12c4f195d7bdad100a 213814 libsdl1.2debian-alsa_1.2.13-5_i386.deb
 f0f9f4f03e53c15f5d9e34f8a6f2bcab5b5c5ffada8745ba3103dca62ddd5047 214514 libsdl1.2debian-oss_1.2.13-5_i386.deb
 8b6faa8503ad0840a3bc5d5ca6db061449c8df777d6b855123fcc9dab991b859 212878 libsdl1.2debian-esd_1.2.13-5_i386.deb
 994f61a3bbff3177fb1c66eab6b5dbd392e3daa0ce2856cbda71860ca9da7988 212896 libsdl1.2debian-arts_1.2.13-5_i386.deb
 2b23ed0a234e03e9f9267c044b3aa7b70b8ef33d234ee5ace6facae6b8d69f2e 213082 libsdl1.2debian-nas_1.2.13-5_i386.deb
 24a31ea73a090eeca41e1659c08a954aca41c2993ae7e8777ac02f743f36a817 212862 libsdl1.2debian-pulseaudio_1.2.13-5_i386.deb
 d80bc874d6c621348693fcc088576f6c987f4e35b4029e228c5e04d8c1f37325 121148 libsdl1.2debian-udeb_1.2.13-5_i386.udeb
 b57e490862686c999092623464ce022597707dfb79647c3d6205c8c15c9b2e34 853520 libsdl1.2-dev_1.2.13-5_i386.deb
Files: 
 d9527cc722152396dfd41e2413135fe0 1967 libs optional libsdl1.2_1.2.13-5.dsc
 6ff2b61889c9fd73c465144f6a1c392b 518741 libs optional libsdl1.2_1.2.13-5.diff.gz
 b70c05a14f5f0fd780a1502c3442bc43 20010 libs optional libsdl1.2debian_1.2.13-5_i386.deb
 d181e3950b8b79169017e565fc7aa3fe 224198 libs optional libsdl1.2debian-all_1.2.13-5_i386.deb
 58e81899edd344155076fe6468a7befc 213814 libs extra libsdl1.2debian-alsa_1.2.13-5_i386.deb
 b3b75ac4e94df09c2b0dad58e346617e 214514 libs extra libsdl1.2debian-oss_1.2.13-5_i386.deb
 5af94a309180855bd4e393bd0f75ae8e 212878 libs extra libsdl1.2debian-esd_1.2.13-5_i386.deb
 40a0197f39a55b2d2b180bfca40eea7d 212896 libs extra libsdl1.2debian-arts_1.2.13-5_i386.deb
 d639180cc3ff6e8f8c93c124cbec2b53 213082 libs extra libsdl1.2debian-nas_1.2.13-5_i386.deb
 b0c8f4ee919bc977904f05502e0691be 212862 libs extra libsdl1.2debian-pulseaudio_1.2.13-5_i386.deb
 d294cade1ab2a95d8efa86c2acb97111 121148 debian-installer extra libsdl1.2debian-udeb_1.2.13-5_i386.udeb
 67e562036665e02b475aaa4d50354a19 853520 libdevel optional libsdl1.2-dev_1.2.13-5_i386.deb
Package-Type: udeb

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

iEYEARECAAYFAkrKS0sACgkQ5ItltUs5T368jACglT/1aim1AnWYCHDV9wReN7OX
LfAAnRS8rKxCDysEbdoNLURPTFwLqZwj
=ABOW
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 15 Nov 2009 07:32:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 08:35:09 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.