gsutre / netbsd-drmgem

Porting DRM/GEM from OpenBSD to NetBSD (Intel only)
14 stars 3 forks source link

Console not restored with genfb(4) on Ironlake #16

Open gsutre opened 12 years ago

gsutre commented 12 years ago

On a Core i5 laptop, the framebuffer console (genfb(4)) is not restored when the X server exits. Instead, a still image with vertical dotted lines is displayed. The X server can be launched again from the console (by typing startx blindly), and the display gets back as expected (under X).

On an older i386 laptop (915GM), everything works fine.

dmesg

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.99.14 (GENERIC) #0: Fri Nov  2 18:25:44 CET 2012
    instsoft@yosemite:/tmp/netbsd-drmgem.usr/src/sys/arch/amd64/compile/GENERIC
total memory = 8117 MB
avail memory = 7867 MB
timecounter: Timecounters tick every 10.000 msec
No bootinfo commands at boot
RTC BIOS diagnostic error 0x30
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.6 @ 0xf2460 (66 entries)
Dell Inc. Latitude E4310 (0001)
mainbus0 (root)
ACPI Warning: 32/64X FACS address mismatch in FADT - 0xDB76BF40/0x00000000DB76ED40, using 32 (20110623/tbfadt-517)
cpu0 at mainbus0 apid 0cpu0: 8 page colors
cpu0: calibrating local timer
cpu0: apic clock running at 133 MHz
timecounter: Timecounter "lapic" frequency 133092329 Hz quality -100
: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz, id 0x20655
cpu0: PAT enabled
cpu1 at mainbus0 apid 4cpu1: 2 page colors
x86_ipi_init: ESR 00000040
: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz, id 0x20655
cpu1: PAT enabled
cpu2 at mainbus0 apid 1cpu2: 2 page colors
: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz, id 0x20655
cpu2: PAT enabled
cpu3 at mainbus0 apid 5cpu3: 2 page colors
: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz, id 0x20655
cpu3: PAT enabled
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId , AslId 
ioapic0 reenabling
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
acpi0: ACPI-Fast 24-bit timer
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (ECDV, PNP0C09-0): io 0x930,0x934
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, DLL0410) (aux port): irq 12
PDRC (PNP0C02) at acpi0 not configured
A_CC (SMO8800) at acpi0 not configured
acpivga0 at acpi0 (VID): ACPI Display Adapter
acpivga0: capabilities: _DOS _DOD
acpiout0 at acpivga0 (CRT, 0x0100): ACPI Display Output Device
acpiout0: capabilities: _DCS _DGS _DSS
acpiout1 at acpivga0 (LCD, 0x0400): ACPI Display Output Device
acpiout1: capabilities: _BCL _BCM _BQC _DCS _DGS _DSS
acpiout1: brightness levels: 0 6 13 20 26 33 40 46 53 60 66 73 80 86 93 100
acpiout2 at acpivga0 (DVI, 0x0302): ACPI Display Output Device
acpiout2: capabilities: _DCS _DGS _DSS
acpiout3 at acpivga0 (DVI2, 0x0303): ACPI Display Output Device
acpiout3: capabilities: _DCS _DGS _DSS
acpiout4 at acpivga0 (DP, 0x0300): ACPI Display Output Device
acpiout4: capabilities: _DCS _DGS _DSS
acpiout5 at acpivga0 (DP2, 0x0301): ACPI Display Output Device
acpiout5: capabilities: _DCS _DGS _DSS
acpivga0: connected output devices:
acpivga0:   0x0100 (acpiout0): Ext. Monitor, head 0
acpivga0:   0x0400 (acpiout1): Unknown Output Device, head 0
acpivga0:   0x0302 (acpiout2): Unknown Output Device, head 0
acpivga0:   0x0303 (acpiout3): Unknown Output Device, head 0
acpivga0:   0x0300 (acpiout4): Unknown Output Device, head 0
acpivga0:   0x0301 (acpiout5): Unknown Output Device, head 0
acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (PBTN, PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (SBTN, PNP0C0E): ACPI Sleep Button
acpiacad0 at acpi0 (AC, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT0, PNP0C0A-1): ACPI Battery
acpibat0: SMP LION rechargeable battery
acpibat0: model number DELL Y266P09, serial number 132
acpibat0: granularity: low->warn 0.028 Ah, warn->full 0.028 Ah
acpibat1 at acpi0 (BAT1, PNP0C0A-2): ACPI Battery
acpiwmi0 at acpi0 (AMW0, PNP0C14-0): ACPI WMI Interface
acpiwmi0: {8D9DDCBC-A997-11DA-B012-B622A1EF5492} oid 4141 count 01 flags 00
acpiwmi0: {A80593CE-A997-11DA-B012-B622A1EF5492} oid 4142 count 01 flags 02
acpiwmi0: {9DBB5994-A997-11DA-B012-B622A1EF5492} oid 00D0 count 01 flags 08
acpiwmi0: {A3776CE0-1E88-11DB-A98B-0800200C9A66} oid 4342 count 01 flags 00
acpiwmi0: {05901221-D566-11D1-B2F0-00A0C9062910} oid 4F4D count 01 flags 00
wmidell0 at acpiwmi0: Dell WMI mappings
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: synaptics_probe: Not synaptics.
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x0044 (rev. 0x02)
agp0 at pchb0: detected 32764k stolen memory
agp0: aperture at 0xe0000000, size 0x10000000
genfb0 at pci0 dev 2 function 0: vendor 0x8086 product 0x0046 (rev. 0x02)
genfb0: recycling existing fb mapping at ffff80008e432000
genfb0: framebuffer at 0xe0000000, size 1024x768, depth 8, stride 1024
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
inteldrm has not been converted to device_t
inteldrm0 at genfb0: ioapic0 pin 16
drmdev has not been converted to device_t
drmdev0 at inteldrm0
wm0 at pci0 dev 25 function 0: PCH LAN (82577LM) Controller (rev. 0x05)
wm0: interrupting at ioapic0 pin 20
wm0: PCI-Express bus
wm0: FLASH
wm0: Ethernet address 5c:26:0a:13:8f:e1
ihphy0 at wm0 phy 2: i82577 10/100/1000 media interface, rev. 3
ihphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ehci0 at pci0 dev 26 function 0: vendor 0x8086 product 0x3b3c (rev. 0x05)
ehci0: interrupting at ioapic0 pin 16
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
usb0: WARNING: power management not supported
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 22
hdafg0 at hdaudio0 vendor 0x111D product 0x7605 nid 0x01: Sigmatel 92HD81B1X5
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
    nid=0D [pin: Speaker (Built-In)]
           nid=13 [audio output] [source: dac]
    nid=0B [pin: HP Out (Black Jack)]
           nid=13 [audio output] [source: dac]
hdafg0: ADC01 2ch: Mic In [Jack]
    nid=0A [pin: Mic In (Black Jack)]
    nid=0F [pin: Mic In (Black Jack)]
hdafg0: ADC02 2ch: Mic In [Built-In]
    nid=11 [pin: Mic In (Built-In)]
hdafg0: DAC03 2ch: Speaker [Jack]
    nid=0E [pin: Speaker (Black Jack)]
           nid=14 [audio output] [source: dac]
hdafg0: 2ch/2ch 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, independent
hdafg1 at hdaudio0 vendor 0x8086 product 0x2804 nid 0x01: Intel G45 HDMI
hdafg1: DP00 8ch: Digital Out [Jack]
    nid=04 [pin: Digital Out (Jack)]
           nid=02 [audio output] [source: dac]
hdafg1: DP01 8ch: Digital Out [Jack]
    nid=05 [pin: Digital Out (Jack)]
           nid=03 [audio output] [source: dac]
hdafg1: 8ch/0ch 48000Hz PCM16*
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x3b42 (rev. 0x05)
ppb0: PCI Express 2.0  x1 @ 2.5Gb/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 1: vendor 0x8086 product 0x3b44 (rev. 0x05)
ppb1: PCI Express 2.0  x1 @ 2.5Gb/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
iwn0 at pci2 dev 0 function 0: vendor 0x8086 product 0x422b (rev. 0x35)
iwn0: interrupting at ioapic0 pin 17
iwn0: MIMO 3T3R, MoW, address 00:24:d7:55:88:5c
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ppb2 at pci0 dev 28 function 2: vendor 0x8086 product 0x3b46 (rev. 0x05)
ppb2: PCI Express 2.0  x1 @ 2.5Gb/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
sdhc0 at pci3 dev 0 function 0: vendor 0x1180 product 0xe822 (rev. 0x01)
sdhc0: interrupting at ioapic0 pin 18
sdhc0: SD Host Specification 1.0, rev.4
sdhc0: using DMA transfer
sdmmc0 at sdhc0 slot 0
ppb3 at pci0 dev 28 function 3: vendor 0x8086 product 0x3b48 (rev. 0x05)
ppb3: PCI Express 2.0  x1 @ 2.5Gb/s
ppb3: disabling notification events
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ehci1 at pci0 dev 29 function 0: vendor 0x8086 product 0x3b34 (rev. 0x05)
ehci1: interrupting at ioapic0 pin 17
ehci1: EHCI version 1.0
usb1 at ehci1: USB revision 2.0
usb1: WARNING: power management not supported
ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xa5)
pci5 at ppb4 bus 10
pci5: i/o space, memory space enabled
pcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x3b0f (rev. 0x05)
ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x3b2f (rev. 0x05)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xe720ff65
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 4
atabus3 at ahcisata0 channel 5
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x3b30 (rev. 0x05)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at pcib0
tpm0 at isa0 iomem 0xfed40000-0xfed44fff irq 7: device 0x200114e4 rev 0x20
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
pci6 at mainbus0 bus 63
pci6: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb1 at pci6 dev 0 function 0: vendor 0x8086 product 0x2c62 (rev. 0x02)
pchb2 at pci6 dev 0 function 1: vendor 0x8086 product 0x2d01 (rev. 0x02)
pchb3 at pci6 dev 2 function 0: vendor 0x8086 product 0x2d10 (rev. 0x02)
pchb4 at pci6 dev 2 function 1: vendor 0x8086 product 0x2d11 (rev. 0x02)
pchb5 at pci6 dev 2 function 2: vendor 0x8086 product 0x2d12 (rev. 0x02)
pchb6 at pci6 dev 2 function 3: vendor 0x8086 product 0x2d13 (rev. 0x02)
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   3 us, pow  1000 mW
acpicpu0: C2: FFH, lat 205 us, pow   500 mW
acpicpu0: C3: FFH, lat 245 us, pow   350 mW, bus master check
acpicpu0: P0: FFH, lat  10 us, pow 25000 mW, 2533 MHz
acpicpu0: P1: FFH, lat  10 us, pow 23390 mW, 2399 MHz
acpicpu0: P2: FFH, lat  10 us, pow 21835 mW, 2266 MHz
acpicpu0: P3: FFH, lat  10 us, pow 20334 mW, 2133 MHz
acpicpu0: P4: FFH, lat  10 us, pow 18817 mW, 1999 MHz
acpicpu0: P5: FFH, lat  10 us, pow 17351 mW, 1866 MHz
acpicpu0: P6: FFH, lat  10 us, pow 15937 mW, 1733 MHz
acpicpu0: P7: FFH, lat  10 us, pow 14528 mW, 1599 MHz
acpicpu0: P8: FFH, lat  10 us, pow 13163 mW, 1466 MHz
acpicpu0: P9: FFH, lat  10 us, pow 11835 mW, 1333 MHz
acpicpu0: P10: FFH, lat  10 us, pow 10512 mW, 1199 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
acpicpu0: id 1, lapic id 0, cap 0x0bfd, flags 0x0018e297
acpicpu0: P-state coordination: 4 CPUs, domain 0, type HW_ALL
coretemp0 at cpu0: thermal sensor, 1 C resolution
acpicpu1 at cpu1: ACPI CPU
acpicpu1: id 2, lapic id 4, cap 0x0bfd, flags 0x0018e297
acpicpu1: P-state coordination: 4 CPUs, domain 0, type HW_ALL
coretemp1 at cpu1: thermal sensor, 1 C resolution
acpicpu2 at cpu2: ACPI CPU
acpicpu2: id 3, lapic id 1, cap 0x0bfd, flags 0x0018e297
acpicpu2: P-state coordination: 4 CPUs, domain 0, type HW_ALL
acpicpu3 at cpu3: ACPI CPU
acpicpu3: id 4, lapic id 5, cap 0x0bfd, flags 0x0018e297
acpicpu3: P-state coordination: 4 CPUs, domain 0, type HW_ALL
Initializing SSP: 43eed83b03fce4ed 4448d3f439bbd192 909df377268351d5 f94ae108de88a0b5 69ee8034bee20f62 afe78681650d4293 49c30be47a73ac3c 2ea22b43d0d99b06 
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
cpu1: TSC skew=4 drift=0
cpu2: TSC skew=-6 drift=-2
cpu3: TSC skew=-8 drift=6
cpu1: running
cpu2: running
cpu3: running
TSC not known safe on this CPU
timecounter: Timecounter "TSC" frequency 2527169840 Hz quality -100
acpicpu3: ACPI CPUs started
acpiacad0: AC adapter online.
acpiacad0: AC adapter connected
uhub0 at usb0: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
uhub1 at usb1: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
wmidell0: unknown key 0x00 for event 0xD0
ahcisata0 port 0: device present, speed: 3.0Gb/s
ahcisata0 port 1: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0
wd0: 
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 119 GB, 248085 cyl, 16 head, 63 sec, 512 bytes/sect x 250069680 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus1: 1 targets
cd0 at atapibus0 drive 0:  cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
cd0(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uhub2 at uhub0 port 1: vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2
uhub2: single transaction translator
uhub3 at uhub1 port 1: vendor 0x8087 product 0x0020, class 9/0, rev 2.00/0.00, addr 2
uhub3: single transaction translator
uhub2: 6 ports with 6 removable, self powered
uhub3: 8 ports with 8 removable, self powered
ugen0 at uhub3 port 8
uvideo0 at uhub2 port 4 configuration 1 interface 0: CN0F5CWW7866409802FKA01 Laptop_Integrated_Webcam_2M, rev 2.00/a7.20, addr 3
video0 at uvideo0: CN0F5CWW7866409802FKA01 Laptop_Integrated_Webcam_2M, rev 2.00/a7.20, addr 3
ugen0: Broadcom Corp 5880, rev 1.10/1.01, addr 3
crypto: assign driver 0, flags 2
crypto: driver 0 registers alg 1 flags 0 maxoplen 0
crypto: driver 0 registers alg 2 flags 0 maxoplen 0
crypto: driver 0 registers alg 3 flags 0 maxoplen 0
crypto: driver 0 registers alg 4 flags 0 maxoplen 0
crypto: driver 0 registers alg 5 flags 0 maxoplen 0
crypto: driver 0 registers alg 26 flags 0 maxoplen 0
crypto: driver 0 registers alg 27 flags 0 maxoplen 0
crypto: driver 0 registers alg 29 flags 0 maxoplen 0
crypto: driver 0 registers alg 33 flags 0 maxoplen 0
crypto: driver 0 registers alg 17 flags 0 maxoplen 0
crypto: driver 0 registers alg 6 flags 0 maxoplen 0
crypto: driver 0 registers alg 19 flags 0 maxoplen 0
crypto: driver 0 registers alg 7 flags 0 maxoplen 0
crypto: driver 0 registers alg 20 flags 0 maxoplen 0
crypto: driver 0 registers alg 15 flags 0 maxoplen 0
crypto: driver 0 registers alg 24 flags 0 maxoplen 0
crypto: driver 0 registers alg 25 flags 0 maxoplen 0
crypto: driver 0 registers alg 8 flags 0 maxoplen 0
crypto: driver 0 registers alg 21 flags 0 maxoplen 0
crypto: driver 0 registers alg 16 flags 0 maxoplen 0
crypto: driver 0 registers alg 9 flags 0 maxoplen 0
crypto: driver 0 registers alg 10 flags 0 maxoplen 0
crypto: driver 0 registers alg 13 flags 0 maxoplen 0
crypto: driver 0 registers alg 14 flags 0 maxoplen 0
crypto: driver 0 registers alg 28 flags 0 maxoplen 0
crypto: driver 0 registers alg 30 flags 0 maxoplen 0
crypto: driver 0 registers alg 31 flags 0 maxoplen 0
crypto: driver 0 registers alg 32 flags 0 maxoplen 0
crypto: driver 0 registers alg 11 flags 0 maxoplen 0
crypto: driver 0 registers alg 18 flags 0 maxoplen 0
crypto: driver 0 registers alg 23 flags 0 maxoplen 0
crypto: driver 0 registers alg 22 flags 0 maxoplen 0
raidattach: Asked for 8 units
Kernelized RAIDframe activated
pad: requested 1 units
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
iwn0: radio is disabled by hardware switch
iwn0: cannot assign link-local address
iwn0: radio is disabled by hardware switch
iwn0: radio is disabled by hardware switch
iwn0: cannot assign link-local address
cprng sysctl: WARNING pseudorandom rekeying.
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)
wmidell0: unknown key 0x00 for event 0xD0
wmidell0: unknown key 0x00 for event 0xD0
cprng kernel: WARNING pseudorandom rekeying.
set{u,g}id pid 815 (gnome-pty-helper) was invoked by uid 1001 ppid 203 (Terminal) with fd 2 closed

X log

X.Org X Server 1.10.3
Release Date: 2011-07-08
[    52.146] X Protocol Version 11, Revision 0
[    52.146] Build Operating System: NetBSD/amd64  - 
[    52.146] Current Operating System: NetBSD yosemite 6.99.14 NetBSD 6.99.14 (GENERIC) #0: Fri Nov  2 18:25:44 CET 2012  instsoft@yosemite:/tmp/netbsd-drmgem.usr/src/sys/arch/amd64/compile/GENERIC amd64
[    52.146] Build Date: 01 August 2011  01:01:00AM
[    52.146]  
[    52.146] Current version of pixman: 0.23.2
[    52.146]    Before reporting problems, check http://wiki.X.Org
    to make sure that you have the latest version.
[    52.146] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    52.146] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov  3 01:00:02 2012
[    52.148] (II) Loader magic: 0x834c60
[    52.148] (II) Module ABI versions:
[    52.148]    X.Org ANSI C Emulation: 0.4
[    52.148]    X.Org Video Driver: 10.0
[    52.148]    X.Org XInput driver : 12.2
[    52.148]    X.Org Server Extension : 5.0
[    52.156] (--) PCI:*(0:0:2:0) 8086:0046:1028:0410 rev 2, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x000060b0/8
[    52.157] (==) Using default built-in configuration (12 lines)
[    52.157] (==) --- Start of built-in configuration ---
[    52.157]    Section "Device"
[    52.157]        Identifier  "Builtin Default intel Device 0"
[    52.157]        Driver  "intel"
[    52.157]    EndSection
[    52.157]    Section "Screen"
[    52.157]        Identifier  "Builtin Default intel Screen 0"
[    52.157]        Device  "Builtin Default intel Device 0"
[    52.157]    EndSection
[    52.157]    Section "ServerLayout"
[    52.157]        Identifier  "Builtin Default Layout"
[    52.157]        Screen  "Builtin Default intel Screen 0"
[    52.157]    EndSection
[    52.157] (==) --- End of built-in configuration ---
[    52.157] (==) ServerLayout "Builtin Default Layout"
[    52.157] (**) |-->Screen "Builtin Default intel Screen 0" (0)
[    52.157] (**) |   |-->Monitor ""
[    52.158] (**) |   |-->Device "Builtin Default intel Device 0"
[    52.158] (==) No monitor specified for screen "Builtin Default intel Screen 0".
    Using a default monitor configuration.
[    52.158] (==) Not automatically adding devices
[    52.158] (==) Not automatically enabling devices
[    52.161] (==) FontPath set to:
    /usr/X11R7/lib/X11/fonts/misc/,
    /usr/X11R7/lib/X11/fonts/TTF/,
    /usr/X11R7/lib/X11/fonts/Type1/,
    /usr/X11R7/lib/X11/fonts/75dpi/,
    /usr/X11R7/lib/X11/fonts/100dpi/
[    52.161] (==) ModulePath set to "/usr/X11R7/lib/modules"
[    52.161] (==) |-->Input Device ""
[    52.161] (==) |-->Input Device ""
[    52.161] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[    52.161] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[    52.161] (II) LoadModule: "extmod"
[    52.165] (II) Loading /usr/X11R7/lib/modules/extensions/libextmod.so
[    52.175] (II) Module extmod: vendor="X.Org Foundation"
[    52.175]    compiled for 1.10.3, module version = 1.0.0
[    52.175]    Module class: X.Org Server Extension
[    52.175]    ABI class: X.Org Server Extension, version 5.0
[    52.175] (II) Loading extension MIT-SCREEN-SAVER
[    52.175] (II) Loading extension XFree86-VidModeExtension
[    52.175] (II) Loading extension XFree86-DGA
[    52.175] (II) Loading extension DPMS
[    52.175] (II) Loading extension XVideo
[    52.175] (II) Loading extension XVideo-MotionCompensation
[    52.175] (II) Loading extension X-Resource
[    52.175] (II) LoadModule: "dbe"
[    52.176] (II) Loading /usr/X11R7/lib/modules/extensions/libdbe.so
[    52.177] (II) Module dbe: vendor="X.Org Foundation"
[    52.177]    compiled for 1.10.3, module version = 1.0.0
[    52.177]    Module class: X.Org Server Extension
[    52.177]    ABI class: X.Org Server Extension, version 5.0
[    52.177] (II) Loading extension DOUBLE-BUFFER
[    52.177] (II) LoadModule: "glx"
[    52.178] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
[    52.182] (II) Module glx: vendor="X.Org Foundation"
[    52.183]    compiled for 1.10.3, module version = 1.0.0
[    52.183]    ABI class: X.Org Server Extension, version 5.0
[    52.183] (==) AIGLX enabled
[    52.183] (II) Loading extension GLX
[    52.183] (II) LoadModule: "record"
[    52.184] (II) Loading /usr/X11R7/lib/modules/extensions/librecord.so
[    52.185] (II) Module record: vendor="X.Org Foundation"
[    52.185]    compiled for 1.10.3, module version = 1.13.0
[    52.185]    Module class: X.Org Server Extension
[    52.185]    ABI class: X.Org Server Extension, version 5.0
[    52.185] (II) Loading extension RECORD
[    52.185] (II) LoadModule: "dri"
[    52.186] (II) Loading /usr/X11R7/lib/modules/extensions/libdri.so
[    52.187] (II) Module dri: vendor="X.Org Foundation"
[    52.187]    compiled for 1.10.3, module version = 1.0.0
[    52.187]    ABI class: X.Org Server Extension, version 5.0
[    52.188] (II) Loading extension XFree86-DRI
[    52.188] (II) LoadModule: "dri2"
[    52.189] (II) Loading /usr/X11R7/lib/modules/extensions/libdri2.so
[    52.189] (II) Module dri2: vendor="X.Org Foundation"
[    52.189]    compiled for 1.10.3, module version = 1.2.0
[    52.189]    ABI class: X.Org Server Extension, version 5.0
[    52.190] (II) Loading extension DRI2
[    52.190] (II) LoadModule: "intel"
[    52.190] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
[    52.195] (II) Module intel: vendor="X.Org Foundation"
[    52.195]    compiled for 1.10.3, module version = 2.12.0
[    52.195]    Module class: X.Org Video Driver
[    52.195]    ABI class: X.Org Video Driver, version 10.0
[    52.196] (II) LoadModule: "mouse"
[    52.196] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[    52.198] (II) Module mouse: vendor="X.Org Foundation"
[    52.198]    compiled for 1.10.3, module version = 1.7.1
[    52.198]    Module class: X.Org XInput Driver
[    52.198]    ABI class: X.Org XInput driver, version 12.2
[    52.198] (II) LoadModule: "kbd"
[    52.198] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[    52.199] (II) Module kbd: vendor="X.Org Foundation"
[    52.199]    compiled for 1.10.3, module version = 1.6.0
[    52.199]    Module class: X.Org XInput Driver
[    52.199]    ABI class: X.Org XInput driver, version 12.2
[    52.199] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
    i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
    E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
    965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
    4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
    Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
    Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
    Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
    Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
    Ivybridge Desktop (GT1), Ivybridge Desktop (GT2),
    Ivybridge Server (GT1), Ivybridge Server (GT2)
[    52.200] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[    52.200] (--) using VT number 5

[    52.232] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
[    52.233] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    52.233] (II) Loading sub module "vgahw"
[    52.233] (II) LoadModule: "vgahw"
[    52.235] (II) Loading /usr/X11R7/lib/modules/libvgahw.so
[    52.236] (II) Module vgahw: vendor="X.Org Foundation"
[    52.236]    compiled for 1.10.3, module version = 0.1.0
[    52.236]    ABI class: X.Org Video Driver, version 10.0
[    52.236] (II) Loading sub module "ramdac"
[    52.236] (II) LoadModule: "ramdac"
[    52.236] (II) Module "ramdac" already built-in
[    52.236] drmOpenDevice: node name is /dev/dri/card0
[    52.236] drmOpenDevice: open result is 15, (OK)
[    52.236] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[    52.236] drmOpenDevice: node name is /dev/dri/card0
[    52.236] drmOpenDevice: open result is 15, (OK)
[    52.236] drmOpenByBusid: drmOpenMinor returns 15
[    52.236] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
[    52.236] (II) intel(0): Creating default Display subsection in Screen section
    "Builtin Default intel Screen 0" for depth/fbbpp 24/32
[    52.236] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    52.236] (==) intel(0): RGB weight 888
[    52.236] (==) intel(0): Default visual is TrueColor
[    52.236] (II) intel(0): Integrated Graphics Chipset: Intel(R) Arrandale
[    52.236] (--) intel(0): Chipset: "Arrandale"
[    52.236] (--) intel(0): Linear framebuffer at 0xE0000000
[    52.236] (--) intel(0): IO registers at addr 0xF0000000 size 4194304
[    52.236] (WW) intel(0): libpciaccess reported 0 rom size, guessing 64kB
[    52.236] (II) intel(0): No SDVO device is found in VBT
[    52.238] (II) intel(0): 2 display pipes available.
[    52.238] (II) Loading sub module "ddc"
[    52.238] (II) LoadModule: "ddc"
[    52.238] (II) Module "ddc" already built-in
[    52.238] (II) Loading sub module "i2c"
[    52.238] (II) LoadModule: "i2c"
[    52.238] (II) Module "i2c" already built-in
[    52.239] (II) intel(0): Output VGA has no monitor section
[    52.240] (II) intel(0): Output eDP has no monitor section
[    52.241] (II) intel(0): I2C bus "DPDDC-A" initialized.
[    52.295] (II) intel(0): eDP output detected
[    52.295] (II) intel(0): Output HDMI-3 has no monitor section
[    52.295] (II) intel(0): I2C bus "HDMIB" initialized.
[    52.295] (II) intel(0): HDMI-3 output detected
[    52.295] (II) intel(0): Output DP-B has no monitor section
[    52.295] (II) intel(0): I2C bus "DPDDC-B" initialized.
[    52.335] (II) intel(0): DP-B output detected
[    52.335] (II) intel(0): Output HDMI-4 has no monitor section
[    52.335] (II) intel(0): I2C bus "HDMIC" initialized.
[    52.335] (II) intel(0): HDMI-4 output detected
[    52.335] (II) intel(0): Output DP-C has no monitor section
[    52.335] (II) intel(0): I2C bus "DPDDC-C" initialized.
[    52.375] (II) intel(0): DP-C output detected
[    52.415] (II) intel(0): EDID for output VGA
[    52.416] (II) intel(0): I2C device "DPDDC-A:ddc2" registered at address 0xA0.
[    55.077] (II) intel(0): EDID for output eDP
[    55.077] (II) intel(0): Manufacturer: LGD  Model: 24d  Serial#: 0
[    55.077] (II) intel(0): Year: 2010  Week: 0
[    55.077] (II) intel(0): EDID Version: 1.4
[    55.077] (II) intel(0): Digital Display Input
[    55.077] (II) intel(0): 6 bits per channel
[    55.077] (II) intel(0): Digital interface is DisplayPort
[    55.077] (II) intel(0): Max Image Size [cm]: horiz.: 29  vert.: 17
[    55.077] (II) intel(0): Gamma: 2.20
[    55.077] (II) intel(0): No DPMS capabilities specified
[    55.077] (II) intel(0): Supported color encodings: RGB 4:4:4 
[    55.077] (II) intel(0): First detailed timing is preferred mode
[    55.077] (II) intel(0): Preferred mode is native pixel format and refresh rate
[    55.077] (II) intel(0): redX: 0.589 redY: 0.349   greenX: 0.337 greenY: 0.548
[    55.077] (II) intel(0): blueX: 0.155 blueY: 0.122   whiteX: 0.313 whiteY: 0.329
[    55.077] (II) intel(0): Manufacturer's mask: 0
[    55.077] (II) intel(0): Supported detailed timing:
[    55.077] (II) intel(0): clock: 75.5 MHz   Image Size:  294 x 166 mm
[    55.077] (II) intel(0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1581 h_border: 0
[    55.077] (II) intel(0): v_active: 768  v_sync: 771  v_sync_end 777 v_blanking: 793 v_border: 0
[    55.077] (II) intel(0): Supported detailed timing:
[    55.077] (II) intel(0): clock: 50.3 MHz   Image Size:  294 x 166 mm
[    55.077] (II) intel(0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1576 h_border: 0
[    55.077] (II) intel(0): v_active: 768  v_sync: 771  v_sync_end 777 v_blanking: 793 v_border: 0
[    55.077] (II) intel(0):  DR347133WH1
[    55.077] (II) intel(0): Unknown vendor-specific block 0
[    55.077] (II) intel(0): EDID (in hex):
[    55.078] (II) intel(0):     00ffffffffffff0030e44d0200000000
[    55.078] (II) intel(0):     00140104951d117802d5d59659568c27
[    55.078] (II) intel(0):     1f505400000001010101010101010101
[    55.078] (II) intel(0):     0101010101017e1d56d7500019303020
[    55.078] (II) intel(0):     360026a61000001aa61356d250001930
[    55.078] (II) intel(0):     3020360026a61000001a000000fe0044
[    55.078] (II) intel(0):     52333437803133335748310a00000000
[    55.078] (II) intel(0):     00004131160000000009010a20200006
[    55.078] (II) intel(0): EDID vendor "LGD", prod id 589
[    55.078] (II) intel(0): Printing probed modes for output eDP
[    55.078] (II) intel(0): Modeline "1366x768"x60.2   75.50  1366 1414 1446 1581  768 771 777 793 +hsync -vsync (47.8 kHz)
[    55.078] (II) intel(0): Modeline "1366x768"x40.2   50.30  1366 1414 1446 1576  768 771 777 793 +hsync -vsync (31.9 kHz)
[    55.078] (II) intel(0): I2C device "HDMIB:ddc2" registered at address 0xA0.
[    55.082] (II) intel(0): EDID for output HDMI-3
[    55.082] (II) intel(0): EDID for output HDMI-3
[    55.097] (II) intel(0): EDID for output DP-B
[    55.097] (II) intel(0): I2C device "HDMIC:ddc2" registered at address 0xA0.
[    55.101] (II) intel(0): EDID for output HDMI-4
[    55.101] (II) intel(0): EDID for output HDMI-4
[    55.117] (II) intel(0): EDID for output DP-C
[    55.117] (II) intel(0): Output VGA disconnected
[    55.117] (II) intel(0): Output eDP connected
[    55.117] (II) intel(0): Output HDMI-3 disconnected
[    55.117] (II) intel(0): Output DP-B disconnected
[    55.117] (II) intel(0): Output HDMI-4 disconnected
[    55.117] (II) intel(0): Output DP-C disconnected
[    55.117] (II) intel(0): Using exact sizes for initial modes
[    55.117] (II) intel(0): Output eDP using initial mode 1366x768
[    55.117] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[    55.118] (II) intel(0): detected 512 kB GTT.
[    55.118] (II) intel(0): detected 32764 kB stolen memory.
[    55.118] (==) intel(0): video overlay key set to 0x101fe
[    55.118] (==) intel(0): DPI set to (96, 96)
[    55.118] (II) Loading sub module "fb"
[    55.118] (II) LoadModule: "fb"
[    55.119] (II) Loading /usr/X11R7/lib/modules/libfb.so
[    55.121] (II) Module fb: vendor="X.Org Foundation"
[    55.121]    compiled for 1.10.3, module version = 1.0.0
[    55.121]    ABI class: X.Org ANSI C Emulation, version 0.4
[    55.121] (II) Loading sub module "int10"
[    55.121] (II) LoadModule: "int10"
[    55.122] (II) Loading /usr/X11R7/lib/modules/libint10.so
[    55.124] (II) Module int10: vendor="X.Org Foundation"
[    55.124]    compiled for 1.10.3, module version = 1.0.0
[    55.124]    ABI class: X.Org Video Driver, version 10.0
[    55.124] (WW) intel(0): remove MTRR a0000 - c0000
[    55.126] (WW) intel(0): remove MTRR c0000 - 100000
[    55.127] (II) intel(0): Primary V_BIOS segment is: 0xc000
[    55.127] (WW) intel(0): remove MTRR 0 - 1000
[    55.130] (--) intel(0): Console VGA mode is 0x105
[    55.130] (==) Depth 24 pixmap format is 32 bpp
[    55.131] (II) intel(0): Kernel reported 1006592 total, 0 used
[    55.131] (II) intel(0): I830CheckAvailableMemory: 4026368 kB available
[    55.131] (II) intel(0): [DRI2] Setup complete
[    55.131] (II) intel(0): [DRI2]   DRI driver: i965
[    55.131] (**) intel(0): Framebuffer tiled
[    55.131] (**) intel(0): Pixmaps tiled
[    55.131] (**) intel(0): 3D buffers tiled
[    55.131] (**) intel(0): SwapBuffers wait enabled
[    55.190] (==) intel(0): VideoRam: 262144 KB
[    55.190] (II) intel(0): Allocated new frame buffer 1408x768 stride 5632, tiled
[    55.299] (II) intel(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
[    55.299] (WW) intel(0): remove MTRR a0000 - b0000
[    55.303] (II) UXA(0): Driver registered support for the following operations:
[    55.303] (II)         solid
[    55.303] (II)         copy
[    55.303] (II)         composite (RENDER acceleration)
[    55.303] (II)         put_image
[    55.303] (II)         get_image
[    55.303] (==) intel(0): Backing store disabled
[    55.303] (==) intel(0): Silken mouse enabled
[    55.304] (II) intel(0): Initializing HW Cursor
[    56.558] Plane disable
[    56.558] Pipe disable
[    56.578] PFIT disable
[    56.578] FDI TX disable
[    56.578] FDI RX disable
[    56.598] FDI TX train 1 preload
[    56.598] FDI RX train 1 preload
[    56.618] Transcoder disable
[    56.638] PCH DPLL disable
[    56.638] FDI RX PLL PCD disable
[    56.638] FDI TX PLL disable 00024040
[    56.658] FDI RX PLL disable 00044000
[    56.678] DPMS off done
[    56.698] Plane disable
[    56.698] Pipe disable
[    56.718] PFIT disable
[    56.718] FDI TX disable
[    56.718] FDI RX disable
[    56.738] FDI TX train 1 preload
[    56.738] FDI RX train 1 preload
[    56.758] Transcoder disable
[    56.778] PCH DPLL disable
[    56.778] FDI RX PLL PCD disable
[    56.778] FDI TX PLL disable 00004040
[    56.798] FDI RX PLL disable 00044000
[    56.818] DPMS off done
[    56.881] (II) intel(0): Fixed memory allocation layout:
[    56.881] (II) intel(0): 0x01fff000:            end of stolen memory
[    56.881] (II) intel(0): 0x01fff000-0x0fffffff: DRI memory manager (229380 kB)
[    56.881] (II) intel(0): 0x10000000:            end of aperture
[    56.881] (II) intel(0): BO memory allocation layout:
[    56.881] (II) intel(0): 0x01fff000:            start of memory manager
[    56.881] (II) intel(0): 0x02776000-0x0277ffff: HW cursors (40 kB)
[    56.881] (II) intel(0): 0x10000000:            end of memory manager
[    57.289] Plane disable
[    57.289] Pipe disable
[    57.309] PFIT disable
[    57.309] FDI TX disable
[    57.309] FDI RX disable
[    57.329] FDI TX train 1 preload
[    57.329] FDI RX train 1 preload
[    57.349] Transcoder disable
[    57.369] PCH DPLL disable
[    57.369] FDI RX PLL PCD disable
[    57.369] FDI TX PLL disable 00024040
[    57.389] FDI RX PLL disable 00044000
[    57.409] DPMS off done
[    57.429] Plane disable
[    57.429] Pipe disable
[    57.449] PFIT disable
[    57.449] FDI TX disable
[    57.449] FDI RX disable
[    57.469] FDI TX train 1 preload
[    57.469] FDI RX train 1 preload
[    57.489] Transcoder disable
[    57.509] PCH DPLL disable
[    57.509] FDI RX PLL PCD disable
[    57.509] FDI TX PLL disable 00004040
[    57.529] FDI RX PLL disable 00044000
[    57.549] DPMS off done
[    57.899] Plane disable
[    57.899] Pipe disable
[    57.919] PFIT disable
[    57.919] FDI TX disable
[    57.919] FDI RX disable
[    57.939] FDI TX train 1 preload
[    57.939] FDI RX train 1 preload
[    57.959] Transcoder disable
[    57.979] PCH DPLL disable
[    57.979] FDI RX PLL PCD disable
[    57.979] FDI TX PLL disable 00024040
[    57.999] FDI RX PLL disable 00044000
[    58.019] DPMS off done
[    58.039] (WW) intel(0): Chosen PLL clock of 216.0 Mhz more than 2% away from desired 270.0 Mhz
[    58.039] bpp 6
[    58.239] Pipe enable
[    58.259] Plane enable
[    58.279] LUT load
[    58.279] DPMS on done
[    58.830] Plane disable
[    58.830] Pipe disable
[    58.850] PFIT disable
[    58.850] FDI TX disable
[    58.850] FDI RX disable
[    58.870] FDI TX train 1 preload
[    58.870] FDI RX train 1 preload
[    58.890] Transcoder disable
[    58.910] PCH DPLL disable
[    58.910] FDI RX PLL PCD disable
[    58.910] FDI TX PLL disable 00004040
[    58.930] FDI RX PLL disable 00044000
[    58.950] DPMS off done
[    58.970] (II) intel(0): Output configuration:
[    58.970] (II) intel(0):   Pipe A is on
[    58.970] (II) intel(0):   Display plane A is now enabled and connected to pipe A.
[    58.970] (II) intel(0):   Pipe B is off
[    58.970] (II) intel(0):   Display plane B is now disabled and connected to pipe B.
[    58.970] (II) intel(0):   Output VGA is connected to pipe none
[    58.970] (II) intel(0):   Output eDP is connected to pipe A
[    58.970] (II) intel(0):   Output HDMI-3 is connected to pipe none
[    58.970] (II) intel(0):   Output DP-B is connected to pipe none
[    58.970] (II) intel(0):   Output HDMI-4 is connected to pipe none
[    58.970] (II) intel(0):   Output DP-C is connected to pipe none
[    58.970] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    58.972] (==) intel(0): DPMS enabled
[    58.972] (==) intel(0): Intel XvMC decoder enabled
[    58.973] (II) intel(0): Set up textured video
[    58.974] (II) intel(0): [XvMC] xvmc_vld driver initialized.
[    58.974] (II) intel(0): direct rendering: DRI2 Enabled
[    58.974] (--) RandR disabled
[    58.974] (II) Initializing built-in extension Generic Event Extension
[    58.974] (II) Initializing built-in extension SHAPE
[    58.974] (II) Initializing built-in extension MIT-SHM
[    58.974] (II) Initializing built-in extension XInputExtension
[    58.974] (II) Initializing built-in extension XTEST
[    58.974] (II) Initializing built-in extension BIG-REQUESTS
[    58.974] (II) Initializing built-in extension SYNC
[    58.974] (II) Initializing built-in extension XKEYBOARD
[    58.974] (II) Initializing built-in extension XC-MISC
[    58.974] (II) Initializing built-in extension SECURITY
[    58.974] (II) Initializing built-in extension XINERAMA
[    58.974] (II) Initializing built-in extension XFIXES
[    58.974] (II) Initializing built-in extension XFree86-Bigfont
[    58.974] (II) Initializing built-in extension RENDER
[    58.974] (II) Initializing built-in extension RANDR
[    58.974] (II) Initializing built-in extension COMPOSITE
[    58.974] (II) Initializing built-in extension DAMAGE
[    59.008] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    59.008] (II) AIGLX: enabled GLX_INTEL_swap_event
[    59.008] (II) AIGLX: enabled GLX_SGI_make_current_read
[    59.008] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    59.008] (II) AIGLX: Loaded and initialized /usr/X11R7/lib/modules/dri/i965_dri.so
[    59.008] (II) GLX: Initialized DRI2 GL provider for screen 0
[    59.009] (II) intel(0): Setting screen physical size to 361 x 203
[    59.139] (II) Using input driver 'mouse' for ''
[    59.139] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[    59.140] (**) Option "CorePointer"
[    59.140] (**) : always reports core events
[    59.140] (WW) : No Device specified, looking for one...
[    59.183] (II) : found Device "/dev/wsmouse"
[    59.191] (--) : Device: "/dev/wsmouse"
[    59.191] (==) : Protocol: "WSMouse"
[    59.191] (**) : always reports core events
[    59.191] (**) Option "Device" "/dev/wsmouse"
[    59.202] (==) : Emulate3Buttons, Emulate3Timeout: 50
[    59.203] (**) : ZAxisMapping: buttons 4 and 5
[    59.203] (**) : Buttons: 9
[    59.203] (II) XINPUT: Adding extended input device "" (type: MOUSE)
[    59.203] (**) : (accel) keeping acceleration scheme 1
[    59.203] (**) : (accel) acceleration profile 0
[    59.203] (**) : (accel) acceleration factor: 2.000
[    59.203] (**) : (accel) acceleration threshold: 4
[    59.209] (II) Using input driver 'kbd' for ''
[    59.209] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[    59.209] (**) Option "CoreKeyboard"
[    59.209] (**) : always reports core events
[    59.209] (**) : always reports core events
[    59.209] (**) Option "Protocol" "standard"
[    59.209] (**) Option "XkbRules" "base"
[    59.209] (**) Option "XkbModel" "pc105"
[    59.210] (**) Option "XkbLayout" "us"
[    59.210] (II) XINPUT: Adding extended input device "" (type: KEYBOARD)
[    59.250] Pipe enable
[    59.250] Plane enable
[    59.250] LUT load
[    59.250] DPMS on done
[   107.089] (II) UnloadModule: "mouse"
[   107.128] (II) Unloading mouse
[   107.128] (II) UnloadModule: "kbd"
[   107.128] (II) Unloading kbd
[   107.143] Pipe enable
[   107.143] Plane enable
[   107.143] LUT load
[   107.143] DPMS on done
gsutre commented 12 years ago

The problem also occurs when the framebuffer console is displayed, at boot, on an external VGA monitor. When the X server exits, the external monitor displays a still image with a few colored dots (and the internal panel is disabled).

(The command mentioned in the issue #11 was run to make sure that console is restored on the external monitor.)

gsutre commented 12 years ago

For the record, the following patch does not help. The patch makes sure that the video mode is restored as is. Also, the patch clears the flags field (which is not zero according to some tests) before the INT 10h call.

--- intel_driver.c  2012-10-23 14:04:22.000000000 +0200
+++ intel_driver.c  2012-11-03 12:21:53.000000000 +0100
@@ -1614,7 +1614,7 @@
                intel->int10->cx =
                intel->int10->dx = 0;
                xf86ExecX86int10(intel->int10);
-               intel->int10Mode = intel->int10->bx & 0x3fff;
+               intel->int10Mode = intel->int10->bx /* & 0x3fff */;
                xf86DrvMsg(scrn->scrnIndex, X_PROBED,
                "Console VGA mode is 0x%x\n", intel->int10Mode);
            } else {
@@ -2683,8 +2683,9 @@
            /* Use int10 to restore the console mode */
            int10->num = 0x10;
            int10->ax = 0x4f02;
-           int10->bx = intel->int10Mode | 0x8000;
+           int10->bx = intel->int10Mode /* | 0x8000 */;
            int10->cx = int10->dx = 0;
+           int10->flags = 0;
            xf86ExecX86int10(int10);
        }
    }

Note: with this patch, for a framebuffer console with the default VESA video mode (640x480x8), the X log shows:

Console VGA mode is 0x4101