Re: [Xpert] Re: [Xpert]mouse configuration

2003-01-07 Thread Fabian Niestroj
 What version is your linux kernel?
 
 I had this problem with a logitech usb mouse when using a 2.2 kernel. 
 The mouse would freeze up whenever there was any load at all, and on a 
 2Ghz P4.  Upgrading my kernel to 2.4.19 fixed the problem.  This was 
 with debian sid.

It's kernel 2.4.19. My kernel shouldn't be a problem.
I tried to kompile logitech-resolution.c but I get theses error messages after 
typing gcc logitech-resolution.c
/tmp/ccffOufp.o: In function `get_resolution':
/tmp/ccffOufp.o(.text+0xd): undefined reference to `usb_open'
/tmp/ccffOufp.o(.text+0x2e): undefined reference to `usb_control_msg'
/tmp/ccffOufp.o(.text+0x45): undefined reference to `usb_strerror'
/tmp/ccffOufp.o(.text+0x61): undefined reference to `usb_close'

libusb is on my system in version 0.1.5-118

You seem not to have problems compiling.

Fabian



__
Ent- oder weder? Nein! Wer den nicht kauft, der platzt vor Neid: 
M E D I O N - PC P4 2.4 kompl. nur 969,- http://www.mempag.de/xmas3.php

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert] Re: [Xpert]mouse configuration

2003-01-07 Thread Michael Toomim
Fabian Niestroj wrote:

I tried to kompile logitech-resolution.c but I get theses error messages after typing gcc logitech-resolution.c
/tmp/ccffOufp.o: In function `get_resolution':
/tmp/ccffOufp.o(.text+0xd): undefined reference to `usb_open'
/tmp/ccffOufp.o(.text+0x2e): undefined reference to `usb_control_msg'
/tmp/ccffOufp.o(.text+0x45): undefined reference to `usb_strerror'
/tmp/ccffOufp.o(.text+0x61): undefined reference to `usb_close'

libusb is on my system in version 0.1.5-118

You seem not to have problems compiling.


You need to tell gcc to link with libusb.so.

Try gcc -lusb logitech-resolution.c.  The result will go into a.out.

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert] Re: [Xpert]mouse configuration

2003-01-06 Thread Michael Toomim
Brad Hards wrote:

This is the application. Probably doesn't work with your mouse though.

In addition to mouse resolution, it can test wireless features and disable 
smart scroll on some mice.

Requires: libusb (http://libusb.sf.net)

This is awesome.  Is there a reason it hasn't been folded into X?

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert] Re: [Xpert]mouse configuration

2003-01-06 Thread Michael Toomim
What version is your linux kernel?

I had this problem with a logitech usb mouse when using a 2.2 kernel. 
The mouse would freeze up whenever there was any load at all, and on a 
2Ghz P4.  Upgrading my kernel to 2.4.19 fixed the problem.  This was 
with debian sid.

Fabian Niestroj wrote:
Hi.

When the system load is high, for example a program is starting or mozilla is loading a page, and I'm moving the mouse, the pointer on the screen is not moving continuously but jumping. Is there a way to fix it?

My system: Geforce2 MX, Athlon TB 800, mouse: optic, wheel, ps2/usb, SuSE 8.1, XFree 4.0.2, Nvidia 1.0-4191.

My XF86Config:
Section InputDevice
  Driver   mouse
  Identifier   Mouse[1]
  Option   ButtonNumber 3
  Option   Device /dev/input/mice
  Option   Name Autodetection
  Option   Protocol imps/2
  Option   Vendor Sysp
  Option   ZAxisMapping 4 5
  Option   Resolution 300
EndSection

I tried to optimize the mouse: According to Logitech the resolution of the mouse is higher if the usb connector is used. But then I read the option Resolution is only applicable if the ps2 connector is used. And what values for Resolution are allowed? Although the mouse is now connected to a usb port, the protocol is imps/2 and not usb.

The document Mouse Support in XFree86 couldn't answer my questions.

Thanks for your help.

Fabian
__
Ihr FreeMail-Postfach kann von jedem Telekom Festnetzanschluss erreicht
werden? Mit der Voicebox - http://freemail.web.de/features/?mc=021163

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert] Re: [Xpert]mouse configuration

2003-01-03 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On Thursday 02 January 2003 22:45, [EMAIL PROTECTED] wrote:
 There can be a number of causes - the mouse is not sampled often enough is
 unlikely. More likely is that X isn't getting enough cycles to update
 everything at the same time, or isn't getting cycles often enough to
 provide the illusion of smooth movement.

Under Debian, X runs with priority -10 which should help to prevent this. 
Maybe increasing the priority of X will help (renice -10 `pidof XFree86`).

- -- 
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://chrishowells.co.uk, PGP key: http://chrishowells.co.uk/pgp.txt
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+FNXNF8Iu1zN5WiwRAqXOAJ40RG906Co8cNu18DjkiZas595jHgCfa6/I
NmXnCCYUJhw8VqUtk8pZK+4=
=IW47
-END PGP SIGNATURE-

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert] Re: [Xpert]mouse configuration

2003-01-03 Thread bradh
Quoting Fabian Niestroj [EMAIL PROTECTED]:

 Hi.
 
 When the system load is high, for example a program is starting or
 mozilla is loading a page, and I'm moving the mouse, the pointer on the
 screen is not moving continuously but jumping. Is there a way to fix
 it?
There can be a number of causes - the mouse is not sampled often enough is 
unlikely. More likely is that X isn't getting enough cycles to update 
everything at the same time, or isn't getting cycles often enough to provide 
the illusion of smooth movement.

 I tried to optimize the mouse: According to Logitech the resolution of
 the mouse is higher if the usb connector is used. But then I read the
 option Resolution is only applicable if the ps2 connector is used. And
 what values for Resolution are allowed? Although the mouse is now
 connected to a usb port, the protocol is imps/2 and not usb.
There is a way to modify the resolution of the sensor on some Logitech USB mice 
(400dpi or 800dpi) - you need to use certain vendor specific (non-standard) 
commands. It works on most mice that have the dual optical sensor. I can't 
tell if your mouse is one of those that are supported (since you didn't bother 
to identify the mouse), but from memory, MX300, MX500, and recent iFeel are 
amongst those that are supported. I have a full list at home.

I also have an application to check what setting is in use, and to change the 
setting. I guess I should post it here. Ping me in a couple of days if I forget.

Brad
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]mouse configuration

2003-01-02 Thread Fabian Niestroj
Hi.

When the system load is high, for example a program is starting or mozilla is loading 
a page, and I'm moving the mouse, the pointer on the screen is not moving continuously 
but jumping. Is there a way to fix it?

My system: Geforce2 MX, Athlon TB 800, mouse: optic, wheel, ps2/usb, SuSE 8.1, XFree 
4.0.2, Nvidia 1.0-4191.

My XF86Config:
Section InputDevice
  Driver   mouse
  Identifier   Mouse[1]
  Option   ButtonNumber 3
  Option   Device /dev/input/mice
  Option   Name Autodetection
  Option   Protocol imps/2
  Option   Vendor Sysp
  Option   ZAxisMapping 4 5
  Option   Resolution 300
EndSection

I tried to optimize the mouse: According to Logitech the resolution of the mouse is 
higher if the usb connector is used. But then I read the option Resolution is only 
applicable if the ps2 connector is used. And what values for Resolution are allowed? 
Although the mouse is now connected to a usb port, the protocol is imps/2 and not 
usb.

The document Mouse Support in XFree86 couldn't answer my questions.

Thanks for your help.

Fabian
__
Ihr FreeMail-Postfach kann von jedem Telekom Festnetzanschluss erreicht
werden? Mit der Voicebox - http://freemail.web.de/features/?mc=021163

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]mouse configuration

2003-01-02 Thread bhards
Quoting Fabian Niestroj [EMAIL PROTECTED]:

 Hi.

 When the system load is high, for example a program is starting or
 mozilla is loading a page, and I'm moving the mouse, the pointer on the
 screen is not moving continuously but jumping. Is there a way to fix
 it?
There can be a number of causes - the mouse is not sampled often enough is
unlikely. More likely is that X isn't getting enough cycles to update
everything at the same time, or isn't getting cycles often enough to provide
the illusion of smooth movement.

 I tried to optimize the mouse: According to Logitech the resolution of
 the mouse is higher if the usb connector is used. But then I read the
 option Resolution is only applicable if the ps2 connector is used. And
 what values for Resolution are allowed? Although the mouse is now
 connected to a usb port, the protocol is imps/2 and not usb.
There is a way to modify the resolution of the sensor on some Logitech USB mice

(400dpi or 800dpi) - you need to use certain vendor specific (non-standard)
commands. It works on most mice that have the dual optical sensor. I can't
tell if your mouse is one of those that are supported (since you didn't bother
to identify the mouse), but from memory, MX300, MX500, and recent iFeel are
amongst those that are supported. I have a full list at home.

I also have an application to check what setting is in use, and to change the
setting. I guess I should post it here. Ping me in a couple of days if I
forget.

Brad
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]mouse configuration

2003-01-02 Thread Matthew Schumacher
Run a `hdparm /dev/hda` and see if your drive is in DMA mode.  If it is 
not set it in DMA mode otherwise disk access will eat far more cycles 
than needed.

Also, check to make sure your machine isn't constantly swapping to disk. 
 Memory is cheap.

schu

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert


Re: [Xpert]mouse configuration

2003-01-02 Thread Fabian Niestroj
[EMAIL PROTECTED] schrieb am 02.01.03 23:17:30:
 Run a `hdparm /dev/hda` and see if your drive is in DMA mode.  If it is 
 not set it in DMA mode otherwise disk access will eat far more cycles 
 than needed.
 
 Also, check to make sure your machine isn't constantly swapping to disk. 
   Memory is cheap.

DMA is on. I don't want to bother my cpu with this, too.
Memory was really cheap - my box has 512MB and is not swapping at all.

Fabian
__
Ent- oder weder? Nein! Wer den nicht kauft, der platzt vor Neid: 
M E D I O N - PC P4 2.4 kompl. nur 969,- http://www.mempag.de/xmas3.php

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]mouse configuration

2003-01-02 Thread Fabian Niestroj
 There is a way to modify the resolution of the sensor on some Logitech USB mice 
 (400dpi or 800dpi) - you need to use certain vendor specific (non-standard) 
 commands. It works on most mice that have the dual optical sensor. I can't 
 tell if your mouse is one of those that are supported (since you didn't bother 
 to identify the mouse), but from memory, MX300, MX500, and recent iFeel are 
 amongst those that are supported. I have a full list at home.
 
 I also have an application to check what setting is in use, and to change the 
 setting. I guess I should post it here. Ping me in a couple of days if I forget.

It has a single optical sensor. Model: M-BJ69.
__
Jetzt 52 verschiedene Briefpapiere fur Ihre E-Mails bei
WEB.DE FreeMail - http://freemail.web.de/features/?mc=021140

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]mouse configuration

2003-01-02 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 3 Jan 2003 09:45, [EMAIL PROTECTED] wrote:
 I also have an application to check what setting is in use, and to change
 the setting. I guess I should post it here. Ping me in a couple of days if
 I forget.
This is the application. Probably doesn't work with your mouse though.

In addition to mouse resolution, it can test wireless features and disable 
smart scroll on some mice.

Requires: libusb (http://libusb.sf.net)

Brad
- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+FS1DW6pHgIdAuOMRAllWAJ44iEvQpnHYVt0k97nLWU54bQG7JQCfZZ1l
FZhYHv3E6/3Ee6STe17fuVY=
=Ssby
-END PGP SIGNATURE-

/*
 * Get / set resolution on logitech dual optical mice.
 * Requires libusb.
 */

#include stdio.h
#include getopt.h
#include stdint.h
#include usb.h

#define VERSION 0.0

#define VENDOR_LOGITECH 0x046D

int get_resolution(struct usb_device *dev)
{
char resolution;
int result;
usb_dev_handle *usb_h;

usb_h = usb_open(dev);
if (0  usb_h) {
	printf(Error opening usbfs file: %s, usb_strerror());
	return -1;
}

result =  usb_control_msg(usb_h,
			  USB_TYPE_VENDOR | USB_ENDPOINT_IN,
			  0x01,
			  0x000E,
			  0x,
			  resolution,
			  0x0001,
			  100);

if (0  result) {
	printf(Error getting resolution from device : %s, usb_strerror());
}

usb_close(usb_h);

return resolution;
}

int get_csr(struct usb_device *dev,  uint8_t *status)
{
int result;
usb_dev_handle *usb_h;

usb_h = usb_open(dev);
if (0  usb_h) {
	printf(Error opening usbfs file: %s, usb_strerror());
	return -1;
}

result =  usb_control_msg(usb_h,
			  USB_TYPE_VENDOR | USB_ENDPOINT_IN,
			  0x09,
			  0x0003,
			  0x,
			  status,
			  0x0008,
			  1000);

if (0  result) {
	printf(Error getting cordless status from device : %s, usb_strerror());
}

usb_close(usb_h);

return result;
}

int get_cruise(struct usb_device *dev)
{
char cruise;
int result = 0;
usb_dev_handle *usb_h;

usb_h = usb_open(dev);
if (0  usb_h) {
	printf(Error opening usbfs file: %s, usb_strerror());
	return -1;
}
#if 0
result =  usb_control_msg(usb_h,
			  USB_TYPE_VENDOR | USB_ENDPOINT_IN,
			  0x01,
			  0x17,
			  0x,
			  cruise,
			  0x0001,
			  1000);
#endif
if (0  result) {
	printf(Error getting cruise control setting from device : %s, usb_strerror());
}

usb_close(usb_h);

return cruise;
}

/* resolution should be 0x03 for 400cpi, 0x04 for 800cpi */
int set_resolution(struct usb_device *dev, int resolution)
{
usb_dev_handle *usb_h;

usb_h = usb_open(dev);
usb_control_msg(usb_h, USB_TYPE_VENDOR, 0x02, 0x000E, resolution,
		NULL,  0x, 100);
usb_close(usb_h);

return 0;
}

void usage(void)
{
printf(Logitech Mouse Applet, Version %s\n, VERSION);
printf( --set-res X   set the sensor resolution to X, where X is 400 or 800\n);
printf( --get-res read the current sensor resolution\n);
printf( --get-cc  read the current Cruise Control setting\n);
printf( --version display the program version\n);
printf( --helpprint this usage information\n);
printf( -s X  same as --set-res X\n);
printf( -gsame as --get-res\n);
printf( -vsame as --version\n);
printf( -hsame as --help\n);
printf( -csame as --get-cc\n);
printf( -dsame as --disable-cc\n);
printf( -esame as --enable-cc\n);
printf(Copyright (C) 2002 Brad Hards [EMAIL PROTECTED]\n);
}

void version(void)
{
printf(Logitech Mouse Applet, Version %s\n, VERSION);
}

#define HAS_RES 0x01  /* mouse supports variable resolution */
#define HAS_SS  0x02  /* mouse supports smart scroll control */
#define HAS_CSR  0x04  /* mouse supports smart scroll control */

struct device_table {
int idVendor;
int idProduct;
char* Model;
char* Name;
int flags;
} device_table[] = {
{ VENDOR_LOGITECH, 0xC00E, M-BJ58, Wheel Mouse Optical, HAS_RES },
{ VENDOR_LOGITECH, 0xC00F, M-BJ79, MouseMan Traveler, HAS_RES },
{ VENDOR_LOGITECH, 0xC012, M-BL63B, MouseMan Dual Optical, HAS_RES },
{ VENDOR_LOGITECH, 0xC024, M-BP82, MX300 Optical Mouse, HAS_RES },
{ VENDOR_LOGITECH, 0xC025, M-BP81A, MX500 Optical Mouse, HAS_RES | HAS_SS },
{ VENDOR_LOGITECH, 0xC031, M-UT58A, iFeel Mouse (silver), HAS_RES },
{ VENDOR_LOGITECH, 0xC501, C-BA4-MSE, Mouse Receiver, HAS_CSR },
{ VENDOR_LOGITECH, 0xC502, C-UA3-DUAL, Dual Receiver, HAS_CSR },
{ VENDOR_LOGITECH, 0xC504, C-BD9-DUAL, Cordless Freedom Optical, HAS_CSR },
{ VENDOR_LOGITECH, 0xC505, C-BG17-DUAL, Cordless Elite Duo, HAS_SS | HAS_CSR },
{ VENDOR_LOGITECH, 0xC506, C-BF16-MSE, 

Re: [Xpert]mouse configuration

2003-01-02 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On Thursday 02 January 2003 22:45, [EMAIL PROTECTED] wrote:
 There can be a number of causes - the mouse is not sampled often enough is
 unlikely. More likely is that X isn't getting enough cycles to update
 everything at the same time, or isn't getting cycles often enough to
 provide the illusion of smooth movement.

Under Debian, X runs with priority -10 which should help to prevent this.
Maybe increasing the priority of X will help (renice -10 `pidof XFree86`).

- --
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://chrishowells.co.uk, PGP key: http://chrishowells.co.uk/pgp.txt
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+FNiuF8Iu1zN5WiwRAv3NAJ4id4DHEQAcm+EN0TjUEdAYOdXC4wCeNFxi
OqXnCwFSZr+YxCfvUC146+s=
=Lhq1
-END PGP SIGNATURE-

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert