|
Bugzilla – Full Text Bug Listing |
| Summary: | autodetect for braille-displays does not work correctly | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Martin Sommer <msommer> |
| Component: | YaST2 | Assignee: | Marcus Schaefer <ms> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Critical | ||
| Priority: | P5 - None | CC: | snwint |
| Version: | Beta 4 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
y2start log
install.inf |
||
|
Description
Martin Sommer
2005-09-05 09:54:40 UTC
would be nice to know what exactly the startup scripts should do here ;) 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
Hm, looks a bit messed up, hope it's ok. ;-) 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
The log file /var/log/YaST2/y2start.log is a good starting point Thanks To test, boot with (or set as environment): hwprobe=+10b00:s5003:80:/dev/ttyS0 Created attachment 48781 [details]
y2start log
Tested with beta4+. Nothing about braille in log.
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 ? There _is_ a Braille entry in install.inf (I see it). Maybe you parse install.inf before running 'hwinfo --special=braille'? 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 ? Created attachment 48799 [details]
install.inf
Look at g70.
ssh -l root g70 ssh: connect to host g70 port 22: Connection refused sorry, too late :-) 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 |