shithub: plan9front

Download patch

ref: 6c9462710539bd35ae5c51de27e7894522683bd7
parent: 49b5319f761e2de848d35361a507a5af8b6eb1ed
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Aug 31 11:53:37 EDT 2021

vga: add eeepc1005ha graphics (thanks Andrew Eggenberger)

> This patch enables use of the igfx controller rather than vesa on the
> eeepc1005ha netbook. This means using the full screen resolution of
> 1024x600.

> *Andrew Eggenberger*

--- a/lib/vgadb	Mon Aug 30 12:55:30 2021
+++ b/lib/vgadb	Tue Aug 31 11:53:37 2021
@@ -446,6 +446,7 @@
 ctlr
 	vid=0x8086 did=0xa011   # PineView Graphics
 	vid=0x8086 did=0x2592	# Intel 915GM
+	vid=0x8086 did=0x27ae	# Intel 945GME
 	vid=0x8086 did=0x27a2	# Intel GM945/82940GML (hardware cursor broken)
 	vid=0x8086 did=0x2a02	# Intel GM965/GL960/X3100 (hardware cursor broken)
 	link=vga
@@ -1864,4 +1865,11 @@
 	shb=1048 ehb=1184 ht=1344
 	vrs=603 vre=609 vt=670
 	hsync=- vsync=-
+	lcd=1
+
+eeepc1005ha=1024x600
+	clock=51.42
+	shb=1117 ehb=1152 ht=1240
+	vrs=617 vre=622 vt=638
+	hsync=? vsync=?
 	lcd=1
--- a/sys/src/cmd/aux/vga/igfx.c	Mon Aug 30 12:55:30 2021
+++ b/sys/src/cmd/aux/vga/igfx.c	Tue Aug 31 11:53:37 2021
@@ -378,6 +378,7 @@
 	case 0x0126:	/* Thinkpad X220 */
 		return TypeSNB;
 	case 0xa011:    /* PineView Graphics */
+	case 0x27ae:	/* Intel 945GME */
 	case 0x27a2:	/* GM945/82940GML - ThinkPad X60 Tablet */
 	case 0x29a2:	/* 82P965/G965 HECI desktop */
 	case 0x2a02:	/* GM965/GL960/X3100 - ThinkPad X61 Tablet */