summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/vga/vesa.c
AgeCommit message (Collapse)Author
2017-06-25aux/vga: simplify vesa by adding rgbmask2chan() functioncinap_lenrek
2015-08-03aux/vga: dont rely on atoi() being able to parse hexcinap_lenrek
2015-06-08aux/vga: disable nvidiascale() as it broke modeset on kenjis cardcinap_lenrek
this code needs revision, need a list of cards where this actually works.
2015-02-26aux/vga: dont error when vesa setscale fails after modeset (thanks rx9p for ↵cinap_lenrek
reporting)
2015-02-02aux/vga: use optional edid information to determine mode when vgadb failscinap_lenrek
igfx and vesa can determine monitor timing information from ddc and store the edid info for connected monitors in vga->edid[]. when monitor type cannot be found in vgadb, we consult the edid information and make a mode based on the edid info. this avoids having to maintain a vgadb entry for each monitor. monitor can be set to "[width]x[height]@[freq]Hz" for a specific edid setting. when not found, a mode is searched based on the size. so the following should work: aux/vga -m 1366x768@60Hz -l 1366x768x32 aux/vga -m auto -l 1366x768x32
2015-02-01aux/vga: cleanup vesa codecinap_lenrek
dbvesamode() modified the passed in size string in the process of option parsing. this is a no-go because the string might be constant in the read only section. provide cracksize() function for the parsing and make a static copy. do the vendor specific monitor detection in vbesnarf() instead of vbecheck(). vbecheck()'s purpose is to check if vesa bios service is avialable, not snarf graphics card state. nvidiascale() was a no-op because it missed the vbecall() at the end of the function. this means it was never tested so i add the missing vbecall(), but disable nvidiascale for now until someone tests this. keep fancy stuff out of the Vbe structure. it is just there for making bios calls, not keep state about the graphics card.
2015-01-11igfx: get edid information from lvdscinap_lenrek
2015-01-02aux/vga: revert vbegetmodeftrvxmtrx
2015-01-02aux/vga: do not set mode 3 unless connectedftrvxmtrx
2015-01-02aux/vga: fix switching with different modeftrvxmtrx
Prior to switching display, switch to text mode 3, which is supported by anything, then set display, search for the desired mode, load it if found. If not found, set the display to the old one and switch to the old mode back.
2015-01-01aux/vga: display switching for Intel adaptersftrvxmtrx
Magic was discovered by abusing INT 10 on several machines while switching cables back and forth and watching the end result.
2014-12-29aux/vga: scale only if mode was set successfullyftrvxmtrx
2014-12-29aux/vga: rescale after loading new modeftrvxmtrx
Intel VBIOS seem to not update its state unless in graphical mode, so set the scaling mode after loading new graphical mode.
2014-12-28aux/vga: remove -s option, move scaling to the size string itselfftrvxmtrx
2014-12-26aux/vga: scaling modes for VESAftrvxmtrx
2013-01-08aux/vga: remove debug printscinap_lenrek
2013-01-07aux/vga: add fixbios() for patching bogus vesa bioscinap_lenrek
2011-04-11vesa-changescinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen