https://github.com/bsdelf/bsd-hdaps
Hard Drive Active Protection System for FreeBSD
https://github.com/bsdelf/bsd-hdaps
Last synced: 3 months ago
JSON representation
Hard Drive Active Protection System for FreeBSD
- Host: GitHub
- URL: https://github.com/bsdelf/bsd-hdaps
- Owner: bsdelf
- Created: 2015-06-28T08:49:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-28T11:23:07.000Z (almost 10 years ago)
- Last Synced: 2025-02-13T05:44:55.728Z (4 months ago)
- Language: C
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.FreeBSD
- Changelog: CHANGES
Awesome Lists containing this project
README
thinkpad_ec and hdaps ported to FreeBSD by Maik Ehinger
smapi not ported yet!INSTALL:
To build and install you must have kernel sources installed:
# make installThis will build and install to modules
thinkpad_ec.ko Thinkpad Embedded Controller Driver
hdaps.ko Accelerometer DriverTo load both modules:
# kldload hdapsThis will automatically load thinkpad_ec.ko
To display the sysctl's:
# sysctl hw.sysctlThis will display the same hdaps values as the Linux version provides under sysfs plus
hw.hdaps.values
Accelerometer "X Y Temp1 MouseAct KeybAct"
hw.hdaps.rest_position
Accelerometer rest positionYou can also compile "hdapsmonitor" needs ncurse
or "hdapsmonitor_vga" needs svgalib in the hdaps directory.# cd hdaps
# cc -lncurses -o hdapsmonitor hdapsmonitor.c
# ./hdapsmonitor# cd hdaps
# cc -lvga -I/usr/local/include -L/usr/local/lib -o hdapsmonitor_vga hdapsmonitor_vga.c
# ./hdapsmonitor_vgaThey will display the HDAPS values like an ossciloscope.
You also get two devices
/dev/hdaps Accelerometer PS/2 Mouse device
/dev/joy0 Joystick deviceNot quite acurate at the time.
You can try playing "neverball" from the ports.
Please report BUGS to and inlcude as much information as
possible.