(1) Whenever the warden or superintendent receives notice of an untried criminal case pending in this state against an inmate of a state prison, the warden or superintendent shall, at the request of the inmate, send by certified mail a written request to the district attorney for prompt disposition of the case. The request shall state the sentence then being served, the date of parole eligibility, if applicable, or the date of release to extended supervision, the approximate discharge or conditional release date, and prior decision relating to parole. If there has been no preliminary examination on the pending case, the request shall state whether the inmate waives such examination, and, if so, shall be accompanied by a written waiver signed by the inmate.(2) If the crime charged is a felony, the district attorney shall either move to dismiss the pending case or arrange a date for preliminary examination as soon as convenient and notify the warden or superintendent of the prison thereof, unless such examination has already been held or has been waived. After the preliminary examination or upon waiver thereof, the district attorney shall file an information, unless it has already been filed, and mail a copy thereof to the warden or superintendent for service on the inmate. The district attorney shall bring the case on for trial within 120 days after receipt of the request subject to s. 971.10.(3) If the crime charged is a misdemeanor, the district attorney shall either move to dismiss the charge or bring it on for trial within 90 days after receipt of the request.(4) If the defendant desires to plead guilty or no contest to the complaint or to the information served upon him or her, the defendant shall notify the district attorney thereof. The district attorney shall thereupon arrange for the defendant's arraignment as soon as possible and the court may receive the plea and pronounce judgment.(5) If the defendant wishes to plead guilty to cases pending in more than one county, the several district attorneys involved may agree with the defendant and among themselves for all such pleas to be received in the appropriate court of one of such counties, and s. 971.09 shall govern the procedure thereon so far as applicable.(6) The prisoner shall be delivered into the custody of the sheriff of the county in which the charge is pending for transportation to the court, and the prisoner shall be retained in that custody during all proceedings under this section. The sheriff shall return the prisoner to the prison upon the completion of the proceedings and during any adjournments or continuances and between the preliminary examination and the trial, except that if the department certifies a jail as being suitable to detain the prisoner, he or she may be detained there until the court disposes of the case. The prisoner's existing sentence continues to run and he or she receives time credit under s. 302.11 while in custody.(7) If the district attorney moves to dismiss any pending case or if it is not brought on for trial within the time specified in sub. (2) or (3) the case shall be dismissed unless the defendant has escaped or otherwise prevented the trial, in which case the request for disposition of the case shall be deemed withdrawn and of no further legal effect. Nothing in this section prevents a trial after the period specified in sub. (2) or (3) if a trial commenced within such period terminates in a mistrial or a new trial is granted.1983 a. 528; 1989 a. 31; 1993 a. 486; 1995 a. 48; 1997 a. 283. A request for prompt disposition under this section must comply with sub. (1) in order to impose on the state the obligation to bring the case to trial within 120 days. State v. Adams, 207 Wis. 2d 568, 558 N.W.2d 923 (Ct. App. 1996), 96-1680. Whether dismissal under sub. (7) is with or without prejudice is within the court's discretion. State v. Davis, 2001 WI 136, 248 Wis. 2d 986, 637 N.W.2d 62, 00-0889. The responsibility for complying with the sub. (2) 120-day time limit for bringing a case to trial cannot be imposed on the defendant. Once the district attorney receives the request under sub. (1), the responsibility for prompt disposition is placed on the district attorney. The trial court erred when it failed to dismiss the case when the 120-day time limit was not met. State v. Lewis, 2004 WI App 211, 277 Wis. 2d 446, 690 N.W.2d 668, 03-3191. Violations of the right to a speedy trial are waived by entry of a guilty plea. When a defendant chooses to accept a plea agreement rather than inconveniencing the district attorney by requiring the filing of a new complaint, the protections of s. 971.11 are forfeited. State v. Asmus, 2010 WI App 48, 324 Wis. 2d 427, 782 N.W.2d 435, 08-2980. The specific conclusion by the Davis and Adams courts was that the "subject to s. 971.10" language following the 120-day time period in sub. (2) refers to the court's authority to grant a continuance for the reasons specified in s. 971.10(3) (a). The defendant's conclusion that the 120-day time period cannot be extended is fundamentally inconsistent with the Davis court's conclusion that failure to bring a case to trial within 120 days triggers dismissal, which can be without prejudice and allow for refiling. State v. Butler, 2014 WI App 4, 352 Wis. 2d 484, 844 N.W.2d 392, 12-2243.