detecting docked or undocked

Jamie Zawinski linux-thinkpad@www.bm-soft.com
Wed, 12 May 1999 15:08:33 -0700


Asher Frenkel wrote:
> 
> quick question.
> 
> is there a way to know when my thinkpad is docked or undocked?

If you just have a port replicator, you could run "apm" to see if
you're on battery or wall current.  If you have a SelectaBase,
look for ide2 in /proc/interrupts to see if the external IDE chain
exists.

-- 
Jamie Zawinski             jwz@jwz.org             http://www.jwz.org/