• Home
  • Raw
  • Download

Lines Matching full:page

3 sg_wr_mode \- write (modify) SCSI mode page
7 [\fI\-\-len=10|6\fR] [\fI\-\-mask=M,M...\fR] [\fI\-\-page=PG_H[,SPG_H]\fR]
13 Writes a modified mode page to \fIDEVICE\fR. Uses the SCSI MODE SENSE (6
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
27 page has the RTD_SUP bit to indicate whether the \fIDEVICE\fR supports the
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
49 existing mod page.
52 mode page without any prior checks on the existing mode page. This should
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,
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
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).
111 \fB\-p\fR, \fB\-\-page\fR=\fIPG_H\fR
112 where \fIPG_H\fR is the page code value to fetch and modify. The page code
113 is in hex and should be between 0 and 3e inclusive. Notice that page code
116 \fB\-p\fR, \fB\-\-page\fR=\fIPG_H,SPG_H\fR
117 where \fIPG_H\fR is the page code value and \fISPG_H\fR is the subpage code
120 mode subpages (for a given mode page or all mode pages in the case of 3f,ff)
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
134 page will stay in effect until the device is reset (e.g. power cycled).
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
156 modify parts of the mode page which are changeable. The device should
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
172 page can be accomplished with 'sg_modes \-p=1a \-r /dev/sdb > mp_1a.txt' (the
173 power condition mode page). The mp_1a.txt file can be edited and then used
180 SELECT command while the PS bit ((sub)page byte 0 bit 7) in each
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
190 $ sg_modes \-\-control=2 \-\-page=1a \-r /dev/sda > t
192 $ sg_wr_mode \-\-page=1a \-\-contents=\- \-\-save /dev/sda < t
195 of the "power condition" mode page (0x1a) from 0x28 to 0x37. Note that the
199 $ sg_modes \-\-page=1a /dev/hdc
214 the sg3_utils(8) man page.