-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toshiba_haps is now in /sys/devices/platform/TOS620A:00 #15
Comments
sorry this driver is an ACPI driver and send an ACPI event. the solution was this -> http://nathanielmnelson.com/node/24 using acpid instead hdapsd then configure some files in /etc/acpi/events/ and that it. this ticket can be closed :) |
Hi, good that it works for ya with the pure-ACPI method. Still, I would have expected it to work with hdapsd too, reading the HW decision from Are you using the driver mentioned in the link, or the one in the kernel? https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/toshiba_haps.c |
@mercuriete ping? :) |
@evgeni I have this problem too, and I'm using the driver provided by the kernel. |
Also documentation for this is available on https://www.kernel.org/doc/Documentation/laptops/toshiba_haps.txt |
@klondi thanks for the heads up. what I am currently missing in the described API is a file that tells me "damn, park the heads, now". I guessed this is the "movement" file but the output of @mercuriete does not show it? |
@evgeni it should be an ACPI event usually when the event triggers you get these two events (from dmesg): First one is park the heads now IIRC second is you can unpark them now if you want. I'm unsure though which event interface generates this as it is ACPI based. Internet archive gives a hint on how this is handled by acpid though https://web.archive.org/web/20150218214553/http://nathanielmnelson.com/node/24 |
@evgeni Some googling pointed me at the kacpimon tool and this tool returned this:
So basically we need to listen on the netlink interface for event 80 and 81 for device TOS620A:00. The source code for how kacpimon does this is provided by acpid. |
Sorry for not answer! :( I have working my toshiba sensors with acpid. I created some files to tell acpid that on acpi event the hard disk should be stopped. By the way @evgeni i think its the acpi kernel driver. |
Tutorial for get acpid working with the toshiba acpi driver. dmesg output: [ 4353.935442] toshiba_haps: Received event: 0x80 this means you have the acpi kernel driver working so you have to install acpid and write some files in /etc/acpi/ i created 2 files, 1 file per event /etc/acpi/events/toshiba_hdaps_unload mercuriete@localhost /etc/acpi/events $ cat toshiba_hdaps_unload /etc/acpi/events/toshiba_hdaps_load mercuriete@localhost /etc/acpi/events $ cat toshiba_hdaps_load With this 2 files you will trigger an action whenever an event is triggered. For logging all event if you dont know which event is what you want.
sudo acpid --debug --logevents some output: acpid: received netlink event " TOS620A:00 00000080 00000000" then you can copy this code and put it in your event file in /etc/acpi/events/ I dont know any practical way to know if you get all working.
I hope this kind of tutorial was useful for someone that visit this page. |
Yeah, I have no idea what I was reading when I wrote d24b7ad, but that Does |
Hmm, no, reading https://github.com/torvalds/linux/blob/master/Documentation/ABI/testing/sysfs-driver-toshiba_acpi, that path is wrong too 😿 |
@evgeni Sorry for not anwering. I need to upgrade my old toshiba laptop but I can try to post when I could. |
im not sure if i am doing something wrong but i dont have no one of this files
but i have this other ones:
i need some help because the driver is working because it writes to dmesg an event every time that i move the computer. and hdapsd starts automatically with systemd but then exits with code 255 after tries to load a lot of modules.
by the way, i compile toshiba_haps inside the kernel not as a module. i dont know if this could be the problem.
thanks for your work
edit: version of linux:
uname -a
Linux localhost 4.0.5-gentoo SMP PREEMPT Tue Sep 8 21:37:19 WEST 2015 x86_64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz GenuineIntel GNU/Linux
The text was updated successfully, but these errors were encountered: