File: toshset.1

package info (click to toggle)
toshset 1.46-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 284 kB
  • ctags: 429
  • sloc: cpp: 1,997; sh: 1,507; ansic: 909; makefile: 132
file content (142 lines) | stat: -rw-r--r-- 4,170 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
.TH TOSHSET 1 "January 2002" "toshset 2" "User-installed Software"
.SH NAME
toshset \- manipulate bios and hardware settings of Toshiba laptops
.SH SYNOPSIS
.B toshset
[\fITOGGLEOPTIONS\fR | \fIQUERYOPTIONS\fR | \fIFEATUREOPTIONS\fR]...
.SH DESCRIPTION
.PP
Toshset ia a command-line tool to allow access to much of the
Toshiba hardware interface developed by Jonathan Buzzard. It can do
things like set the hard drive spin-down time, turn off the display
and set the fan speed.

This package is based on a version of Jonathan Buzzard's
toshutils package which does not require a special kernel
module. Hence, no recompilation is required if a kernel upgrade is
performed. Also, it is highly likely that this tool will work under
different flavors of *NIX. As a result of this design consideration,
and because of my own desire that not every user be able to change my
laptop's hardware settings, the user must be root or use a sudo-like
tool. Turning on the binary's suid bit will not have the desired
effect. 

All credit for the difficult task of
reverse-engineering the Toshiba hardware interface goes to Jonathan Buzzard.
A link for Jonathan's tools is
.hr
http://www.buzzard.org.uk/toshiba/

All options are listed by running toshset with no arguments. 

If an argument option is specified as the ``-'' character, stdin is
read for that option. This is particularly convenient when setting the
owner string.

.PP
.SS "Toggle Options:"
.TP
\fB\-l\fR
toggle long query in which the assocated command-line option is
printed with each queried feature.
.TP
\fB\-v\fR
toggle verbose mode in which normally silent messages are printed.
.PP
.SS "Query Options:"
.TP
\fB\-q\fR \fI [glob]\fR
query features specified by glob (all features if glob omitted). The
glob string is sandwiched between asterisks, so specifying -q bat will
query all features whose names contain the ``bat'' substring. If no
glob is given, then all features are queried.
.PP
.SS "Feature Options:"
Valid settings for features can be listed by omitting the
argument. The current list of feature options is 
.TP
\fB\-b\fR \fI <on|off> \fR
enable/disable system beep
.TP
\fB\-lcd\fR \fI<setting>\fR
set lcd brightness
.TP
\fB\-pow\fR \fI<setting>\fR
set power-up mode
.TP
\fB\-vol\fR \fI<0-4>\fR
set beep volume. Note that this controls the modem volume for my
PCMCIA modem.
.TP
\fB\-hdd\fR \fI<num>\fR
number of minutes until disk spindown
.TP
\fB\-dstretch\fR \fI<on|off>\fR
enable/disable display stretch
.TP
\fB\-d\fR \fI<num>\fR
number of minutes until display auto-off
.TP
\fB\-c\fR \fI<method>\fR
set cooling method
.TP
\fB\-bs\fR \fI<setting>\fR
set battery-save mode
.TP
\fB\-bl\fR \fI<on|off>\fR
control lcd backlight
.TP
\fB\-fan\fR \fI<setting>\fR
control fan
.TP
\fB\-video\fR \fI<int|ext|both>\fR
video out
.TP
\fB\-cpu\fR \fI<fast|slow>\fR
set CPU speed
.TP
\fB\-cpucache\fR \fI<on|off>\fR
enable/disable CPU cache
.TP
\fB\-sleep\fR \fI<on|off>\fR
enable/disable CPU sleep mode
.TP
\fB\-balarm\fR \fI<on|off>\fR
enable/disable battery alarm
.TP
\fB\-palarm\fR \fI<on|off>\fR
enable/disable lid-closed alarm
.TP
\fB\-walarm\fR \fI<dis|HH:MM[/everyday|DD/MM[/YYYY]]>\fR
set time/date to wake
.TP
\fB\-ppower\fR \fI<on|off>\fR
enable/disable annoying feature of powering-off computer when lid is
closed. 
.TP
\fB\-parallel\fR \fI<mode>\fR
set parallel port mode
.TP
\fB\-autooff\fR \fI<dis|HH:MM[/everyday|DD/MM[/YYYY]]>\fR
set auto-off time
.TP
\fB\-ostring\fR \fI<owner string>\fR
set owner string. This string is displayed at boot or resume time.

.SH BUGS
Many features are locked and can not be changed when the battery save
mode is not ``user.'' Since I only have a Tecra8100, I can't test
this utility on other hardware. User feedback in this regard is
helpful. Some features do not work on my laptop and they may work on
your's, and visa-versa.

.SH AUTHOR
Written by <Charles@Schwieters.org>
.br
News, updates and documentation: visit
http://schwieters.org/toshset.html 
.SH COPYRIGHT
Copyright \(co 2002 Charles D. Schwieters
.br
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.