DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th March 2010
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default 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:
Options related to drivers can be present in the Screen, Device and Monitor sections and the Display subsections. The order of precedence is Display, Screen, Monitor, Device.
Tried it and restarted X, but there was no change. I’m no X expert — what am I missing?

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.
Reply With Quote
  #2   (View Single Post)  
Old 20th March 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,904
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by backrow View Post
It looks like the “NoStretch” option is what I want.
Quote:
Code:
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
SImply Googling for "x11 nostretch" yielded the following:
Code:
Option "NoStretch" "enable"
FWIW. I have not tested to confirm.
Reply With Quote
  #3   (View Single Post)  
Old 20th March 2010
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by ocicat View Post
Code:
Option "NoStretch" "enable"
I had come across that thread before. I got the “on” from xorg.conf(7):
Quote:
Boolean options may optionally have a value specified. When no value is specified, the option's value is TRUE. The following boolean option values are recognised as TRUE:

1, on, true, yes
I did try with “enable” after your post, but again, no change.

Incidentally… I checked Xorg.0.log, and saw this:
Code:
(WW) VESA(0): Option "NoStretch" is not used
It appears with either “enable” or “on”. Not sure what the significance is.

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.
Reply With Quote
  #4   (View Single Post)  
Old 20th March 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,904
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by backrow View Post
Is there another way to letterbox?
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
Reply With Quote
  #5   (View Single Post)  
Old 20th March 2010
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 270
Thanked 23 Times in 23 Posts
Default

Quote:
Originally Posted by backrow View Post
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.
Does Xenocara not support mode setting (Modes in the Screen section)?
Am I missing something really obvious here?
__________________
May the source be with you!
Reply With Quote
  #6   (View Single Post)  
Old 20th March 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,804
Thanked 214 Times in 189 Posts
Default

Certainly one can use Modelines.

My 1024x600 "widescreen" netbook has an Intel chipset and needs no xorg.conf at all.
Reply With Quote
  #7   (View Single Post)  
Old 20th March 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick