Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164258 - sys-apps/lcdtest-1.01: help text cannot be displayed again
Summary: sys-apps/lcdtest-1.01: help text cannot be displayed again
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-28 16:40 UTC by Toralf Förster
Modified: 2007-05-07 22:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2007-01-28 16:40:57 UTC
The keys "?" and "/" to toggle the display of the help text don't work, the help is shown after start of the progeam but never again.

tfoerste@n22 ~ $ emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.4-r4, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 28 Jan 2007 14:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://85.25.128.62 http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 arts asf berkdb bitmap-fonts bluetooth bzip2 cairo cddb clamav cli cracklib crypt css cups dlloader dri dvd dvdr dvdread elibc_glibc exif fam fastbuild fortran gd gdbm gif gpm gtk gtk2 hdaps i8x0 iconv input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jai java javascript jimi jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ linguas_de linguas_en logrotate madwifi mbox mikmod mmx mmxext mp3 mp4 mysql ncurses nls nptl nptlonly nsplugin opengl pam pcre pdf perl png ppds pppd python qt4 readline real reflection rtc samba session spl sse sse2 ssl subversion svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_radeon video_cards_vga win32codecs xml xorg xpm zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2007-01-28 18:16:30 UTC
It works for me on 1.02, please try that version.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2007-02-05 20:40:18 UTC
Haven't heard from the user in a week. Will need to know whether 1.02 exhibits the same behaviour, so I know whether to push for 1.02 to stable.
Comment 3 Toralf Förster gentoo-dev 2007-02-06 12:26:47 UTC
version 1.02 shows the same behaviour :-(
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2007-05-05 17:05:33 UTC
Could you tell me whether 1.03 works for you?
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2007-05-05 17:08:43 UTC
To confirm, 1.03 even works correctly on a 64-bit PowerPC machine with a pretty strange native LCD resolution:
chainsaw@jupiter /cvs/gentoo-x86/sys-apps/lcdtest $ lcdtest
using video resolution 1360 x 768

I can show & hide the help text as often as I please.
Comment 6 Toralf Förster gentoo-dev 2007-05-05 23:18:01 UTC
(In reply to comment #4)
> Could you tell me whether 1.03 works for you?
> 

No, same issue :-(
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2007-05-05 23:29:26 UTC
Very well, it's not the architecture you're using, because I can't reproduce this problem on X86, AMD64, PPC & PPC64. Mind trying the following:
LC_ALL="C" lcdtest

If that works, your locale is (very) weird.
Comment 8 Toralf Förster gentoo-dev 2007-05-06 10:12:50 UTC
(In reply to comment #7)
> If that works, your locale is (very) weird.
Right direction -it's the german keyboard & shift key which aren't recognized.
I changed lcdtest.c (after I tried splint b/c I argued a memory leak but that checker gave to much warnings ...) in the following way :


n22 lcdtest-1.03 # diff -u lcdtest.c_orig lcdtest.c
--- lcdtest.c_orig      2007-05-06 12:04:26.000000000 +0200
+++ lcdtest.c   2007-05-06 12:04:34.000000000 +0200
@@ -411,6 +411,7 @@
        show_help (screen, help_image);

       key = wait_key ();
+      printf ("%c was pressed\n", key);
       switch (key)
        {
        case SDLK_ESCAPE:
@@ -516,6 +517,7 @@
            help_flag = 2;
          break;
        default:
+         printf ("cannot recognize key %c\n", key);
          break;
        }
     }

and got after start of the executable and typing (in that order )

shift + ?
shift + /
shift + q

the following output at the command line:

n22 lcdtest-1.03 # ./lcdtest
using video resolution 1400 x 1050
0 was pressed
cannot recognize key 0
ß was pressed
cannot recognize key ß
7 was pressed
q was pressed

Please consider that the german umlauts (ä, ö and ü) are recognized correctly, but neither their upper case (Ä, Ö, Ü) - so it's not the locale itself, isn't it ? Here is the output for the umlauts (äöüÄÖÜ) :

n22 lcdtest-1.03 # ./lcdtest
using video resolution 1400 x 1050
ä was pressed
cannot recognize key ä
ö was pressed
cannot recognize key ö
ü was pressed
cannot recognize key ü
0 was pressed
cannot recognize key 0
ä was pressed
cannot recognize key ä
ö was pressed
cannot recognize key ö
ü was pressed
cannot recognize key ü
q was pressed


Comment 9 Toralf Förster gentoo-dev 2007-05-06 10:45:54 UTC
And furthermore, lcdtest works fine with this :

tfoerste@n22 ~ $ cat /tmp/p
--- xorg.conf   2007-05-06 12:41:32.000000000 +0200
+++ xorg.conf.ok        2007-05-06 12:37:50.000000000 +0200
@@ -35,11 +35,11 @@
 Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
-       #Option     "XkbRules" "xorg"
-       #Option     "XkbModel" "pc105"
-       #Option     "XkbLayout" "de"
-       #Option     "XkbVariant" "nodeadkeys"
-       #Option     "XkbOptions" "eurosign:e"
+       Option      "XkbRules" "xorg"
+       Option      "XkbModel" "pc105"
+       Option      "XkbLayout" "de"
+       Option      "XkbVariant" "nodeadkeys"
+       Option      "XkbOptions" "eurosign:e"
 EndSection

So it doesn't recognize the german keyboard layout :-(
Comment 10 Toralf Förster gentoo-dev 2007-05-07 09:00:27 UTC
Send the following upstream to eric@brouhaha.com :

Hi,

nice app, but has an issue which is discussed here : https://bugs.gentoo.org/show_bug.cgi?id=164258

In short:
The character ''?' and '/' are ocated at the same key for an english keyboard, but for a german layout
the char '?' is located to the right of the key '0' and only accessable via the shift key.
Similar issue for the char '7' which is "shift + 7" for a german keyboard.
Comment 11 Eric Smith 2007-05-07 21:33:36 UTC
Fixed in lcdtest 1.04.  Now uses SDL's key event Unicode mapping feature, so it should support non-US keyboard layouts correctly.
Comment 12 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 21:51:26 UTC
Will commit this to the portage tree. Thank you.
Comment 13 Tony Vroon (RETIRED) gentoo-dev 2007-05-07 22:17:36 UTC
+*lcdtest-1.04 (07 May 2007)
+
+  07 May 2007; Tony Vroon <chainsaw@gentoo.org> +lcdtest-1.04.ebuild:
+  Version bump, closes bug #164258. Thanks to Toralf Förster
+  <toralf.foerster@gmx.de> and Eric Smith <eric@brouhaha.com>.

Thanks guys!