PDA

View Full Version : how to set WXGA screen resolution (RoFreesbie) + web securit


.ee
05-16-2008, 09:04 AM
Hi! I am BSD newbie.

I have installed RoFreesbie on my subnotebook with Intel 915 graphic accelerator. Unfortunatly, it boots to 1024x768 instead of 1280x768 resolution.

How can I fix it?

I have tried already PC- and Desktop- BSD to decide which one fits my needs better (web browsing, pdf djvu ps documents reading, Latex, emacs + minimal administration per security/stability are the most basic of my needs).

I would also appreciate if someone could point me a discussion of linux vs. freeBSD in terms usability/stability/security. I still don't get the reason for the statements that BSD is kind of better than Linux. I just need more arguments to decide what is better for me. I actively participate on several political forums related to antidemocratic countries like China and Russia and I have already experienced attacks on my boxes and intrusion attempts, so I am looking for an OS which would make them more secure.

AngelescuO
05-21-2008, 09:18 PM
Hi,

You have saed that your videocard is an i915.
To solve the problem first you must see if the videocard was correctly detected.

For seeing that please use an text editor and open /etc/X11/XF86Config file.
If it is well detected than in Section "Device" at VendorName should be Intel and driver probably ixxx where xxx is a number ( probably 810 ).

If the videocard was proper detected than you must add your desired resolution "1280x768" in
SubSection "Display"
Depth 24

Modes "1440x900" "1280x800" "1280x1024" "1280x768" "1024x768" "800x600" "640x480"

if your DefaultDepth is 24.
After that please save the /etc/X11/XF86Config file.

Hope it will work.
Best wishes!

Angelescu Ovidiu

TerryP
05-21-2008, 10:27 PM
this mgiht be an interesting read for you (http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php)


This reminds me, I still need to get my fat butt back to work on the TeX Live PBI, all that needs doing is splitting it up into sub-pbi and testing the install scripts.



'minimal administration per security/stability' for me points to OpenBSD, although PC-BSD/DesktopBSD shouldn't give any real problems for most desktop users.

.ee
05-24-2008, 09:38 PM
Hi Ovidiu,

Thanks! I tried your suggestion but, surprisingly, it does not work.

relevant parts of new edited XF86Config file:

SubSection "Display"
Depth 16
Modes "1440x900" "1280x800" "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1440x900" "1280x800" "1280x1024" "1280x768" "800x600" "640x480"
EndSubSection


Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
EndSection

On the other hand, the resolution is set correctly on this notebook in DesktopBSD out of the box. They have /etc/X11/xorg.conf file which looks similar to your XF86Config but contains no part with the list of screen resolution. The display itself is recognised there in the same way:

Section "Monitor"
#DisplaySize 260 160 # mm
Identifier "Monitor0"
VendorName "LCD"
ModelName "5800"


I also tried xrandr with the following result:

~# xrandr --fb 1280x768
xrandr: screen cannot be larger than 1024x768 (desired size 1280x768)

I noticed that in RoFreesbie Tools > Display Configuration 1024x768 is still present as the only option! It probably indicates that some other file should also be edited to change the resolution.

I would like to praise your choice of KDE background themes of which I loved the "Fusine Lakes" theme so much that I would like to ask you where I can get this picture to set it as a wallpaper on my windows and linux distros!

ADDED: Here are the fragments of the output of some relevant programs which I found mentioned on the web in the context in question:


~# xdpyinfo


screen #0:
dimensions: 1024x768 pixels (260x161 millimeters)
resolution: 100x121 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x56
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xfa4031
KeyPressMask EnterWindowMask LeaveWindowMask
KeymapStateMask StructureNotifyMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
ColormapChangeMask
number of visuals: 9
default visual id: 0x23
visual:
visual id: 0x23
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:




fragments from /var/log/Xorg.0.log file which seem to be relevant:


(--) PCI:*(0:2:0) Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller rev 3, Mem @ 0xdff00000/19, 0xc0000000/28, 0xdfec0000/18, I/O @ 0xec38/3
(--) PCI: (0:2:1) Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller rev 3, Mem @ 0xdff80000/19


(II) PCI I/O resource overlap reduced 0x0000bf40 from 0x0000bf7f to 0x0000bf5f
(II) PCI I/O resource overlap reduced 0x0000bf80 from 0x0000bfff to 0x0000bf9f
(II) Active PCI resource ranges after removing overlaps:
[0] -1 0 0xdfcff000 - 0xdfcfffff (0x1000)
...


(II) I810: Driver for Intel Integrated Graphics Chipsets: i810, i810-dc100,
i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221 (i915),
915GM, 945G, 945GM, 965G, 965G, 965Q, 946GZ
(II) Primary Device is: PCI 00:02:0
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(--) Chipset 915GM found
(II) resource ranges after xf86ClaimFixedResources() call:


(II) I810(0): Manufacturer: LCD Model: 5800 Serial#: 858992947
(II) I810(0): Year: 2006 Week: 13
(II) I810(0): EDID Version: 1.3
(II) I810(0): Digital Display Input
(II) I810(0): Max H-Image Size [cm]: horiz.: 26 vert.: 16
(II) I810(0): Gamma: 2.20
(II) I810(0): No DPMS capabilities specified; RGB/Color Display
(II) I810(0): First detailed timing is preferred mode
(II) I810(0): redX: 0.617 redY: 0.332 greenX: 0.297 greenY: 0.546
(II) I810(0): blueX: 0.147 blueY: 0.126 whiteX: 0.313 whiteY: 0.329
(II) I810(0): Manufacturer's mask: 0
(II) I810(0): Supported Future Video Modes:
(II) I810(0): #0: hsize: 1280 vsize 800 refresh: 60 vid: 129
(II) I810(0): Supported additional Video Mode:
(II) I810(0): clock: 79.5 MHz Image Size: 264 x 159 mm
(II) I810(0): h_active: 1280 h_sync: 1344 h_sync_end 1472 h_blank_end 1664 h_border: 0
(II) I810(0): v_active: 768 v_sync: 771 v_sync_end 778 v_blanking: 798 v_border: 0
(II) I810(0): Supported additional Video Mode:
(II) I810(0): clock: 79.5 MHz Image Size: 264 x 159 mm
(II) I810(0): h_active: 1280 h_sync: 1344 h_sync_end 1472 h_blank_end 1664 h_border: 0
(II) I810(0): v_active: 768 v_sync: 771 v_sync_end 778 v_blanking: 798 v_border: 0



(II) I810(0): EDID vendor "LCD", prod id 22528
(II) I810(0): DDCModeFromDetailedTiming: 1280x768 Warning: We only handle sepe
rate sync.
(II) I810(0): Printing DDC gathered Modelines:
(II) I810(0): Modeline "1280x768"x0.0 79.50 1280 1344 1472 1664 768 771 77
8 798 -hsync -vsync (47.8 kHz)
(II) I810(0): Modeline "1280x768"x0.0 79.50 1280 1344 1472 1664 768 771 77
8 798 -hsync -vsync (47.8 kHz)
(II) I810(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 8
09 831 -hsync +vsync (49.7 kHz)
(--) I810(0): A non-CRT device is attached to pipe B.
No refresh rate overrides will be attempted.
(--) I810(0): Maximum space available for video modes: 12288 kByte
Mode: 30 (640x480)
...
Mode: 34 (1024x768)
...

Mode: 38 (0x0)

!!!NO mode with (1280x768) is listed here!



(II) I810(0): Monitor0: Using hsync range of 43.89-48.51 kHz
(II) I810(0): Monitor0: Using vrefresh value of 60.00 Hz
(II) I810(0): Not using mode "1440x900" (no mode of this name)
(II) I810(0): Not using mode "1280x800" (no mode of this name)
(II) I810(0): Not using mode "1280x1024" (no mode of this name)
(II) I810(0): Not using mode "1280x768" (no mode of this name)
(II) I810(0): Not using mode "800x600" (no mode of this name)
(II) I810(0): Not using mode "640x480" (no mode of this name)
(--) I810(0): Virtual size is 1024x768 (pitch 1024)
(**) I810(0): Built-in mode "1024x768"
(**) I810(0): Display dimensions: (260, 160) mm
(**) I810(0): DPI set to (100, 121)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/local/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.4.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version

.ee
05-26-2008, 08:07 PM
After looking on the net I seems to have solved the problem. Changing XF86Config file is not sufficient.

I don't know if this way which worked for me is optimal or unique.

In short,
1) install 915resolution tool,
2) >915resolution -l
to chose the mode to modify. My choice is ode 38,
3) >915resolution 38 1280 768 24
4) add line /usr/local/sbin/915resolution 38 1280 768 24
to the file /etc/rc.conf

Some places were saying /bin/ not /sbin. Some places were describing other/alternative means to make sure the new resuluton will be loaded at every startup.

Note that my Desktop-BSD installation was able to load the correct resolution out of the box.

DragnLord
05-27-2008, 03:34 AM
1) This is not a forum to complain about problems you may have with RoFreesbie.
2) I'm happy that DesktopBSD worked well for you, you should have posted this in their forum.
3) Why didn't you post on how PC-BSD worked for you?

TerryP
05-28-2008, 07:07 AM
4) add line /usr/local/sbin/915resolution 38 1280 768 24
to the file /etc/rc.conf


That should be placed in /etc/rc.local not /etc/rc.conf -> rc.local == local resource configuration script, rc.conf == system configuration for resource configuration.


The location 915resolution is installed to would very by operating system (i.e. FreeBSD or Linux Distro Foo). You can find the location of a program in your path with the 'which' command, e.g.


Terry@dixie$ which 915resolution 7:00
/usr/local/sbin/915resolution

.ee
05-30-2008, 08:26 AM
4) add line /usr/local/sbin/915resolution 38 1280 768 24
to the file /etc/rc.conf


That should be placed in /etc/rc.local not /etc/rc.conf -> rc.local == local resource configuration script, rc.conf == system configuration for resource configuration.


Wierdly, there no line usr/local/sbin/915resolution 38 1280 768 24 in my
/etc/rc.local but I have put it to /etc/rc.conf and the resolution is recognized now. :roll:

PS: The resoluton was also recognized on PC-BSD which I tried several month ago.

TerryP
05-30-2008, 10:19 PM
sighs (http://www.freebsd.org/cgi/man.cgi?query=rc&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html)