---
name: "mac_find_mode"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mac_find_mode"
---

# mac\_find\_mode(9)

find a video mode

## NAME

mac\_find\_mode - find a video mode

## SYNOPSIS

**int mac\_find\_mode(struct fb\_var\_screeninfo \*** *var***, struct fb\_info \*** *info***, const char \*** *mode\_option***, unsigned int** *default\_bpp***);**

## ARGUMENTS

*var*

frame buffer user defined part of display

*info*

frame buffer info structure

*mode\_option*

video mode name (see mac\_modedb\[\])

*default\_bpp*

default color depth in bits per pixel

## DESCRIPTION

Finds a suitable video mode. Tries to set mode specified by *mode\_option*. If the name of the wanted mode begins with 'mac', the Mac video mode database will be used, otherwise it will fall back to the standard video mode database.

## NOTE

Function marked as \_\_init and can only be used during system boot.

Returns error code from fb\_find\_mode (see fb\_find\_mode function).

## COPYRIGHT
