Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2016 10:33:30 +0300
From:      Alexandr Matveev <timon@timon.net.nz>
To:        Tom Sparks <tom@ycombinator.com>, freebsd-acpi@freebsd.org
Subject:   Re: ACPI Dock/Undock events?
Message-ID:  <56D1514A.3060909@timon.net.nz>
In-Reply-To: <CABLy0qT=qCaPnkbP8CP5acm6cQLP7tAU0pxMWLm2S9%2BLH6R4aQ@mail.gmail.com>
References:  <CABLy0qT=qCaPnkbP8CP5acm6cQLP7tAU0pxMWLm2S9%2BLH6R4aQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26.02.2016 23:37, Tom Sparks wrote:
> I'm trying to find information about whether acpi_ibm has info on
> dock/undock events or status; It looks like the answer is no.
> This would be pretty handy to have available.
>
> Before I start trying to figure out how to add this, just wanted to check
> and see if anyone else had worked on this.
>
Hello,

Look at acpi_dock kernel module

# kldload acpi_dock
$ sysctl dev.acpi_dock.0.status
dev.acpi_dock.0.status: 0

$ egrep 'define.*STATUS' /usr/src/sys/dev/acpica/acpi_dock.c
#define ACPI_DOCK_STATUS_UNKNOWN        -1
#define ACPI_DOCK_STATUS_UNDOCKED       0
#define ACPI_DOCK_STATUS_DOCKED         1

-- 
Aleksandr Matveev




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56D1514A.3060909>