|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Letterboxing X11?
Hey guys,
My sister’s laptop uses a (groan…) Poulsbo video chipset. She’s been on Ubuntu for a while, but the blob driver is obviously buggy and leads to near‐constant freezing, so I thought I’d try OpenBSD. Obviously there’s no chance of getting 1366×768 resolution on there, so I’m not even going to try. Right now when X11 starts, it’s in 1024×768 stretched to fill the screen. Since this isn’t the correct aspect ratio, things look stretched and ugly. I would like to put letterboxes on either side of the screen and have a non‐stretched 1024×768. It looks like the “NoStretch” option is what I want (EDIT: c.f. chips(4)). I ran X -configure (results shown below), tested it, works just like it does without the conf (i.e. fine except for the stretching). Based on this quote from the page, I think I can put NoStretch under Device: Quote:
This xorg.conf is the one generated by X -configure, except for the NoStretch line. Code:
Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/X11R6/lib/modules" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/TTF/" FontPath "/usr/X11R6/lib/X11/fonts/OTF" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" EndSection Section "Module" Load "dbe" Load "dri" Load "dri2" Load "extmod" Load "glx" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "wsmouse" Option "Device" "/dev/wsmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "ShadowFB" # [<bool>] #Option "DefaultRefresh" # [<bool>] #Option "ModeSetClearScreen" # [<bool>] Option "NoStretch" "on" # ADDED LINE Identifier "Card0" Driver "vesa" VendorName "Intel" BoardName "US15W Video" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Code:
OpenBSD 4.6-current (GENERIC.MP) #356: Tue Dec 15 14:35:53 MST 2009 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Atom(TM) CPU Z520 @ 1.33GHz ("GenuineIntel" 686-class) 1.34 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,xTPR real mem = 1063485440 (1014MB) avail mem = 1021771776 (974MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/12/09, BIOS32 rev. 0 @ 0xfda50, SMBIOS rev. 2.5 @ 0x3f6bf000 (35 entries) bios0: vendor Acer version "V0.3204" date 05/12/2009 bios0: Acer AO751h acpi0 at bios0: rev 2 acpi0: tables DSDT FACP HPET MCFG TCPA TMOR APIC BOOT SLIC SSDT acpi0: wakeup devices PWRB(S3) PXS1(S5) PXS2(S3) USB1(S3) USB2(S3) EHC1(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU Z520 @ 1.33GHz ("GenuineIntel" 686-class) 1.34 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,xTPR ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP01) acpiprt2 at acpi0: bus 3 (RP02) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature 95 degC acpiac0 at acpi0: AC unit offline acpibat0 at acpi0: BAT1 not present acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PWRB acpibtn2 at acpi0: SLPB acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: DD01 acpivout1 at acpivideo0: DD02 acpivout2 at acpivideo0: DD04 acpivout3 at acpivideo0: DD05 acpivout4 at acpivideo0: DD04 acpivout5 at acpivideo0: DD05 bios0: ROM list: 0xc0000/0xe600! 0xce800/0x1000 0xe0000/0x1800! cpu0: Enhanced SpeedStep 1331 MHz: speeds: 1333, 1067, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel US15W Host" rev 0x07 vga1 at pci0 dev 2 function 0 "Intel US15W Video" rev 0x07 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp at vga1 not configured azalia0 at pci0 dev 27 function 0 "Intel SCH HD Audio" rev 0x07: apic 2 int 22 (irq 10) azalia0: codecs: Realtek ALC272 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel SCH PCIE" rev 0x07: apic 2 int 17 (irq 4) pci1 at ppb0 bus 2 re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102EL (0x2480), apic 2 int 16 (irq 7), address 00:23:8b:d3:7b:47 rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb1 at pci0 dev 28 function 1 "Intel SCH PCIE" rev 0x07: apic 2 int 16 (irq 7) pci2 at ppb1 bus 3 mem address conflict 0xd0000000/0x10000 ath0 at pci2 dev 0 function 0 "Atheros AR5424" rev 0x01: apic 2 int 17 (irq 4) ath0: AR5424 14.2 phy 7.0 rf 0.0, WOR5_ETSIC, address 00:24:2c:9d:6c:ea uhci0 at pci0 dev 29 function 0 "Intel SCH USB" rev 0x07: apic 2 int 23 (irq 10) uhci1 at pci0 dev 29 function 1 "Intel SCH USB" rev 0x07: apic 2 int 19 (irq 5) uhci2 at pci0 dev 29 function 2 "Intel SCH USB" rev 0x07: apic 2 int 18 (irq 3) ehci0 at pci0 dev 29 function 7 "Intel SCH USB" rev 0x07: apic 2 int 21 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel SCH LPC" rev 0x07 pciide0 at pci0 dev 31 function 1 "Intel SCH IDE" rev 0x07: DMA, channel 0 wired to compatibility wd0 at pciide0 channel 0 drive 0: <ST9160310AS> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub0 port 4 configuration 1 interface 0 "SuYin WebCam" rev 2.00/2.22 addr 2 video0 at uvideo0 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root root on wd0a swap on wd0b dump on wd0b
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. Last edited by backrow; 20th March 2010 at 06:25 AM. |
|
|||
Quote:
Quote:
Code:
Option "NoStretch" "enable" |
|
|||
I had come across that thread before. I got the “on” from xorg.conf(7):
Quote:
Incidentally… I checked Xorg.0.log, and saw this: Code:
(WW) VESA(0): Option "NoStretch" is not used EDIT: It looks like NoStretch is limited to the Chips and Technologies video driver. Seems like this is the wrong way to go. Is there another way to letterbox?
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. Last edited by backrow; 20th March 2010 at 06:28 AM. |
|
|||
My suggestion would be to post to OpenBSD's x11@ mailing list. This is a low traffic list, & most likely you will be answered by Matthieu Herrb, who is OpenBSD's maintainer for Xenocara. Information on subscribing can be found at the following:
http://openbsd.org/mail.html |
|
|||
Quote:
Am I missing something really obvious here?
__________________
May the source be with you! |
|
|||
Custom modelines probably won't help.
VESA VBE is rather limited, there is a list of predefined modes that the BIOS/Video vendor configure.. using a mode not in this list isn't possible, so various tools have existed for some chipsets, but generally they're not to be relied upon. Until a driver exists for this Intel chipset (..seems to be a rebranded PowerVR) you're mostly out of luck. |
|
|