---
name: "tdocked"
section: "1"
platform: "linux"
package: "toshutils"
version: "2.0.1+debian-24"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/tdocked"
---

# tdocked(1)

return the status of the SelectBay in a docking station.

## NAME

tdocked - return the status of the SelectBay in a docking station.

## SYNOPSIS

**tdocked \[ -h \]**

## DESCRIPTION

**tdocked** reports on the status of the SelectBay in a docking station attached to a Toshiba laptop. The status is returned in the exit value of the program. This enables **tdocked** to be used in a shell script etc. to determine whether the laptop is docked and run appropriate programs.

## EXIT CODES

- **0x00**

  The SelectBay is empty

- **0x01**

  The SelectBay contains a floppy drive

- **0x02**

  The SelectBay contains an ATAPI device such as a CD-ROM

- **0x03**

  The SelectBay contains an IDE hard disk

- **0x04**

  The SelectBay contains a second battery

- **0x80**

  The system does not support SelectBay devices

- **0x83**

  The docking station is not attached to the laptop.

- **0xff**

  The computer is not a Toshiba laptop.

## OPTIONS

- **-h**

  Print a short synopsis of the program and what the various exit codes mean.

## BUGS

The program may return with an exit code of 0x83 on a laptop which does not support a docking station.

## AUTHOR

This program was written by Jonathan Buzzard (jonathan@buzzard.org.uk) and may be freely distributed under the terms of the GNU General Public License. There is ABSOLUTELY NO WARRANTY for this program.

## SEE ALSO

[**fan**(1)](/fan/1.md), [**svpw**(1)](/svpw/1.md), [**hotkey**(1x)](/hotkey/1x.md), [**alarm**(1)](/alarm/1.md), [**wmtuxtime**(1x)](/wmtuxtime/1x.md)
