Re: What program is capturing key press on root window of X?

2019-07-18 Thread Brad Sawatzky
On Thu, 18 Jul 2019, Harry Putnam wrote:

[ . . . ]
> Somewhere in the last few months my Debian OS has acquired an input
> box on upper right of base window (in X) that appears to grab any key
> presses aimed at the base window and print them in that small input
> window.
[ . . . ]
> I wasn't able to tell which program it is by examining the autostart
> programs ... can anyone tell me what that is that is running so I can
> turn it off?

Look in the Settings for your windowing environment for keyboard
shortcuts.  Sometimes they are under a 'Keyboard' entry, sometimes
under 'Window Manager', etc.   I generally have to unbind some default
settings in those config screens so I can rebind those key combos under
xbindkeys.

HTH,
-- Brad



Re: MTP and Android phones

2014-01-07 Thread Brad Sawatzky
On Tue, 07 Jan 2014, Dr. Jennifer Nussbaum wrote:

 Ive Googled and tried to read up about MTP, but im still not sure how
 to get things working--different sites have you download and compile
 things from scratch, which seems crazy that you can't just plug your
 phone in. I did install mtp-tools, but i can't find mtpfs that many of
 the sites say you need to have.

Yeah, MTP is a pain.  I wish there was at least a choice for a standard
USB generic mass storage mount option...  oh well.

The best MTP software I've found is go-mtpfs.  Unfortunately I don't
think it is packaged, but it is easy to build and put in $HOME/bin/
It uses FUSE like the other options, but is _much_ faster.  You can find
it here:
  https://github.com/hanwen/go-mtpfs

If you're going to build it yourself, you'll need to install these
packages first:
% apt-get install golang-go golang-src libusb-1.0-0 libusb-1.0-0-dev

There seem to be pre-compiled binaries you can download too (YMMV with
those).  You'll probably need to install the libusb-1.0-0 library
anyway.

I just mount/unmount manually.  One could write a udev/udisks2 rule to
automate this I suppose.

HTH,
-- Brad


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140107161432.ga20...@enigma.swatter.net



Re: MTP and Android phones

2014-01-07 Thread Brad Sawatzky
On Tue, 07 Jan 2014, Dr. Jennifer Nussbaum wrote:

 Wait, so explain how i can get my phone connected to my computer?
 There have now been several different and contradicting explanations
 :-(

I have used go-mtpfs with my nexus4, nexus5, and nexus10 under wheezy
and it works well.

-- Brad


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140107180742.ga30...@aether.jlab.org



Re: trouble formatting 3TB Seagate external HDrives. need help

2013-06-24 Thread Brad Sawatzky
On Mon, 24 Jun 2013, paul condon wrote:

 I have two 3TB Seagate external HDs. They were purchased from
 different stores at slightly different times earlier this year, here
 in Colorado. I want them to have ext4 file systems on them,
 excepting if someone on this list can give a reason otherwise. I

Ext4 is a good option.

 have googled and gotten a lot of hits, which indicate to me that
 this is a well known problem. Unfortunately, I have difficulty
 following the instructions, and all my efforts have not reached a
 successful conclusion. Now with further trys, it seems to me that
 stuff has been written onto the drives that needs to be wiped off
 because I get messages that from the disk utility in xfce4 that it
 won't overwrite a disk with data on it.

Note that old versions of fdisk, parted, etc can't handle 3TB drives
properly.  If you're running the latest release of Debian (Wheezy) you
should be OK though -- if not, be careful.

Some ancient SATA cards and quite a few USB adapters can't handle 3TB
drives at all -- make sure that 'unformatted size' is reported correctly
and you're probably OK.

 So I want to use dd to wipe a complete drive.  For this I have found
 the following:
 # dd if=/dev/zero of=/dev/sdg bs=1M

It's very unlikely that you need to wipe the full drive.  You may just
have to clear metadata at the front.  This would do that:
  dd if=/dev/zero of=/dev/sdg bs=1M count=1

 In the above, I have already changed the HD device to sdg (from
 sda), but I wonder about bs=1M. Could the process go faster with a
 larger block size? 

Not really.  bs=1M is fine for what is being discussed.  dd just pushes
'count' data blocks of size 'bs' through to its output (/dev/sdg in your
example).  You can hit performance issues if the chosen bs clashes with
an internal cache and/or the native block size of the disk, but that
requires small (kB'ish) block sizes.

 What are the criteria for choosing a value for bs? And, how long
 should a 3T wipe take to complete? The job has been running for about

  (3*1024*1024 MB)/(200 MB/sec) / (3600 sec/hour) = 4.3 hours

200 MB/sec may be optimistic.  I get 180 MB/sec on my (mediocre) system.
Note that if you're connected with USB2, then you're looking at 10
MB/sec and 86 hours...

 12 hours. Would it go faster with a different bs? Faster enough to
 make the waste of 12hrs running worthwhile? Is there some way to
 invoke an 'progress indicator' for dd? And, in general, is there a
 better way?

From 'man dd' (towards the end):
  Sending a USR1 signal to a running `dd' process makes it print I/O statistics
  to standard error and then resume copying.

  $ dd if=/dev/zero of=/dev/null pid=$!
  $ kill -USR1 $pid; sleep 1; kill $pid

  18335302+0  records  in 18335302+0 records out 9387674624 bytes (9.4 GB) 
copied, 34.6279 seconds, 271 MB/s

-- Brad


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130624162518.ga21...@aether.jlab.org



Re: disable sleep mode hdd usb

2010-08-17 Thread Brad Sawatzky
On Tue, 17 Aug 2010, Greg Madden wrote:

   The original poster doesn't mention the verson of Debian, Squeeze uses
   uuid's, and if you are using external usb devices, uuid's are a great 
   way to make sure the same file system gets mounted  appropriately each
   time.
 
  Maybe the disk name in /dev/disk/by-id could be used instead, there are
  symlinks to /dev/sda on my system.
 
 Well my mistake, hdparm deals with hard drives and uuid's are for file 
 systems/partitions.  i haven't had much luck with usb/sata device naming 
 remaining the same without uuid's though. Seems like anything using sdX could 
 fail at some point.

/dev/disk/by-id/has entries mapping to the drive as well as partitions:

1021% ls -l /dev/disk/by-id/ata-ST3750330AS_9QK0X03V*
lrwxrwxrwx 1 root root  9 2010-08-16 10:44 
/dev/disk/by-id/ata-ST3750330AS_9QK0X03V - ../../sdb
lrwxrwxrwx 1 root root 10 2010-08-16 10:44 
/dev/disk/by-id/ata-ST3750330AS_9QK0X03V-part1 - ../../sdb1

So you should be able to point hdparm at a udev-managed symlink.

-- Brad


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100817192705.ga14...@aether.jlab.org



Re: gspca driver on debian sid (amd64)

2009-06-03 Thread Brad Sawatzky
On Tue, 02 Jun 2009, Florian Kulzer wrote:

 On Mon, Jun 01, 2009 at 22:00:47 -1000, Joel Roth wrote:
  On Sun, May 31, 2009 at 06:25:49PM +0200, Florian Kulzer wrote:
   On Sun, May 31, 2009 at 08:30:50 +0200, Raven wrote:
Hi all.
I am trying to install the 'gspca' driver for a Logitech webcam but
compiling from source fails and I could not find any debian package
containing that module.
Any ideas?

I missed the OP and am coming in late here...

Maybe this is (supposed to be?) fixed in sid, but I had a bit of trouble
getting my gspca camera working again after upgrading to 2.6.27 in lenny.
Here's the little shell script wrapper I wrote that fixed it for me
(details are in the comments).

Name the script '$HOME/bin/fix_webcam_app' and then symlink your cam-using apps
to it. For example,
  ln -s $HOME/bin/fix_webcam_app $HOME/bin/skype
  ln -s $HOME/bin/fix_webcam_app $HOME/bin/camorama
or whatever.  As long as $HOME/bin comes earlier in your path than the path to
the real app things should work.  (Note my script assumes the real apps live in
/usr/bin/.  That might not be true for your skype install.)

-- Script to fix 
#!/bin/bash
# Needed for gspca in kernel 2.6.27 and up
#   See http://moinejf.free.fr/gspca_README.txt
#  Most applications don't know how to decode the raw frames generated by
#  the webcams, and also, many of them do not speak the V4L2 interface. To
#  make them work, you need the V4L application library found at:
#  
# NOTE: You must install the libv4l-0 debian package (which contains the
# compat lib below).

exe=`basename $0`
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/${exe} $@
-- 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Cannot compile gspca

2009-02-07 Thread Brad Sawatzky
On Sat, 07 Feb 2009, Sridhar M.A. wrote:

 I have installed linux-image-2.6.28-1-686 from the kernel trunk and the
 corresponding header files (after building linux-kbuild from source).
 Everything works fine except my webcam. The webcam works perfectly under
 the kernel 2.6.26-1-686 from debian/testing. 
 
 I have downloaded the gspca-source and when I try to compile, I get the
 following error (tried make as well as m-a) :
[ . . . ]

The gspca driver is merged into the mainline kernel for 2.6.27 and up.  Use
'make xconfig' to enable it, delete /usr/src/modules/gspca/ if it exists,
then rebuild and install the kernel package.

There is an API change though[*].  You'll need to install the 'libv4l-0'
compatibility package (backport if you're running etch) and use the
following wrapper:

--  cut here ---
#! /bin/bash
# Needed for gspca in kernel 2.6.27 and up
#   See http://moinejf.free.fr/gspca_README.txt
# This requires the libv4l-0 debian package (which contains the compat lib
# below).

exe=`basename $0`
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/${exe}
--  cut here ---

Save the script as $HOME/bin/fix_webcam_app and then symlink your webcam
programs to it.  For example
 % ln -s $HOME/bin/fix_webcam_app $HOME/bin/effectv
 % ln -s $HOME/bin/fix_webcam_app $HOME/bin/camstream
or whatever.  (The script obviously assumes the original binary lies in
/usr/bin/ and will fail, modify to taste.)

[*] I still run Debian Etch.  Maybe everything has been recompiled for the
new API and works out of the box with Lenny?  YMMV.

-- Brad


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Use of Swap Space

2009-02-03 Thread Brad Sawatzky
On Tue, 03 Feb 2009, Aneurin Price wrote:

 On Tue, Feb 3, 2009 at 12:13 PM, Ron Johnson ron.l.john...@cox.net wrote:
  On 02/03/2009 05:01 AM, Avi Greenbury wrote:
 
  That's a design issue (I think) specific to Windows.  Has to do with  the
  decision to map video card RAM into regular address space (even on machines
  with discreet video cards).

This situation is true for most any OS.  Linux (for example) can work
around it fairly well by properly implementing PAE to extend the address
space.  Windows doesn't work so well with PAE (thanks to the joy of closed
source drivers).

 You should be able to avoid this problem by enabling PAE - search Google
 and there'a a lot of information about this, but a lot of it sadly is
 either inconsistent or just clearly wrong (it's my experience that that's
 the case for most responses to questions relating to Windows, but then
 maybe that's just my prejudice showing).

 Try looking at 
 http://blogs.msdn.com/oldnewthing/archive/2006/08/14/699521.aspx
 and searching Raymond Chen's blog for more recent posts on the topic.

PAE (usually) doesn't work well under Windows unless all the drivers are
64-bit aware.  Apparently WinXP sp2 just silently ignores the /PAE flag
(at least as far as memory addressing is concerned).

Dan's Data has a good summary of the 3GB+ issues with 32 bit windows here:
  http://www.dansdata.com/askdan00015.htm

 Apologies for pushing this thread further OT.

Likewise.

-- Brad


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Network management, both ethernet and wireless

2007-11-14 Thread Brad Sawatzky
 On Tue, Nov 13, 2007 at 03:08:01AM -0800, ispmarin wrote:

  I´ve just installed debian lenny (amd64) on my macbook, and since this
  is my first time as a notebook user, I would like to hear your ways to
  control connectivity. I have two different ethernet connections, home
  and work, each with different IPs. I also have a wireless connection
  at work, and would like also to connect to different wireless
  connections (airports, etc). At work, if the ethernet connection is
  plugged, wireless should be disabled; if it´s not, wireless should be
  used. At home, the same. If ethernet is not connected, and I am not at
  home or work, I should be able to search for other (encrypted or not)
  wireless connections.

Try installing Network Manager (apt-get install network-manager).  It will
do everything you ask right out of the box.

It will probably fire up automatically if you're running a gnome desktop.
Otherwise you can manually run 'nm-applet' when you login.  You should see
a new icon in your window manager's system tray.  Hopefully you only need
to do that the first time, then your session manager will restart it on
subsequent logins.

Network Manager is a little too 'black-magic' for my taste, but it actually
works really well.

On my etch system I also had to do the following (YMMV):
  - comment out all interfaces in /etc/networks/interfaces except for 'lo'
  - add relevant users to the 'netdev' group

As an aside, anyone know how to disable the Windows'ish balloon pop-up when
you connect/disconnect from a network?  I hate that thing.

-- Brad

-- 
Brad Sawatzky, PhD [EMAIL PROTECTED]  --  Jefferson Lab / Temple Univ.
  Ph: 757-269-5947 -- Pager: 757-584-5947 -- Fax: 757-269-7363
The most exciting phrase to hear in science, the one that heralds new
  discoveries, is not Eureka! but That's funny...   -- Isaac Asimov


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



Re: Maxime a window from CLI.

2007-10-15 Thread Brad Sawatzky
On Mon, 15 Oct 2007, ccostin wrote:

 There is a possibility to maximize or minimize a window from CLI,
 (command which will tell to GNOME or KDE to maximize/minimize a given
 window similar to Ctrl+F10/F5).
 
 Or to tell to a window manager the width and the height,  to resize
 the window, and move it into a given (X,Y) position.
 
 I am interested to run this command from a CLI or a shell script.

wmctrl - control an EWMH/NetWM compatible X Window Manager

-- Brad


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



Re: [FIXED] Re: lirc on Debian with AMD64

2007-10-01 Thread Brad Sawatzky
On Mon, 01 Oct 2007, Andrew Sackville-West wrote:

 On Mon, Oct 01, 2007 at 12:04:28AM -0400, Brad Sawatzky wrote:
  On Sat, 29 Sep 2007, Greg Vickers wrote:
  
   OK, I found out that Debian Etch uses a new input layer, and that the IR 
   inputs are in /dev/input/eventX where X corresponds the event number of 
   your input devices in 'cat /proc/bus/input/devices'
  
   So my IR device is /dev/input/event1, instead of /dev/lirc or /dev/lirc0.
  
  Just a heads-up, that event number could easily change from boot to boot.
  You can preserve your sanity by making a udev rule like the following and
  put it (or a symlink) in /etc/udev/rules.d/
  
  KERNEL==event[0-9], ATTRS{name}==cx88 IR *, SYMLINK+=lirc%n
 
 my udev-fu is very weak, but the %n substitutes the kernel supplied
 number. in which case you'll get lirc[0-9] depending on which event it
 matches. If you only have one ir port that you care about, then you'd
 probably always want it to be the *same* symlink regardless of which
 event it gets assigned to:
 
 KERNEL==event[0-9], ATTRS{name}==cx88 IR *, SYMLINK+=lirc0

Argh, you're right.  That's a better way to go.

If there is more than one card that could match the ATTRS{name} field, the
OP could add another criteria that matches on the PCI slot number (so two
cards don't fight for the lirc0 name):

KERNEL==event[0-9], ATTRS{name}==cx88 IR *, KERNELS==:01:09.2, 
SYMLINK+=lirc0

-- Brad


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



Re: [FIXED] Re: lirc on Debian with AMD64

2007-09-30 Thread Brad Sawatzky
On Sat, 29 Sep 2007, Greg Vickers wrote:

 OK, I found out that Debian Etch uses a new input layer, and that the IR 
 inputs are in /dev/input/eventX where X corresponds the event number of 
 your input devices in 'cat /proc/bus/input/devices'

 So my IR device is /dev/input/event1, instead of /dev/lirc or /dev/lirc0.

Just a heads-up, that event number could easily change from boot to boot.
You can preserve your sanity by making a udev rule like the following and
put it (or a symlink) in /etc/udev/rules.d/

KERNEL==event[0-9], ATTRS{name}==cx88 IR *, SYMLINK+=lirc%n

I *think* that rule should work for you Hauppauge card, but I'm making an
educated guess on the 'ATTRS{name}==cx88 IR *' bit.

You can confirm/correct the rule by running the following as root:
  % udevinfo -a -p `udevinfo -q path -n /dev/input/event1`
where event1 is the lirc dev you want.  Hopefully the appropriate match
rule is self-explanatory.  '*' behaves as a shell-like wildcard.

-- Brad


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



Re: ATI or Nvidia

2007-09-25 Thread Brad Sawatzky
On Tue, 25 Sep 2007, Guillermo Garron wrote:

 I have my system as dual boot, Debian Etch and ubuntu Gutsy, I am
 asking on the Ubuntu list, which is my best option nVidia or ATI,
 actually I have an ATI Radeon X300, and I want to change it.
 
 In your Debian experience which has better support?, I have read that
 nVidia is better, actually I had problems with Ubuntu and compiz, with
 Debian and the propietary driver, GoogleEarth works great, (no compiz
 on my Debian)
[ . . . ]

Definitely nVidia.  ATI's proprietary driver is shockingly bad...  I had no
idea how poor it was until I was forced to swap an ATI card into a system
last weekend -- I eventually got it (sort-of) working, but jeez.  My
replacement nVidia card arrives tomorrow.

FWIW, now that ATI has been purchased by AMD they've begun to release
enough hardware specs for a quality driver to be written by open source
folks.  That will take some time though.

-- Brad


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



Re: amd64 vs i386

2007-09-16 Thread Brad Sawatzky
On Sun, 16 Sep 2007, Douglas A. Tutty wrote:

 On Sun, Sep 16, 2007 at 08:50:20PM -0400, Jose Luis Rivas Contreras wrote:
 
 To use flash in amd64 in Etch you need an i386 chroot.  In Lenny, there
 is a pluginwrapper that solves it but it depends on a different libc
 than Etch and the maintainer tells me that it can't be backported.

Just FYI, nspluginwrapper 0.9.91.4-1 built fine under etch-amd64 (using the
source package was pulled from unstable back when that version was
current).  I've been using that version along with the i386
libflashplayer.so without any problems.

The current nspluginwrapper 0.9.91.5-1 does have dependency problems under
etch though.  Those who are interested can probably find the older version
from the unstable repository on http://snapshot.debian.net and rebuild it
under etch.  (May or June of 2007 should have a suitable version
available).

-- Brad



Re: photo album or photo viewer in xfce

2007-08-15 Thread Brad Sawatzky
On Tue, Aug 14, 2007 at 07:46:21PM -0700, PETER EASTHOPE wrote:

Can anyone recommend a package or application for 
efficient viewing of photos in xfce?  I installed showfoto 
in one system; it invokes many dependencies.

For quick viewing I've been using 'feh'.  The big win in my book is that it
can be completely keyboard driven (reminds me of xv) -- very nice.

'qiv' is also pretty good, but I think feh comes out ahead at the moment.

-- Brad


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



Re: ext3fs errors with kernel 2.6.18 but not with 2.4.27

2007-08-03 Thread Brad Sawatzky
On Fri, 03 Aug 2007, Francois Duranleau wrote:

[ . . . ]
 Now, when I boot my computer using the new kernel, I get an error
 message during filesystem check saying it contains errors (sorry, I
 don't have a more precise error message, and I have no logs) and
 it then mounts the filesystem read-only. If I boot back with the
 2.4.27 kernel, no problems. I do get often though an error message
 like this:
   hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
   hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
 and then sometimes:
   ide0: reset: success
 I have been having this for a long time (even after I changed to a
 new hard drive), and only when DMA is active, but I never noticed
 anything bad happening except for those error messages.
[ . . . ]

You have either:
  1) a bad ide cable, or
  2) a bad motherboard (IDE connector, timing, flakey chipset, who knows).

Try using a new IDE cable and see if the error messages go away.  Be sure
to use an 80 wire cable and not an old ATA/33 era 40 wire cable.  If you
have two devices on the same cable, it could be that the second device is
causing problems too.

(2) is pretty unlikely unless it's a really old board.

HTH,
-- Brad


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



Re: ext3fs errors with kernel 2.6.18 but not with 2.4.27

2007-08-03 Thread Brad Sawatzky
Hi Douglas,

On Fri, 03 Aug 2007, Douglas Allan Tutty wrote:

 On Fri, Aug 03, 2007 at 02:28:58PM -0400, Brad Sawatzky wrote:
  On Fri, 03 Aug 2007, Francois Duranleau wrote:
  [ . . . ]
   Now, when I boot my computer using the new kernel, I get an error
   message during filesystem check saying it contains errors (sorry, I
   don't have a more precise error message, and I have no logs) and
   it then mounts the filesystem read-only. If I boot back with the
   2.4.27 kernel, no problems. I do get often though an error message
   like this:
 hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
 hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
   and then sometimes:
 ide0: reset: success
   I have been having this for a long time (even after I changed to a
   new hard drive), and only when DMA is active, but I never noticed
   anything bad happening except for those error messages.
  [ . . . ]
 
 But why would he only get the errors with a new kernel?

Perhaps I misunderstood, but I thought he got the errors with the old
kernel (and had for a long time) but they did not trigger a filesystem
check.  My hunch was that the 2.6.x IDE driver (or ext3 driver) is handling
the error condition in a different way.  Perhaps not retrying at all on the
CRC error, or maybe having a shorter time-out on the retry, who knows...

If he only gets the errors under 2.6.x and not 2.4.27 then it looks more
like a driver issue.  Perhaps his 2.6.x kernel is using the new 'merged'
SATA+PATA subsystem to handle his PATA drive instead of the old ATA/ATAPI
driver and that is causing the problem.

-- Brad


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



Re: ext3fs errors with kernel 2.6.18 but not with 2.4.27

2007-08-03 Thread Brad Sawatzky
Hi Francois,

On Fri, 03 Aug 2007, Francois Duranleau wrote:

 On 2.4.27, I get the CRC errors (not at boot time, later, and all the
 time thereafter), and I've been having them for many years. I mentionned
 just in case there might be a link with my problem. Otherwise, I am not
 trying to solve this particular problem.
 
 On 2.6.x, at boot time, errors are reported on the initial filesystem
 check. I do not know if I still have those CRC errors.

I agree with Doug:  CRC errors shouldn't be ignored.  At _best_ they are a
sign that something in your system is marginal.  At worst you end up
reading and/or writing bogus data.  The fact that the errors persisted
after you changed hard drives suggest either a bad cable (most likely), bad
secondary device on that cable, or bad motherboard (unlikely).

 I will try to see tonight or tomorrow if I can manage to get some logs as
 Douglas suggested. I will also try to look at what driver is in use also.
 Looking at my config-2.6.18 file:
 
 http://www-etud.iro.umontreal.ca/~duranlef/linux-config/config-2.6.18
 
 it's hard to guess. All I know is that all SATA support is disabled.

Your config file says that you're using the 'old' (stable) IDE driver, not
the newer PATA drivers.  That's (probably) good.

FWIW, you could try booting with the kernel option 'hda=autotune or
idea=autotune and see what happens.  That should allow the driver/chipset
to fall back to a slower PIO mode if it sees CRC errors.  (Though I don't
know what, if anything, it will do if DMA is enabled...)

-- Brad


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



Re: sed fails to upgrade on debian sid; file date of 1969?

2007-05-21 Thread Brad Sawatzky
On Mon, 21 May 2007, nick lidakis wrote:

 I'm having trouble upgrading my Debian Sid laptop after attempting 
 dselect install. Dselect quits with this error:
 
 Preparing to replace sed 4.1.5-1 (using 
 .../archives/sed_4.1.5-2_i386.deb) ...
 Unpacking replacement sed ...
 dpkg: error processing /var/cache/apt/archives/sed_4.1.5-2_i386.deb 
 (--unpack):
  unable to make backup link of 
 `./usr/share/locale/ca/LC_MESSAGES/sed.mo' before installing new 
 version: Operation not permitted
[ . . . ]
 Also, the file sed.mo has a date of 1969. ls -alt sed.mo reveals:
 
 thinkpad:/usr/share/locale/ca/LC_MESSAGES# ls -alt sed.mo
 c---rwxrwx 5389 2484475149 353247318 247, 62 Dec 31  1969 sed.mo
[ . . . ]
 Any ideas? I am not even allowed to move or delete the file via the shell.

Smells like file system damage.  Reboot (or switch) to single-user mode and
run fsck.  This may be the least of your worries...

FWIW, running 'chmod 755 /usr/share/locale/ca/LC_MESSAGES/sed.mo' as root
should let you manipulate the file.  If it doesn't, make sure that the file
system is mounted read-write ('mount -l' will tell you).  Last thing to
check would be the immutable flag (man lsattr/chattr).

-- Brad


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



Re: Procmail recipe problems

2007-03-08 Thread Brad Sawatzky

On Thu, 08 Mar 2007, Arlie Stephens wrote:

 On Mar 08 2007, jeffd wrote:
  
  Arlie Stephens wrote:
 
  I've got a strange problem with my procmail setup, and it's presently
  affecting my handling of the debian-user list. I suspect I've made
  some stupid error I just can't see.
  
  The goal - filter all mailing lists into their own mailboxes,
  particularly lists like this one, which combine high volume with a
  complete lack of any identifying tag in the subject line.
[snip]

Here are the rules I use:

:0:
* ^X-Mailing-List:.*debian-user.*lists\.debian\.org
list-debian-user

:0:
* ^X-Mailing-List:.*debian-devel.*lists\.debian\.org
list-debian-devel

... etc ...

HTH,
-- Brad


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



Re: if I were a newbie how would I get sound?

2006-12-17 Thread Brad Sawatzky
On Sun, 17 Dec 2006, Douglas Tutty wrote:

 I'm gradually getting Etch installed on my new box and I'm ready to get
 sound working.  I figure I'll try out vlc as an all-singing-all-dancing
 media player.  However, looking through the package lists none of the
 media players depend on alsa.
 
 There's no mention of sound in either the installation manual or
 debian-reference.
 
 I'm assuming I need alsa so I installed it and note that lsmod shows the
 sound modules are loaded.
 
 If I was a total newbie, how would I know how to play sound?

Make sure the relevant sound controls are unmuted and turned up using your
favorite sound mixer.  For example:
 % alsamixergui

If you can use alsaplayer and hear sound, you're good to go.  Run it from a
shell as:
 % alsaplayer foo.mp3
where foo.mp3 could be any sound file (.wav, .ogg, ...)

Or if you don't have a sound file handy, just try speaker-test:
  % speaker-test

VLC uses plugins for its sound, so you'll need to install one:
  % sudo apt-get install vlc-plugin-alsa

HTH,
-- Brad


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



Re: What's the difference between updatedb and /etc/cron.daily/find?

2006-11-23 Thread Brad Sawatzky
On Thu, 23 Nov 2006, michael wrote:

 On Thu, 23 Nov 2006 12:03:49 -0700, Chris Purves wrote
  I am seeing different results from /etc/cron.daily/find and running
  updatedb from the command line:
[ . . . ]
  What are the differences between these and why does the daily cron job
  find less files than running updatedb?  I have a standard install and
  have not modified either /etc/updatedb.conf or /etc/cron.daily/find.  I
  see the same behaviour on both stable and testing installs.
 
 I will take a stab at this and say that perhaps the cron.daily find
 command is run as the user nobody and so it only updates the locatedb
 for files that nobody can read.
 Please correct me if thats incorrect.

Mike is correct.  Try installing the 'slocate' package, it will probably
behave the way you want.

-- Brad


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



Re: Smoothing disk I/O

2006-11-18 Thread Brad Sawatzky
On Sun, 19 Nov 2006, Hans du Plooy wrote:

 On Sat, 2006-11-18 at 14:00 -0800, Todd A. Jacobs wrote:
  Is there a mechanism for smoothing disk I/O in a similar fashion using
  nice to smooth CPU usage? I often find that certain disk-intensive tasks
  put the system into high wait-state load averages, and system
  performance as a whole suffers.
[ . . . ]
 In SUSE 10.1 there's a command /usr/bin/ionice in the util-linux
 package.  I just checked, sarge doesn't have it.  The util-linux package
 in SUSE has many more commands, so I'm not sure if it's an alternative
 version or if just more options are enabled at compile time.

FYI, it looks like ionice has been included in the sid version of
schedutils (v1.5.x).

-- Brad


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



Re: tremendous size for .xsession-errors

2006-11-01 Thread Brad Sawatzky
Deephay wrote:

 I have a problem with my .xsession-errors file, this file will grow
 tremendous size each day (956 MB today, cleared yesterday, with a 4 GB
 size).
 The major source of errors comes from gnash (I am using the amd64 port
 which adobe flash player won't work), gnash is not matured yet and
 will produce lots of error messages with certain kind of flash movies
 which can be easily found on many websites, all of the messages are
 logged in the .xsession-errors (millions of lines!), mplayer and other
 applications produce some messages as well.
 So I want to know that is there a way to turn down the verbose level
 of the error log, or should I just add an entry in the crontab to
 clean it every ten minutes? TIA!

See http://www.gnu.org/software/gnash/manual/gnash.html#gnashrc
for details on controlling the debug output of gnash.

If there are only a few apps that spew to .xsession-errors you could
try redirecting stderr (and/or stdout) to another file when they are
invoked (ie. make a shell script wrapper for the offending program and
put the wrapper in a directory that is at the front of $PATH).

#! /bin/bash
## Wrapper for verbose apps
## NOTE: Make sure you invoke the real program using the full path
##   if the script has the same name.  If you don't, you'll 
##   be introduced to the joys of unintended recursion.
exec /usr/bin/spew.exe $@ /dev/null 21

-- Brad


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



Re: Etch apt-get dependency trap

2006-10-28 Thread Brad Sawatzky
On Sat, 28 Oct 2006, [EMAIL PROTECTED] wrote:

 I'm in serious trouble here. I was upgrading from xorg 6.9 to 7 but my
 problem is the usual one. Everything was fine until wajig reported that
 the /usr/X11R6/bin directory wasn't empty. It suggested moving the files
 somewhere else and then restarting the install. I did this and then all
 hell broke loose. Redoing wajig install xserver-xorg aborted again with
 dependency problems and suggested I run apt-get -f install, which I did.
 That only made things worse. I am now completely stuck. installing,
 reinstalling, holding, removing or any other operation using, apt-get,
 aptitude, wajig all abort. Running apt-get check gives this:
[ . . . ]
 dpkg: error
 processing /var/cache/apt/archives/xbase-clients_1%3a7.1.ds-3_i386.deb
 (--unpack):
  trying to overwrite `/usr/bin/xgamma', which is also in package unicon
 dpkg-deb: subprocess paste killed by signal (Broken pipe)
 Errors were encountered while processing:
  /var/cache/apt/archives/xbase-clients_1%3a7.1.ds-3_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 --
 Any ideas would be extremely helpful

Try 'apt-get remove unicon' followed by the 'apt-get -f install'.  You can
always reinstall unicon after apt gets the xorg upgrade sorted out.

If apt is really wedged then 'dpkg -r unicon' might work to clear the
block.

I had a similar issue while upgrading a machine to etch earlier this week
and I'm pretty sure one or the other invocation solved it for me. (I now
wish I paid more attention) so I could tell you for sure.)

-- Brad


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



Re: unmounting /media/usbdisk from the command line?

2006-10-26 Thread Brad Sawatzky
On Thu, 26 Oct 2006, Stefan Monnier wrote:

 When a USB disk is mounted by gnome-volume-manager, I can unmount it using
 nautilus (via right clicking on the disk's icon), but I haven't figured how
 to do it from the command line.  Any hint?

Here's a perl script I use.  Save it somewhere in your PATH (I call it
$HOME/bin/pum), and make it executable (chmod a+x $HOME/bin/pum).
When invoked it generates a list of mounted file-systems in /media/,
asks what to pumount.  It will fallback to a lazy umount if necessary.

Term::ReadKey is used to avoid hitting return after your selection
(doubling your productivity!).
  apt-get install libterm-readkey-perl

-- Brad

--- START: bin/pum 

#! /usr/bin/perl -w

# This is licensed under the Gnu Public License (GPL).
# On Debian systems the text of the license can be found at
#   /usr/share/common-licenses/GPL
#
# Initial Author:  Brad Sawatzky [EMAIL PROTECTED] (July 2006)

# This relies on Term::ReadKey in the 'libterm-readkey-perl' package.

##
## List auto-mounted filesystems and prompt for pumount ##
##
use strict;
use Term::ReadKey;
use Term::ANSIColor qw(:constants);

$ENV{PATH}=/bin:/usr/bin;

my $DIR=/media;
my @mounts;
my $i=0;

if ($#mounts == -1) {
 ## FIXME Should probably sanity check results and/or use a perl module here
  for (`/bin/ls $DIR`) {
chomp;
my $name = $_;
push @mounts, $DIR/$name;

print RED, [$i]:, RESET,  $_\n;
$i++;
  }
}

if ($#mounts  -1) {
  my $choice;

  ReadMode('cbreak');
  print Unmount: ;
  $choice = ReadKey(0);
  print $choice\n;
  ReadMode('normal');

  exit 0 if ($choice !~ /\d/);
  if ($choice  $#mounts) {
print RED,Invalid selection (,RESET,$choice,RED,)\n,RESET;
exit 1;
  }

  if (system (/usr/bin/pumount,$mounts[$choice]) != 0) {
print RED, \tpumount failed, attempting lazy punmount\n,RESET;
if (system (/usr/bin/pumount,-l,$mounts[$choice]) != 0) {
  print RED,\tlazy punmount failed\n,RESET;
  exit 1;
}
  }
  print BLUE,FS successfully unmounted:  ,RESET,$mounts[$choice]\n;
  exit 0;
}

print RED,No mounted filesystems found in ,RESET,$DIR\n;
exit 0;

--- END: bin/pum 


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



Re: How to cut/crop a part of a PDF file

2006-10-26 Thread Brad Sawatzky
On Thu, 26 Oct 2006, Gregory Seidman wrote:

 On Thu, Oct 26, 2006 at 12:57:21PM -0400, Matthew Krauss wrote:
 } Stefan Monnier wrote:
 } What tool can I use to extract some part of a pdf file?
 } In kpdf, I can copy a piece of the PDF image and save it, but it's only
 } saved as a bitmap, whereas I'd like to keep it in vector form.
 } 
 } Stefan
 } You don't ask much, do you?
 } 
 } theory
 } AFAIK: PDF is not strictly speaking a vector-graphics format.  It is a 
 } subset of Postscript, which is actually a programming language for 
 } drawing documents.  It is designed for output, not input or editing.  
 } Therefor, it is *very* hard to convert from PDF to a structured document 
 } format.
 } /theory
 [...]
 } If anyone knows any better tools then these, I want to know!
 
 There is a tool, pstoedit, for (nearly) exactly this purpose. It converts
 PS or PDF files into a variety of vector formats. The least lossy
 are probably xfig and SVG. Once you have it in an editable vector format
 you can use an appropriate editor to extract the pieces you want and export
 to whatever format you need.

The skencil (was sketch) package has worked well for me in the past and
pstoedit can convert files to its native format.

Skencil's interface is still a little clunky but I found it worked better
than xfig when editing the converted files.

-- Brad


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



Re: Etch and openoffice: how to downgrade

2006-10-12 Thread Brad Sawatzky
On Thu, 12 Oct 2006, Mirto Silvio Busico wrote:

 I need to downgrade OO from 2.0.4 rc 3-1 to 2.0.3.
 How can I do this?
 
 If you ask why, because oo impress chrashes when you try to add 2
 clipart from gallery (I've sent a message to the package mantainers)

With luck it is as simple as (for example):
  sudo dpkg -i /var/cache/apt/archives/openoffice.org-impress_2.0.3-6.deb

That just installs the old version of OOimpress and leaves the rest of OO
alone.  If I'm reading the 'Depends:' for 2.0.3-6 correctly, that should
work.  YMMV.

This also requires you to have the old version in your apt cache.  If you
don't you should be able to download it from http://snapshot.debian.net.

-- Brad


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



Re: Etch and openoffice: how to downgrade

2006-10-12 Thread Brad Sawatzky
On Thu, 12 Oct 2006, Mirto Silvio Busico wrote:

 Thanks a lot.
 I need some other help.
 
 Brad Sawatzky wrote:
  On Thu, 12 Oct 2006, Mirto Silvio Busico wrote:
  I need to downgrade OO from 2.0.4 rc 3-1 to 2.0.3.
  How can I do this?
[ ... ]
  With luck it is as simple as (for example):
sudo dpkg -i /var/cache/apt/archives/openoffice.org-impress_2.0.3-6.deb
[ ... ]
  This also requires you to have the old version in your apt cache.  If you
  don't you should be able to download it from http://snapshot.debian.net.

 I'm a little confused here.
 I was not able to download the package from there.

Try commenting out your normal source lines in /etc/apt/sources.list and
add:
  deb http://snapshot.debian.net/archive/2006/08/20/debian unstable main 
contrib non-free
then try
  apt-get update
  apt-get install openoffice.org=2.0.3-6
That should downgrade the whole kit for you.  It looks like you'll run into
dependency problems if you just install the old impress package by
itself...

Don't forget to:
  1) restore your old source lines, and
  2) pin openoffice.org at 2.0.3-6 until 2.0.4 is fixed.

FYI, I just did a 'package search' for openoffice.org-impress and poked
around to find the appropriate date.  You can find the individual debs at
  
http://snapshot.debian.net/archive/2006/08/20/debian/pool/main/o/openoffice.org/
If you want to brute-force it you can always download the individual
packages and install them using dpkg.

HTH,
-- Brad


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



Re: xfce4 and automount usb stick icons on desktop

2006-09-27 Thread Brad Sawatzky
On Wed, 27 Sep 2006, H.S. wrote:
 
 I was wondering if automounting of USB sticks works in xfce4 in Debian�
 Etch. I tried it yesterday and couldn't figure out how to do this.�
 Automounting of a CD works when inserted in the drive though.

It's been working for me (etch, same kernel version).

I would check the following:
  - watch /var/log/messages (I think) to see if udev is actually
recognizing your usb stick when it's plugged in,
  - that 'hald' is running,
  - that 'gnome-volume-manager' is running, and
  - that the appropriate auto-mount boxes are checked in the
'gnome-volume-properties' program.

'hald' runs as the system-user 'hal' and should start when you boot.
'gnome-volume-manager' runs as the logged in user and should start with
your X session.  Under earlier versions of xfce4 I had to manually start
gnome-volume-manager when I logged in (autostart script).  With the current
version (4.3.90.2) it is started without my script.  I'm not sure what
mechanism is starting it now (session manager maybe?).

 A little google search hinted that xffm file manager may be needed for�
 usb automounting but the package appears not be present in Etch.

xffm shouldn't have anything to do with it (but it might be automagically
starting gnome-volume-manager if it isn't already running).

-- Brad


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



Re: xfce4 and automount usb stick icons on desktop

2006-09-27 Thread Brad Sawatzky
On Wed, 27 Sep 2006, H.S. wrote:

 Brad Sawatzky wrote:

  I would check the following:
[ . . . ]
- that 'gnome-volume-manager' is running, and

 Aha. Did not install gnome* packages at all. Maybe this is the problem.
 I hope I do not have to install all of gnome for this.
[ . . . ]
 Thanks for your input. I will install gnome-volume-manager and report
 how it went.

 BTW, is gnome-volume-manager a must for this automounting functionality?
 Isn't there any other application that does this? Just curious.

Good question.  'magicdev' is another (older?) option, but it is
gnome-based too.  I *think* gnome-volume-manager was an attempt to do this
automount business right (no polling, etc), but it is not exactly a
lightweight in the memory department (91 MB VSZ, 5.5 MB RSS).  That's
tolerable for a desktop, but not great for an appliance-style box...

-- Brad


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



Re: Webcam users with debian

2006-09-17 Thread Brad Sawatzky
On Sun, 17 Sep 2006, Dimitri Chausson wrote:

 I want to use a Webcam with debian. Have been looking for documentation
 yesterday. I found the howto and some user reports very useful. However,
 going to the store, I noticed that there is a plenty of different models
 who are not reported to work and the report are about older models. 
 Moreover, it is difficult to see which chipset is used by which Webcam. I
 am looking for a model having a 640x480 sensor and able to transfer at 30
 fr/s.  Maybe some of you can report such models working correctly, I
 would greatly benefit from your experience,

I did some research around a year ago and found a few useful resources:

Non (at least then) mainstream-kernel drivers (both are supported by debian
though):
   SPCA5xxhttp://mxhaard.free.fr/spca5xx.html
   OV511 page http://alpha.dyndns.org/ov511/cameras.html

This list of what usb devices work (or not) with linux is an excellent
resource (although it's not always accurate):
   http://www.qbik.ch/usb/devices/

One weird thing is that webcams don't always play well with USB hubs.  If
your camera doesn't initialize correctly try plugging it into a USB _1_
hub, or bypass the hub completely and plug it right into the computer.

(FWIW, I ended up with a Creative WebCam NX Pro 2 -- works great with the
spca5xx driver.)

HTH, and good luck,
-- Brad


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



Re: PalmOS devices conflict with the kernel image?

2006-06-04 Thread Brad Sawatzky
On Sat, Jun 03, 2006 at 11:40:38AM -0400, Carl Fink wrote:
 However:  syncing my Palm Tungsten T3 only works if hotplug is installed.
 Hotplug conflicts with udev (which does not recognize the Palm device).
 Removing udev would also remove the kernel (linux-image-2.6.15-1-k7).

udev *does* recognize (some?) Palm devices.  I've got a PalmOS-based Garmin
iQue syncing fine -- it would be really bizarre if the (relatively rare)
Garmin device was recognized by udev, but the T3 wasn't...

Are you sure the visor and usbserial modules are available to the kernel?
Try 'modprobe visor' as root and see if you can manually load the modules
(both visor and usbserial should show up when you then run 'lsmod | grep
visor').  If not, then it's a problem with the debian linux-image-2.6.15-1-k7
package or a dependent, not udev (or hotplug).  From the bit below, I
suspect a kernel/module issue.

In a different message On Sat, 03 Jun 2006, Carl Fink wrote:
 Okay, I did a little research.  The kernel actually depends on
 initramfs-tools, which depends on udef.  If I replace initramfs-tools with
 yaird, in principle I can then reinstall hotplug and my system will work
 again.

 Unfortunately, for Testing yaird is currently uninstallable:
[ . . . ]
 Is anyone actually able to use a PalmOS device with Debian Testing or
 Unstable, or is that capability currently in the transitional so it doesn't
 work phase?  Is there any plan to either fix udev or make it conflict with
 the kernel-image (since it makes the visor.ko module that's part of the
 kernel package stop working)?
[ . . . ]

Works for me under unstable (udev only, homebuilt non-initramfs version of the
kernel).  Note I'm running a slightly older version of udev -- it's possible
something broke in the current version.

hotplug: Installed: (none)
udev:Installed: 0.091-2 (a little older than the current unstable vers.)
kernel:  (home-built) 2.6.15.5
  these modules are auto-loaded when I invoke a hot-sync on the cradle/palm:
visor, usbserial

The relevant udev rules are stored in /etc/udev/rules.d/udev.rules (which
is a symlink to /etc/udev/udev.rules):
BUS==usb, KERNEL==ttyUSB*, \
SYSFS{product}==Palm Handheld*|Handspring Visor, \
SYMLINK+=pilot
AFAICT this is a stock install of udev.

HTH,
-- Brad


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



Re: PalmOS devices conflict with the kernel image?

2006-06-04 Thread Brad Sawatzky
On Sun, 04 Jun 2006, Carl Fink wrote:

 On Sun, Jun 04, 2006 at 02:22:54PM -0400, Brad Sawatzky wrote:
 
  Are you sure the visor and usbserial modules are available to the kernel?
 
 They're already *loaded*, but no /dev/ttyUSB* appears.
 
  The relevant udev rules are stored in /etc/udev/rules.d/udev.rules (which
  is a symlink to /etc/udev/udev.rules):
  BUS==usb, KERNEL==ttyUSB*, \
  SYSFS{product}==Palm Handheld*|Handspring Visor, \
  SYMLINK+=pilot
  AFAICT this is a stock install of udev.
 
 Same settings in my /etc/udev/udev.rules.

Hmm, how annoying...  

What does '/sysfs/bus/usb-serial/devices/' look like when you initiate a
hotsync on your palm?  I get a couple of symlinks showing up that look
like:
  ttyUSB0 - 
../../../devices/pci:00/:00:0d.2/usb1/1-4/1-4.3/1-4.3:1.0/ttyUSB0/
  ttyUSB1 - 
../../../devices/pci:00/:00:0d.2/usb1/1-4/1-4.3/1-4.3:1.0/ttyUSB1/
If I understand the system correctly then if those links are showing up,
it's an issue with udev (or hotplug).  If they aren't then there is an
issue with the kernel/module.

Perhaps I missed it in an earlier post, but what version of udev (and/or
hotplug) do you have installed?

-- Brad


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



Re: USB not accepting new address

2006-05-29 Thread Brad Sawatzky
On Sun, 28 May 2006, Edson Marco Ferrari Junior wrote:

 Hi all!
 
 Im try connect a webcam Genius in Debian Sarge.
 
 I install the module spca52xxx and quickcam, but when connect the
 webcam in USB (2.0) in dmesg returns this message:
 
 usb 2-2: new full speed USB device using uhci_hcd and address 6
 usb 2-2: device not accepting address 6, error -71
[ ... ]

I had similar problems with my Creative WebCam NX Pro 2.  After much
googling I found the following suggestion worked.  Try plugging the camera
into a USB _1.x_ hub (or try bypassing the hub completely).  Either
workaround solved the problem for me.

My camera won't initialize correctly if it's plugged into any of my USB 2
hubs (or into an add-on NEC-chipset USB2 pci card for that matter).  It
seems this is a semi-common issue with webcams (not just the spca52xxx
driver).  I don't know why USB transactions with a webcam would be so
touchy, but a USB hard drive runs fine a full capacity through the same USB
port...

-- Brad


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



Re: USB not accepting new address

2006-05-29 Thread Brad Sawatzky
On Mon, 29 May 2006, Edson Marco Ferrari Junior wrote:

 On 5/29/06, Brad Sawatzky [EMAIL PROTECTED] wrote:
 On Sun, 28 May 2006, Edson Marco Ferrari Junior wrote:
 
  Im try connect a webcam Genius in Debian Sarge.
 
  I install the module spca52xxx and quickcam, but when connect the
  webcam in USB (2.0) in dmesg returns this message:
 
  usb 2-2: new full speed USB device using uhci_hcd and address 6
  usb 2-2: device not accepting address 6, error -71
 [ ... ]
 
 I had similar problems with my Creative WebCam NX Pro 2.  After much
 googling I found the following suggestion worked.  Try plugging the camera
 into a USB _1.x_ hub (or try bypassing the hub completely).  Either
 workaround solved the problem for me.
[ ... ]

 I dont have USB 1.1 in my micro. Or exists configuration what i dont made.

Have you tried plugging the camera directly into a motherboard USB socket
(so no external hub involved)?  That also worked for me even though my
motherboard is USB2.

Some of the posts I found when I researched my problem recommended just
buying/finding a cheap (ie. discount bin) USB1.1 hub for use with their
webcam -- that was the only thing that worked for them...

YMMV,
-- Brad


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



Re: How often should I fsck my ext3 partition?

2006-04-06 Thread Brad Sawatzky
On Wed, 05 Apr 2006, Mike McCarty wrote:

 Brad Sawatzky wrote:
 On Wed, 05 Apr 2006, Mike McCarty wrote:
 
 Ali Milis wrote:
 
 Johannes Wiedersich wrote:
 
 The debian default of my sarge installations is that the ext3-FS are
 fsck'ed about every 30 mounts or 180 days (whatever comes first).
 
 This is just my  Euro 0.01 opinion:
 
 180 days is reasonable for new disks.
 Perhaps you would like to lower it when your disk goes old.
 
 [ . . . ]
 
 A related question is how to do it without taking the machine down
 uncleanly or fiddling an arcane file somewhere. I've thought about
 perhaps doing...
 
 $ mount -o remount -o ro /dev/hda5
 $ fsck /dev/hda5
 $ mount -o remount -o rw /dev/hda5
 
 (I have /dev/hda5 mounted as / on my machine.) Is there any
 exposure in this? I'm pretty leery of running fsck on a
 r/w file system.
 
 Running fsck on a r/w file system is a Bad Plan(TM).  (I don't think fsck
 will even do it without a force flag.)
 
 You don't seem to be responding to what I wrote. Did you intend to?
 My issue is whether remounting / as ro, doing the fsck, and the
 remounting rw looks reasonable. I don't need confirmation that
 a mounted rw file system should not be fsck'd.

I was just affirming your pretty leery of running fsck on a r/w file
system comment above -- unnecessary I guess.  In retrospect, the rest of
answer applied to a different post in the thread -- argh.

To answer your question, you can technically do what you want, but unless
feeling lucky you'll want to drop to single-user (runlevel 1) or you'll
leave your system in an indeterminate state -- even then I might anticipate
some processes spewing errors when they can no longer write to their
log-files after you remount read-only.  And if you're going to single-user
anyway you may as well just reboot...

If you're really stuck (ie. remote access to your box and you suspect fs
damage), get as close to single-user as you can (shutdown what you can
without hosing your connection), remount ro and give it a shot.  (Having
/var and /home on separate partitions would help minimize problems.) 
Not recommended though.

FYI, if you simply want to force a fsck on the next boot (ignoring the
various filesystem flags), just run 'touch /forcefsck' anytime before you
shutdown.  (Apologies if this was mentioned in an earlier post, I missed
the start of the thread.)

-- Brad


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



Re: How often should I fsck my ext3 partition?

2006-04-06 Thread Brad Sawatzky
On Thu, 06 Apr 2006, Greg Folkert wrote:

 On Thu, 2006-04-06 at 02:59 -0400, Brad Sawatzky wrote:
  If you're really stuck (ie. remote access to your box and you suspect fs
  damage), get as close to single-user as you can (shutdown what you can
  without hosing your connection), remount ro and give it a shot.  (Having
  /var and /home on separate partitions would help minimize problems.) 
  Not recommended though.
 
 Having /var and /home on separate partitions is not
 advisable/recommended?

Nope, that's not what I meant.  The 'Not recommended' referred to
remounting ro and fsck'ing.  If you *were* to remount and fsck you would
run into fewer problems if /var, /home (and /tmp) were on different
partitions (as they are mostly likely to have files open with write
access).  That would be one of several advantages to distributing your
filesystem across several partition (as you well know).

(Man, first I screw-up and reply to the wrong post, then get flam^H^H^H^H
lightly-toasted for abmiguous phrasing :-)  This has not been my finest
thread...)

Err, note the smiley, I'm not actually upset or anything.  Just a little
humor to lighten the mood.

-- Brad


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



Re: How often should I fsck my ext3 partition?

2006-04-05 Thread Brad Sawatzky
On Wed, 05 Apr 2006, Mike McCarty wrote:

 Ali Milis wrote:
 Johannes Wiedersich wrote:
 
 The debian default of my sarge installations is that the ext3-FS are
 fsck'ed about every 30 mounts or 180 days (whatever comes first).
 
 This is just my  Euro 0.01 opinion:
 
 180 days is reasonable for new disks.
 Perhaps you would like to lower it when your disk goes old.
[ . . . ]
 
 A related question is how to do it without taking the machine down
 uncleanly or fiddling an arcane file somewhere. I've thought about
 perhaps doing...
 
 $ mount -o remount -o ro /dev/hda5
 $ fsck /dev/hda5
 $ mount -o remount -o rw /dev/hda5
 
 (I have /dev/hda5 mounted as / on my machine.) Is there any
 exposure in this? I'm pretty leery of running fsck on a
 r/w file system.

Running fsck on a r/w file system is a Bad Plan(TM).  (I don't think fsck
will even do it without a force flag.)

One convenient option is to use the clock-time based check interval for
ext2/3.  For example,
  tune2fs -i 60d -c 0
will force a fsck on the first reboot every 60 days (and disable the 'every
n mount-counts' interval).

Regarding Johannes' question about filesystem errors getting rsynced to
backups.  Yes, that is very possible (had it happen to me once).  You can
greatly reduce the likelihood by using rsync's '--checksum' option, at the
cost of a (much) longer backup time...

-- Brad


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



Re: CUPS/foomatic/gs printing problem - plain text - first line too high,gets cut off

2006-03-13 Thread Brad Sawatzky
On Mon, 13 Mar 2006, Rick Reynolds wrote:

 Patrick Wiseman wrote:
 
 On 3/12/06, *Daniel B.* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
 I'm having trouble with printing after switching to using CUPS,
 foomatic, and gs (gs-esp) in Sarge:
 
 When I try to print plain text, the system cuts off the top two-thirds
 of the first line, and the first several characters on the left.
 
 I have found it necessary to use something like this for my HP 
 printer.  It's documented in the CUPS documentation.
 
 'lp -o page-left=36 -o page-top=36'
 
 I've had this problem for over a year with my Sarge CUPS LaserJet series 
 II driver.  I looked around at the time for some kind of offsetting 
 adjustment, but never really found anything.
 
 Any way to modify settings in CUPS to internalize this offset?  I get 
 the offsetting problem when printing from anything (e.g., open office) 
 not just lp.
 
 I've got this printer exposed via CUPS and samba, and it is a bit 
 frustrating that my wife's windows laptop has no such issue when it prints.

I'm coming into this thread late, so I apologize if we've already been
here, done that...

A couple of items to check:
  0) If you generate a postscript file and then view it with gv (or ggv)
 are the margins correct, or is the text shoved up to 0,0?
  1) For CUPS: default paper size for your printer is 'letter', not 'A4'...
  - hit the 'Configure Printer' button on your printer's CUPS page
Typically at http://localhost:631/printers
  2) In general: default paper size is 'letter', not 'A4'...
  - check '/etc/papersize'
  - and/or 'dpkg --reconfigure libpaper1' (for sid distribution)
  3) Try deleting and re-adding your printer to CUPS.  Under certain
 conditions upgrading CUPS backend software (ie.
 cupsys-driver-gutenprint or equiv) can screw things up.
  - make sure you're using the right PPD/driver for your printer,
sometimes close enough isn't...

-- Brad


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



Re: chkrootkit response (OT)

2006-02-14 Thread Brad Sawatzky
On Tue, 14 Feb 2006, Gene Heskett wrote:

 On Tuesday 14 February 2006 07:27, Paul Dwerryhouse wrote:
 On Tue, Feb 14, 2006 at 02:46:48AM -0500, Stephen wrote:
  Is this a valid response or false positive ?
 
  /etc/cron.daily/chkrootkit:
  eth0: PACKET SNIFFER(/sbin/dhclient[1102])
 
 False positive; it's because that program has your ethernet interface
  in promiscuous mode. For dhclient, this is completely normal, it
  needs to do this to function correctly.
 
 The machine I got that sample response from in the last post, doesn't 
 have a utility named dhclient on it, so I cannot confirm that this is 
 correct.  It probably is though.
 
 Friggin vz blocks port 80 so we can't run our own web pages.  And they 
 are the only game in town...:(

FYI, try DynDNS's WebHop http://www.dyndns.com/services/webredirect/webhop/ 
to get around ISP's brain-damaged port blocks.  It's free and it works
great!

-- Brad


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



Re: DVD burner optimization (or how to avoid crappy burns)

2006-01-25 Thread Brad Sawatzky
On Wed, 25 Jan 2006, Eric P wrote:

 I've been burning for about a year with my ultra cheapy
 MicroAdvantage DVD burner.
 
 It seems to work, but I've noticed on a majority of the disks I've
 burned, somewhere midway in the disc it'll kinda crap out and show
 compression artifacts, get jerky for a few moments (usually under 30
 seconds), and just plain be a nuisance.  This will usually affect
 only around a 5% time duration of the video if that.  Ie., I can
 usually still watch the DVD.  It's just annoying though.
[ ... ]
 Anyway, my question is: are there any other ways I can adjust my
 system/burn process to prevent artifacts, etc. from creep onto the
 DVD?  Would 'hdparm -d1 /dev/dvd' maybe help?  Or maybe using 'nice'?

Odds are it isn't your burner, it's your DVD player.  If the DVD plays back
on your PC without problems then the data are fine -- what's happening is
your DVD player is having problems with the DVD-R (+R, -R/W, blah...)
media.  I presume it is due to the different reflectivity and/or lower
tolerances of the consumer writeable DVD media relative to that of
commercial DVDs.  Older DVD players seem to have more problems than newer
models.

Some people have found that switching to a different brand of DVD media
solves the problem with their player.  YMMV.  (I gave up and just use my
DVD burner for data now.  I consider it an incentive to get off my ass and
build a mythTV box :-)

-- Brad


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



Re: (solved)Re: how to convert 100 bmp files to jpeg?

2006-01-15 Thread Brad Sawatzky
On Sat, 14 Jan 2006, Serena Cantor wrote:

 Thank Brad Sawatzky, 
 Star King of the Grape Trees, 
 and [EMAIL PROTECTED]

No problem.  I'm glad I could help.  

 Does Linux have to be so hard to use?(The user has to
 be able to program in shell script or C or other)
 Without Brad, I'd rather download Photoshop which has
 a menu for batch convertion.  

Linux isn't so bad, but it is different.  One of the design metaphors for
unix is to provide a bunch of small tools that the user can hook together
to do what s/he wants (ie. through shell scripting).  By literally adding
just a few more lines to that script I could have simultaneously done a
pattern-matched rename, moved them to a different folder, and uploaded them
all to my web site.  Once you get use to this way of doing things, you
really feel boxed in on platforms that take a different approach.

/gets off soapbox/  :-)

-- Brad


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



Re: how to convert 100 bmp files to jpeg?

2006-01-14 Thread Brad Sawatzky
On Sat, 14 Jan 2006, Serena Cantor wrote:

 I 100 bmp files. I installed gimp and imagemagik, but
 can't find the way to convert 100 bmp files to jpeg in
 batch fashion. Do you know the command? Thanks!

This shell script should do it:

  for f in *.bmp; do nf=`basename $f .bmp`; convert -verbose $f $nf.jpg; 
done

-- Brad


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



Re: getting ssh -X to work. (Was: sane access for non-root user)

2005-12-14 Thread Brad Sawatzky
On Wed, 14 Dec 2005, [EMAIL PROTECTED] wrote:

 On Tue, Dec 13, 2005 at 02:28:18PM -0500, Brad Sawatzky wrote:
  
  A quick workaround to initialize an up-to-date login environment is to 
  'ssh -X localhost' from within a local shell...
 
 I just tried that on my sarge system., whose ssh documentation does
 mention ssh.  But in the new shell
   env did not give me an entry for DISPLAY
   emacs opened in text mode
   xjig said
 can't open display ''
 Evidently, something more is needed than just ssh -X localhost.
 some additional package maybe?

No, odds are sshd is just set to disable X11 forwarding.  Add/change the
following line
  X11Forwarding yes
in '/etc/ssh/sshd_config' and restart sshd (as root)
  /etc/init.d/ssh reload
(That won't affect any existing ssh sessions.)

-- Brad


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



Re: sane access for non-root user

2005-12-13 Thread Brad Sawatzky
 On 12/13/05, Richard Lyons [EMAIL PROTECTED] wrote:
  I've just spent over an hour googling in vain.  And I am sure I should
  know the answer to this...
 
  New sid install (on a not-new Dell Inspiron 8200 FWIW).  Installed xsane
  and can only access it as root.  Added myself to scanner group, but
  still xsane finds 'no devices available' as ordinary user.  Can someone
  remind me or point me at the relevant instructions.
 
  uname -r says 2.6.12-1-386. udevd is running -- I suppose that is
  obvious as the scanner works for root.  What else is important?

Are you sure that the group change (ie. adding yourself to 'scanner') has
been applied to the shell you're running xsane from?  (Check the output of
'groups' or 'id -Gn').

You may have to log out of your Xsession and log in again to get shells
spawned using the new/updated group assignments.  (Is there a more efficient
way to do this?  This seems really inelegant.)

A quick workaround to initialize an up-to-date login environment is to 
'ssh -X localhost' from within a local shell...

FWIW,
-- Brad


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



Re: sane access for non-root user

2005-12-13 Thread Brad Sawatzky
On Tue, 13 Dec 2005, Richard Lyons wrote:

 On Tuesday, 13 December 2005 at 14:28:18 -0500, Brad Sawatzky wrote:
   On 12/13/05, Richard Lyons [EMAIL PROTECTED] wrote:
 [...]
Installed xsane
and can only access it as root.  Added myself to scanner group, but
still xsane finds 'no devices available' as ordinary user. 
  
  Are you sure that the group change (ie. adding yourself to 'scanner') has
  been applied to the shell you're running xsane from?  (Check the output of
  'groups' or 'id -Gn').
 
 Yes, did that.
  
  You may have to log out of your Xsession and log in again to get shells
  spawned using the new/updated group assignments.  (Is there a more efficient
  way to do this?  This seems really inelegant.)
 
 More than that, I logged out and back on again from console and then
 restarted X.  I had a feeling that was necessary, but perhaps it was
 overkill.  But yes, it is inelegant.

Hmm.  It might be useful to post the output of
  'sane-find-scanner', and
  'sudo sane-find-scanner'(or however you want to run the command as root)

What are the 'default' permissions and group (assigned by udev) on your
scanner device?

Perhaps you could try unplugging the scanner and confirming that the
appropriate device file is being removed/created by udev.  If udev is
indeed handling the device, then the application of the rules file
(/etc/udev/rules.d/025_libsane.rules on my box) is either borked (reinstall
libsane and/or udev), or there are multiple rules matching your scanner
(and the last one is screwing up the permissions set by libsane.rules).

-- Brad


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



Re: screen blanking

2005-11-30 Thread Brad Sawatzky
On Wed, 30 Nov 2005, Hugo Vanwoerkom wrote:

 On both my monitors the screen blanks when you do not use it for a time.
 
 Anybody has an idea who is in charge of this? I don't have a screen 
 saver. Just plain XFree86 under Sarge with the Nvidia closed source driver.
 
 I would like to disable it in some cases.

man xset
man xorg.conf

xset can change the settings whenever you want.  Changing xorg.conf sets
the defaults when X fires up.

-- Brad


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



Re: Request to remove Information

2005-11-11 Thread Brad Sawatzky
On Fri, 11 Nov 2005, Weissgerber, Tom L wrote:

 The following information should not have been made available to the
 entire public domain. Please remove the following links/files at your
 earliest convenience. 
 
 * Date: Wed, 24 Sep 2003 10:57:42 -0700 
 * Message-id:
 [EMAIL PROTECTED]
 http://lists.debian.org/debian-user/2003/09/msg04351.html  

 * In-reply-to:
 [EMAIL PROTECTED]
 http://lists.debian.org/debian-user/2003/09/msg04351.html  
 * Message-id: [EMAIL PROTECTED]
 http://lists.debian.org/debian-user/2003/09/msg04364.html  
 * Old-return-path: [EMAIL PROTECTED] 
 * References:
 [EMAIL PROTECTED]
 http://lists.debian.org/debian-user/2003/09/msg04351.html  
 * Reply-to: [EMAIL PROTECTED] mailto:carla%40bratgrrl.com  

While requesting the deletion of your original (2003!?) post might be a
reasonable request[1], asking to delete another person's post without their
approval is definitely *not* OK.  The fact that it is a response to your
post (to a very public forum) is irrelevant.

To your credit, at least it was a polite request and not a demand with
implied Legal Attack-Dog Powers(TM).  I am afraid that the request is going
to generate a much larger trail than if it had been just left alone...

[1] Looking at the bigger picture, I would hope (and assume) that this 
request is denied/ignored by the list managers.  Cutting material out
of historical archives leaves me with an uneasy feeling at the best of
times--very bad precedent.

Never mind the zillion archive copies floating around...

-- Brad


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



Re: finding files by content from the command-line

2005-11-04 Thread Brad Sawatzky
On Fri, 04 Nov 2005, Matt Price wrote:

 Having checked out beagle and quite liked it, I seet here ae also
 various graphical file-finding tools outthere, e.g. the gnome search
 for files program, that allow content searches (e.g., contains the
 text-type searhcing).  In many cases similar effects can be achieved
 using find andor grep, but when searching for an mp3 or for text in an
 openoffice document this strikes me as inefficient.  Does anyone know
 of a command-line tool that can deploy backends like pdf2text  other
[snip]

I use 'glimpse' to do this.  Periodically run the glimpse indexer over the
directories of interest and you have a fast content-based search engine for
your local files.  glimse has a mechanism to filter/convert files using
other software prior to indexing so you can index useful text from most any
file type (see the .glimpse_filters file below).

(Note that the potential for security problems multiplies rapidly with
the number of extra parsers you invoke on arbitrary data. YMMV.)

Here's my 'glimpse.notes' file that summarizes how I set this up.  For the
most part it is a concatenation of various bash scripts and glimpse
dot-files.  The '#*' header lines delimit the different files (or
file-fragments) and give a sample pathname for the file if applicable.

I hope this is clear enough :-)

-- Brad

###
## Crontab entries
0  1 * * 0 nice /home/joe-user/bin/glimpseindex.shdirectories to index
0  5 * * * nice /home/joe-user/bin/glimpseindex.sh -f directories to index

###
## /home/joe-user/bin/glimpseindex.sh
#--
#! /bin/bash
glimpseindex -o -t -B -M 16 -z $@  ~/.glimpse_index.log
#--

###
## Convenience commands (bash shell functions)
#--
function glwin() {
  # This just kicks out filenames with content matching the search string.
  # I find myself using this command most frequently.
  glimpse -N -j -y -z -w -i $@ |\
perl -n -e 'chomp; s/$ENV{HOME}/~/; printf(\t\x1b[0;31m%s\x1b[0m\n,$_);' 
|\
$PAGER;
}
function glwi() {
  # This command also returns the match along with a few lines of context
  # from the files.  Because of the way glimpse functions (at least the way
  # I have it set up) this can take /much/ longer to return.
  glimpse -j -y -z -w -i $@ |\
gawk -F : '{print gensub($1.:,\x1b[0;31m\x1b[0m\n,1,$0)}' |\
$PAGER;
}

###
## /home/joe-user/.glimpse_exclude
#--
.glimpse_
music/
.mp3$
.mpg$
.mpeg$
.png$
.gif$
.jpg$
.jpeg$
.eps$
.eps.gz$
.eps.bz2$
/tmp/
Cache/
cache/
.iso.
.img.
.log$
.dwb
#--

###
## /home/joe-user/.glimpse_filters
#--
*.Z$gzip -dc
*.z$gzip -dc
*.gz$   gzip -dc
*.bz2$  bzip2 -dc
*.zip$  unzip -l
*.tar$  tar tf 
*.tgz$  tar tzf 
*.pdf$  glimpsepdftotext
*.ps$   pstotext 
*.html$ w3m -dump 
*.htm$  w3m -dump 
*.ps.gz$pstotext 
*.ps.bz2$   pstotext 
*.tar.gz$   tar tf 
*.tar.bz2$  tar tf 
/mail/  mbox2txt
#--

###
## /home/joe-user/bin/glimpsepdftotext
#--
#!/bin/bash
# Wrapper to rearrange arguments passed by glimpseindex for use with pdftotext
exec /usr/bin/pdftotext -q $1 -
#--


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



Re: Debian and webcams

2005-10-13 Thread Brad Sawatzky
On Wed, 12 Oct 2005, Bernard Fay wrote:

 I will need a webcam in a near future. 
 
 I would like to know about successes and failures with different webcams.
 Are there models with official Linux drivers available?  Does someone can
 give me some suggestions?

This http://www.qbik.ch/usb/devices/ is an excellent resource for all
things USB.

I ended up with a Creative WebCam NX Pro 2 -- works pretty well with the
driver from http://mxhaard.free.fr/spca5xx.html.

-- Brad


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



Re: Newbie wants Firefox and Tbird

2005-09-23 Thread Brad Sawatzky
On Fri, 23 Sep 2005, Albert wrote:

 Antony Gelberg wrote:
 snip
 I don't think there was any need for a personal insult, just because you
 didn't read the documentation, which, especially if you are so
 experienced with Linux, you should have thought read.
 
 In your original post, you asked to be pointed to the appropriate
 documentation.  You were pointed to it 
 
 Not by you.
 
 and proceeded to hand out
 personal insults and sarcasm (I've just seen your reply to Michael).
 
 I merely responded to your breast feeding remark.
 
 What is your problem?
 
 So far, only you.  But not any longer.  I will not reply to your 
 posts again.  Go flame someone else.

Having read the whole thread, and being quite unbiased, I can honestly say
that you (Albert) really need to lose the attitude.  If you think the
replies to your post(s) constitute being 'flamed' then you need to work
on your people skills.

Relax.

-- Brad


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



Re: xserver-xorg: - Matrox G550 Dualhead woes!

2005-08-21 Thread Brad Sawatzky
On Sun, 21 Aug 2005, Adrian von Bidder wrote:

 Environment: Matrox G550 on xorg from unstable on a (mostly) sarge 
 installation. 2 analog screens.  Xinerama is used, bare xorg - no mga_hal 
 etc.; kernel linux-image-2.6.12 or kernel-image-2.6.8 doesn't matter; 
 686-smp in both cases.  DRM loads fine.
 
 Symptom:  booting, one display is text console.  When X is started, it 
 starts fine on that display, but there's no signal on the other display - 
 thus it won't even come out of power save mode.
 
 Starting X once with a single head xorg.conf solves the problem: The 'single 
 head' X delivers identical signal to both outputs of the graphics card 
 (even to the point where killing X or switcing back to text mode shows the 
 text mode on both screens). Changing xorg.conf back to the 
 dualhead/xinerama one, it starts fine on both displays.

I have a dual monitor G550 set-up and experienced the same problem.  A
simple workaround for me was to switch to a virtual console (ie.
Ctrl-Alt-F1) and then back to X (Ctrl-Alt-F7) -- the second head 'turned
on' and everything worked as usual until the next reboot.

-- Brad


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



Re: OSS device /dev/dsp is already in use by another program

2005-08-09 Thread Brad Sawatzky
On Tue, 09 Aug 2005, Jon D. Irish wrote:

 I just finished compiling a 2.6.12.4 kernel to support the sound card in
 my Dell Optiplex GX270; however, when I try to play audio via Music
 Player, I keep getting a OSS device /dev/dsp is already in use by
 another program error. I have verified that there are no other programs
 running at the time, so what else would be using the device?

'lsof /dev/dsp' should give you that info.

Try this if you want OSS (Open Sound System) software to behave nicely with
ALSA:
  apt-get install alsa-oss
then run your old OSS software (ie. realplay) like so:
  aoss realplay

This will allow ALSA to do the mixing on a multi-channel card.  (You can
also get ALSA to do software mixing if your card needs it -- google for
alsa dmix.)

-- Brad


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



Re: openssl has 2gb limit ?

2005-08-03 Thread Brad Sawatzky
On Wed, 03 Aug 2005, [EMAIL PROTECTED] wrote:

 today I tried to encrypt a 3.2Gb file with openssl:
 
 openssl enc -aes256 -e -salt -pass file:filename.pwd -in filename -out 
 filename.openssl
 
 It aborted with the error:
 Die maximale Dateigröße ist überschritten = Maximum file size is 
 exceeded
 
 filename.openssl is then exactly 2Gb big...
 
 I thought the 2gb limit is a relict ? Should I report a bug ?

FWIW, (and assuming this is actually a limit of ssl and not the underlying
filesystem on that partition) you can work around this problem by dropping
the '-in', '-out' flags and using openssl in a pipeline: 
 cat foo | openssl enc -aes256 -e -salt -pass file:filename.pwd  foo.openssl

I do this regularly on my sid box without problems.  (Curiously I didn't
bother trying the -in/out flags.)

-- Brad


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



Re: removing exim also removes mysql-server-4.1

2005-07-05 Thread Brad Sawatzky
On Tue, 05 Jul 2005, Mark D. Hansen wrote:

 when i do: 
 
 apt-get --purge remvoe exim4
 
 debian also wants to remove mysql-server-4.1.  why is this?  how can i
 remove exim4 without removing mysql?

I imagine mysql-server is complaining because it needs mailx, which in turn
requires an MTA (like exim) to be installed.  You will have to have some
MTA (exim, sendmail, ...) installed, even if it only handles mail between
users on the local machine.

-- 
Brad Sawatzky [EMAIL PROTECTED]  --  Jefferson Lab / Temple University
 Phone: (757) 269-5947  --  Pager: (757) 584-5947
The most exciting phrase to hear in science, the one that heralds new
  discoveries, is not Eureka! but That's funny...   -- Isaac Asimov


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



Re: Chkrootkit reports infection

2005-06-29 Thread Brad Sawatzky
On Wed, 29 Jun 2005, Nikita V. Youshchenko wrote:

  I've recently updated to sarge.
  
  When chkrootkit runs daily, I get a (presumed) false positive:
  
  # chkrootkit -q
  
  /usr/lib/mindi/rootfs/proc/.keep /usr/lib/mindi/rootfs/root/.profile
  
  I assume that this is due to the presence of dotfiles installed by
  mindi. I've tried suppressing this output using a grep statement, but
  chkrootkit returns a non-zero value, and I also get this message daily.
  
  Is there a way of turning this off without writing a separate shell
  script?
 
 You may stop daily mails by running dpkg-reconfigure chkrootkit and
 disabling daily runs.

Newer versions of chkrootkit (0.45, for example) allow you to run in a
diff mode that suppresses day-to-day duplicate hits.  You can turn this
option on with 'dpkg-reconfigure chkrootkit'.

-- Brad


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



Re: Chkrootkit reports infection

2005-06-29 Thread Brad Sawatzky
On Thu, 30 Jun 2005, Robert S wrote:

  Newer versions of chkrootkit (0.45, for example) allow you to run in a
  diff mode that suppresses day-to-day duplicate hits.  You can turn
  this option on with 'dpkg-reconfigure chkrootkit'.
 
 The Sarge version is  0.44-2.  The diff mode sounds good.  Is a newer
 version available in any of the Archives?  I can't find it in backports
 or volatile.  I'd sooner stick with .deb packages than use locally
 installed hacks.  Presumably chkrootkit should be reasonably up to date
 for security reasons. 

You should be able to just snag the testing/unstable deb from
  
http://packages.debian.org/cgi-bin/search_packages.pl?searchon=namesversion=allexact=1keywords=chkrootkit
 
and install it with dpkg (among other options).  It looks like the
dependencies for 0.45 are already satisfied in a stock sarge install.

-- Brad


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



Re: udev how to set up automatic /media/cdrom0

2005-05-16 Thread Brad Sawatzky
On Mon, 16 May 2005, Mitchell Laks wrote:

 On Monday 16 May 2005 08:49 am, LeVA wrote:
 
  - debian-user@lists.debian.org,:
   Hi,
   are there any knowledgeable users of udev who can tell us how to
   configure udev scripts to automatically create
   /media/cdrom0 and /media/cdrom1?
[ . . . ]
 However, that udev info  document seems to be focused on the /dev/ devices, 
 which makes sense. The crazy behavior that I and others have seen lately in 
 debian is that the devices
 
 /media/cdrom0 and /media/cdrom1 disappear after we reboot.
  
 And I thought udev affects only /dev/ files???

udev handles devices (ie. special files in /dev).  udev does not handle
mount-points (ie. directories) in /media/, /mount/, /mnt/...

Software like gnome-volume-manager (others?) will create/delete
mount-points in /media/ by parsing data from udev and hald.

I don't know if there is an official declaration somewhere, but I suspect
that /media/ is for auto-generated mount-points and good old /mnt/ is for
'hand-made' ones.

-- Brad


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



Re: Firefox 1.0, mailto, and mutt

2004-11-26 Thread Brad Sawatzky
On Fri, 26 Nov 2004, Jim McCloskey wrote:

 I asked earlier:
 
 | I used mozex with earlier versions of Firefox to bring up mutt in
 | response to clicking on mailto links.
 |
 | Does anyone know of a way of doing this also with Firefox 1.0?
 
 Thanks very much indeed to all who responded. I ended up using the
 `launchy' extension. This proved troublesome at first because every
 effort to use it failed with the error:

I missed this thread earlier.  FWIW, here's my firefox mailto: handler
(using Launchy).  I use it to ssh over to my maildrop machine.  Perhaps it
will make a useful template for others.


#! /usr/bin/perl

# Helper program for mozilla and mutt.
#   Brad Sawatzky [EMAIL PROTECTED]
#
# This is for use with the 'Launchy' extension.  Create a file named
# 'launchy.xml' in the users (or global) chrome directory that contains the
# following (without the hash marks).
#
# ?xml version=1.0 encoding=UTF-8?
# configurations xmlns=http://launchy.mozdev.org/configurations;
#   application
#   labelMutt/label
#   type2/type
#   command~/bin/mailto/command
#   arguments/arguments
#   /application
#/configurations
#
# Rename this perl script to '~/bin/mailto', and make it executable.
# Install the 'Launchy' extension and right-click on a 'mailto:' URL for
# muttly goodness.

my $test = 0;   # if non-zero then watch 'tail ~/.xsession-errors' (for example)
my $XTERM=/usr/bin/xfterm;
my $REMCMD=ssh -t [EMAIL PROTECTED];

my @ADDRESSES=();
my $BODY=;
$PATH=;
my $ARGS = join (' ', @ARGV);
if($test) { warn invocation: $0 $ARGS\n;}

## Parse mailto: line using rfc2368
# http://www.ianr.unl.edu/internet/mailto.html
# http://www.faqs.org/rfcs/rfc2368.html
if( $ARGS =~ /^mailto:(.*)/ ) {
  my @globs = split(/,/, $1);

  for my $glob (@globs) {
if($test) { warn   glob: $glob\n;}
my @mainblobs = split(/\?/,$glob);
## first field should be an email address
push @ADDRESSES, shift @mainblobs;
if($test) { warn   ADDR:  . join(',',@ADDRESSES) . \n; }


for my $headerblob (@mainblobs) {
  if($test) { warn headerblob: $headerblob\n; }
  ## The rest are header options
  my @headers = split(/\/, $headerblob);
  for my $header (@headers) {
if($test) { warn   header: $header\n; }
my ($fld,$val) = split(/=/, $header);
for(lc($fld)) {
  if($test) { warn fld: $fld\n; }
  if(/^cc$/) {
push @MAILARGS, -c \$val\ ;
  }
  elsif (/^bcc$/) {
push @MAILARGS, -b \$val\ ;
  }
  elsif (/^to$/) {
push @ADDRESSES, $val;
  }
  elsif (/^subject$/) {
push @MAILARGS, -s \$val\ ;
  }
  elsif (/^body$/) {
$BODY.=$val\n;
  }

} # done fld switch statement
  } # done header field loop
} # done headerblob loop
  } # done mainblob (should really be only one of these...)
}

my $ADDLIST = join( , @ADDRESSES);
my $ARGLIST = join( , @MAILARGS);

## FIXME:  ignoring body for now.
## Not sure what to do with the body.  'mutt' supports including a file with
#  a header option, but that won't work if you ssh over to another machine...
#  Maybe fork off an xterm with the body to allow copy and pasting?

if($test) {warn $XTERM -e '$REMCMD mutt $ARGLIST $ADDLIST';}

exec $XTERM -e '$REMCMD mutt $ARGLIST $ADDLIST';


-- Brad


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



Re: USB Mass Storage - Kernel Bug?

2004-09-17 Thread Brad Sawatzky
On Sat, 18 Sep 2004, Paolo Alexis Falcone wrote:

 On Thu, 16 Sep 2004 12:43:48 +1000, Damien Solley
 [EMAIL PROTECTED] wrote:
  Greetings,
  
  I am having trouble using an external USB 2.0 to IDE converter box with
  recent 2.6 kernels. The box houses a 200GB IDE drive. When I try to
  perform large transfers (eg 500MB files) to the box it aborts after a
  variable proportion of the file/s have been transferred.
  
  The dmesg output calls it a kernel bug... Google is unhelpful, does
[...]
 
 You're using the VIA chipset on 2.6? - apparently there's still some
 problems there if that's so. Does the 2.4 kernel have the same
 problem? How about inserting a new USB controller that doesn't use the
 VIA chipset?

FWIW, I picked up a 160GB USB2 hard drive a month ago and have been using
it to backup my machine (kernel 2.6.8-rc2, VIA VT82C686 south bridge)
without any problems.  This would either have to be a regression or there's
more to the initial poster's problem.

-- Brad


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



Re: How to Shutdown as a normal user?

2004-09-16 Thread Brad Sawatzky
On Thu, 16 Sep 2004, Teuchteu wrote:

 I created a user with root privileges who just makes a shutdown -h now 
 (Well i edit the /etc/passwd file to launch a script that shut down the 
 computer). We wave the same at work on Unix platform (we don't have root 
 privelege :((
 I'm sure it's far to be the best solution, but it is simple, and easy...

Of course, any user with the shutdown-user password (or everyone if the
password is nulled) can trivially get root privs using 'su shutdown
userid'.  The correct way to do this is with sudo or equivalent.

(I haven't been following this thread, so forgive me if I'm missing some
assumed condition that makes that invalid.)

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: PostScripts suddenly too big -- help me diagnose

2004-09-09 Thread Brad Sawatzky
On Wed, 08 Sep 2004, Reid Priedhorsky wrote:

 Hello all,
 
 After returning from a long vacation a few weeks ago, I discovered that
 converting a text file to PostScript used fonts that were too large
 (widthwise; heightwise they are OK though the spacing seems a little
 cramped). For example,
 
   enscript -q --font=Courier11 --no-header --margins=36:36:36:36 
 --mark-wrapped-lines=arrow -o - $MYTEXTFILE
 
 now only prints out about 60 characters per line, running the rest off the
 right-hand edge of the page. a2ps also yields similar behavior.

It's a problem with 'gsfonts_8.14+urwcyr1.0.7pre35-1_all.deb'.  There are a
couple of (related) bug reports filed against the 'gsfonts' package.
Downgrading to 'gsfonts_8.14-3_all.deb' fixes the problem.


-- Brad (Passing along the wisdom of [EMAIL PROTECTED] who solved the problem
for me in an earlier thread.)


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



Re: a2ps - gv font (deeper problem!)

2004-09-07 Thread Brad Sawatzky
On Tue, 07 Sep 2004, Emil wrote:

 I had the same problem while using 
   gsfonts_8.14+urwcyr1.0.7pre35-1_all.deb
 I've downgraded to gsfonts_8.14-3_all.deb and the problem disappeared.

That was indeed the problem.  Thanks!

FWIW, there are a couple of bug reports filed (by others) against the
newest gsfonts that cover this problem (2-3 weeks old now).  Hopefully
things will be fixed soon.

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: a2ps - gv font (deeper problem!)

2004-08-30 Thread Brad Sawatzky
On Mon, 30 Aug 2004, Christophe TROESTLER wrote:

 When I do a2ps -Pdisplay file (but not when I send the job to a
 printer), the font is not right (going over the right margin,
 superimposing the text in the next column).  Is there a way to correct
 that?

I've noticed the same problem (had it for at least a week, but I'm not sure
what triggered it).  I get analogous symptoms with enscript.

To clarify the problem for others:
  The software (a2ps, enscript) *is* wrapping the lines correctly.  The
  problem appears when the resulting PS file is rendered (either to screen,
  or to a printer) using ghostview.  There seems to be a problem with 
  ghostview honoring/mistaking the font size when rendering.  On my debian
  (sid) machine the text is rendered at a point size ~25% larger than it
  should be with the leading, etc. having been computed for the (correct)
  smaller size.  The result is text that is packed to tightly vertically,
  and seriously over-runs its horizontal boundaries.

It is revealing that I can use enscript to generate a file on my work
machine and it will render correctly.  If I transfer the same PS file to my
debian box and view (or print) it there I get the problem with the
incorrect font sizes (resulting, in this case, with the text from one
column running into the second column.

The really confusing bit is that both machines report the same version
string (but different copyright strings?):
WORK MACHINE (RedHat (mixed flavors), renders correctly)
 % gs
 GNU Ghostscript 7.07 (2003-05-17)
 Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.

HOME MACHINE (debian, sid, doesn't work)
 % gs
 ESP Ghostscript 7.07 (2003-07-12)
 Copyright 2003 artofcode LLC and Easy Software Products, all rights
 reserved.

So, is there some font handling layer below ghostscript that could be
screwing this up, or is there a bug in the ESP flavor of gs?

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: chkrootkit...lkm trojan?... only from gnome

2004-08-17 Thread Brad Sawatzky
On Mon, 16 Aug 2004, Gregory Pierce wrote:

 In running chkrootkit (version 0.43) tonight I got the following
 warning:
 
   Checking `lkm'... You have16 process hidden for readdir command
 You have16 process hidden for ps command
 Warning: Possible LKM Trojan installed
 
 But when I run chkrootkit from KDE it comes up clean.  Can I really be
 compromised and chkrootkit detect a trojan from within gnome but not
 when I am running from KDE?
 
 I am not at all sure what to do from here.  Should I just start from
 scratch and re-install everything?

Don't re-install just yet.  It is very unlikely that you've been trojanned
(is that a word?).  The lkm test is quite susceptible to false positives;
that is most likely what you're seeing.

For example, just switching from kernel 2.4.x to 2.6.7 caused chkrootkit to
start reporting 17+ 'hidden processes' and a possible LKM Trojan on my
machines.  (Someone else reported this case to the BTS: bug=260905.)
/usr/share/doc/chkrootkit/README.Debian discusses a few other false
positive situations.

I presume that gnome runs some background processes (or perhaps uses a
threading model?) that KDE doesn't, and that is triggering the LKM test.

So, you're probably fine, but keep an eye out for bogus activity on your
machine (ie. normal sys-admin mode).

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: split large pdf to A4?

2004-08-13 Thread Brad Sawatzky
On Fri, 13 Aug 2004, Dave Howorth wrote:

 Is there some way to split a large-format PDF file into several A4-sized 
 pieces to print it?

I have used a package called 'poster' that does exactly this with PS files.

A combination of pdf2ps and poster should get you what you need.

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Sid-Mozilla-user-crash

2004-07-12 Thread Brad Sawatzky
On Mon, 12 Jul 2004, John Carline wrote:

 Since upgrading my Sid box (i386) last week, Mozilla 1.7 crashes on many 
 websites and when attempting to open email that calls up data from the 
 web. The strange part about it is that it only happens to regular users, 
 it does not crash when running under root.
[ . . . ]
 So far I've:
 
 Waited patiently for Sid to quit breaking my toys - upgrading daily - no 
 luck

Well sid == unstable, but I sympathize.

[ . . . ]
 Since I haven't seen a hue and cry on the list, it must only be me 
 Anyone know what simple thing I'm missing?

Wild guesses might include:
  - problem with java, shockwave, or other plugin/extension that is
'auto-loaded' for all profiles
  - corrupt mime.types or mailcap files

The fact that things work as root is interesting (assuming it's not a red
herring).  Does anyone know if mozilla goes into a 'safe' mode when run as
root (eg. with respect to loading/handling plugins)?

If none of this solves the problem, then you might want to downgrade to a
previous version and pin the package in apt.  If you're lucky there will be
an old version or two in /var/cache/apt/archives/ that you can use.  (Copy
the .deb somewhere so it don't get purged before you need it again.)

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Sid-Mozilla-user-crash

2004-07-12 Thread Brad Sawatzky
Hi John,

On Mon, 12 Jul 2004, John Carline wrote:

 Brad Sawatzky wrote:
 
 On Mon, 12 Jul 2004, John Carline wrote:
 Since upgrading my Sid box (i386) last week, Mozilla 1.7 crashes on many 
 websites and when attempting to open email that calls up data from the 
 web. The strange part about it is that it only happens to regular users, 
 it does not crash when running under root.

 Wild guesses might include:
  - problem with java, shockwave, or other plugin/extension that is
'auto-loaded' for all profiles
  - corrupt mime.types or mailcap files
 
 I'll take all the wild guesses I can get. Thanks Brad.
 
 I've tried  turning off java, and the only plugin remaining is the 
 default libnullplugin.co. Basically the user setup is identical to the 
 root setup.
 
 H... corrupt mime.types or mailcap files?
 
 I'm not really sure what I'm doing here, but I've deleted old ~.mailcap 
 and ~/mime.types; and then ran update-mime and run-mailcap with no 
 change. Is there anything else I can do here?

No, I don't think so.  That was really a long shot anyway -- I was just
trying to think of 'global' stuff that mozilla might be choking on...

 Installed 1.6-7
 mozilla-browser
 mozilla-mailnews
 mozilla-psm
 libnss3
 libnspr4
 
 Hm... It's still the same.
 
 works fine on Debian and Slashdot and crashes on Freshmeat.

Does the order in which you visit the sites matter, or does Freshmeat
explode even if you visit it first?

Well, my last wild guess would involve a potential conflict between mozilla
and the new gdk/gnome libs that have been rolled into sid recently.  I'm
not sure what Freshmeat would be doing that Slashdot isn't though...
(loading a 'bad' advert maybe?)  And, like you say, any systematic bug
should really be hitting more users...

Quite a puzzle.

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: APC UPS with USB on Woody

2004-07-11 Thread Brad Sawatzky
On Sun, 11 Jul 2004, Jack Dodds wrote:

 I have an APC BackUPS 350 which is interfaced to my P4 via USB.
 
 I am running Debian Woody.

Hi Jack, 

I found that nut (network UPS tools) works pretty well and it supports the
350 (use the hidups driver).

Configuration isn't too bad.  Follow the example files and instructions in
/usr/share/doc/nut/.

Useful URLs:
  http://us1.networkupstools.org/compat/
  http://vesuvio.physics.lsa.umich.edu/~herrj/doc/UPS/NUT_UPS.html

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Best UPS for Linux?

2004-06-01 Thread Brad Sawatzky
Somebody wrote:
 I ask the question, What is the best UPS for Linux.

I recently bought a CyberPower 1500VAR-HO.  It works well with the nut (ups
monitoring package) 'cpsups' driver.  Upstream is OK, but unfortunately the
sid/unstable nut package is a little old and doesn't support this model out
of the box (there is an upgrade wishlist item in the bts).

NOTE, the CyberPower 1500VAR-HO is NOT the CyberPower 1500VAR.  They in
fact use different drivers.  Took me a while to work that one out...stupid
naming schemes...

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Tape backup woes (mt)... should I file a bug report?

2004-04-20 Thread Brad Sawatzky
On Wed, 21 Apr 2004, Christian Schnobrich wrote:

 Eventually and accidentally, I found out about rewinding and
 non-rewinding device files, the information being hidden deep in the tar
 info file. For all who don't know it:

[ snip info about /dev/stX (auto-rewinding) vs. /dev/nst0 (non-rewinding)
tape devices ]

 I don't usually use info, and from the occasional man-vs-info flamewar
 on this list I know I'm not alone. Furthermore, I'd never have looked
 for this in the tar documentation. Or do I use tar to fast-forward the
 tape? All I knew to start with was that 'mt eom' apparently didn't work
 as advertised.

I agree, it is very non-intuitive.  On the other hand, it is also in every
tape-backup FAQ I've ever seen, so the info is readily available.  I'm not
saying that to be an asshole (really!).  IMHO, the first steps to take when
something doesn't work right are to hit the man pages, followed by a
FAQ/How-To search. (See http://tldp.org/.)  If you already know that,
then please ignore.

 IMO, the (non-)rewinding device issue should be mentioned in the mt
 manpage. But does this omission really justify a bug report? Or is it
 just me?

It's not a bug, so it probably shouldn't be approached as one.  There is a
disturbing amount of voodoo involve in getting various scsi tape drives to
work in a sane fashion.  The nst0/st0 device interface is the least of ones
worries.

FYI, not all tape drives will report their tape location (file status, byte
location, etc) in a consistent manner.  My Archive Python DAT can get
confused following a sequence of fsf/bsf commands.  The only reliable way
to count the number of files on a tape, and get to the one you want, is to
rewind to the beginning and then use either the afs or eom commands.  Do
this before every operation where you are going to read/write to the tape.
This is kind of critical as it really sucks when you discover today's
incremental overwrote all of Thursdays and the first half of Fridays
because the backup script or tape hardware lost track of where it was.
Power cycles and computer reboots (ie. what happens when the scsi interface
is initialized) can also make the tape location indeterminate.

 While I'm at it, one more thing I don't understand -- mt comes with the
 cpio package, and there's another package mt-st one may install. I don't
 notice any significant difference between the two, so where's the point?
 Under what circumstances would I want or prefer mt-st over mt?

FWIW, I tried both the cpio-mt binary and the mt-st binary and ended up
sticking with the mt-st version.  I have vague recollections that it seemed
to have more features...

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Xlib: Maximum number of clients reached

2004-03-11 Thread Brad Sawatzky
Hi Lucas,

Just a couple of suggestions.  You may have tried these already.

Run the following command in an xterm
  bash -c ulimit -n
It should return '1024' on a sane setup.

Try 'xlsclients -d :0' and see if the list makes sense (probably already
did this).

Check $HOME/.xsession-errors for anything interesting.

Try selecting a different window manager when you fire up a new session --
perhaps Gnome is fubared and is eating resources.  

Make sure you kill the xserver between tests (Ctrl-Alt-Backspace) just to
make sure you're starting 'fresh'.

Another diagnostic step you could try is to create a new user and see if
the problem persists under the virgin account.  That would allow you to
narrow the scope of your problem to a system config prob, or a user config
prob.

-- Brad

On Thu, 11 Mar 2004, Lucas J Barbuto wrote:

 I've still not solved the problem, it's not just the browser, I
 encounter the same issue just trying to open more than four terminals
 (four anythings it seems).
 
 I've found a couple of posts on the topic but no resolutions, one to
 debian-user[1] in December 2003 from Norman Walsh and one bug report[2]
 filed against xserver-xfree86 but closed by Brandon due to lack of
 response from the person who filed it.  Personally, I'm not cluey enough
 to know which program or package is causing the problem.
 
 [1] 
 http://groups.google.com/groups?q=debian+xlib+maximum+clients+reachedhl=enlr=ie=UTF-8oe=UTF-8selm=14Amh-3E2-7%40gated-at.bofh.itrnum=1
 [2] 
 http://groups.google.com/groups?q=debian+xlib+maximum+clients+reachedhl=enlr=ie=UTF-8oe=UTF-8selm=listgate3.20030102011005%245fe9%40added-at.bofh.itrnum=3
 
 Can anyone shed some light on this?  I'm really struggling to use my
 machine productively given this restriction and I have work to do :(
 
 Debian Unstable (Sid), Linux 2.4.20, Gnome 2.4.1
 
 ii xserver-common 4.3.0-3 files and utilities common to all X servers
 ii xserver-xfree8 4.3.0-3 the XFree86 X server
 
 Please?
 
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Car Talk (wma9 stream) on Debian system?

2004-02-25 Thread Brad Sawatzky
Hi Carl,

I did a lot of poking around after the Car Talk switch and as far as I can
tell, wma9 encoded audio can not be played unless you can run Microsoft(TM)
brand software.  I've sent a couple of emails to the Car Talk guys
explaining this and pointing out that their tips page is wrong without any
response.

FWIW, Googling led me to a ripe.net discussion on the same issue.  They
solved it by switching to the wma8 audio encoder.  (Also emailed to Car
Talk.)

Also FWIW, I had to add a '-bandwidth 9' argument to the mplayer command line
or it would stall at the buffering stage.  Regardless, eventually you will
get an error: 'Cannot find codec for audio format 0xA.' which is the
ultimate show stopper.

I would be happy to be proven wrong.

-- Brad

On Tue, 24 Feb 2004, Carl Fink wrote:

 I've been a fan of the NPR show Car Talk for years now.  I can't easily
 hear it on the actual radio any more, so I have been playing the Internet
 stream.
 
 However, they recently switched from Real to wma9 streaming formats, and
 nothing I can find will play their stream under Linux.  Their site claims
 mplayer will -- but the Marillat version at least, does not.  Neither will
 avifile-player (even with the Windows codecs) or xine.
 
 All of them show the same behavior.  They say Buffering, then act as if
 they're playing a stream (that is, the timer advances) but in total silence.
 
 The streams are visible at
 http://cartalk.cars.com/Radio/Show/Audio/200408/wms/CT0408-SHOW.asx.
 
 Any suggestions?
 --  
 Carl Fink [EMAIL PROTECTED]
 Jabootu's Minister of Proofreading
 http://www.jabootu.com
 
 
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Multi-head (non-Xinerama) window managers

2004-02-02 Thread Brad Sawatzky
Hi Martin,

Perhaps the simplest solution is to use Xinerama and just set the sticky
bit on the apps you wish to be global (ie. those on your reference
monitor)?  That will force them to stay put when you change desktops, but
you still have all of the advantages of having a single logical screen
through Xinerama.

Appropriate WM and/or Xresource tweaking will allow you to have certain
apps default to having their sticky bit set at startup if that's what you
want.

-- Brad

On Mon, 02 Feb 2004, martin f krafft wrote:

 I have spent a couple days now playing around with two screens,
 SLS (Xinerama, Single Logical Screen) and dual head, and I can't
 report success in finding an ideal solution pertaining to window
 managers.
 
 The short story, for those who don't want to read my ramblings and
 eexperiences: if you are using a window manager in a dual/multi-head
 configuration without Xinerama, and you are happy with it, please
 let me know which one you use and possibly share your configuration
 with me.
 
 The scenario in which I would like to use dual head is a work screen
 and next to it a screen for GUI applications, like the browser,
 jpilot, and a mail reader. Furthermore, I want multiple desktops.
 Running X with Xinerama means that a desktop change affects both
 screens, which is not what I want. Thus, I want to go without
 Xinerama.
[ . . . ]

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Mozilla printer problems

2003-08-24 Thread Brad Sawatzky
Hi Tom,

Perhaps your Mozilla build requires the Xprint package.  Try installing
xprt-xprintorg (and its depends) and see if mozilla can print.

-- Brad

On Sat, 23 Aug 2003, Tom Allison wrote:

 I'm having difficulties getting my cups printer to work with Mozilla.
 
 The printer is located on a different box (server).  But for this client, I 
 can successfully print using 'cat foo | lpr' and Open Office documents as 
 well..
 
 But Mozilla tends to hang.  There is a lot of traffic to the server in the 
 ipp port, but nothing ever gets printed and Mozilla is effectively toast at 
 this point.  I have to 'kill' it.
 
 my variable $MOZ_PRINTER_NAME seems to be null as far as I can tell.  I 
 started up Mozilla from a xterm window and the variable had no definition 
 in the same xterm windows (mozilla; echo ${MOZ_PRINTER_NAME})
 
 I have found this mentioned a few times on Debian and Suse lists from 
 google-ing, but I don't seem to find anyone who has resolved the matter.
 
 Can anyone help?
 
 this is my current printer configuration in Mozilla.
 lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Gvim and Xinerama

2003-08-20 Thread Brad Sawatzky
Hi Andrew,

That's weird, all I can say is that it works for me (sid, (g)vim 6.1.474,
xfwm, kernel 2.4.21, two screens off a Matrox G550).  Perhaps this will at
least narrow the scope of your search... 

Assuming gvim still works when you disable Xinerama, I would try a
different window manager -- I can't imagine what else could cause that
behaviour.

-- Brad

On Wed, 20 Aug 2003, Andrew Ingram wrote:

 I've just managed to get Xinerama set up on my Debian system and I'm
 very happy with it. I have encountered one problem though! My favourite
 editor (gvim) will not work under xinerama. The window comes up, but
 gvim hangs and needs to be killed. I have tried this with the gvim from
 apt, and from sources and it's the same each time. I'm using a sid
 system btw. Does anyone have any advice or a solution for this?
 
 Thanks,
 Andrew

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: VIA Soundcard Driver - skipping, failing

2003-08-14 Thread Brad Sawatzky
Hi Matt,

FWIW, I had similar troubles with my integrated VT8233 AC97 (rev 80) with
both the 2.4.20 OSS and pre-0.9.2 ALSA drivers.  I ended up sticking with
ALSA and the performance has improved in each rev.  I'm currently using the
0.9.4 ALSA driver and am now happy enough that I've stopped considering the
purchase of a cheap SBLive card.

Useful info on building your own ALSA deb from the source:
  
http://64.253.105.26/modules.php?op=modloadname=Sectionsfile=indexreq=viewarticleartid=541
The 0.9.4 alsa-source package is available in unstable.

Good luck.

-- Brad

On Mon, 11 Aug 2003, Matt Elder wrote:

 Problem:
 
 I am having trouble setting up my VIA soundcard. Whenever I attempt to 
 play a sound file, I either get massive skipping, skipping at the end of 
 the file, or no sound at all. I think this has something to do with the 
 sound card's buffer - perhaps it's not getting flushed properly, but 
 that's just a guess.
 
 I have tried using both the VIA82cxxx sound module that comes with the 
 Linux kernel, and the ALSA snd-via82xx driver.  This is my story.
[snip]

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: kensington expert mouse pro

2003-06-24 Thread Brad Sawatzky
Hi Greg,

I screwed around with this for quite a while (and looked into writing some
XInput code).  Eventually I took the lazy man's approach and did the
following:

1) Patched the kernel mousedev.c driver to forward unknown buttons as
  keyboard events (with high value keycodes) (see attached patch).  It's
  not very pretty, but then neither is the kernel/X mouse interface in
  general -- good lord, what a crufty hack.  It will be *very* nice when X
  can handle the /dev/input/* devices properly.  I've been using it for
  months without problems, but please don't get upset if your console
  melts...

2) Used the 'hotkeys' program to make those keycodes do useful things.
   (Hotkeys seems to become unresponsive sometimes -- killall hotkeys and
   restart it.  I've never had to do this more than once per session...)

3) Here's the relevant snippet from my hotkeys keyboard.def file:
!-- Turbomouse upper buttons --
userdef keycode=247 command=xmms --pausexmms pause/userdef
userdef keycode=248 command=xmms --rewxmms rew/userdef
userdef keycode=249 command=xmms --fwdxmms fwd/userdef
userdef keycode=250 command=xmms --playxmms play/userdef
userdef keycode=251 command=xvkbd -xsendevent -text \Awxevent/userdef
userdef keycode=252 command=xvkbd -xsendevent -text \A\[Left]xevent/userdef
  The xvkbd business allows one to assign keyboard shortcuts to the mouse buttons.

4) I've also found the 'imwheel' software to be very useful with my Expert
   Mouse.

Have fun,
-- Brad

On Tue, 24 Jun 2003, Gregory Seidman wrote:

 On Sun, Jun 22, 2003 at 09:51:39PM -0400, Gregory Seidman wrote:
 } I have a Kensington Expert Mouse Pro (it's a trackball), which has six
 } non-mouse buttons. These are a lot like the multimedia buttons on some
 } keyboards. I'd kind of like them to do something, but the USB driver
 } doesn't seem to register them (cat /dev/input/mice then pressing these
 } buttons gives no output; they also don't seem to give any keyboard input).
 [...]
 
 Okay, new information. Based on a recent post to the list, I loaded the
 evdev module and did a cat /dev/input/event0. It worked! I get output from
 the device when I press the multimedia buttons on the trackball.
 
 Now the question is how to make X usefully aware of /dev/input/event0. Maybe
 with XInput or something? Any thoughts?

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909
--- linux-2.4.21-pre4-orig/drivers/input/mousedev.c 2001-09-30 15:26:05.0 
-0400
+++ linux-2.4.21-pre4/drivers/input/mousedev.c  2003-04-16 21:01:47.0 -0400
@@ -40,6 +40,7 @@
 #include linux/config.h
 #include linux/smp_lock.h
 #include linux/random.h
+#include linux/kbd_ll.h
 
 #ifndef CONFIG_INPUT_MOUSEDEV_SCREEN_X
 #define CONFIG_INPUT_MOUSEDEV_SCREEN_X 1024
@@ -82,12 +83,15 @@
 static int xres = CONFIG_INPUT_MOUSEDEV_SCREEN_X;
 static int yres = CONFIG_INPUT_MOUSEDEV_SCREEN_Y;
 
 static void mousedev_event(struct input_handle *handle, unsigned int type, unsigned 
int code, int value)
 {
struct mousedev *mousedevs[3] = { handle-private, mousedev_mix, NULL };
struct mousedev **mousedev = mousedevs;
struct mousedev_list *list;
int index, size;
+unsigned char keycode;
 
add_mouse_randomness((type  4) ^ code ^ (code  4) ^ value);
 
@@ -125,17 +129,31 @@
case BTN_0:
case BTN_TOUCH:
case BTN_LEFT:   index = 0; break;
+
case BTN_4:
case BTN_EXTRA:  if (list-mode == 2) 
{ index = 4; break; }
+
case BTN_STYLUS:
case BTN_1:
case BTN_RIGHT:  index = 1; break;
+
case BTN_3:
case BTN_SIDE:   if (list-mode == 2) 
{ index = 3; break; }
+
case BTN_2:
case BTN_STYLUS2:
case BTN_MIDDLE: index = 2; break; 
 
-   default: return;
+
+/* defalut: pass unknown buttons 
through as keyboard events */
+   default: 
+ keycode=code-30; /* move button code 
into keycode range */
+ if(keycode  0  keycode  255) {
+   handle_scancode(0xe0, 1);
+   handle_scancode(keycode  0x7f, 
value

Re: Integrated sound on Via VT8235 South Bridge

2003-06-06 Thread Brad Sawatzky
Hi Denis,

I've found the newest ALSA http://www.alsa-project.org/ driver works quite well.

-- Brad

On Fri, 06 Jun 2003, Denis Pihulya wrote:

 Hello!
 Please inform me about support in debian voody 3.0 and kernel 2.4.x for
 integrated sound on Via VT8235 South Bridge.
 
 
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Mozilla opens full-screen with Xinerama

2003-05-27 Thread Brad Sawatzky
Hi Bill,

Try xfwm as your window manager.  It's configurable, light-weight and has
full xinerama support (unlike most other wm's I've tried).

Mozilla works properly on my xinerama setup under xfwm.  (Actually the
nightlies aren't/weren't built with the xinerama option enabled.  The only
visible glitch with a stock build seems to be that menus will happily span
across monitor breaks.  This is only a real PITA if you have different
sized monitors as the menu can disappear off the bottom of the second
screen.  Add the line ac_add_options --enable-xinerama to your .mozconfig
if you want to roll your own.)

-- Brad

On Tue, 27 May 2003, Bill Moseley wrote:

 On Tue, May 27, 2003 at 02:19:38PM -0600, Jamin W. Collins wrote:
  On Tue, May 27, 2003 at 12:01:26PM -0700, Bill Moseley wrote:
  
   I never know where to ask about problems like this.  How do I know if 
   it is icewm, mozilla, or Xfree86 that's causing the problem?
  
  If you change icewm to another window manager, does the problem persist?
  If not, then it's most likely icewm.  If it does, then it's one of the
  other two.
 
 Well, I tried fvwm2 (one that I had installed) and also tried without 
 xinerama, and mozilla is always opening new windows to the size of the 
 screen.  Even if I resize it smaller, exit, and reopen it still goes to 
 the edge of the screen.  Again, this is *not* maximized.
 
 Oh, just one more think to track down.
 
 
 
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-7909


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



Re: Matrox G550 and Dual Head

2003-03-14 Thread Brad Sawatzky
Hi Bill,

I have a G550 and dual head works just fine with 4.2.x out of the box.
I've attached my config file for reference.

I tried installing the matrox software the other week and decided to remove
it the next day.  I didn't see any difference in Xinerama mode (still no
DRI on the second head).  I believe merged mode must be a hold over from
pre-Xinerama days.   Turning it on seemed to break window positioning in
Xinerama-aware apps.  It behaved as if the X-server saw one large pseudo-
monitor that the G550 split across the heads in hardware.   Merged mode
also broke openGL apps for me... maybe a bad interaction with my kernel
(2.4.21pre4ac7).

Anyone know what the advantage(s) of merged mode are supposed to be?

FWIW, I use xfce as my window manager.  It is fast, gnome-aware, and
handles multiple screens of different sizes better than sawfish and
kwm/kde.

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-4576
Section Files
FontPathunix/:7100# local font server
# if the local font server has problems, we can fall back on these
FontPath /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
FontPath /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID
FontPath/usr/lib/X11/fonts/misc
FontPath/usr/lib/X11/fonts/cyrillic
FontPath/usr/lib/X11/fonts/100dpi/:unscaled
FontPath/usr/lib/X11/fonts/75dpi/:unscaled
FontPath/usr/lib/X11/fonts/Type1
FontPath/usr/lib/X11/fonts/Speedo
FontPath/usr/lib/X11/fonts/100dpi
FontPath/usr/lib/X11/fonts/75dpi
EndSection

Section Module
LoadGLcore
Loadbitmap
Loaddbe
Loadddc
Loaddri
Loadextmod
Loadfreetype
Loadglx
Loadint10
Loadrecord
Loadspeedo
Loadtype1
Loadvbe
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  keyboard
Option  CoreKeyboard
Option  XkbRules  xfree86
Option  XkbModel  pc104
Option  XkbLayout us
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
#Option CorePointer
Option  Device/dev/mouse
Option  Protocol  ImPS/2
Option  ZAxisMapping  4 5
EndSection

Section InputDevice
Identifier  Generic Mouse
Driver  mouse
Option  SendCoreEventstrue
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
Option  ZAxisMapping  4 5
EndSection

Section InputDevice
Identifier  TurboMouse
Driver  mouse
Option  CorePointer
Option  SendCoreEventstrue
Option  Device/dev/input/mice
#Option Protocol  auto
#Option Protocol  usb
Option  Protocol  ImPS/2
Option  Resolution200
Option  Buttons   5
Option  ZAxisMapping  4 5
EndSection

Section Device
Identifier  Matrox G550-0
Driver  mga
Screen  0
BusID   PCI:1:0:0
Option  AGPMode   4
#Option UseFBDev  true
EndSection

Section Device
Identifier  Matrox G550-1
Driver  mga
Screen  1
BusID   PCI:1:0:0
Option  AGPMode   4
#Option UseFBDev  true
EndSection

Section Monitor
Identifier  NEC XV-17
HorizSync   30-60
VertRefresh 50-75
Option  DPMS
EndSection

Section Monitor
Identifier  Apple 21
HorizSync   30-130
VertRefresh 60-160
Option  DPMS
EndSection

Section Screen
Identifier  Screen0
Device  Matrox G550-0
Monitor Apple 21
DefaultDepth24
SubSection Display
Depth   8
Modes   1600x1200 1280x1024
EndSubSection
SubSection Display
Depth   16
Modes   1600x1200 1280x1024
EndSubSection
SubSection Display
Depth   24
Modes   1600x1200 1280x1024
EndSubSection
EndSection

Section Screen
Identifier  Screen1
Device  Matrox G550-1
Monitor NEC XV-17
DefaultDepth24

How to use many(6) button mouse devices

2003-03-04 Thread Brad Sawatzky
I've got myself a Kensington ExpertMouse USB trackball.  The thing has
  6 special buttons (ie. intended for exe launching, etc)
  4  regular buttons
  1  wheel

My current XFree86 (v 4.2.x) Config block is:
  Section InputDevice
Identifier  TurboMouse
Driver  mouse
Option  CorePointer
#Option SendCoreEventstrue
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
Option  Buttons   12
Option  ZAxisMapping  4 5
  EndSection

This gives me three usable regular buttons (ie. right, left, middle),
and a working wheel.  In 'xev' the remaining regular button generates a 
button3 event, and none of the special buttons register at all.  The
Buttons option doesn't seem to do much at all...

I tried the Protocol options auto and usb but X bailed with an error
that it couldn't find a working mouse (or something to that effect).

I've googled usenet and the web for a couple days now without any success.
There is a sourceforge project called jamd http://jamd.sourceforge.net/
that looks like it might work but it looks like its been idle for quite a
while.  Ideally, I would be happy if I could export the extra button
events as keypresses (which could then be mapped as I chose).

Any suggestions?

-- Brad

-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-4576


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



Re: How to use many(6) button mouse devices

2003-03-04 Thread Brad Sawatzky
Hi Travis,

Thanks for the reply, but no dice.  'xev' reports button11 and button12
events when I use the scroll wheel but the actual scrolling is broken.
No change wrt the other buttons.

-- Brad

On Tue, 04 Mar 2003, Travis Crump wrote:

 Brad Sawatzky wrote:
 I've got myself a Kensington ExpertMouse USB trackball.  The thing has
   6 special buttons (ie. intended for exe launching, etc)
   4  regular buttons
   1  wheel
 
 This gives me three usable regular buttons (ie. right, left, middle),
 and a working wheel.  In 'xev' the remaining regular button generates a 
 button3 event, and none of the special buttons register at all.  The
 Buttons option doesn't seem to do much at all...
 
 
 I am just extrapolating from my seven button mouse, but try something like:
 
 In /etc/X11/XF86Config-4:
 
 Section InputDevice
 [...]
 Option  Buttons   12
 Option  ZAxisMapping  11 12
 EndSection
 
 In ~/.xmodmap:
 
 pointer = 1 2 3 11 12 4 5 6 7 8 9 10
 
 Then you have to source ~/.xmodmap somewhere with the command 'xmodmap 
 ~/.xmodmap'.  I do this in my .bashrc, but this is more a kludge than 
 anything.[I have the following in my .bashrc:
 
 if [ $TERM  == xterm ]; then
xmodmap ~/.xmodmap-Pretzalz
 fi
 
 ]
 
 
-- 
Brad Sawatzky [EMAIL PROTECTED]
University of Virginia Physics Department
Ph: (434) 924-6580Fax: (434) 924-4576


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