boot fails due to timezone problem!

2006-01-03 Thread Jason Kraftcheck
Since my last update (mixed testing/unstable), my laptop fails to boot
with the error: "Checking root file system.../: Superblock last mount
time is in the future".  This appears to be an error with the date
rather than the file system.  During boot, the system seems to assume
that the hardware clock is set to UTC when it is infact CST.  After
boot, (e.g. if I set the date), the system correctly treats the HW clock
as CST.  Any suggestions?

The following are from three sequential attampts to boot the system:




Checking root file system.../: Superblock last mount time is in the future

/: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
(i.e., without -a or -p options)
 failed!

* An automatic fsck upon the root filesystem failed.
* A manual fsck must be performed, and the system rebooted.
* This fsck can be performed in maintenance mode.

* Please note, the root filesystem is currently mounted read-only.
* The fsck should only be performed while the root filesystem is
* mounted read-only.  However, the command to remount it read-write
* is:

*   # mount -n -o remount,rw /

* In order to exit from teh maintenance shell, press CONTROL-D
* and the system will REBOOT.
Give root password for maintenance
(or type Control-D to continue):
(none):~# fsck /dev/hda6
fsck 1.39-WIP (10-Dec-2005)
e2fsck 1.39-WIP (10-Dec-2005)
Superblock last mount time is in the future. Fix? yes

/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking driectory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/: * FILE SYSTEM WAS MODIFIED *
/: * REBOOT LINUX *
/: 211943/1654784 files (6.1% non-continguous), 2105542/3303349 blocks
(none):~# date
Sun Jan  1 09:01:32 CST 2006
(none):~# date 01030903
Tue Jan  3 09:03:00 CST 2006
(none):~# fsck /dev/hda6
fsck 1.39-WIP (10-Dec-2005)
e2fsck 1.39-WIP (10-Dec-2005)
/: clean, 211943/1654784 files, 2105542/3303349 blocks
(none):~# mount -n -o remount,rw /
(none):~# reboot





Checking root file system.../: Superblock last mount time is in the future

/: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
(i.e., without -a or -p options)
 failed!

* An automatic fsck upon the root filesystem failed.
* A manual fsck must be performed, and the system rebooted.
* This fsck can be performed in maintenance mode.

* Please note, the root filesystem is currently mounted read-only.
* The fsck should only be performed while the root filesystem is
* mounted read-only.  However, the command to remount it read-write
* is:

*   # mount -n -o remount,rw /

* In order to exit from teh maintenance shell, press CONTROL-D
* and the system will REBOOT.
Give root password for maintenance
(or type Control-D to continue):
(none):~# date
Tue Jan  3 03:06:21 CST 2006
(none):~# date 01030907
Tue Jan  3 09:07:00 CST 2006
(none):~# fsck /dev/hda6
fsck 1.39-WIP (10-Dec-2005)
e2fsck 1.39-WIP (10-Dec-2005)
/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking driectory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/: * FILE SYSTEM WAS MODIFIED *
/: * REBOOT LINUX *
/: 211943/1654784 files (6.1% non-continguous), 2105542/3303349 blocks
(none):~# date
Tue Jan  3 09:11:03 CST 2006
(none):~# reboot





Checking root file system.../: Superblock last mount time is in the future

/: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
(i.e., without -a or -p options)
 failed!

* An automatic fsck upon the root filesystem failed.
* A manual fsck must be performed, and the system rebooted.
* This fsck can be performed in maintenance mode.

* Please note, the root filesystem is currently mounted read-only.
* The fsck should only be performed while the root filesystem is
* mounted read-only.  However, the command to remount it read-write
* is:

*   # mount -n -o remount,rw /

* In order to exit from teh maintenance shell, press CONTROL-D
* and the system will REBOOT.
Give root password for maintenance
(or type Control-D to continue):
(none):~# date
Tue Jan  3 03:13:19 CST 2006
(none):~# date -u
Tue Jan  3 09:13:23 CST 2006
(none):~# date 01030921
Tue Jan  3 09:21:00 CST 2006
(none):~# date
Tue Jan  3 09:21:00 CST 2006
(none):~# date -u
Tue Jan  3 15:21:28 UTC 2006
(none):~# hwclock --show
Tue Jan  3 09:22:42 2006  -0.999071 seconds


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



Re: kernel image lilo?

2006-01-17 Thread Jason Kraftcheck
Eildert Groeneveld wrote:
> Hello
> 
> on a Dell laptop I want to install the stock Debian  linux-image-2-6-15. 
> Everything goes fine, the only problem is that the install procedure seems to 
> think that I am using lilo, but actually I using grub. lilo is not installed 
> as a package and also /etc/lilo.conf does not exist.
> 
> Has anyone have an idea what is happening and how to change this behaviour.
> 
> (Ofcourse, the kernel does not show up in /boot/grub/menu.list)
> 

If you have the kernel-image installed, just run "update-grub" to add it
to the grub boot menu.  To make dpkg do this for you when installing
kernel images, add the following lines to your /etc/kernel-img.conf file:

postinst_hook = /sbin/update-grub
postrm_hook = /sbin/update-grub
do_bootloader = no

All of this is documented in /usr/share/doc/grub/README.Debian.gz .


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



Sony VAIO T-series?

2004-11-18 Thread Jason Kraftcheck
I'm considering purchasing a VAIO T150 laptop.  However, I've been
unable to find any information on Linux compatibility for the series.
Is there anyone on this list who has one and has a moment to summarize
their experience installing Debian on it?

thanks,

- jason


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



cardmgr, usbmgr, and hotplug

2003-01-30 Thread Jason Kraftcheck


What is the relation between cardmgr from the pcmcia-cs package, usbmgr, 
and hotplug?  pcmcia-cs suggests hotplug, but other than that there is no 
relation in the package dependencies.  Does hotplug replace cardmgr and/or 
usbmgr?  If I have hotplug installed, can I remove pcmcia-cs and usbmgr? 
Should I?


thanks much,

--
jason kraftcheck



Re: netgear MA401

2003-01-31 Thread Jason Kraftcheck

J. Volkmann wrote:

Hello,

I am trying to get a netgear MA 401 to work on a toshiba 3000-512.

I had it running once, but I killed the kernel modules so I have to do
it again. Unfortunately I do not recognize what I did back then.
To remove it, I deleted the /lib/modules and the /etc/pcmcia and
reinstalled the packages named pcmcia-source and wireless-tools.

What I tried until now:
1. Compiling a 2.4.20 with the following options:
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
CONFIG_NET_RADIO=y
CONFIG_HERMES=m
CONFIG_PLX_HERMES=m
CONFIG_PCMCIA_HERMES=m
CONFIG_NET_WIRELESS=y
CONFIG_NET_PCMCIA=y
CONFIG_NET_PCMCIA_RADIO=y
Should work if I understood right? But it doesn't. The cardmgr doesn't
even loed any modules automatically?



I recently had a similar problem.  My problem was that I was compiling the 
kernel without support for the ISA bus (I don't have any ISA devices.) 
The old PC card bus that the MA 401 uses is ISA based, and doesn't work 
without ISA support.






Re: Touch Pad Drivers

2003-02-05 Thread Jason Kraftcheck

Carl Baldwin wrote:

Are there any XFree86 drivers that handle touchpads specifically.  I
poked around the XFree86 site for a while and couldn't find anything.
Specifically, I would like to be able to scroll with the touch pad.

Also, I remember being able to do this with an older laptop, I would
like to be able to use all three buttons by tapping on the touch pad:
tap with one finger for left button, two fingers for the middle button
and three for the right button.  I thought it was really cool and have
no idea where to find such drivers.

Does anyone know of drivers that I could use to get at least some
extra functionality out of my touch pad?

Here's some extra info:

I have a Dell Inspiron 8200 (with the touch pad-eraser head combo)
Here is how XFree86 handles my touch pad.  It works fine for the
basic functionality it offers.



You can get an XFree86 driver here:

http://www.mobilix.org/touchpad_driver.html

When I tried that driver, it seemed to work reasonably well on my Inspiron 
4100.  All the capablities you mention above are available.


I stopped using it because there was some lag/latency that I found 
annoying.  A couple other minor problems:  The eraser-head pointer doesn't 
work with the driver loaded.  The driver doesn't restore the trackpad to 
hardware mode when it exits.  (I had to reboot after removing the driver 
to get the touchpad to work without the driver.)





Re: setup apm for 'battery low' warning on textconsole

2003-02-13 Thread Jason Kraftcheck

mi wrote:

Hello,
while i was roaming on a textconsole,  and the laptop only on battery, the 
machine suddenly powered off.   Leaving it badly with filesystem checks.

Now i wonder how to get a 'battery critical' warning yonder there  ?



Here's some junk from my .bashrc to color the shell prompt according to 
the battery life:



APM="/usr/bin/apm"

if [ -x $APM ]; then

  function apm_percent()
  {
state_line=$($APM)
cut_leading=${state_line#*: }
APM_PERCENT=${cut_leading%%%*}
echo $APM_PERCENT
  }

  function apm_charge()
  {
case "$($APM)" in
  *on-line*)
APM_CHARGE="+" ;;
  *off-line*)
APM_CHARGE="-" ;;
esac
echo $APM_CHARGE
  }

  function apm_color()
  {
if  [  "$(apm_charge)"  =  "+"  ];  then
  echo  "1;37"
else
  case  $(apm_percent)  in
 10?)  echo  "1;37"  ;;
  9?)  echo  "0;34"  ;;
  8?)  echo  "0;34"  ;;
  7?)  echo  "0;34"  ;;
  6?)  echo  "0;34"  ;;
  5?)  echo  "0;32"  ;;
  4?)  echo  "0;32"  ;;
  3?)  echo  "1;33"  ;;
  2?)  echo  "1;33"  ;;
  1?)  echo  "0;31"  ;;
   ?)  echo  "0;31;5"  ;;
   *)  echo  "0;35"  ;;
  esac
fi
  }

  function  apm_color_prompt
  {
PS1="\[\e[$(apm_color)m\]\h\$\[\e[0m\]  "
  }

  #  linux  console
  if  [  "$TERM"  =  "linux"  ];  then
PROMPT_COMMAND=apm_color_prompt
  fi

  function  echo_apm
  {
echo -n "($(apm_charge)$(apm_percent)) "
  }

  #  alternately echo apm state before prompt
  #  PROMPT_COMMAND = echo_apm
fi




Re: DELL Inspiron and some problems

2003-03-02 Thread Jason Kraftcheck

Alex Malinovich wrote:

On Fri, 2003-02-28 at 08:01, Karsten Rothemund wrote:


Hello *

I have a big problem with a DELL Inspiron 8100. After nearly a year
working with this machine running Debian Woody, I suddenly had some
problems with the fans. After a suspend-to-RAM, and the wake-up 5
Minutes later, it startet with running both at full speed - even after
I cooled down the computer for more than an hour (so I'm sure, it is
not too hot).




This happens all the time on my Inspiron 8000. As far as I've been able
to track the problem, it happens when you change power modes while the
laptop is suspended. i.e. Pulling out the AC cord or inserting it while
the laptop is suspended. A reboot stops that problem, though it's not
exactly convenient. An updated BIOS might help, but Dell laptops have
notoriously bad BIOSs. For every 1 feature they fix, they usually break
another 3.



Pressing Fn-Z will cause the BIOS to re-read temperature sensor(s), which 
will stop the fans this (it works on my 4100 anyway.)






Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-04 Thread Jason Kraftcheck
Here's an update to my APM version of this.  It incoprorates some of 
Fabio's changes to his ACPI version.  It also reads directly from 
/proc/apm rather than using the apm command because it is faster and 
easier to parse, but may break for other kernel versions (I'm using 2.4.20).



if [ -f /proc/apm ]; then

  function apm_read
  {
APM_STRING=(`cat /proc/apm`)
APM_DRIVER_VERSION=${APM_STRING[0]}
APM_BIOS_VERSION=${APM_STRING[1]}
APM_TIME=${APM_STRING[7]}
if [ $APM_TIME -lt 0 ]; then
  APM_NO_BATT=1
  APM_PERCENT=0
else
  AMP_NO_BATT=0
  APM_PERCENT=${APM_STRING[6]%%%*}
fi

if [ "${APM_STRING[3]}" == "0x00" ]; then
  APM_AC=-
  case $APM_PERCENT in
10?)  APM_COLOR="1;37"  ;;
 9?)  APM_COLOR="0;34"  ;;
 8?)  APM_COLOR="0;34"  ;;
 7?)  APM_COLOR="0;34"  ;;
 6?)  APM_COLOR="0;34"  ;;
 5?)  APM_COLOR="0;32"  ;;
 4?)  APM_COLOR="0;32"  ;;
 3?)  APM_COLOR="1;33"  ;;
 2?)  APM_COLOR="1;33"  ;;
 1?)  APM_COLOR="0;31"  ;;
  ?)  APM_COLOR="0;31;5";;
  *)  APM_COLOR="0;35"  ;;
  esac
else
  APM_AC=+
  APM_COLOR="1;37"
fi
  }

  function apm_dump
  {
apm_read
echo "DRIVER_VERSION = $APM_DRIVER_VERSION"
echo "BIOS_VERSION = $APM_BIOS_VERSION"
echo "AC = $APM_AC"
echo "PERCENT = $APM_PERCENT"
echo "TIME = $APM_TIME"
echo "NO_BATT = $AMP_NO_BATT"
echo "COLOR = $APM_COLOR"
  }

  PROMPT_COMMAND=amp_read
  if [ "$TERM" == "linux"]; then
PS1="\[\e[\${APM_COLOR}m\]\h\$\[\e[0m\] "
  else
PS1="\[\e[1m\](\$APM_AC\$APM_PERCENT%)\h\$\[\e[0m\] "
  fi

fi



Fabio Sirna wrote:

I do some change on the bash script that I've posted few days ago. This
works better. It must be in the .bashrc.


.,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,. 
# Color the bash prompt in function of the percentage of battery

# with acpi subsystem.
# Based on the originally apm based script that has been posted
# on debian-laptop by Jason Kraftcheck <[EMAIL PROTECTED]>.
#
# This script is licensed under the GNU GPL version 2 or later,
# see /usr/share/common-licences/GPL on a Debian system or
# http://www.gnu.org/copyleft/gpl.html on the web.
 
# (c) 2003 Fabio 'farnis' Sirna <[EMAIL PROTECTED]>


function acpi_percent()
{
 if [ `cat /proc/acpi/battery/BAT0/state | grep present: |cut -d\  -f18` = 
"yes" ]; then
  {
   CAPACITY=`cat /proc/acpi/battery/BAT0/info |grep "design capacity:"|cut -d\  
-f11`
   LEVEL=`cat /proc/acpi/battery/BAT0/state | grep remaining|cut -d\  -f8`
   ACPI_PERCENT=`echo $(( $LEVEL * 100 / $CAPACITY ))`
   if [ "$LEVEL" = "$CAPACITY" ]; then
echo FULL
   else
echo $ACPI_PERCENT%
   fi
  }
 else echo "NO BATTERY"
 fi
}

function acpi_charge()
{
 ACPI_CHARGE=`cat /proc/acpi/ac_adapter/AC/state | cut -d\  -f20`
 case $ACPI_CHARGE in
   *on-line*)
 ACPI_CHARGE="+" ;;
   *off-line*)
 ACPI_CHARGE="-" ;;
 esac
 echo $ACPI_CHARGE
}

function acpi_color()
   {
 if  [  "$(acpi_charge)"  =  "+"  ];  then
  {
   if [ `cat /proc/acpi/battery/BAT0/state | grep present: |cut -d\  -f18` = 
"no" ]; then
echo  "0;31"
   else echo  "1;32"
  fi
 }
 else
   case  $(acpi_percent)  in
  10?%)  echo  "0;32"  ;;
   9?%)  echo  "0;32"  ;;
   8?%)  echo  "0;32"  ;;
   7?%)  echo  "0;32"  ;;
   6?%)  echo  "0;32"  ;;
   5?%)  echo  "0;32"  ;;
   4?%)  echo  "0;33"  ;;
   3?%)  echo  "0;33"  ;;
   2?%)  echo  "0;33"  ;;
   1?%)  echo  "0;31"  ;; 
?%)  echo  "0;31;5"  ;;

 *)  echo  "0;35"  ;;

   esac

 fi
   }

function  acpi_color_prompt
   {
 PS1='\[\e[$(acpi_color)m\][$(acpi_charge)$(acpi_percent)][\t] 
\u:\w\$>\[\e[0;37m\] '
 #PS1="\[\e[$(acpi_color)m\]\h\$\[\e[0m\]  "
   }

   #  linux  console
   if  [  "$TERM"  =  "linux"  ];  then
 PROMPT_COMMAND=acpi_color_prompt
   fi

   function  echo_acpi
   {
 echo -n "($(acpi_charge)$(acpi_percent)) "
   }
.,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,. 






Re: Mouse

2003-03-05 Thread Jason Kraftcheck

Robert wrote:
I'm having trouble getting the touchpad on my laptop to work under 
debian woody

My laptop is a Gateway Solo 1200, and it has a synaptic

when i used dpkg-reconfigure on xserver-xfree86 and set it up as a 
default ps/2 mouse, the cursor only moved about in about a 640 x 480 
section of the screen (im running in 800 x 600 mode), and the actual 
selection point of the mouse is several inches off from where the cursor 
is (i.e. when i move as far over to the bottom right as i can i can 
click on the bottom right part of the screen, even though the cursor is 
not there)
when i set it to GlidePoint, the cursor was still bounded to the small 
box, but it moved very very slowly about




Not being able to move the pointer outside the 640x480 region sounds more 
like a problem with your X configuration than with the touchpad.  Do you 
have this problem with an external mouse?  Mice only report the change in 
position, not the absolute position.  So I don't /think/ there is any way 
the touchpad could impose bounds on the range of the pointer.


Is it just a problem with the mouse acceleration?  After dragging from the 
bottom-left corner of the touch pad to the top-right, if you lift your 
finger and then try dragging again from bottom-left to top-right, 
repeating that as necessary, can you still not get the pointer to move 
outside the 640x480 region?


The pointer icon not being the same as the pointer position is a bug 
somewhere.  I'm no expert on X-windows, but my first guess would be that 
in PS/2-mouse emulation mode of the touchpad has a bug where it is 
mis-reporting the position associated with a click event.  A second guess 
would be that you are using a video card driver that supports a hardware 
cursor (e.g. the NVidia binary driver) and there is a bug in that.


Perhaps using a synaptics touchpad driver rather than using the touchpad 
in mouse-emulation mode will help.  There was a pretty good X driver for 
synaptics touchpads at this site, but as you'll see if you go there, the 
site is no longer available.


http://www.mobilix.org/touchpad_driver.html

A quick web search also turned up this:

http://www.compass.com/synaptics/

The tpconfig driver at that site can be installed by doing:

apt-get install tpconfig




Re: grub on ext3

2003-03-10 Thread Jason Kraftcheck

mi wrote:

Does anybody know if grub can boot a kernel from an ext3 rootfilesystem,
( with a /boot directory) - or if it's necessary to have an ext2 /boot 
partition then ?

Didn't found anything explicitly in the docs...



As an ext3 filesystem can be mounted as ext2, I would think grub wouldn't 
care.  It would just treat it as ext2.  Of course, I haven't actually 
tried it...






Re: OK... Newbie gives up and needs a little help... Dell Inspiron 8200 with Nvidia GEForce 440 GO...

2003-03-10 Thread Jason Kraftcheck

Peter S. Hayes wrote:

OK... I give up trying this without a little help...
 
I'm trying to get Debian Linux (woody...2.4.18) onto my Dell Inspiron 
8200 with the NVidia GE Force 440 Go video card (64 MB) of memory.
 
I have run through the installation a couple of times (each time the 
installation boot recognized my network card but "lost" any networking 
when the actual boot came up... my last install it worked) to get the 
network card operating.
 


Is there a listing for the network card (e.g. eth0) in /proc/net/dev?

I cannot get the Nvidia to work at all in X... I've downloaded NVidia's 
drivers (the two packages from their site) and tried making them... the 
"GLX" make works fine, but the "Kernel" package continually gives me 
errors about a missing header file... but I can find the header file in 
the location I specify, so something else is not quite kosher.
 


What is the header and where are you finding it?  My first guess is that 
the driver needs some kernel header, and that maybe you are finding a libc 
header of the same name in /usr/include.  Have you installed the 
kernel-headers for the kernel you are using.


Try doing:

apt-get install kernel-headers-2.4.18-686 # change for correct version
apt-get install -t unstable nvidia-glx-src
apt-get install -t unstable nvidia-kernel-src

The follow the instructions in
/usr/share/doc/nvidia-kernel-src/README.Debian.gz

and in
/usr/share/doc/nvidia-glx-src/README.Debian.gz


I tried the drivers included with the latest installation (Debian Woody) 
and had no luck there... I'm getting frustrated. Maybe I need some 
encouragement, maybe there's a suggestion that will work, maybe I need 
my head examined!
 


Try the drivers from unstable.




Re: How to setup for multiple nics?

2003-03-11 Thread Jason Kraftcheck

Chris Hoover wrote:

Hello,

I have a question,  I have a Dell Inspiron 8200 that has a 10/100 nic 
and a wireless nic.  I use this system both at work and home.  When I 
am at work, I am hard wired, but wireless at home.  Is there anyway to
set the bootup so that it only activates the 10/100 nic when at work 
and only the wireless when at home?




For the wired NIC, you might like ifplugd.  It will bring the interface 
up/down when the cable is inserted/removed.


If the wireless is a PCMCIA card and the cardmgr stuff is set up properly 
it shoud be brought up/down whenever the card is inserted/removed.  If the 
wireless NIC is internal, I don't know.  I'd just set up sudo and make 
aliases like "alias wup='sudo ifup eth1'", but it sounds like you want 
something more automated.








Re: XFree86.4.3.0 and some more

2003-03-17 Thread Jason Kraftcheck

Anders Malmberg wrote:

Hi!

I installed XFree86.4.3.0 last week because this version supported my
ATI Mobility Radeon 7500 screen. I have some problems after this.
(I am able to run startx and everything looks nice that far :)

1. The session manager is lost somewhere...
When I log on I only recieve the bw promt. How do
I fix that? I want to be able to choose from KDE and Gnome etc.



apt-get install kdm


2. When I lower my screen there is a switch which triggs the machine
into a APM mode or something. Everything gets black when the screen
is raised again and what I do to start work again is to re-log-on. Takes
some time. I would simply like to be able to lower my screen whenever
I need to.



This sounds like a bug in the graphics driver.  If you don't want to 
suspend when you close the cover, you can disable that in the BIOS.



3. Mouse problem. How do I detect external mouse in debian?



What kind of mouse (USB, PS/2, serial).  What interface is your 
trackpad/pointing-stick/whatever using (again, USB, PS/2, etc.)  If both 
are PS/2, then your BIOS should handle this.  If both the trackpad or 
whatever and the external mouse are using USB, you need to change the line 
'Option "Device" "/dev/input/mouse0" in your /etc/X11/XF86Config-4 to 
'Option "Device" "/dev/input/mice".  If your trackpad and external mouse 
are using different interfaces (e.g. one is USB and one is PS/2), then you 
need to add a second "InputDevice" section to your /etc/X11/XF86Config-4". 
 Something like this:


Section "InputDevice"
Identifier  "USB Mice"
Driver  "mouse"
Option  "SendCoreEvents"  "true"
Option  "Device"  "/dev/input/mice"
Option  "Protocol""ImPS/2"
Option  "Emulate3Buttons" "false"
Option  "ZAxisMapping""4 5"
EndSection

And in the "ServerLayout" section, add a line like the following:

InputDevice "USB Mice"

Note that the name on that line should match whatever the Identifier is in 
the "InputDevice" sections.  Use whatever identifier you want as long as 
both match.


Also, if the external mouse is USB, you need to make sure the following 
modules are loaded or load when X starts:


hid
usbmouse
mousedev
input
usb-uhci
usbcore

You might need
"usb-ohci" rather than "usb-uhci" depending on your chipset.

I assumed you do not have gpm installed and thus are not using the gpm 
repeater is your X mouse device.  If you are using gpm and both the 
trackpad and the mouse use the same interface (e.g. both USB), then you 
may need to fix the gpm settings instead of or in addition to changing 
your X config.




Any help?

thanks,
Anders.








Re: USB mouse not working in woody2.4

2003-03-28 Thread Jason Kraftcheck

Ben Southwood wrote:

All you Gurus: I can't work this out! (neither can Google!)



Well, I'm definitely not a guru, but I'm using a USB mouse on Debian, and 
can try to point out what is different in my setup.




My USB mouse does not work. The lights are on but nobodies home...




but lsmod shows:
Module Size Used by Not tainted
soundcore 3236 0 (autoclean)
radeon 92472 0
ds 6624 2
i82365 22416 2
pcmcia_core 41408 0 [ds i82365]
irtty 7456 2 (autoclean)
irda 138796 1 (autoclean) [irtty]
nls_cp437 4384 4 (autoclean)
cpuid 1184 0 (unused)
apm 9148 2
usbmouse 1760 0 (unused)
hid 18816 0 (unused)
orinoco 29568 0 (unused)
hermes 3296 0 [orinoco]
ieee1394 23528 0 (unused)
keybdev 1664 0 (unused)
usbkbd 2848 0 (unused)
input 3072 0 [usbmouse hid keybdev usbkbd]
usb-uhci 20708 0 (unused)
usbcore 48032 0 [usbmouse hid usbkbd usb-uhci]


Try loading "mousedev" rather than "usbmouse".




So I used usbmouse as driver:
Section "InputDevice"
Identifier "USB Mice"
Driver "usbmouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
# Option "Buttons" "5"

EndSection



This is what I have:

Section "InputDevice"
Identifier  "USB Mice"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/input/mice"
Option  "Protocol""ImPS/2"
Option  "Emulate3Buttons" "false"
Option  "ZAxisMapping""4 5"
EndSection

You might want to change "CorePointer" to "SendCoreEvents", or maybe you 
have that option specified in your "ServerLayout" section instead.






Re: Install question 3.0r1

2003-04-09 Thread Jason Kraftcheck

John Plummer wrote:

Just replaced Suse 7.3 on an HP 5425 Notebook with Debian 3.0r1.
The install went well except I guess I missed something.  The Logitech USB
mouse does not work.  I suspect the USB ports are not turned on.
	Is there a straightforward way to init those ports now and get the 
mouse working?  If not, what step did I miss in the installation?

I saw the emails in the archive about the USB mouse in 2.4 but did not
want to assume anything in 3.0.  Thanks,
jcp




Make sure your USB ports are enabled in the BIOS (if it has an option to 
disable them.)


Run "modconf" and load the following modules from the kernel/drivers/usb 
section:

  Either "usb-uhci" or "usb-ohci" depending on your hardware.
  hid
  mousedev

The modules "usbcore" and "input" should have been loaded by modconf 
automatically when the above three modules were loaded.


Exit modconf and do
  cat /dev/input/mice
to test that the mouse is working.  You should see a bunch of junk 
appearing in the terminal whenever you move the mouse.


If everything seems to be working, set up gpm or X or whatever to use 
/dev/input/mice as the mouse device.








Re: Install question 3.0r1

2003-04-09 Thread Jason Kraftcheck

John Plummer wrote:

Jason,
I appreciate the advice.  The sparse setup on the HP notebook
bios has no USB options.  When running modconf only the following
categories of modules are available:
block
net
fs
cdron
misc
  Within the 'misc' modules, only busmouse, msbusmouse, netlink_dev and
qpmouse are listed as not installed.
I looked at the man pages but could not follow how one could
run it in non GUI mode and get the 3 modules you listed.  Any advice on
runnng modconf to get to the 3 modules you suggested?
jcp



Which kernel do you have installed?  I don't think the 2.2.20-idepci 
kernel includes any USB support.  If you are running that one, you need to 
upgrade to either the normal 2.2 kernel (kernel-image-2.2.20-5) or a 2.4 
kernel (kernel-image-2.4.18-386 or -586tsc or -686).  Or compile your own 
with USB support included.







Re: Forget the modem, other questions

2003-04-25 Thread Jason Kraftcheck

Jacob Tennant wrote:

I have given up on the modem on my laptop so I have a few other smaller
questions.

First, I am very new to linux so I need very descriptive replys, so you
might reply directly to me.

1. Which of the 3 windows manager (gdm,kdm,xdm) uses the least amount of
system resources?



Those are display managers, not window managers.  They are the 
applications that present the a GUI login.  I don't think any of them are 
going to consume enough resouces to be a problem.  xdm is probably the 
smallest as it is the simplest.


If you are concerned about resouces, you may want to consider using a 
simpler window manager (e.g. wmaker, blackbox, fvwm95, etc.)  Perhaps that 
was what you indended to ask?  However if you aren't familiar with linux, 
you'll probably find gnome or kde easier to use.




2. I am presently using KDE by default, how do I change it to default to the
reply from question #1?



Option 1:
  Use kdm or some other display manager that allows you to select you're 
prefered window manager and/or desktop environment when you log in.


Option 2:
  Use the "update-alternatives" utility to select a different option for 
x-session-manager and/or x-window-manager.  Use "man update-alternatives" 
for an explanation of the command.




3. I have downloaded and made a CD-ROM of some software and packages I want
to install on my system. How do I tell linux to install them from the CD?



dpkg -i 




Re: PCMCIA and ISA relation

2003-05-08 Thread Jason Kraftcheck

Jeff wrote:


After fighting this for a few hours, I got a hunch...in my custom
kernel I did not include ISA Bus support nor ISA Plug-n-Play support.
I didn't think I needed that on what i thought was a purely PCI
system.  Well, apparently there is a relationship between the PCMCIA
Cardbus and the ISA bus, because I recompiled my kernel adding the ISA
stuff back and now it works fine.

Perhaps someone can explain this to me, since I don't really get it
beyond the hunch I had.



PCMCIA is a derivation of the ISA bus.  The kernel requires ISA support 
for PCMCIA to work (I don't think ISAPNP is required.)  Cardbus is PCI based.






Re: Infamous Mouse Wheel Problem

2003-06-09 Thread Jason Kraftcheck

Dan Rasmussen wrote:

Hello,

I've been suffering under Linux without the use of my mouse wheel for
some time now, and would like to do something about it.  I've got an IBM
Thinkpad 560x and a two-button PS/2 Microsoft Intellimouse.  I searched
linux-laptop.org for my model, but the two references to my laptop were
both written a long time ago and neither mentioned wheel mouses.

I tried using the program "mdetect," but it didn't seem to do anything
useful...

Relevant lines in my "XF86Config-4" are:

Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver  "mouse"
   Option  "CorePointer"
   Option  "Device""/dev/psaux"


PS/2 device.


   Option  "Protocol"  "PS/2"


Three-button two-axis protocol (no scroll wheel.)


   Option  "Emulate3Buttons"   "true"
   Option  "ZAxisMapping"  "4 5"


I don't think this option will have any effect with the 'PS/2' protocol.


EndSection

Section "InputDevice"
  Identifier  "Generic Mouse"
  Driver  "mouse"
  Option  "SendCoreEvents""true"
  Option  "Device""/dev/input/mice"


USB mice.


  Option  "Protocol"  "ImPS/2"


MS Intellipoint-over-PS/2 protocol (probably what you want for a scroll 
mouse.)



  Option  "Emulate3Buttons"   "true"


Are you sure you want this with a scroll mouse.  Clicking the wheel should 
work a real middle button.  I guess it doesn't hurt to have it specified 
anyway.



  Option  "ZAxisMapping"  "4 5"
EndSection  


I spent a good time playing around with the protocol option and the
CorePointer option before getting annoyed, and realizing I was wasting my
time and that there must be a better way.  To be honest, I'm not sure
which of the devices is my PS/2 mouse and which is the internal
eraser-style mouse.  When I start my laptop up without the PS/2 mouse
plugged in, the internal works, and vice versa, ie they don't both
function at the same time unless I plug in the PS/2 after I've booted
up.


I don't know of a good solution for this.  It sounds like there is no USB 
mouse (the second 'InputDevice' section above is not used.)  You can only 
have one PS/2 mouse connected at a time.  There are two ways this is 
implemented (in the BIOS): 1) The trackpad/pointer/whatever is disabled 
when an external mouse is connected or 2) The BIOS combines events from 
the on-board and external pointer.


For 1), you need some way to change the driver when you connect the mouse. 
 I can't think of a pleasant way to do this.  You could specify multiple 
'InputDevice' sections for '/dev/psaux' and multiple 'ServerLayout' 
sections each using a different one of the 'InputDevice' sections.  Then 
restart X specifying the 'ServerLayout' you want on the command line (e.g. 
"startx -- -layout wheel".


For 2), I don't think there is an answer.  X doesn't talk directly to the 
mouse, it talks to the BIOS 'mouse combiner' which probably doesn't do 
scroll wheels.  You could try just specifying 'imps/2' for the protocol 
and see if your trackpad/eraser/whatever works without an external mouse 
connected.




That's all I can think of right now.  Eagerly awaiting being able to
scroll through documents without moving my arms/wrist,
Dan



The easiest solution is to get a USB mouse.  This whole mess stems from 
the fact that you can only have one PS/2 pointer and the internal device 
is a PS/2 pointer.  You can have all the USB pointing devices you want.


--
jason kraftcheck





Re: Dell 8000 problems -- 4-way split screen

2003-06-13 Thread Jason Kraftcheck

Nori Heikkinen wrote:

Hi all,

I'm trying to install debian on a Dell Inspiron 8000.  It's being a
little less cooperative than the desktop systems I'm used to! 


My main problem right now is that on the console (i haven't even
gotten X up yet), the screen is normal for the top quarter, and then
redraws itself ontop of itself beginning at the 1-quarter, half, and
3-quarter marks.  The result is pretty legible for the second quarter,
but absolutely illegible at the bottom.



Try pressing 'Fn-F7' (or whichever key on your keyboard has the little 
'font' label.  It's F7 on my Inspiron 4100) to change the screen font.




Re: can't bring up eth0 correctly

2003-06-16 Thread Jason Kraftcheck

charles yoo wrote:
I just went through my woody install on Inspiron 8200.  On the initial 
installation, it gets its ip via dhcp.  All good.  I did an apt-get for 
the 2.4-18 kernel, recompiled it with some changes, restart and no 
more.  On ifconfig I see lo and eth0, but I don’t get anything.


 


In /etc/interfaces I have auto eth0 commented out and eth0 set for dhcp.

 


Shouldn't that be "/etc/network/interfaces"?

I'm a little confused about what you are trying to do, and what exactly is 
failing.  The line "auto eth0" that you commented out is the line that 
causes the interface to be configured on boot.  It is quite common to not 
want the interface to be configured on boot for a laptop.  However, if you 
remove the 'auto' entry, you need manually bring up the interface using 
'ifup eth0'.  Have you tried doing that?




If I manually try to assign the numbers it seems like it takes it.  But 
when I add route gateway, I get that there is no such device.




Did you bring up the interface after setting the address?  Presumably you 
are using ifconfig to set the address.  Try "ifconfig eth0 up".


 


Any suggestions?

 


Your /etc/network/interfaces file should look something like this:

#auto eth0
iface eth0 inet dhcp

You should then bring up the interface by doing:
ifup eth0

If the interface fails to come up, check your system logs for error 
messages.


I think you might need to post a bit more information before anyone can be 
any more specific with an answer.

  What is the network chip?
  Is it pcmcia/pccard or internal?
  What are the contents of your /etc/network/interfaces
  What commands are you using to set the IP address?
  What error message are you getting when you try to set the default route?
  What related error messages are you seeing in your syslog?
  What dhcp client do you have installed?


-- jason





Re: can't bring up eth0 correctly

2003-06-16 Thread Jason Kraftcheck

charles yoo wrote:

I should have written /etc/network/interfaces.

In reading a few things on the net, a lot of people suggested to have the
autho eth0 commented out.  This is for a laptop.  I'm coming from redhat,
and once dhcp is set, you can more or less leave it that way.

All that I'm trying to do at the moment is get eth0 up and running.  I get
alerts saying that there is no such process or device.

When I restart networking, I expect to see eth0 come up, but it doesn't.


Please read more carefully what I wrote below.  If you comment out the 
'auto eth0' entry, eth0 will not come up when you restart networking.  Try 
'ifup eth0' to manually bring up the interface.




In /etc/network/interfaces, I have the following information

I am basically looking to configure for dhcp only.  I have removed netenv,
because it did not seem to work too well for me.  Maybe misconfigured.



Please consider including the additinion information I listed in my first 
message, as it will make it easier for others to help you.  (And please 
include the actual contents of your /etc/network/interfaces rather than 
your summary of the contents.)


-- jason




Re: ATI Mobility RADEON 7000

2003-07-29 Thread Jason Kraftcheck

Rene Cunningham wrote:

On Thu, Jul 24, 2003 at 07:51:23PM +0300, gustavo wrote:



Ive got an R40 with a Radeon M6 7000. xfree86 natively supports this
card with the vesa driver. If you want 3d acceleration you need to
follow this good tutorial.

http://www.debianplanet.org/node.php?id=253



Those instructions are quite old.  The 4.2.1 version of XFree86 in testing 
seems to support radeon chips fine (with 2d & 3d acceleration.)  A 
resonably recent kernel should also have an acceptable dri module.


To enable 2D acceleration, in the "Device" setion of 
/etc/X11/XF86Config-4,  change/set the Driver option to:

  Driver "radeon"
and restart X.

To enable 3D acceleration, in addition to the above step, use modconf to 
load the drivers/char/drm/radeon module and restart X.





Re: No fsck in battery mode

2003-09-02 Thread Jason Kraftcheck

Cristian Ionescu-Idbohrn wrote:

On Mon, 1 Sep 2003, Derek Broughton wrote:



From: "Frédéric Bothamy" <[EMAIL PROTECTED]>


Except that since it is under /usr, it might not be available at fsck
time (that is, before /usr is mounted in /etc/rcS.d/S30checkfs.sh).


Doh!  Of course you're right.  I wonder if it could be copied to /boot
and still work?



Sure:

$ ldd /usr/bin/on_ac_power
not a dynamic executable



That is the response ldd usually gives for a shell script.  You need to do 
'ldd' for every executable called by the script, and the interpreter (the 
shell) to determine which libraries the script depends on.


-- jason kraftcheck



Re: usb mouse not recognised in kernel 2.4.22

2003-09-09 Thread Jason Kraftcheck

Cristian Ionescu-Idbohrn wrote:

On Tue, 9 Sep 2003, Ben wrote:


These are the relevant modules (wrt. the usb mouse) lsmod shows on my
laptop (acer tm 634), kernel 2.4.19:

mousedev3736   0  (unused)
hid17892   0  (unused)
usbmouse1784   0  (unused)
input   3296   0  [mousedev hid usbmouse]
usb-ohci   17672   0  (unused)


usb-ohci - USB support for Compaq, iMac, SiS, ALi, etc. chipsets



usbcore54592   1  [hid usbmouse usb-ohci]

# lspci
00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller 
(rev 46)
00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:14.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)


And these on desktop, kernel 2.4.18:

mousedev4308   1
hid19428   0  (unused)
input   3648   0  [mousedev hid]
usb-uhci   23664   0  (unused)


usb-uhci - USB support for Intel, VIA, etc. chipsets


usbcore62924   1  [hid usb-uhci]

# lspci
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)



You want usb-uhci, not usb-ohci.




Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-10 Thread Jason Kraftcheck

Shyamal Prasad wrote:

"Bob" == Bob Proulx <[EMAIL PROTECTED]> writes:

Bob> ben wrote:
>> if i enter modconf on my latest compile no usbmouse shows up,
>> however if i lsmod it appears. I am still not sure if this is
>> the problem as my kernel 2.4.18 (bf24) has this module loaded
>> and the mouse works, but I am willing to try anything at this
>> stage!

Bob> For USB mice and a modular kernel I have found experimentally
Bob> that I need to load the following two drivers.

Bob>   echo hid >> /etc/modules 
Bob>   echo mousedev >> /etc/modules


Bob>   modprobe hid modprobe mousedev

Bob> With these loaded everything works fine for me.

There was a time I actually understood the USB subsystem (two years
ago or so). Now all I do is

- use a stock Debian woody kernel (2.4.18-{k7|686}) in my case)
- apt-get install hotplug

and it all works pretty much by itself. With my USB keyboard and mouse
I see

$ /sbin/lsmod | grep usb
usbkbd  2944   0 (unused)
usbmouse1792   0 (unused)
input   3424   0 [keybdev usbkbd mousedev hid usbmouse]
usb-uhci   21508   0 (unused)
usbcore49696   1 [usbkbd hid usbmouse usb-uhci]



You don't need usbkdb or usbmouse.  For USB mouse and keyboard support 
you should have:

  usbcore
  usb-[ou]hci
  input
  hid
  mousedev
  keybdev





Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-10 Thread Jason Kraftcheck

Shyamal Prasad wrote:

"Bob" == Bob Proulx <[EMAIL PROTECTED]> writes:

Bob> ben wrote:
>> if i enter modconf on my latest compile no usbmouse shows up,
>> however if i lsmod it appears. I am still not sure if this is
>> the problem as my kernel 2.4.18 (bf24) has this module loaded
>> and the mouse works, but I am willing to try anything at this
>> stage!

Bob> For USB mice and a modular kernel I have found experimentally
Bob> that I need to load the following two drivers.

Bob>   echo hid >> /etc/modules 
Bob>   echo mousedev >> /etc/modules


Bob>   modprobe hid modprobe mousedev

Bob> With these loaded everything works fine for me.

There was a time I actually understood the USB subsystem (two years
ago or so). Now all I do is

- use a stock Debian woody kernel (2.4.18-{k7|686}) in my case)
- apt-get install hotplug

and it all works pretty much by itself. With my USB keyboard and mouse
I see

$ /sbin/lsmod | grep usb
usbkbd  2944   0 (unused)
usbmouse1792   0 (unused)
input   3424   0 [keybdev usbkbd mousedev hid usbmouse]
usb-uhci   21508   0 (unused)
usbcore49696   1 [usbkbd hid usbmouse usb-uhci]



You don't need usbkdb or usbmouse.  For USB mouse and keyboard support 
you should have:

  usbcore
  usb-[ou]hci
  input
  hid
  mousedev
  keybdev





Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck

ben wrote:

things are getting messy here.

Thanks to everyone that has replied, I greatly appreciate your replies,
however the messages are getting confused.

I have reposted this to try and clear things up a little.

I do not have usb-ohci installed. I am running an Asus laptop with Intel
chipset and using usb-uhci

My lsmod shows:
zeus:/home/ben# lsmod
Module  Size  Used byNot tainted
orinoco_cs  4372   1
mousedev3832   1
nls_cp437   4348   2  (autoclean)
usb-uhci   21804   0  (unused)
asus_acpi   7676   0
thermal 6432   0  (unused)
processor   8780   0  [thermal]
fan 1568   0  (unused)
button  2508   0  (unused)
battery 5856   0  (unused)
ac  1792   0  (unused)
microcode   3424   0  (unused)
msr 1640   0  (unused)
cpuid   1224   0  (unused)
radeonfb   22636   0  (unused)
fbcon-cfb8  3336   0  [radeonfb]
fbcon-cfb24 4200   0  [radeonfb]
fbcon-cfb16 3912   0  [radeonfb]
fbcon-cfb32 3752   0  [radeonfb]
hid16836   0  (unused)
usbcore58368   1  [usb-uhci hid]
i810_audio 24968   1
ac97_codec 12076   0  [i810_audio]
orinoco33036   0  [orinoco_cs]
hermes  5252   0  [orinoco_cs orinoco]
busmouse3260   0  (unused)
input   3488   0  [mousedev]

As you can see only mousedev is using input what have I done wrong??!!



AFAIK, you have the correct modules loaded.  Try booting without starting 
X.  Do you see the message at the console when you connect the mouse?  If 
you do 'cat /dev/input/mice' and move the mouse, do you get any output?





Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck

Cristian Ionescu-Idbohrn wrote:

On Thu, 11 Sep 2003, ben wrote:




For comparison, this is what I have om my acer:

Module  Size  Used byNot tainted
mousedev3736   1
usbmouse1784   0  (unused)  <-- tho it says 'unused',
if I 'rmmod' it the usb
mouse stops working


You really shouldn't need usbmouse loaded, AFAIK.  I may very well be 
mistaken about that, though.  Would you mind checking two things?  If I'm 
mistaken about this I'd like to find out before I mis-inform anyone else.


Are you using /dev/input/mice with major 13, minor 63 as the mouse device?

Rather than loading and then unloading usbmouse, which may mess things up, 
try not loading usbmouse at all.  Does the mouse not work then?  Does it 
start working when you load usbmouse?


thanks much,

-- jason kraftcheck



Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck

ben wrote:
note 1 : the mouse works fine in kernel 2.4.18, but not in kernel 2.4.22 
- on the same machine.


Have you tested without X or gpm running?  When I upgraded to 2.4.22 I 
noticed some issues when X tried to open /dev/input/mice before mousedev 
was loaded.



note 2: lsmod while running 2.4.18 shows
input   3456   0  [keybdev mousedev hid]
lsmod while running 2.4.22 shows
input   3456   0  [mousedev]


I presume from this that for some reason hid is not using input, but I 
can't figure out why!


That's strage.  I don't know if it is supposed to be or not, as I linked 
most of the USB subsystem (including HID) into my kernel rather than 
building them as modules.


Do you get a USB event when you connect your mouse?  You should see 
something like the following in /var/log/messages:


Sep 11 10:37:55 localhost kernel: hub.c: new USB device 00:1d.0-1, 
assigned address 13
Sep 11 10:37:55 localhost kernel: input: USB HID v1.10 Mouse [Microsoft 
Microsoft USB Mouse] on usb1:13.0





PCTEL 2304WT winmodem on Inspiron 4100

2002-10-07 Thread Jason Kraftcheck
Has anyone gotten the PCTel 2304WT modem to work with Linux?  On a Dell 
Inspiron 4100?


I using the pctel-0.9.4 driver 
(http://linmodems.technion.ac.il/pctel-linux/) with the "--with-hal=i81x" 
configuration option (its an ac97 modem with an i830MP chipset) with the 
2.4.19-pre1-ac2 kernel.


I can load the modules and the modem responds to AT commands.  Initially I 
couldn't get the modem to dial.  After a few of web searches, I found a 
FAQ that suggested using the ATX3 initialization option.  After that I 
could get the modem to dial, but it never acknowledges that it has a 
connection after the other end answers.  Sometimes it locks up the kernel 
when the other end answers the call.  I've noticed the following message 
in /var/log/messages:


  kernel: Trying to free nonexistent resource <d400-d407>

Most of attempts to use the modem have been after rebooting without ever 
loading the sound modules (ac97_codec and i810_audio) to make sure the 
problem wasn't conflicts with the sound drivers.  I tried it once with 
ac97_codec loaded in case some ac97-related thing wasn't being initialized 
by the modem driver, but that didn't help either.  The presense or lack of 
the sound drivers does not appear to have any effect on the modem driver 
or the kernel lockups.


I'm beginning to suspect that the problem is either specific to the 
Inspiron 4100 or an incompatibility with the kernel version I am using. 
The README for the modem driver says it has been tested with kernels up to 
2.4.18.  I know there was a good reason I decided to use 2.4.19-pre1-ac2 
at the time (even though I can't remember what it was.)  I'm hoping 
someone can confirm that the driver does or does not work with kernel 
2.4.18 or earlier on a Dell Inspiron 4100 before I go messing with my 
kernel again.  Or at least maybe someone can confirm that the driver works 
at all with an Inspiron 4100.



thanks much,

--
jason kraftcheck




Re: New user question....

2002-10-25 Thread Jason Kraftcheck

ajTreece wrote:

I've just completed an install on my Fujitsu laptop and was just 
wondering...


There will be times when I will use an external monitor with the laptop. 
How do I change Gnome / X11 config to go from 800x600 to 1280x1024?





Assuming you have multiple resolutions specified in your 
/etc/X11/XF86Config-4 file, you can switch between them by holding down 
control and alt and pressing the +/- keys on the number pad.  I've never 
actually seen a laptap with the number pad part of the keyboard, usually 
you have to use the Fn/Function key and some other key.


This doesn't actually work for me, though.  The driver for my graphics 
chip won't let me set the resolution any higher than that of the LCD if 
the LCD is activated.  Maybe it will work for you, though.


I usually manually start X when I log in.  To use an external monitor or 
both a monitor and the LCD, I exit X and restart it with a different 
command line option.  The command is

  startx -- -layout 
where  is the name you assigned to Layout section in your 
XF86Config-4 file.  I'll append my XF86Config-4 file as an example.  If 
anyone knows of an easier way to do this, please let me know also.


-- jason



Section "Files"
# 
FontPath 
"unix/:7100" 
		# local font server

# if the local font server has problems, we can fall back on these
FontPath"/usr/local/share/fonts/tt"
FontPath"/usr/lib/X11/fonts/misc:unscaled"
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/misc"
FontPath"/usr/lib/X11/fonts/100dpi"
FontPath"/usr/lib/X11/fonts/75dpi"
EndSection

Section "ServerFlags"
# Disable ctrl-alt-{+|-}
# 
Option "DontZoom"

EndSection

Section "Module"
Load"ddc"
Load"GLcore"
Load"dbe"
Load"dri"
Load"extmod"
Load"glx"
Load"pex5"
Load"record"
Load"xie"
Load"bitmap"
Load"freetype"
Load"speedo"
Load"type1"
Load"vbe"
Load"int10"
EndSection

# internal keyboard
Section "InputDevice"
Identifier  "Main Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules""xfree86"
Option  "XkbModel""pc101"
Option  "XkbLayout"   "us"
EndSection

# internal touchpad
#Section "InputDevice"
# 
Identifier 
"TouchPad"
# 
Driver 
	"mouse"
# 
Option 
	"CorePointer"
# 
Option 
	"Device"		"/dev/psaux"
# 
Option 
	"Protocol"		"PS/2"
# 
Option 
	"Emulate3Buttons"	"true"
# 
Option 
	"ZAxisMapping"		"4 5"

#EndSection

# usb mouse
Section "InputDevice"
   Identifier  "USB Mouse"
   Driver  "mouse"
   Option  "SendCoreEvents"   "true"
   Option  "Device"  "/dev/input/mice"
   Option  "Protocol""IMPS/2"
   Option  "Emulate3Buttons"   "false"
   Option  "ZAxisMapping""4 5"
EndSection

# internal touchpad via GPM
Section "InputDevice"
Identifier  "GPM Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/gpmdata"
Option  "Protocol""IntelliMouse"
Option  "Emulate3Buttons" "true"
# 
Option 
	"ZAxisMapping"		"4 5"

EndSection

# internal LCD screen
Section "Device"
Identifier  "Radeon Mobility DVI"
Driver  "radeon"
BusID   "PCI:1:0:0"
Screen  0
EndSection

# external CRT for dual-head
Section "Device"
Identifier  "Radeon Mobility CRT Dual"
Driver  "radeon"
BusID   "PCI:1:0:0"
Screen  1
# 
Option 
	"crt_screen"

EndSection

# external CRT for use without internal LCD
Section "Device"
Identifier  "Radeon Mobility CRT Only"
Driver  "radeon"
BusID   "PCI:1:0:0"
Option  "crt_screen"
EndSection

# internal LCD
Section "Monitor"
Identifier  "LCD"
HorizSync   28-49
VertRefresh 60
Option  "DPMS"
EndSection

# external CRT
Section "Monitor"
Identifier  "CRT"
HorizSync   30-95
VertRefresh 50-180
EndSection

# LCD only
Section "Screen"
Identifier  "LCD Screen"
Device  "Radeon Mobility DVI"
Monitor "LCD"
DefaultDepth24
SubSection "Display"
Depth   24
Modes   "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth   16
   

PCTEL 2304WT winmodem on Inspiron 4100

2002-10-07 Thread Jason Kraftcheck

Has anyone gotten the PCTel 2304WT modem to work with Linux?  On a Dell 
Inspiron 4100?

I using the pctel-0.9.4 driver 
(http://linmodems.technion.ac.il/pctel-linux/) with the "--with-hal=i81x" 
configuration option (its an ac97 modem with an i830MP chipset) with the 
2.4.19-pre1-ac2 kernel.

I can load the modules and the modem responds to AT commands.  Initially I 
couldn't get the modem to dial.  After a few of web searches, I found a 
FAQ that suggested using the ATX3 initialization option.  After that I 
could get the modem to dial, but it never acknowledges that it has a 
connection after the other end answers.  Sometimes it locks up the kernel 
when the other end answers the call.  I've noticed the following message 
in /var/log/messages:

   kernel: Trying to free nonexistent resource <d400-d407>

Most of attempts to use the modem have been after rebooting without ever 
loading the sound modules (ac97_codec and i810_audio) to make sure the 
problem wasn't conflicts with the sound drivers.  I tried it once with 
ac97_codec loaded in case some ac97-related thing wasn't being initialized 
by the modem driver, but that didn't help either.  The presense or lack of 
the sound drivers does not appear to have any effect on the modem driver 
or the kernel lockups.

I'm beginning to suspect that the problem is either specific to the 
Inspiron 4100 or an incompatibility with the kernel version I am using. 
The README for the modem driver says it has been tested with kernels up to 
2.4.18.  I know there was a good reason I decided to use 2.4.19-pre1-ac2 
at the time (even though I can't remember what it was.)  I'm hoping 
someone can confirm that the driver does or does not work with kernel 
2.4.18 or earlier on a Dell Inspiron 4100 before I go messing with my 
kernel again.  Or at least maybe someone can confirm that the driver works 
at all with an Inspiron 4100.


thanks much,

-- 
jason kraftcheck



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




Re: New user question....

2002-10-25 Thread Jason Kraftcheck
ajTreece wrote:


I've just completed an install on my Fujitsu laptop and was just 
wondering...

There will be times when I will use an external monitor with the laptop. 
How do I change Gnome / X11 config to go from 800x600 to 1280x1024?



Assuming you have multiple resolutions specified in your 
/etc/X11/XF86Config-4 file, you can switch between them by holding down 
control and alt and pressing the +/- keys on the number pad.  I've never 
actually seen a laptap with the number pad part of the keyboard, usually 
you have to use the Fn/Function key and some other key.

This doesn't actually work for me, though.  The driver for my graphics 
chip won't let me set the resolution any higher than that of the LCD if 
the LCD is activated.  Maybe it will work for you, though.

I usually manually start X when I log in.  To use an external monitor or 
both a monitor and the LCD, I exit X and restart it with a different 
command line option.  The command is
  startx -- -layout 
where  is the name you assigned to Layout section in your 
XF86Config-4 file.  I'll append my XF86Config-4 file as an example.  If 
anyone knows of an easier way to do this, please let me know also.

-- jason



Section "Files"
# 
FontPath 
"unix/:7100" 
		# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/local/share/fonts/tt"
	FontPath	"/usr/lib/X11/fonts/misc:unscaled"
	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/misc"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "ServerFlags"
	# Disable ctrl-alt-{+|-}
# 
Option "DontZoom"
EndSection

Section "Module"
	Load	"ddc"
	Load	"GLcore"
	Load	"dbe"
	Load	"dri"
	Load	"extmod"
	Load	"glx"
	Load	"pex5"
	Load	"record"
	Load	"xie"
	Load	"bitmap"
	Load	"freetype"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
	Load	"int10"
EndSection

# internal keyboard
Section "InputDevice"
	Identifier	"Main Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc101"
	Option		"XkbLayout"	"us"
EndSection

# internal touchpad
#Section "InputDevice"
# 
Identifier 
"TouchPad"
# 
Driver 
	"mouse"
# 
Option 
	"CorePointer"
# 
Option 
	"Device"		"/dev/psaux"
# 
Option 
	"Protocol"		"PS/2"
# 
Option 
	"Emulate3Buttons"	"true"
# 
Option 
	"ZAxisMapping"		"4 5"
#EndSection

# usb mouse
Section "InputDevice"
   Identifier  "USB Mouse"
   Driver	   "mouse"
   Option	   "SendCoreEvents"		"true"
   Option	   "Device" 	   "/dev/input/mice"
   Option	   "Protocol"	   "IMPS/2"
   Option	   "Emulate3Buttons"   "false"
   Option	   "ZAxisMapping"	   "4 5"
EndSection

# internal touchpad via GPM
Section "InputDevice"
	Identifier	"GPM Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/gpmdata"
	Option		"Protocol"		"IntelliMouse"
	Option		"Emulate3Buttons"	"true"
# 
Option 
	"ZAxisMapping"		"4 5"
EndSection

# internal LCD screen
Section "Device"
	Identifier	"Radeon Mobility DVI"
	Driver		"radeon"
	BusID		"PCI:1:0:0"
	Screen		0
EndSection

# external CRT for dual-head
Section "Device"
	Identifier	"Radeon Mobility CRT Dual"
	Driver		"radeon"
	BusID		"PCI:1:0:0"
	Screen		1
# 
Option 
	"crt_screen"
EndSection

# external CRT for use without internal LCD
Section "Device"
	Identifier	"Radeon Mobility CRT Only"
	Driver		"radeon"
	BusID		"PCI:1:0:0"
	Option		"crt_screen"
EndSection

# internal LCD
Section "Monitor"
	Identifier	"LCD"
	HorizSync	28-49
	VertRefresh	60
	Option		"DPMS"
EndSection

# external CRT
Section "Monitor"
	Identifier	"CRT"
	HorizSync	30-95
	VertRefresh	50-180
EndSection

# LCD only
Section "Screen"
	Identifier	"LCD Screen"
	Device		"Radeon Mobility DVI"
	Monitor		"LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480" "320x240"
	EndSubSection
EndSection

# CRT for use in dual-head config
Section "Screen"
	Identifier	"CRT Screen Dual"
	Device		"Radeon Mobility CRT Dual"
	Monitor		"CRT"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480" "320x240"
	EndSubSection
EndSection

# CRT for use without LCD
Section "Screen"
	Identifier	"CRT 1280x1024"
	Device		"Radeon Mobility CRT Only"
	Monitor		"CRT"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
	EndSubSection
	Sub

cardmgr, usbmgr, and hotplug

2003-01-30 Thread Jason Kraftcheck

What is the relation between cardmgr from the pcmcia-cs package, usbmgr, 
and hotplug?  pcmcia-cs suggests hotplug, but other than that there is no 
relation in the package dependencies.  Does hotplug replace cardmgr and/or 
usbmgr?  If I have hotplug installed, can I remove pcmcia-cs and usbmgr? 
Should I?

thanks much,

--
jason kraftcheck


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



Re: netgear MA401

2003-01-31 Thread Jason Kraftcheck
J. Volkmann wrote:

Hello,

I am trying to get a netgear MA 401 to work on a toshiba 3000-512.

I had it running once, but I killed the kernel modules so I have to do
it again. Unfortunately I do not recognize what I did back then.
To remove it, I deleted the /lib/modules and the /etc/pcmcia and
reinstalled the packages named pcmcia-source and wireless-tools.

What I tried until now:
1. Compiling a 2.4.20 with the following options:
CONFIG_PCMCIA=y
CONFIG_CARDBUS=y
CONFIG_NET_RADIO=y
CONFIG_HERMES=m
CONFIG_PLX_HERMES=m
CONFIG_PCMCIA_HERMES=m
CONFIG_NET_WIRELESS=y
CONFIG_NET_PCMCIA=y
CONFIG_NET_PCMCIA_RADIO=y
Should work if I understood right? But it doesn't. The cardmgr doesn't
even loed any modules automatically?



I recently had a similar problem.  My problem was that I was compiling the 
kernel without support for the ISA bus (I don't have any ISA devices.) 
The old PC card bus that the MA 401 uses is ISA based, and doesn't work 
without ISA support.




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



Re: Touch Pad Drivers

2003-02-05 Thread Jason Kraftcheck
Carl Baldwin wrote:

Are there any XFree86 drivers that handle touchpads specifically.  I
poked around the XFree86 site for a while and couldn't find anything.
Specifically, I would like to be able to scroll with the touch pad.

Also, I remember being able to do this with an older laptop, I would
like to be able to use all three buttons by tapping on the touch pad:
tap with one finger for left button, two fingers for the middle button
and three for the right button.  I thought it was really cool and have
no idea where to find such drivers.

Does anyone know of drivers that I could use to get at least some
extra functionality out of my touch pad?

Here's some extra info:

I have a Dell Inspiron 8200 (with the touch pad-eraser head combo)
Here is how XFree86 handles my touch pad.  It works fine for the
basic functionality it offers.



You can get an XFree86 driver here:

http://www.mobilix.org/touchpad_driver.html

When I tried that driver, it seemed to work reasonably well on my Inspiron 
4100.  All the capablities you mention above are available.

I stopped using it because there was some lag/latency that I found 
annoying.  A couple other minor problems:  The eraser-head pointer doesn't 
work with the driver loaded.  The driver doesn't restore the trackpad to 
hardware mode when it exits.  (I had to reboot after removing the driver 
to get the touchpad to work without the driver.)



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



Re: setup apm for 'battery low' warning on textconsole

2003-02-13 Thread Jason Kraftcheck
mi wrote:

Hello,
while i was roaming on a textconsole,  and the laptop only on battery, the 
machine suddenly powered off.   Leaving it badly with filesystem checks.
Now i wonder how to get a 'battery critical' warning yonder there  ?


Here's some junk from my .bashrc to color the shell prompt according to 
the battery life:


APM="/usr/bin/apm"

if [ -x $APM ]; then

  function apm_percent()
  {
state_line=$($APM)
cut_leading=${state_line#*: }
APM_PERCENT=${cut_leading%%%*}
echo $APM_PERCENT
  }

  function apm_charge()
  {
case "$($APM)" in
  *on-line*)
APM_CHARGE="+" ;;
  *off-line*)
APM_CHARGE="-" ;;
esac
echo $APM_CHARGE
  }

  function apm_color()
  {
if  [  "$(apm_charge)"  =  "+"  ];  then
  echo  "1;37"
else
  case  $(apm_percent)  in
 10?)  echo  "1;37"  ;;
  9?)  echo  "0;34"  ;;
  8?)  echo  "0;34"  ;;
  7?)  echo  "0;34"  ;;
  6?)  echo  "0;34"  ;;
  5?)  echo  "0;32"  ;;
  4?)  echo  "0;32"  ;;
  3?)  echo  "1;33"  ;;
  2?)  echo  "1;33"  ;;
  1?)  echo  "0;31"  ;;
   ?)  echo  "0;31;5"  ;;
   *)  echo  "0;35"  ;;
  esac
fi
  }

  function  apm_color_prompt
  {
PS1="\[\e[$(apm_color)m\]\h\$\[\e[0m\]  "
  }

  #  linux  console
  if  [  "$TERM"  =  "linux"  ];  then
PROMPT_COMMAND=apm_color_prompt
  fi

  function  echo_apm
  {
echo -n "($(apm_charge)$(apm_percent)) "
  }

  #  alternately echo apm state before prompt
  #  PROMPT_COMMAND = echo_apm
fi



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



Re: DELL Inspiron and some problems

2003-03-02 Thread Jason Kraftcheck
Alex Malinovich wrote:
On Fri, 2003-02-28 at 08:01, Karsten Rothemund wrote:

Hello *

I have a big problem with a DELL Inspiron 8100. After nearly a year
working with this machine running Debian Woody, I suddenly had some
problems with the fans. After a suspend-to-RAM, and the wake-up 5
Minutes later, it startet with running both at full speed - even after
I cooled down the computer for more than an hour (so I'm sure, it is
not too hot).


This happens all the time on my Inspiron 8000. As far as I've been able
to track the problem, it happens when you change power modes while the
laptop is suspended. i.e. Pulling out the AC cord or inserting it while
the laptop is suspended. A reboot stops that problem, though it's not
exactly convenient. An updated BIOS might help, but Dell laptops have
notoriously bad BIOSs. For every 1 feature they fix, they usually break
another 3.
Pressing Fn-Z will cause the BIOS to re-read temperature sensor(s), which 
will stop the fans this (it works on my 4100 anyway.)



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


Re: Color bash prompt in function of the charge of battery (acpibased)

2003-03-04 Thread Jason Kraftcheck
Here's an update to my APM version of this.  It incoprorates some of 
Fabio's changes to his ACPI version.  It also reads directly from 
/proc/apm rather than using the apm command because it is faster and 
easier to parse, but may break for other kernel versions (I'm using 2.4.20).

if [ -f /proc/apm ]; then

  function apm_read
  {
APM_STRING=(`cat /proc/apm`)
APM_DRIVER_VERSION=${APM_STRING[0]}
APM_BIOS_VERSION=${APM_STRING[1]}
APM_TIME=${APM_STRING[7]}
if [ $APM_TIME -lt 0 ]; then
  APM_NO_BATT=1
  APM_PERCENT=0
else
  AMP_NO_BATT=0
  APM_PERCENT=${APM_STRING[6]%%%*}
fi
if [ "${APM_STRING[3]}" == "0x00" ]; then
  APM_AC=-
  case $APM_PERCENT in
10?)  APM_COLOR="1;37"  ;;
 9?)  APM_COLOR="0;34"  ;;
 8?)  APM_COLOR="0;34"  ;;
 7?)  APM_COLOR="0;34"  ;;
 6?)  APM_COLOR="0;34"  ;;
 5?)  APM_COLOR="0;32"  ;;
 4?)  APM_COLOR="0;32"  ;;
 3?)  APM_COLOR="1;33"  ;;
 2?)  APM_COLOR="1;33"  ;;
 1?)  APM_COLOR="0;31"  ;;
  ?)  APM_COLOR="0;31;5";;
  *)  APM_COLOR="0;35"  ;;
  esac
else
  APM_AC=+
  APM_COLOR="1;37"
fi
  }
  function apm_dump
  {
apm_read
echo "DRIVER_VERSION = $APM_DRIVER_VERSION"
echo "BIOS_VERSION = $APM_BIOS_VERSION"
echo "AC = $APM_AC"
echo "PERCENT = $APM_PERCENT"
echo "TIME = $APM_TIME"
echo "NO_BATT = $AMP_NO_BATT"
echo "COLOR = $APM_COLOR"
  }
  PROMPT_COMMAND=amp_read
  if [ "$TERM" == "linux"]; then
PS1="\[\e[\${APM_COLOR}m\]\h\$\[\e[0m\] "
  else
PS1="\[\e[1m\](\$APM_AC\$APM_PERCENT%)\h\$\[\e[0m\] "
  fi
fi



Fabio Sirna wrote:
I do some change on the bash script that I've posted few days ago. This
works better. It must be in the .bashrc.
.,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,. 
# Color the bash prompt in function of the percentage of battery
# with acpi subsystem.
# Based on the originally apm based script that has been posted
# on debian-laptop by Jason Kraftcheck <[EMAIL PROTECTED]>.
#
# This script is licensed under the GNU GPL version 2 or later,
# see /usr/share/common-licences/GPL on a Debian system or
# http://www.gnu.org/copyleft/gpl.html on the web.
 
# (c) 2003 Fabio 'farnis' Sirna <[EMAIL PROTECTED]>

function acpi_percent()
{
 if [ `cat /proc/acpi/battery/BAT0/state | grep present: |cut -d\  -f18` = "yes" ]; 
then
  {
   CAPACITY=`cat /proc/acpi/battery/BAT0/info |grep "design capacity:"|cut -d\  -f11`
   LEVEL=`cat /proc/acpi/battery/BAT0/state | grep remaining|cut -d\  -f8`
   ACPI_PERCENT=`echo $(( $LEVEL * 100 / $CAPACITY ))`
   if [ "$LEVEL" = "$CAPACITY" ]; then
echo FULL
   else
echo $ACPI_PERCENT%
   fi
  }
 else echo "NO BATTERY"
 fi
}
function acpi_charge()
{
 ACPI_CHARGE=`cat /proc/acpi/ac_adapter/AC/state | cut -d\  -f20`
 case $ACPI_CHARGE in
   *on-line*)
 ACPI_CHARGE="+" ;;
   *off-line*)
 ACPI_CHARGE="-" ;;
 esac
 echo $ACPI_CHARGE
}
function acpi_color()
   {
 if  [  "$(acpi_charge)"  =  "+"  ];  then
  {
   if [ `cat /proc/acpi/battery/BAT0/state | grep present: |cut -d\  -f18` = "no" ]; then
echo  "0;31"
   else echo  "1;32"
  fi
 }
 else
   case  $(acpi_percent)  in
  10?%)  echo  "0;32"  ;;
   9?%)  echo  "0;32"  ;;
   8?%)  echo  "0;32"  ;;
   7?%)  echo  "0;32"  ;;
   6?%)  echo  "0;32"  ;;
   5?%)  echo  "0;32"  ;;
   4?%)  echo  "0;33"  ;;
   3?%)  echo  "0;33"  ;;
   2?%)  echo  "0;33"  ;;
   1?%)  echo  "0;31"  ;; 
?%)  echo  "0;31;5"  ;;
 *)  echo  "0;35"  ;;

   esac
 fi
   }

function  acpi_color_prompt
   {
 PS1='\[\e[$(acpi_color)m\][$(acpi_charge)$(acpi_percent)][\t] 
\u:\w\$>\[\e[0;37m\] '
 #PS1="\[\e[$(acpi_color)m\]\h\$\[\e[0m\]  "
   }
   #  linux  console
   if  [  "$TERM"  =  "linux"  ];  then
 PROMPT_COMMAND=acpi_color_prompt
   fi
   function  echo_acpi
   {
 echo -n "($(acpi_charge)$(acpi_percent)) "
   }
.,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,..,-''-,. 



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


Re: Mouse

2003-03-05 Thread Jason Kraftcheck
Robert wrote:
I'm having trouble getting the touchpad on my laptop to work under 
debian woody
My laptop is a Gateway Solo 1200, and it has a synaptic

when i used dpkg-reconfigure on xserver-xfree86 and set it up as a 
default ps/2 mouse, the cursor only moved about in about a 640 x 480 
section of the screen (im running in 800 x 600 mode), and the actual 
selection point of the mouse is several inches off from where the cursor 
is (i.e. when i move as far over to the bottom right as i can i can 
click on the bottom right part of the screen, even though the cursor is 
not there)
when i set it to GlidePoint, the cursor was still bounded to the small 
box, but it moved very very slowly about

Not being able to move the pointer outside the 640x480 region sounds more 
like a problem with your X configuration than with the touchpad.  Do you 
have this problem with an external mouse?  Mice only report the change in 
position, not the absolute position.  So I don't /think/ there is any way 
the touchpad could impose bounds on the range of the pointer.

Is it just a problem with the mouse acceleration?  After dragging from the 
bottom-left corner of the touch pad to the top-right, if you lift your 
finger and then try dragging again from bottom-left to top-right, 
repeating that as necessary, can you still not get the pointer to move 
outside the 640x480 region?

The pointer icon not being the same as the pointer position is a bug 
somewhere.  I'm no expert on X-windows, but my first guess would be that 
in PS/2-mouse emulation mode of the touchpad has a bug where it is 
mis-reporting the position associated with a click event.  A second guess 
would be that you are using a video card driver that supports a hardware 
cursor (e.g. the NVidia binary driver) and there is a bug in that.

Perhaps using a synaptics touchpad driver rather than using the touchpad 
in mouse-emulation mode will help.  There was a pretty good X driver for 
synaptics touchpads at this site, but as you'll see if you go there, the 
site is no longer available.

http://www.mobilix.org/touchpad_driver.html

A quick web search also turned up this:

http://www.compass.com/synaptics/

The tpconfig driver at that site can be installed by doing:

apt-get install tpconfig



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


Re: grub on ext3

2003-03-10 Thread Jason Kraftcheck
mi wrote:
Does anybody know if grub can boot a kernel from an ext3 rootfilesystem,
( with a /boot directory) - or if it's necessary to have an ext2 /boot 
partition then ?
Didn't found anything explicitly in the docs...

As an ext3 filesystem can be mounted as ext2, I would think grub wouldn't 
care.  It would just treat it as ext2.  Of course, I haven't actually 
tried it...



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


Re: OK... Newbie gives up and needs a little help... Dell Inspiron8200 with Nvidia GEForce 440 GO...

2003-03-10 Thread Jason Kraftcheck
Peter S. Hayes wrote:
OK... I give up trying this without a little help...
 
I'm trying to get Debian Linux (woody...2.4.18) onto my Dell Inspiron 
8200 with the NVidia GE Force 440 Go video card (64 MB) of memory.
 
I have run through the installation a couple of times (each time the 
installation boot recognized my network card but "lost" any networking 
when the actual boot came up... my last install it worked) to get the 
network card operating.
 
Is there a listing for the network card (e.g. eth0) in /proc/net/dev?

I cannot get the Nvidia to work at all in X... I've downloaded NVidia's 
drivers (the two packages from their site) and tried making them... the 
"GLX" make works fine, but the "Kernel" package continually gives me 
errors about a missing header file... but I can find the header file in 
the location I specify, so something else is not quite kosher.
 
What is the header and where are you finding it?  My first guess is that 
the driver needs some kernel header, and that maybe you are finding a libc 
header of the same name in /usr/include.  Have you installed the 
kernel-headers for the kernel you are using.

Try doing:

apt-get install kernel-headers-2.4.18-686 # change for correct version
apt-get install -t unstable nvidia-glx-src
apt-get install -t unstable nvidia-kernel-src
The follow the instructions in
/usr/share/doc/nvidia-kernel-src/README.Debian.gz
and in
/usr/share/doc/nvidia-glx-src/README.Debian.gz

I tried the drivers included with the latest installation (Debian Woody) 
and had no luck there... I'm getting frustrated. Maybe I need some 
encouragement, maybe there's a suggestion that will work, maybe I need 
my head examined!
 
Try the drivers from unstable.



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


Re: How to setup for multiple nics?

2003-03-11 Thread Jason Kraftcheck
Chris Hoover wrote:
Hello,

I have a question,  I have a Dell Inspiron 8200 that has a 10/100 nic 
and a wireless nic.  I use this system both at work and home.  When I 
am at work, I am hard wired, but wireless at home.  Is there anyway to
set the bootup so that it only activates the 10/100 nic when at work 
and only the wireless when at home?

For the wired NIC, you might like ifplugd.  It will bring the interface 
up/down when the cable is inserted/removed.

If the wireless is a PCMCIA card and the cardmgr stuff is set up properly 
it shoud be brought up/down whenever the card is inserted/removed.  If the 
wireless NIC is internal, I don't know.  I'd just set up sudo and make 
aliases like "alias wup='sudo ifup eth1'", but it sounds like you want 
something more automated.





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


Re: XFree86.4.3.0 and some more

2003-03-17 Thread Jason Kraftcheck
Anders Malmberg wrote:
Hi!

I installed XFree86.4.3.0 last week because this version supported my
ATI Mobility Radeon 7500 screen. I have some problems after this.
(I am able to run startx and everything looks nice that far :)
1. The session manager is lost somewhere...
When I log on I only recieve the bw promt. How do
I fix that? I want to be able to choose from KDE and Gnome etc.
apt-get install kdm

2. When I lower my screen there is a switch which triggs the machine
into a APM mode or something. Everything gets black when the screen
is raised again and what I do to start work again is to re-log-on. Takes
some time. I would simply like to be able to lower my screen whenever
I need to.
This sounds like a bug in the graphics driver.  If you don't want to 
suspend when you close the cover, you can disable that in the BIOS.

3. Mouse problem. How do I detect external mouse in debian?

What kind of mouse (USB, PS/2, serial).  What interface is your 
trackpad/pointing-stick/whatever using (again, USB, PS/2, etc.)  If both 
are PS/2, then your BIOS should handle this.  If both the trackpad or 
whatever and the external mouse are using USB, you need to change the line 
'Option "Device" "/dev/input/mouse0" in your /etc/X11/XF86Config-4 to 
'Option "Device" "/dev/input/mice".  If your trackpad and external mouse 
are using different interfaces (e.g. one is USB and one is PS/2), then you 
need to add a second "InputDevice" section to your /etc/X11/XF86Config-4". 
 Something like this:

Section "InputDevice"
Identifier  "USB Mice"
Driver  "mouse"
Option  "SendCoreEvents"  "true"
Option  "Device"  "/dev/input/mice"
Option  "Protocol""ImPS/2"
Option  "Emulate3Buttons" "false"
Option  "ZAxisMapping""4 5"
EndSection
And in the "ServerLayout" section, add a line like the following:

InputDevice "USB Mice"

Note that the name on that line should match whatever the Identifier is in 
the "InputDevice" sections.  Use whatever identifier you want as long as 
both match.

Also, if the external mouse is USB, you need to make sure the following 
modules are loaded or load when X starts:

hid
usbmouse
mousedev
input
usb-uhci
usbcore
You might need
"usb-ohci" rather than "usb-uhci" depending on your chipset.
I assumed you do not have gpm installed and thus are not using the gpm 
repeater is your X mouse device.  If you are using gpm and both the 
trackpad and the mouse use the same interface (e.g. both USB), then you 
may need to fix the gpm settings instead of or in addition to changing 
your X config.


Any help?

thanks,
Anders.




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


Re: USB mouse not working in woody2.4

2003-03-28 Thread Jason Kraftcheck
Ben Southwood wrote:
All you Gurus: I can't work this out! (neither can Google!)

Well, I'm definitely not a guru, but I'm using a USB mouse on Debian, and 
can try to point out what is different in my setup.


My USB mouse does not work. The lights are on but nobodies home...


but lsmod shows:
Module Size Used by Not tainted
soundcore 3236 0 (autoclean)
radeon 92472 0
ds 6624 2
i82365 22416 2
pcmcia_core 41408 0 [ds i82365]
irtty 7456 2 (autoclean)
irda 138796 1 (autoclean) [irtty]
nls_cp437 4384 4 (autoclean)
cpuid 1184 0 (unused)
apm 9148 2
usbmouse 1760 0 (unused)
hid 18816 0 (unused)
orinoco 29568 0 (unused)
hermes 3296 0 [orinoco]
ieee1394 23528 0 (unused)
keybdev 1664 0 (unused)
usbkbd 2848 0 (unused)
input 3072 0 [usbmouse hid keybdev usbkbd]
usb-uhci 20708 0 (unused)
usbcore 48032 0 [usbmouse hid usbkbd usb-uhci]
Try loading "mousedev" rather than "usbmouse".


So I used usbmouse as driver:
Section "InputDevice"
Identifier "USB Mice"
Driver "usbmouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
# Option "Buttons" "5"
EndSection

This is what I have:

Section "InputDevice"
Identifier  "USB Mice"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/input/mice"
Option  "Protocol""ImPS/2"
Option  "Emulate3Buttons" "false"
Option  "ZAxisMapping""4 5"
EndSection
You might want to change "CorePointer" to "SendCoreEvents", or maybe you 
have that option specified in your "ServerLayout" section instead.



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


Re: Infamous Mouse Wheel Problem

2003-06-09 Thread Jason Kraftcheck
Dan Rasmussen wrote:
Hello,

I've been suffering under Linux without the use of my mouse wheel for
some time now, and would like to do something about it.  I've got an IBM
Thinkpad 560x and a two-button PS/2 Microsoft Intellimouse.  I searched
linux-laptop.org for my model, but the two references to my laptop were
both written a long time ago and neither mentioned wheel mouses.
I tried using the program "mdetect," but it didn't seem to do anything
useful...
Relevant lines in my "XF86Config-4" are:

Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver  "mouse"
   Option  "CorePointer"
   Option  "Device""/dev/psaux"
PS/2 device.

   Option  "Protocol"  "PS/2"
Three-button two-axis protocol (no scroll wheel.)

   Option  "Emulate3Buttons"   "true"
   Option  "ZAxisMapping"  "4 5"
I don't think this option will have any effect with the 'PS/2' protocol.

EndSection

Section "InputDevice"
  Identifier  "Generic Mouse"
  Driver  "mouse"
  Option  "SendCoreEvents""true"
  Option  "Device""/dev/input/mice"
USB mice.

  Option  "Protocol"  "ImPS/2"
MS Intellipoint-over-PS/2 protocol (probably what you want for a scroll 
mouse.)

  Option  "Emulate3Buttons"   "true"
Are you sure you want this with a scroll mouse.  Clicking the wheel should 
work a real middle button.  I guess it doesn't hurt to have it specified 
anyway.

  Option  "ZAxisMapping"  "4 5"
EndSection 
 
I spent a good time playing around with the protocol option and the
CorePointer option before getting annoyed, and realizing I was wasting my
time and that there must be a better way.  To be honest, I'm not sure
which of the devices is my PS/2 mouse and which is the internal
eraser-style mouse.  When I start my laptop up without the PS/2 mouse
plugged in, the internal works, and vice versa, ie they don't both
function at the same time unless I plug in the PS/2 after I've booted
up.
I don't know of a good solution for this.  It sounds like there is no USB 
mouse (the second 'InputDevice' section above is not used.)  You can only 
have one PS/2 mouse connected at a time.  There are two ways this is 
implemented (in the BIOS): 1) The trackpad/pointer/whatever is disabled 
when an external mouse is connected or 2) The BIOS combines events from 
the on-board and external pointer.

For 1), you need some way to change the driver when you connect the mouse. 
 I can't think of a pleasant way to do this.  You could specify multiple 
'InputDevice' sections for '/dev/psaux' and multiple 'ServerLayout' 
sections each using a different one of the 'InputDevice' sections.  Then 
restart X specifying the 'ServerLayout' you want on the command line (e.g. 
"startx -- -layout wheel".

For 2), I don't think there is an answer.  X doesn't talk directly to the 
mouse, it talks to the BIOS 'mouse combiner' which probably doesn't do 
scroll wheels.  You could try just specifying 'imps/2' for the protocol 
and see if your trackpad/eraser/whatever works without an external mouse 
connected.

That's all I can think of right now.  Eagerly awaiting being able to
scroll through documents without moving my arms/wrist,
Dan
The easiest solution is to get a USB mouse.  This whole mess stems from 
the fact that you can only have one PS/2 pointer and the internal device 
is a PS/2 pointer.  You can have all the USB pointing devices you want.

--
jason kraftcheck


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


Re: Dell 8000 problems -- 4-way split screen

2003-06-13 Thread Jason Kraftcheck
Nori Heikkinen wrote:
Hi all,

I'm trying to install debian on a Dell Inspiron 8000.  It's being a
little less cooperative than the desktop systems I'm used to! 

My main problem right now is that on the console (i haven't even
gotten X up yet), the screen is normal for the top quarter, and then
redraws itself ontop of itself beginning at the 1-quarter, half, and
3-quarter marks.  The result is pretty legible for the second quarter,
but absolutely illegible at the bottom.
Try pressing 'Fn-F7' (or whichever key on your keyboard has the little 
'font' label.  It's F7 on my Inspiron 4100) to change the screen font.

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


Re: can't bring up eth0 correctly

2003-06-16 Thread Jason Kraftcheck
charles yoo wrote:
I just went through my woody install on Inspiron 8200.  On the initial 
installation, it gets its ip via dhcp.  All good.  I did an apt-get for 
the 2.4-18 kernel, recompiled it with some changes, restart and no 
more.  On ifconfig I see lo and eth0, but I don’t get anything.

 

In /etc/interfaces I have auto eth0 commented out and eth0 set for dhcp.

 
Shouldn't that be "/etc/network/interfaces"?

I'm a little confused about what you are trying to do, and what exactly is 
failing.  The line "auto eth0" that you commented out is the line that 
causes the interface to be configured on boot.  It is quite common to not 
want the interface to be configured on boot for a laptop.  However, if you 
remove the 'auto' entry, you need manually bring up the interface using 
'ifup eth0'.  Have you tried doing that?

If I manually try to assign the numbers it seems like it takes it.  But 
when I add route gateway, I get that there is no such device.

Did you bring up the interface after setting the address?  Presumably you 
are using ifconfig to set the address.  Try "ifconfig eth0 up".

 

Any suggestions?

 
Your /etc/network/interfaces file should look something like this:

#auto eth0
iface eth0 inet dhcp
You should then bring up the interface by doing:
ifup eth0
If the interface fails to come up, check your system logs for error 
messages.

I think you might need to post a bit more information before anyone can be 
any more specific with an answer.
  What is the network chip?
  Is it pcmcia/pccard or internal?
  What are the contents of your /etc/network/interfaces
  What commands are you using to set the IP address?
  What error message are you getting when you try to set the default route?
  What related error messages are you seeing in your syslog?
  What dhcp client do you have installed?

-- jason



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


Re: can't bring up eth0 correctly

2003-06-16 Thread Jason Kraftcheck
charles yoo wrote:
I should have written /etc/network/interfaces.

In reading a few things on the net, a lot of people suggested to have the
autho eth0 commented out.  This is for a laptop.  I'm coming from redhat,
and once dhcp is set, you can more or less leave it that way.
All that I'm trying to do at the moment is get eth0 up and running.  I get
alerts saying that there is no such process or device.
When I restart networking, I expect to see eth0 come up, but it doesn't.
Please read more carefully what I wrote below.  If you comment out the 
'auto eth0' entry, eth0 will not come up when you restart networking.  Try 
'ifup eth0' to manually bring up the interface.

In /etc/network/interfaces, I have the following information

I am basically looking to configure for dhcp only.  I have removed netenv,
because it did not seem to work too well for me.  Maybe misconfigured.
Please consider including the additinion information I listed in my first 
message, as it will make it easier for others to help you.  (And please 
include the actual contents of your /etc/network/interfaces rather than 
your summary of the contents.)

-- jason



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


Re: ATI Mobility RADEON 7000

2003-07-29 Thread Jason Kraftcheck
Rene Cunningham wrote:
On Thu, Jul 24, 2003 at 07:51:23PM +0300, gustavo wrote:



Ive got an R40 with a Radeon M6 7000. xfree86 natively supports this
card with the vesa driver. If you want 3d acceleration you need to
follow this good tutorial.
http://www.debianplanet.org/node.php?id=253

Those instructions are quite old.  The 4.2.1 version of XFree86 in testing 
seems to support radeon chips fine (with 2d & 3d acceleration.)  A 
resonably recent kernel should also have an acceptable dri module.

To enable 2D acceleration, in the "Device" setion of 
/etc/X11/XF86Config-4,  change/set the Driver option to:
  Driver "radeon"
and restart X.

To enable 3D acceleration, in addition to the above step, use modconf to 
load the drivers/char/drm/radeon module and restart X.



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


Re: No fsck in battery mode

2003-09-02 Thread Jason Kraftcheck
Cristian Ionescu-Idbohrn wrote:
On Mon, 1 Sep 2003, Derek Broughton wrote:


From: "Frédéric Bothamy" <[EMAIL PROTECTED]>

Except that since it is under /usr, it might not be available at fsck
time (that is, before /usr is mounted in /etc/rcS.d/S30checkfs.sh).
Doh!  Of course you're right.  I wonder if it could be copied to /boot
and still work?


Sure:

$ ldd /usr/bin/on_ac_power
not a dynamic executable
That is the response ldd usually gives for a shell script.  You need to do 
'ldd' for every executable called by the script, and the interpreter (the 
shell) to determine which libraries the script depends on.

-- jason kraftcheck

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


Re: usb mouse not recognised in kernel 2.4.22

2003-09-09 Thread Jason Kraftcheck
Cristian Ionescu-Idbohrn wrote:
On Tue, 9 Sep 2003, Ben wrote:

These are the relevant modules (wrt. the usb mouse) lsmod shows on my
laptop (acer tm 634), kernel 2.4.19:
mousedev3736   0  (unused)
hid17892   0  (unused)
usbmouse1784   0  (unused)
input   3296   0  [mousedev hid usbmouse]
usb-ohci   17672   0  (unused)
usb-ohci - USB support for Compaq, iMac, SiS, ALi, etc. chipsets


usbcore54592   1  [hid usbmouse usb-ohci]

# lspci
00:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:14.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
And these on desktop, kernel 2.4.18:

mousedev4308   1
hid19428   0  (unused)
input   3648   0  [mousedev hid]
usb-uhci   23664   0  (unused)
usb-uhci - USB support for Intel, VIA, etc. chipsets

usbcore62924   1  [hid usb-uhci]

# lspci
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
You want usb-uhci, not usb-ohci.



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


Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-10 Thread Jason Kraftcheck
Shyamal Prasad wrote:
"Bob" == Bob Proulx <[EMAIL PROTECTED]> writes:

Bob> ben wrote:
>> if i enter modconf on my latest compile no usbmouse shows up,
>> however if i lsmod it appears. I am still not sure if this is
>> the problem as my kernel 2.4.18 (bf24) has this module loaded
>> and the mouse works, but I am willing to try anything at this
>> stage!
Bob> For USB mice and a modular kernel I have found experimentally
Bob> that I need to load the following two drivers.
Bob>   echo hid >> /etc/modules 
Bob>   echo mousedev >> /etc/modules

Bob>   modprobe hid modprobe mousedev

Bob> With these loaded everything works fine for me.

There was a time I actually understood the USB subsystem (two years
ago or so). Now all I do is
- use a stock Debian woody kernel (2.4.18-{k7|686}) in my case)
- apt-get install hotplug
and it all works pretty much by itself. With my USB keyboard and mouse
I see
$ /sbin/lsmod | grep usb
usbkbd  2944   0 (unused)
usbmouse1792   0 (unused)
input   3424   0 [keybdev usbkbd mousedev hid usbmouse]
usb-uhci   21508   0 (unused)
usbcore49696   1 [usbkbd hid usbmouse usb-uhci]
You don't need usbkdb or usbmouse.  For USB mouse and keyboard support 
you should have:
  usbcore
  usb-[ou]hci
  input
  hid
  mousedev
  keybdev



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


Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-10 Thread Jason Kraftcheck
Shyamal Prasad wrote:
"Bob" == Bob Proulx <[EMAIL PROTECTED]> writes:

Bob> ben wrote:
>> if i enter modconf on my latest compile no usbmouse shows up,
>> however if i lsmod it appears. I am still not sure if this is
>> the problem as my kernel 2.4.18 (bf24) has this module loaded
>> and the mouse works, but I am willing to try anything at this
>> stage!
Bob> For USB mice and a modular kernel I have found experimentally
Bob> that I need to load the following two drivers.
Bob>   echo hid >> /etc/modules 
Bob>   echo mousedev >> /etc/modules

Bob>   modprobe hid modprobe mousedev

Bob> With these loaded everything works fine for me.

There was a time I actually understood the USB subsystem (two years
ago or so). Now all I do is
- use a stock Debian woody kernel (2.4.18-{k7|686}) in my case)
- apt-get install hotplug
and it all works pretty much by itself. With my USB keyboard and mouse
I see
$ /sbin/lsmod | grep usb
usbkbd  2944   0 (unused)
usbmouse1792   0 (unused)
input   3424   0 [keybdev usbkbd mousedev hid usbmouse]
usb-uhci   21508   0 (unused)
usbcore49696   1 [usbkbd hid usbmouse usb-uhci]
You don't need usbkdb or usbmouse.  For USB mouse and keyboard support 
you should have:
  usbcore
  usb-[ou]hci
  input
  hid
  mousedev
  keybdev



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


Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck
ben wrote:
things are getting messy here.

Thanks to everyone that has replied, I greatly appreciate your replies,
however the messages are getting confused.
I have reposted this to try and clear things up a little.

I do not have usb-ohci installed. I am running an Asus laptop with Intel
chipset and using usb-uhci
My lsmod shows:
zeus:/home/ben# lsmod
Module  Size  Used byNot tainted
orinoco_cs  4372   1
mousedev3832   1
nls_cp437   4348   2  (autoclean)
usb-uhci   21804   0  (unused)
asus_acpi   7676   0
thermal 6432   0  (unused)
processor   8780   0  [thermal]
fan 1568   0  (unused)
button  2508   0  (unused)
battery 5856   0  (unused)
ac  1792   0  (unused)
microcode   3424   0  (unused)
msr 1640   0  (unused)
cpuid   1224   0  (unused)
radeonfb   22636   0  (unused)
fbcon-cfb8  3336   0  [radeonfb]
fbcon-cfb24 4200   0  [radeonfb]
fbcon-cfb16 3912   0  [radeonfb]
fbcon-cfb32 3752   0  [radeonfb]
hid16836   0  (unused)
usbcore58368   1  [usb-uhci hid]
i810_audio 24968   1
ac97_codec 12076   0  [i810_audio]
orinoco33036   0  [orinoco_cs]
hermes  5252   0  [orinoco_cs orinoco]
busmouse3260   0  (unused)
input   3488   0  [mousedev]
As you can see only mousedev is using input what have I done wrong??!!

AFAIK, you have the correct modules loaded.  Try booting without starting 
X.  Do you see the message at the console when you connect the mouse?  If 
you do 'cat /dev/input/mice' and move the mouse, do you get any output?



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


Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck
Cristian Ionescu-Idbohrn wrote:
On Thu, 11 Sep 2003, ben wrote:


For comparison, this is what I have om my acer:

Module  Size  Used byNot tainted
mousedev3736   1
usbmouse1784   0  (unused)  <-- tho it says 'unused',
if I 'rmmod' it the usb
mouse stops working
You really shouldn't need usbmouse loaded, AFAIK.  I may very well be 
mistaken about that, though.  Would you mind checking two things?  If I'm 
mistaken about this I'd like to find out before I mis-inform anyone else.

Are you using /dev/input/mice with major 13, minor 63 as the mouse device?

Rather than loading and then unloading usbmouse, which may mess things up, 
try not loading usbmouse at all.  Does the mouse not work then?  Does it 
start working when you load usbmouse?

thanks much,

-- jason kraftcheck

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


Re: usb mouse not recognised in kernel 2.4.22 (continued)

2003-09-11 Thread Jason Kraftcheck
ben wrote:
note 1 : the mouse works fine in kernel 2.4.18, but not in kernel 2.4.22 
- on the same machine.
Have you tested without X or gpm running?  When I upgraded to 2.4.22 I 
noticed some issues when X tried to open /dev/input/mice before mousedev 
was loaded.

note 2: lsmod while running 2.4.18 shows
input   3456   0  [keybdev mousedev hid]
lsmod while running 2.4.22 shows
input   3456   0  [mousedev]
I presume from this that for some reason hid is not using input, but I 
can't figure out why!
That's strage.  I don't know if it is supposed to be or not, as I linked 
most of the USB subsystem (including HID) into my kernel rather than 
building them as modules.

Do you get a USB event when you connect your mouse?  You should see 
something like the following in /var/log/messages:

Sep 11 10:37:55 localhost kernel: hub.c: new USB device 00:1d.0-1, 
assigned address 13
Sep 11 10:37:55 localhost kernel: input: USB HID v1.10 Mouse [Microsoft 
Microsoft USB Mouse] on usb1:13.0



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


Re: Dualhead on laptop

2003-10-24 Thread Jason Kraftcheck
Nicolas wrote:
Anyone get an exernal monitor working as a second screen (not twinview) with 
geforce2go (or what ever card you have)?  I tried as in the nVidia doc, but 
without success.  If I don't specify "screen 0" or "screen 1" in the Device 
section, the second monitor don't receive signal.  If I specify it, the 
laptop freeze :o(  If you need my XF86Config file, just let me know.
If you are using NVidia's twin-view feature, then the driver presents the 
both screens to the xserver as a single screen.  You should have only one 
Screen section.  You need to read NVidia's documentation on how to set up 
twinview.  My guess is that you probably want to add something like the 
following to your 'Device' section:

# Enable Twinview
option "TwinView""true"
# Force types of connected displays
# Options are TV, CRT, DFP
option "ConnectedMonitor""DFP,DFP"
# Frequencies for second monitor
option "SecondMonitorHorizSync""30-107"
option "SecondMonitorVertRefresh" "75"
# Real modes for each display
option "MetaModes" "1280x1024, 1280x1024; 1152x864, 1152x864; 
1024x768, 1024x768; 800x600, 800x600; 640x480, 640x480"

# Screen layout
option "TwinViewOrientation""LeftOf"
If that doesn't work, you can present the screens separately to the X 
server and combine them using the Xinerama extension.  To do this, you 
need to specify two 'Device' sections (and two Monitor sections and two 
Screen sectoins.)  The first five lines of each of the device sections 
should be something like:
Section "Device"
Identifier"driver0"
Driver"nvidia"
BusID "PCI:1:0:0"
Screen0
option"TwinView""false"
and
Identifier"driver1"
Driver"nvidia"
BusID "PCI:1:0:0"
Screen1
option"TwinView""false"

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


Re: add kernel modules

2003-11-06 Thread Jason Kraftcheck
Tom wrote:
Hi list,

i am trying to install debian on a dell inspiron 5000e, using netinst
cd image.
however the pcmcia xircom card won't work. Silly problem: i just don't
know how to add the tulip module. i have it on disk, but can't tell
the installer to look there. 

any help is appreciated.

I'm not familiar with the current installer (been a while since I 
installed on a new box), but the following has worked for me in the past:
 - do ctrl-alt-F2 to switch out of the installer to a console
 - if necessary mount the partition where you have tulip.o
 - insmod tulip.o

--
jason kraftcheck


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


Re: hardware acceleration for GeForce2Go -- GL_EXT_bgra not supported

2003-12-05 Thread Jason Kraftcheck
Philipp Bliedung wrote:
Hi,

How can I activate hardware acceleration for my GeForce2Go Grafikkarte  
-- Dell Inspiron 8100 ??

When I try to start Americas Army (www.americasarmy.com) i get this 
error message:

~/programs/armyops$ ./armyops
GL_EXT_bgra not supported - bailing out.
History:
Exiting due to error
I am running Debian woody with backports for Gnome 2.4 and KDE 3.1 ...
(NVidia driver: 1.0-4363)
How can I activate GL_EXT_bgra support ??

glxinfo gives me this:
[...]
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
  GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
  GLX_SGIX_pbuffer
[...]
I see GL_EXT_bgra listed further down in the glxinfo output (in the 
"OpenGL extensions" section):

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro4 700 XGL/AGP/SSE2
OpenGL version string: 1.4.0 NVIDIA 44.96
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
...


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


Re: How to make touchpad more responsive?

2003-12-05 Thread Jason Kraftcheck
Pål Dahle wrote:
Hi all,

I have a Dell D600 running under kernel 2.4.23 and XFree86 4.3.0
The screen resolution is 1400x1050.
Great machine, but there is one thing irritating me alot:

To move the pointer across one of the screen diagonals using the 
touchpad I have to slide a finger across the pad some 3.5 times.

Is there a way to make the touchpad more responsive?

Are you using a touchpad driver or just a generic mouse driver?  If the 
former, check the configuration options for the driver.  For the latter, 
try using 'xset m ...' to change the mouse acceleration.


By the way, I have search the web extensively the last few days,
and have problems figuring out whether the Pentium-M processor
is a CONFIG_MPENTIUMIII or a CONFIG_MPENTIUM4. My impression is
that most people say PENTIUM4, but based on the core content of
my web-search I have compiled it as a PENTIUMIII.
I'm not sure, but I think the Pentium-M is based on the PIII design, while 
the Pentium4-M is obviously a P4.  Unless someone more knowledgeable about 
both the differences between P-M and P4 and the specifics of how that 
affects whatever you care compiling gives you better advice, I suggest 
going the safe route and assuming PIII.



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


Re: wireless keyboard and mouse usb

2004-03-16 Thread Jason Kraftcheck
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jesús Pérez wrote:
> Hi,
>
> how can install wireless keyboard and mouse usb in my laptop ?
>
> laptop: Aspire 1400LC
> debian sid
> kernel 2.4.25

Nothing special about wireless.  To setup a USB mouse and keyboard:

If you are not set up yet to use USB in general, run modconf and load
one of usb-uhci or usb-ohci from kernel/drivers/usb/host.  Which one
depends on your chipset.  Also, load ehci-hcd for USB2.0 devices.

Run modconf.  From the kernel/drivers/input section, load mousedev and
keybdev.  The following modules should have been loaded implicitly at
this point, check the output of lsmod to verify:  hid, usbcore,
usbmouse.  If any is missing, go back into modconf and load it.

That should be all that is required for the keyboard.  For the mouse,
you need to update X, gpm or whatever to get mouse input from
/dev/input/mice.  To update X, assuming you are not using gpm, add the
following section to your /etc/X11/XF86Config-4:

Section "InputDevice"
Identifier  "USB Mouse"
Driver  "mouse"
Option  "SendCoreEvents"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "False"
Option  "ZAxisMapping"  "4 5"
EndSection

Also, add the following line to your 'Section "ServerLayout"' in
/etc/X11/XF86Config-4:
InputDevice "USB Mouse"

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAV5obtz89Cxpq7SYRAqr3AJ9spnqNv8opHOVixGUUdDLHzMSKAACgl1lx
Ke8m/sMnJ6qlX3CSFX7Mb3o=
=Gp/F
-END PGP SIGNATURE-


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



Re: Dualhead on laptop

2003-10-24 Thread Jason Kraftcheck

Nicolas wrote:
Anyone get an exernal monitor working as a second screen (not twinview) with 
geforce2go (or what ever card you have)?  I tried as in the nVidia doc, but 
without success.  If I don't specify "screen 0" or "screen 1" in the Device 
section, the second monitor don't receive signal.  If I specify it, the 
laptop freeze :o(  If you need my XF86Config file, just let me know.


If you are using NVidia's twin-view feature, then the driver presents the 
both screens to the xserver as a single screen.  You should have only one 
Screen section.  You need to read NVidia's documentation on how to set up 
twinview.  My guess is that you probably want to add something like the 
following to your 'Device' section:


# Enable Twinview
option "TwinView""true"

# Force types of connected displays
# Options are TV, CRT, DFP
option "ConnectedMonitor""DFP,DFP"

# Frequencies for second monitor
option "SecondMonitorHorizSync""30-107"
option "SecondMonitorVertRefresh" "75"

# Real modes for each display
option "MetaModes" "1280x1024, 1280x1024; 1152x864, 1152x864; 
1024x768, 1024x768; 800x600, 800x600; 640x480, 640x480"


# Screen layout
option "TwinViewOrientation""LeftOf"


If that doesn't work, you can present the screens separately to the X 
server and combine them using the Xinerama extension.  To do this, you 
need to specify two 'Device' sections (and two Monitor sections and two 
Screen sectoins.)  The first five lines of each of the device sections 
should be something like:

Section "Device"
Identifier"driver0"
Driver"nvidia"
BusID "PCI:1:0:0"
Screen0
option"TwinView""false"
and
Identifier"driver1"
Driver"nvidia"
BusID "PCI:1:0:0"
Screen1
option"TwinView""false"



Re: add kernel modules

2003-11-06 Thread Jason Kraftcheck

Tom wrote:

Hi list,

i am trying to install debian on a dell inspiron 5000e, using netinst
cd image.

however the pcmcia xircom card won't work. Silly problem: i just don't
know how to add the tulip module. i have it on disk, but can't tell
the installer to look there. 


any help is appreciated.



I'm not familiar with the current installer (been a while since I 
installed on a new box), but the following has worked for me in the past:

 - do ctrl-alt-F2 to switch out of the installer to a console
 - if necessary mount the partition where you have tulip.o
 - insmod tulip.o


--
jason kraftcheck




Re: hardware acceleration for GeForce2Go -- GL_EXT_bgra not supported

2003-12-05 Thread Jason Kraftcheck

Philipp Bliedung wrote:

Hi,

How can I activate hardware acceleration for my GeForce2Go Grafikkarte  
-- Dell Inspiron 8100 ??


When I try to start Americas Army (www.americasarmy.com) i get this 
error message:


~/programs/armyops$ ./armyops
GL_EXT_bgra not supported - bailing out.
History:
Exiting due to error

I am running Debian woody with backports for Gnome 2.4 and KDE 3.1 ...
(NVidia driver: 1.0-4363)

How can I activate GL_EXT_bgra support ??

glxinfo gives me this:
[...]
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
  GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
  GLX_SGIX_pbuffer
[...]


I see GL_EXT_bgra listed further down in the glxinfo output (in the 
"OpenGL extensions" section):


OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro4 700 XGL/AGP/SSE2
OpenGL version string: 1.4.0 NVIDIA 44.96
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
...




Re: How to make touchpad more responsive?

2003-12-05 Thread Jason Kraftcheck

Pål Dahle wrote:

Hi all,

I have a Dell D600 running under kernel 2.4.23 and XFree86 4.3.0
The screen resolution is 1400x1050.

Great machine, but there is one thing irritating me alot:

To move the pointer across one of the screen diagonals using the 
touchpad I have to slide a finger across the pad some 3.5 times.


Is there a way to make the touchpad more responsive?



Are you using a touchpad driver or just a generic mouse driver?  If the 
former, check the configuration options for the driver.  For the latter, 
try using 'xset m ...' to change the mouse acceleration.




By the way, I have search the web extensively the last few days,
and have problems figuring out whether the Pentium-M processor
is a CONFIG_MPENTIUMIII or a CONFIG_MPENTIUM4. My impression is
that most people say PENTIUM4, but based on the core content of
my web-search I have compiled it as a PENTIUMIII.



I'm not sure, but I think the Pentium-M is based on the PIII design, while 
the Pentium4-M is obviously a P4.  Unless someone more knowledgeable about 
both the differences between P-M and P4 and the specifics of how that 
affects whatever you care compiling gives you better advice, I suggest 
going the safe route and assuming PIII.





Re: wireless keyboard and mouse usb

2004-03-16 Thread Jason Kraftcheck
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jesús Pérez wrote:
> Hi,
>
> how can install wireless keyboard and mouse usb in my laptop ?
>
> laptop: Aspire 1400LC
> debian sid
> kernel 2.4.25

Nothing special about wireless.  To setup a USB mouse and keyboard:

If you are not set up yet to use USB in general, run modconf and load
one of usb-uhci or usb-ohci from kernel/drivers/usb/host.  Which one
depends on your chipset.  Also, load ehci-hcd for USB2.0 devices.

Run modconf.  From the kernel/drivers/input section, load mousedev and
keybdev.  The following modules should have been loaded implicitly at
this point, check the output of lsmod to verify:  hid, usbcore,
usbmouse.  If any is missing, go back into modconf and load it.

That should be all that is required for the keyboard.  For the mouse,
you need to update X, gpm or whatever to get mouse input from
/dev/input/mice.  To update X, assuming you are not using gpm, add the
following section to your /etc/X11/XF86Config-4:

Section "InputDevice"
Identifier  "USB Mouse"
Driver  "mouse"
Option  "SendCoreEvents"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "False"
Option  "ZAxisMapping"  "4 5"
EndSection

Also, add the following line to your 'Section "ServerLayout"' in
/etc/X11/XF86Config-4:
InputDevice "USB Mouse"

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAV5obtz89Cxpq7SYRAqr3AJ9spnqNv8opHOVixGUUdDLHzMSKAACgl1lx
Ke8m/sMnJ6qlX3CSFX7Mb3o=
=Gp/F
-END PGP SIGNATURE-