ACPI Dock/Undock events?

Tom Sparks tom at ycombinator.com
Mon Feb 29 17:45:16 UTC 2016


Sadly, that module doesn't seem to work with my system.

--- snip ---
# kldstat |grep dock
17    1 0xffffffff81d02000 20da     acpi_dock.ko

# sysctl sysctl dev.acpi_dock.0.status
sysctl: unknown oid 'dev.acpi_dock.0.status'
--- snip ---

I am running 10.2-STABLE on a Thinkpad T520 with a standard dock.
I have a T530 with -HEAD on it, I'll try there too.

On Fri, Feb 26, 2016 at 11:33 PM, Alexandr Matveev <timon at timon.net.nz>
wrote:

> 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
>
>


-- 
Tom Sparks
Systems Engineer


More information about the freebsd-acpi mailing list