Bug 115278 - autodetect for braille-displays does not work correctly
Summary: autodetect for braille-displays does not work correctly
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 4
Hardware: Other All
: P5 - None : Critical
Target Milestone: ---
Assignee: Marcus Schaefer
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 09:54 UTC by Martin Sommer
Modified: 2005-09-05 15:26 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2start log (3.75 KB, text/plain)
2005-09-05 11:56 UTC, Steffen Winterfeldt
Details
install.inf (968 bytes, text/plain)
2005-09-05 13:18 UTC, Steffen Winterfeldt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Sommer 2005-09-05 09:54:40 UTC
on behalf of Marco:

if a braille-display is detected during the installation the yast does not
switch to textmode
Comment 1 Marcus Schaefer 2005-09-05 10:38:59 UTC
would be nice to know what exactly the startup scripts should do here ;) 
Comment 2 Steffen Winterfeldt 2005-09-05 10:44:23 UTC
up to 9.3: 
 
in YaST2.start: 
  /usr/sbin/hwinfo --special=braille 
 
-> writes braille info to install.inf 
 
in YaST: 
 
if [ \( ! "$update" \) -a "$Braille" ] ; then 
   log "found a braille display" 
   sed -e "s#brlname=.*#brlname=$Braille#" -e 
"s#brlport=.*#brlport=$Brailledevice#" /etc/suse-blinux.conf 
>/tmp/suse-blinux.conf 
   mv -f /tmp/suse-blinux.conf /etc 
   /etc/init.d/suse-blinux start 
   xsrv= 
fi 
 
-> start braille daemon & switch to textmode 
 
Comment 3 Steffen Winterfeldt 2005-09-05 10:44:55 UTC
Hm, looks a bit messed up, hope it's ok. ;-) 
Comment 4 Marcus Schaefer 2005-09-05 10:52:37 UTC
ok, this code exists as well in the current startup scripts. 
 
if [ "$Braille" = 1 ];then 
    log "\tMedium Braille (ncurses) has been selected" 
    SELECTED_MEDIUM="NCURSES" 
fi 
 
followed by 
 
function prepare_for_ncurses () { 
    #============================================= 
    # Create Braile config if not update mode 
    #--------------------------------------------- 
    if [ $INST_MODE = "normal" ];then 
    if [ ! -z "$Braille" ];then 
        log "Braille config needed, setting up braille display" 
        sed -e "s#brlname=.*#brlname=$Braille#" \ 
            -e "s#brlport=.*#brlport=$Brailledevice#" /etc/suse-blinux.conf \ 
        >/tmp/suse-blinux.conf 
        mv -f /tmp/suse-blinux.conf /etc 
        /etc/init.d/suse-blinux start 
    fi 
    fi 
} 
 
is pretty much the same as in the old source. So the question is what 
is going wrong. I cannot reproduce this here and need your help 
Comment 5 Marcus Schaefer 2005-09-05 10:53:31 UTC
The log file 
 
 /var/log/YaST2/y2start.log 
 
is a good starting point 
 
Thanks 
Comment 6 Steffen Winterfeldt 2005-09-05 11:51:49 UTC
To test, boot with (or set as environment): 
 
hwprobe=+10b00:s5003:80:/dev/ttyS0 
Comment 7 Steffen Winterfeldt 2005-09-05 11:56:01 UTC
Created attachment 48781 [details]
y2start log

Tested with beta4+. Nothing about braille in log.
Comment 8 Marcus Schaefer 2005-09-05 12:52:42 UTC
Hmm, install.inf has no "Braile" variable set. All the code depends 
on $Braille which is exported as variable from the data in linuxrc. 
The y2start.log contains this environment at the beginning and there is 
no such variable   
 
?  
Comment 9 Steffen Winterfeldt 2005-09-05 13:03:12 UTC
There _is_ a Braille entry in install.inf (I see it). Maybe you parse 
install.inf before running 'hwinfo --special=braille'? 
Comment 10 Marcus Schaefer 2005-09-05 13:10:16 UTC
import_install_inf is one of the first calls from the scripts I never call 
any hwinfo program in the scripts. If you have a look at the log you will 
find all settings from install.inf 
 
maybe the format is somewhat different ? Can you send me the install.inf 
you are seeing ? 
Comment 11 Steffen Winterfeldt 2005-09-05 13:18:21 UTC
Created attachment 48799 [details]
install.inf

Look at g70.
Comment 12 Marcus Schaefer 2005-09-05 14:09:34 UTC
ssh -l root g70 
ssh: connect to host g70 port 22: Connection refused 
Comment 13 Steffen Winterfeldt 2005-09-05 14:11:12 UTC
sorry, too late :-) 
Comment 14 Marcus Schaefer 2005-09-05 15:26:19 UTC
ok found the bug. Problem was that Braille was checked against the 
value (1) but it is set to something like "ht20". I fixed the check to 
look for ! -z "$Braille" 
 
YaST now starts in ncurses and the blinux daemon is tried to start 
but that doesn't work on my system. I assume this is because I have 
no braille display connected 
 
fixed