SAN FRANCISCO (AP) — The familiar formula that carried San Francisco back to the Super Bowl last season for the first time in 18 years is on display again.

Colin Kaepernick marched the offense with six straight completions during a series that ended with a 5-yard touchdown pass to Quinton Patton, and Aldon Smith and Justin Smith plowed through Minnesota’s offensive line to make plays and hard-hitting tackles in the 49ers’ 34-14 exhibition victory over the Vikings on Sunday night.

Sure, it’s only the preseason. And there were a lot of foolish penalties.

Yet Kaepernick looks sharp, and the defense looks its usual stingy.

Justin Smith ran over two would-be blockers to pound Toby Gerhart for a 4-yard loss midway through the first quarter, and sack man Aldon Smith recovered a fumble and put pressure on Christian Ponder.

The new look in this one: flashy Lavelle Hawkins.

Hawkins returned a kickoff 105 yards for a touchdown late in the second quarter, but he received two unsportsmanlike penalties in the process — one for pointing the ball at a Vikings player before reaching the end zone and another for removing his helmet in celebration. Coach Jim Harbaugh chewed him out on the sideline, and Hawkins could be seen saying, “My fault.”

Yet Hawkins received another unsportsmanlike flag for head-butting linebacker Desmond Bishop after flipping the ball toward safety Mistral Raymond following a 22-yard catch in the fourth quarter.

There were a couple of other things Harbaugh certainly didn’t like — Nick Moody’s helmet-to-helmet hit on wideout Stephen Burton that resulted in an unnecessary roughness penalty in the third quarter, and a face mask by cornerback Perrish Cox on the same Minnesota scoring drive.

After a week of long practices as the Vikings tried to get their stagnant offense on a roll, there were considerable strides.

Ponder threw a pair of touchdown passes while playing three quarters.

He connected on a 1-yard touchdown pass to Zach Line late in the first half for the quarterback’s first TD completion of the preseason, then threw an interception in Minnesota’s final series before halftime. In the Vikings’ opening drive of the second half, Ponder hit Joe Webb with a 3-yard scoring pass.

Reigning NFL MVP Adrian Peterson didn’t touch the ball in one series of action for Minnesota, making his preseason debut — and first appearance in the exhibition schedule since 2011 — as he begins a year in which he will try to become the first player with consecutive 2,000-yard rushing seasons.

Ponder went 17 of 23 for 116 yards, a step up after two unimpressive outings and a 28.3 passer rating in his first two exhibition games.

This hardly looked like the Vikings’ group that handed the NFC champion Niners their first loss last fall, a 24-13 victory Sept. 23 in Minneapolis.

On the third play of the game, Ponder fumbled and gave the 49ers the ball at the Vikings 11. Ahmad Brooks swiped the ball away and Aldon Smith recovered.

San Francisco then went ahead on a 30-yard field goal by Phil Dawson, who added a 50-yarder before halftime.

Kaepernick began the game 1 for 7, then converted his next six pass attempts during that touchdown drive — including four in a row of 10 or more yards. Vernon Davis caught back-to-back receptions of 10 and 11 yards, and Patton and Marlon Moore each had two receptions in the series.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls