Bug 32802 (carlosve) - Kernel detects ST LIS3LV02DL Accelometer as Joystick
Summary: Kernel detects ST LIS3LV02DL Accelometer as Joystick
Status: RESOLVED INVALID
Alias: carlosve
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 10:51 UTC by Carlos
Modified: 2011-04-06 15:16 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.35
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Carlos 2011-04-06 10:51:03 UTC
I tried to install a Joystick using Jstest-gtk and I found out that on the /dev/input/js0 was detected ST LIS3LV02DL Accelometer. And my joystick was on js1.

I have a HP touchsmart tm2 and I am using Ubuntu 10.10.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-28-generic 2.6.35-28.49
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-28.49-generic 2.6.35.11
Uname: Linux 2.6.35-28-generic x86_64
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: carlos 2257 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xc4500000 irq 47'
   Mixer name : 'IDT 92HD81B1X5'
   Components : 'HDA:111d7605,103c1486,00100402'
   Controls : 14
   Simple ctrls : 9
Card1.Amixer.info:
 Card hw:1 'Generic'/'HD-Audio Generic at 0xc4420000 irq 48'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Sat Apr 2 14:31:51 2011
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=d88d42e5-23c5-4b28-8c45-05ae3ea585fd
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Hewlett-Packard HP TouchSmart tm2 Notebook PC
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-28-generic root=UUID=69f6eb2d-6a63-4bfa-ba7d-86c5874ad5da ro vga=769 quiet splash
ProcEnviron:
 LANG=en_NZ.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38.5
SourcePackage: linux
dmi.bios.date: 10/28/2010
dmi.bios.vendor: Insyde
dmi.bios.version: F.23
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 1486
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 83.1F
dmi.chassis.asset.tag: CNU0444K7G
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.23:bd10/28/2010:svnHewlett-Packard:pnHPTouchSmarttm2NotebookPC:pvr058A210000242A10000120100:rvnHewlett-Packard:rn1486:rvr83.1F:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.name: HP TouchSmart tm2 Notebook PC
dmi.product.version: 058A210000242A10000120100
dmi.sys.vendor: Hewlett-Packard
Comment 1 Jean Delvare 2011-04-06 11:13:34 UTC
This is a feature, not a bug. The idea is to let people play pinball with their laptops. I have always hated the idea, but I didn't write the drivers which make it possible. Certainly it would be nice to have a module parameter to at least give the users an option to disable this feature.

Moving to the right component, as this has nothing to do with hardware monitoring.

Meanwhile, just use /dev/input/js1, I fail to see why it would be a problem.
Comment 2 Carlos 2011-04-06 13:43:27 UTC
(In reply to comment #1)
> This is a feature, not a bug. The idea is to let people play pinball with
> their
> laptops. I have always hated the idea, but I didn't write the drivers which
> make it possible. Certainly it would be nice to have a module parameter to at
> least give the users an option to disable this feature.
> 
> Moving to the right component, as this has nothing to do with hardware
> monitoring.
> 
> Meanwhile, just use /dev/input/js1, I fail to see why it would be a problem.

Thanks for you fast reply.

I tried to use /dev/input/js1 . The problem is that jstest-gtk doesn't detect the js1. Just the accelerometer, so I can't calibrate the joystick. Anyway, I will try to find a workaround, but really find it weird. I share your opinion about this idea.

Thanks
Comment 3 Jean Delvare 2011-04-06 14:16:15 UTC
If jstest-gtk can't deal with two joysticks being connected, that's a bug in jstest-gtk, which should be reported to the jstest-gtk maintainer.

Note You need to log in before you can comment on or make changes to this bug.