Lines Matching full:mode
3 sg_wr_mode \- write (modify) SCSI mode page
13 Writes a modified mode page to \fIDEVICE\fR. Uses the SCSI MODE SENSE (6
14 or 10 byte variant) command to fetch the existing mode data which includes
15 a mode page (or subpage). It then combines that with the contents,
16 potentially masked, and writes the modified mode page with the SCSI MODE
18 the block descriptor(s); if any block descriptors are fetched by the MODE
20 following MODE SELECT command.
24 case only a MODE SELECT command is sent to the \fIDEVICE\fR with the RTD
28 RTD bit in the MODE SELECT(6 and 10) commands. When the \fI\-\-rtd\fR option
32 header, block descriptor(s) and mode page) of the "current" values of
33 the existing mode page are printed out. In this case the mode page is
37 must match the existing mode page in various aspects unless the
38 \fI\-\-force\fR option is given. These include length, mode page code and
40 written to \fIDEVICE\fR as the new mode page.
44 existing mode page supplies bit positions corresponding to clear bits.
46 than the existing mode page. If the mask is shorter than the contents then
48 than the existing mode page then the remaining bytes are taken from the
52 mode page without any prior checks on the existing mode page. This should
53 only be required for vendor specific mode pages. The existing mode data
57 Changing individual fields in a mode page is probably more easily done
67 be in quotes. This is the new contents of the mode page to be written to
75 forms the new contents of the mode page to be written to \fIDEVICE\fR,
80 block descriptors in the mode data returned by a MODE SENSE command. If
81 so the same block descriptors are written by the MODE SELECT command.
82 This option instructs the MODE SENSE command not to return any block
87 force the contents string to be taken as the new mode page, or at least
88 doesn't do checks on the existing mode page. Note that \fIDEVICE\fR may
89 still reject the new contents for the mode page. Cannot be given with
97 so 10 byte MODE SENSE and MODE SELECT commands are issued. Some old devices
104 quotes. The mask chooses (bit by bit) whether the new mode page comes from
105 the contents (mask bit set) or from the existing mode page (mask bit clear).
108 than the existing mode page then the remaining bytes are taken from the
109 existing mode page (i.e. they are left unaltered).
114 3f to fetch all mode pages is disallowed.
120 mode subpages (for a given mode page or all mode pages in the case of 3f,ff)
124 when this option is given most other actions are bypassed and a MODE
127 option is also given) of all mode pages to be reverted to their default
131 changes the "saved" mode page when MODE SELECT is successful. By
132 default (i.e. when \fI\-\-save\fR is not used) only the "current" mode page
133 values are changed when MODE SELECT is successful. In this case the new mode
135 When it restarts the "saved" values for the mode page will be re\-instated.
139 values in each mode page are reverted to their default values. In the
140 absence of \fI\-\-save\fR option only the current values in each mode page
144 this option will cause the 6 byte variants of MODE SENSE and MODE SELECT
156 modify parts of the mode page which are changeable. The device should
160 Some mode pages are not saveable. If so an attempt to use the \fI\-\-save\fR
165 mode page. If these checks fail then the mode page is not altered and
169 The recommended way to modify a mode page is to read it with a
170 MODE SENSE, modify some part of it then write it back to the
171 device with a MODE SELECT command. For example, reading an existing mode
173 power condition mode page). The mp_1a.txt file can be edited and then used
177 Two fields differ between what is read from the device with MODE SENSE and
178 what is written to the device with MODE SELECT:
179 the mode data length is reserved (i.e. zero(es)) in a MODE
181 mode (sub)page is reserved (zero) in a MODE SELECT command.
186 the default mode page values (i.e. the mode page values chosen by the
187 manufacturer of the device) as both the current and saved mode page
195 of the "power condition" mode page (0x1a) from 0x28 to 0x37. Note that the