Systemd and hdapsd

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Systemd and hdapsd

Postby SabayonEncrypted » Sun Dec 29, 2013 12:07

My hardware:
Lenovo ThinkPad T61p, model 64608ZG

My goal:
After switching from openrc to systemd I wanted to get hdapsd working again. HDAPS stand for 'hard drive active protection system' (http://www.thinkwiki.org/wiki/HDAPS).

My approach so far:
I created a file in /etc/systemd/system/ named hdapsd.service and enabled it using 'systemctl enable hdapsd.services':
Code: Select all
[Unit]
Description=HDAPS userspace hard drive active protection system daemon
Documentation=man:hdapsd(8)
After=syslog.target

[Service]
Type=forking
PIDFile=/var/run/hdapsd.pid
ExecStart=/usr/sbin/hdapsd --sensitivity=40 -blp
ExecReload=/bin/kill -HUP ${MAINPID}

[Install]
WantedBy=multi-user.target

I used the examples given at https://wiki.archlinux.org/index.php/Hard_Drive_Active_Protection_System#Shock_Protection, https://github.com/evgeni/hdapsd/blob/master/misc/hdapsd%40.service.in and https://gist.github.com/gdamjan/5792152 as orientation.

In order to learn about systemd I read https://wiki.sabayon.org/index.php?title=En:HOWTO:_systemd and http://wiki.gentoo.org/wiki/Systemd.

Now the systemd logs tell me:
Code: Select all
# journalctl -b | grep hdaps
Dez 29 10:26:11 sabayon hdapsd[5202]: Starting hdapsd
Dez 29 10:26:11 sabayon hdapsd[5202]: WARNING: You did not supply any devices to protect, trying autodetection.
Dez 29 10:26:11 sabayon hdapsd[5202]: Adding autodetected device: sda
Dez 29 10:26:12 sabayon kernel: hdaps: LENOVO ThinkPad T61 detected, setting orientation 1
Dez 29 10:26:12 sabayon kernel: hdaps: initial mode latch is 0x05
Dez 29 10:26:12 sabayon kernel: hdaps: setting ec_rate=250, filter_order=2
Dez 29 10:26:12 sabayon kernel: hdaps: device successfully initialized.
Dez 29 10:26:12 sabayon kernel: hdaps: driver successfully loaded.
Dez 29 10:26:12 sabayon hdapsd[5202]: Selected interface: HDAPS
Dez 29 10:26:12 sabayon hdapsd[5202]: Selected HDAPS input device: /dev/input/event11
Dez 29 10:26:12 sabayon systemd[1]: Failed to read PID from file /var/run/hdapsd.pid: Invalid argument
Dez 29 10:26:13 sabayon hdapsd[5226]: Could not read from /sys/devices/platform/hdaps/position: Device or resource busy
Dez 29 10:26:13 sabayon hdapsd[5226]: Could not read from /sys/devices/platform/hdaps/position: Device or resource busy
Dez 29 10:26:13 sabayon hdapsd[5226]: Could not read from /sys/devices/platform/hdaps/position: Device or resource busy

My remaining problem/questions:
Honestly, I don't understand half of the log output. It just tells me that my hdapsd.services file is not completely correct, for example do I need a hdapsd.pid file? I would be more than happy if anyone could help and correct my hdapsd.services for sabayon.
SabayonEncrypted
Baby Hen
 
Posts: 12
Joined: Sat Mar 03, 2012 21:38

Re: Systemd and hdapsd

Postby SabayonEncrypted » Tue Dec 31, 2013 14:22

I found something hdaps driver related on kernel.org:
https://bugzilla.kernel.org/show_bug.cgi?id=50351
SabayonEncrypted
Baby Hen
 
Posts: 12
Joined: Sat Mar 03, 2012 21:38


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest