Bug#501160: brltty-udeb: Serial to USB converters detected as HandyTech

2008-10-06 Thread Samuel Thibault
Mario Lang, le Mon 06 Oct 2008 10:57:40 +0200, a écrit :
  brltty-udeb currently detects USB devices 0403:6001 as a handytech
  device. However, that conflicts with people using some ftdi serial to
  USB converters: since udev runs brltty before the kernel command line
  gets parsed by S37brltty, one can not set brltty=something,ttyUSB0.
 
  I guess the safest way would be to just comment the 0403:6001 line in
  debian/brltty-udeb.udev.rules
 
 I know, yes, but thats *my* display.  Convince me that I should
 cripple autodetection of my display type.

gah :)

 What about brltty=off which would prevent brltty from starting at all?

Actually I wasn't talking about sighted users, but about blind users
using an FTDI serial to USB converter to plug a serial braille device.

What we could do is making the udev script detect the brltty= option
on the kernel command line and in that case just exit, i.e. make the
kernel command line override autodetection. That will make brltty=off
work indeed.  I've attached a patch that seems to work.

Samuel
diff -urN brltty-3.10~r3724/debian/brltty-udeb.dirs 
brltty-3.10~r3724.mine/debian/brltty-udeb.dirs
--- brltty-3.10~r3724/debian/brltty-udeb.dirs   2008-10-06 11:25:09.0 
+0200
+++ brltty-3.10~r3724.mine/debian/brltty-udeb.dirs  2008-10-06 
11:26:02.0 +0200
@@ -2,5 +2,6 @@
 etc/udev/rules.d
 lib/brltty
 lib/debian-installer-startup.d
+lib/udev
 sbin
 usr/lib/finish-install.d
diff -urN brltty-3.10~r3724/debian/brltty-udeb.udev.rules 
brltty-3.10~r3724.mine/debian/brltty-udeb.udev.rules
--- brltty-3.10~r3724/debian/brltty-udeb.udev.rules 2008-10-06 
11:25:09.0 +0200
+++ brltty-3.10~r3724.mine/debian/brltty-udeb.udev.rules2008-10-06 
11:26:44.0 +0200
@@ -5,28 +5,28 @@
 SUBSYSTEM!=usb_device, GOTO=brltty_rules_end
 
 # Alva
-SYSFS{idVendor}==06b0, SYSFS{idProduct}==0001, RUN+=/lib/brltty/brltty.sh 
-b al -d usb:
+SYSFS{idVendor}==06b0, SYSFS{idProduct}==0001, RUN+=/lib/udev/brltty.sh 
-b al -d usb:
 
 # Baum
-SYSFS{idVendor}==0403, SYSFS{idProduct}==fe71, RUN+=/lib/brltty/brltty.sh 
-b bm -d usb:
-SYSFS{idVendor}==0403, SYSFS{idProduct}==fe72, RUN+=/lib/brltty/brltty.sh 
-b bm -d usb:
-SYSFS{idVendor}==0403, SYSFS{idProduct}==fe73, RUN+=/lib/brltty/brltty.sh 
-b bm -d usb:
-SYSFS{idVendor}==0403, SYSFS{idProduct}==fe74, RUN+=/lib/brltty/brltty.sh 
-b bm -d usb:
-SYSFS{idVendor}==0403, SYSFS{idProduct}==fe75, RUN+=/lib/brltty/brltty.sh 
-b bm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==fe71, RUN+=/lib/udev/brltty.sh 
-b bm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==fe72, RUN+=/lib/udev/brltty.sh 
-b bm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==fe73, RUN+=/lib/udev/brltty.sh 
-b bm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==fe74, RUN+=/lib/udev/brltty.sh 
-b bm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==fe75, RUN+=/lib/udev/brltty.sh 
-b bm -d usb:
 
 # FreedomScientific
-SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0100, RUN+=/lib/brltty/brltty.sh 
-b fs -d usb:
-SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0111, RUN+=/lib/brltty/brltty.sh 
-b fs -d usb:
-SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0112, RUN+=/lib/brltty/brltty.sh 
-b fs -d usb:
+SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0100, RUN+=/lib/udev/brltty.sh 
-b fs -d usb:
+SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0111, RUN+=/lib/udev/brltty.sh 
-b fs -d usb:
+SYSFS{idVendor}==0f4e, SYSFS{idProduct}==0112, RUN+=/lib/udev/brltty.sh 
-b fs -d usb:
 
 # HandyTech
-SYSFS{idVendor}==0921, SYSFS{idProduct}==1200, RUN+=/lib/brltty/brltty.sh 
-b ht -d usb:
-SYSFS{idVendor}==0403, SYSFS{idProduct}==6001, RUN+=/lib/brltty/brltty.sh 
-b ht -d usb:
+SYSFS{idVendor}==0921, SYSFS{idProduct}==1200, RUN+=/lib/udev/brltty.sh 
-b ht -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==6001, RUN+=/lib/udev/brltty.sh 
-b ht -d usb:
 
 # Papenmeier
-SYSFS{idVendor}==0403, SYSFS{idProduct}==f208, RUN+=/lib/brltty/brltty.sh 
-b pm -d usb:
+SYSFS{idVendor}==0403, SYSFS{idProduct}==f208, RUN+=/lib/udev/brltty.sh 
-b pm -d usb:
 
 # Voyager
-SYSFS{idVendor}==0798, SYSFS{idProduct}==0001, RUN+=/lib/brltty/brltty.sh 
-b vo -d usb:
+SYSFS{idVendor}==0798, SYSFS{idProduct}==0001, RUN+=/lib/udev/brltty.sh 
-b vo -d usb:
 
 LABEL=brltty_rules_end
diff -urN brltty-3.10~r3724/debian/brltty-udeb.udev.sh 
brltty-3.10~r3724.mine/debian/brltty-udeb.udev.sh
--- brltty-3.10~r3724/debian/brltty-udeb.udev.sh1970-01-01 
01:00:00.0 +0100
+++ brltty-3.10~r3724.mine/debian/brltty-udeb.udev.sh   2008-10-06 
11:27:05.0 +0200
@@ -0,0 +1,3 @@
+#!/bin/sh
+grep -q brltty /proc/cmdline  exit 0
+exec /lib/brltty/brltty.sh $@
diff -urN brltty-3.10~r3724/debian/rules brltty-3.10~r3724.mine/debian/rules
--- brltty-3.10~r3724/debian/rules  2008-10-06 11:25:09.0 +0200
+++ brltty-3.10~r3724.mine/debian/rules 2008-10-06 11:53:44.0 +0200
@@ -174,6 +174,8 @@
cp debian/brltty-udeb.init 
debian/$@/lib/debian-installer-startup.d/S37brltty
chmod +x 

Bug#501160: brltty-udeb: Serial to USB converters detected as HandyTech

2008-10-06 Thread Mario Lang
Samuel Thibault [EMAIL PROTECTED] writes:

 Package: brltty-udeb
 Version: 3.10~r3724-1
 Severity: normal

 Hello,

 brltty-udeb currently detects USB devices 0403:6001 as a handytech
 device. However, that conflicts with people using some ftdi serial to
 USB converters: since udev runs brltty before the kernel command line
 gets parsed by S37brltty, one can not set brltty=something,ttyUSB0.

 I guess the safest way would be to just comment the 0403:6001 line in
 debian/brltty-udeb.udev.rules

I know, yes, but thats *my* display.  Convince me that I should
cripple autodetection of my display type.

What about brltty=off which would prevent brltty from starting at all?

I am pretty convinced that disabling autodetection of a braille display
to avoid a collision with another device is the wrong way to go.
Its far easier for a sighted user to just disable brltty in case
they have a conflict than it is for a blind user to
type a bootloader option blindly.

-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer URL:http://debian.org/
  .''`. | Get my public key via finger mlang/[EMAIL PROTECTED]
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-  URL:http://delysid.org/  URL:http://www.staff.tugraz.at/mlang/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#501160: brltty-udeb: Serial to USB converters detected as HandyTech

2008-10-06 Thread Mario Lang
Samuel Thibault [EMAIL PROTECTED] writes:

 Mario Lang, le Mon 06 Oct 2008 10:57:40 +0200, a écrit :
  brltty-udeb currently detects USB devices 0403:6001 as a handytech
  device. However, that conflicts with people using some ftdi serial to
  USB converters: since udev runs brltty before the kernel command line
  gets parsed by S37brltty, one can not set brltty=something,ttyUSB0.

  I guess the safest way would be to just comment the 0403:6001 line in
  debian/brltty-udeb.udev.rules
 
 I know, yes, but thats *my* display.  Convince me that I should
 cripple autodetection of my display type.

 gah :)

 What about brltty=off which would prevent brltty from starting at all?

 Actually I wasn't talking about sighted users, but about blind users
 using an FTDI serial to USB converter to plug a serial braille device.
Oh, I see, that is a diifferent issue then.

 What we could do is making the udev script detect the brltty= option
 on the kernel command line and in that case just exit, i.e. make the
 kernel command line override autodetection. That will make brltty=off
 work indeed.

It would also make brltty=something,ttyUSB0 with a FTDI adaptor work,
right?  Looks like a good plan, since it catches two flies with one clap...

-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer URL:http://debian.org/
  .''`. | Get my public key via finger mlang/[EMAIL PROTECTED]
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-  URL:http://delysid.org/  URL:http://www.staff.tugraz.at/mlang/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#501160: brltty-udeb: Serial to USB converters detected as HandyTech

2008-10-06 Thread Samuel Thibault
Mario Lang, le Mon 06 Oct 2008 15:50:32 +0200, a écrit :
  What we could do is making the udev script detect the brltty= option
  on the kernel command line and in that case just exit, i.e. make the
  kernel command line override autodetection. That will make brltty=off
  work indeed.
 
 It would also make brltty=something,ttyUSB0 with a FTDI adaptor work,
 right?

Yes.

Samuel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#501160: brltty-udeb: Serial to USB converters detected as HandyTech

2008-10-04 Thread Samuel Thibault
Package: brltty-udeb
Version: 3.10~r3724-1
Severity: normal

Hello,

brltty-udeb currently detects USB devices 0403:6001 as a handytech
device. However, that conflicts with people using some ftdi serial to
USB converters: since udev runs brltty before the kernel command line
gets parsed by S37brltty, one can not set brltty=something,ttyUSB0.

I guess the safest way would be to just comment the 0403:6001 line in
debian/brltty-udeb.udev.rules

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
 Moralité : le modem et le cablerouteur font comme les filles, ils
 papotent toute la journée.
 -+- RB in NPC : Et en plus, ils ne parlent que de bits -+-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]