When ioctl() on /dev/acpi fails with `Device not configured' message,

suggest most probable cause of this to reduce number of questions on
the mailing lists; slightly improve port description text while here.
This commit is contained in:
Alexey Dokuchaev 2016-11-23 16:40:10 +00:00
parent 7760321433
commit c6575e46c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426942
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,10 @@
--- acpi_call_util.c.orig 2011-11-07 05:35:10 UTC
+++ acpi_call_util.c
@@ -102,6 +102,7 @@ int main(int argc, char * argv[])
if (ioctl(fd, ACPIIO_CALL, &params) == -1)
{
perror("ioctl");
+ fprintf(stderr, "(Is `acpi_call.ko' kernel module loaded?)\n");
return 1;
}

View file

@ -1 +1 @@
Kernel module for calling arbitrary ACPI methods from userspace.
Kernel module and utility for calling arbitrary ACPI methods from userspace.