Warum hat mein Notebook (HP Pavilion) einen Beschleunigungssensor?

27026
detly

Ich habe ein HP Pavilion DM3-Notebook mit Debian Squeeze GNU / Linux (obwohl ich bezweifle, dass dies für meine Frage relevant ist). Beim Durchsuchen der Gerätemanagerliste habe ich einen Eintrag für einen "ST LIS3LV02DL-Beschleunigungsmesser" gefunden.

Wofür ist das eigentlich? Und kann ich damit wirklich etwas geschicktes machen?

9

2 Antworten auf die Frage

9
Shiki

It's for HDD protection, most likely. If it detects high speed movement (ie: exceeds the set 'safe zone'), the HDD stops and it protects the HDD. Pretty nice.

How to get it working...
On Windows, you need to install the driver from your manufacturer to enable the sensor. Once installed, you will find the device in your Device Manager. On a Dell Latitude, it's called "Free Fall Sensor".

On Linux, you must have a 'Linux compatible laptop'. By that I mean your laptop needs to have a module for this functionality in the kernel. ThinkPad laptops for example with recent kernels have it out of the box. It may also be possible that your laptop model has a module somewhere available that you can compile and load yourself.

You can use this sensor for many thing... like...
http://www.youtube.com/watch?v=xIFdGQNf0-c
http://www.youtube.com/watch?v=2NzmEkwynmo

For this, you need to find the sensor's raw value 'somewhere'. One example. On Linux, you should check the kernel module's source code. Once you find the location (ie. under /dev), you have to read the raw value, and using that, implement some kind of controls for games and applications. Either you can convert the input into some kind of virtual joystick input - thus getting a universal input method. Or, you can simply use the value from your application.

** This was the case in 2010, when I posted this answer back then.
Since then, Dell also became a big Linux player.

Ja, wenn die Beschleunigung = g ist, ist die Festplatte ausgeschaltet segfault vor 13 Jahren 0
Wenn mich jemand braucht, schreibe ich ein Theremin. detly vor 13 Jahren 0
Wie kann ich dies mit dem Chrome-Webbrowser verwenden? Suici Doga vor 7 Jahren 0
@SuiciDoga Es hängt alles von Ihrem Laptop-Modell ab. Shiki vor 7 Jahren 0
Ich habe einige Dateien in Remix OS geändert und jetzt kann ich alle Beschleunigungssensoren spielen :)! Suici Doga vor 7 Jahren 0
@Shiki Es ist ein HP Pavilion g7 2269wm. Der Beschleunigungssensor funktioniert in NeverBall Suici Doga vor 7 Jahren 0
Mein Laptop hat keine sich drehende Platte HDD, es ist eine NVMe SSD. Ist das immer noch das, wofür es ist? MrMesees vor 5 Jahren 0
1
Phoshi

It is indeed for protecting your hard drive. If the accelerometer detects the laptop is suddenly in free-fall, it will disengage the read head, significantly reducing the chance of your hdd being destroyed in the fall.

Sind Lesekopf und Schreibkopf nicht dasselbe physikalische Gerät? :) whitequark vor 13 Jahren 0
@whitequark: Ich weiß nicht, warum ich es immer Lesekopf und nicht Schreib- / Lesekopf genannt habe, aber ja. Phoshi vor 13 Jahren 0
Mein Laptop hat keine sich drehende Platte HDD, es ist eine NVMe SSD. Ist das immer noch das, wofür es ist? MrMesees vor 5 Jahren 0
@MrMesees: Ich bezweifle, dass der Festkörper keine beweglichen Teile hat und es für einen Sturz abzustellen keinen Sinn macht. In diesen Tagen könnte es zur Orientierungserkennung sein, wenn Ihr Laptop ein Hybrid ist, der den Bildschirm drehen kann? Könnte auch nur da sein, weil sie billig sind und die Platine für etwas verwendet wird, das _does_ eine Verwendung dafür hat, oder als Mechanismus, um Garantieansprüche wegen Stürzen oder _etwas_ abzulehnen. Aber das wird nicht mehr so ​​sein. Phoshi vor 5 Jahren 1