This is the old SliTaz forum - Please use the main forum.slitaz.org

Xorg resolution
  • johnpauljohnpaul February 2010
    Hi,
    using Xvesa, my best screen resolution was 640*780.
    I installed Xorg-server to try to obtain a better resolution. I followed instructions in the handbook...
    Xorg is working but I get the same resolution. Only text of icons and windows titles appear smaller.
    Please could you help me change the resolution settings of Xorg? Do I need to change something in xorg.conf?
    Thanks
    JP
  • babaorumbabaorum February 2010
    Hi, you should get an eye on /root/.xsession and $HOME/.xsession file contents: here is the location of the screen resolution for X server as XVesa.
    You should stick with XVesa, much simplier to manage. It shoud let you use nice proportional resolutions, as 1280x1024, 1024x768, 800x600, etc.
    If you want to get some "non-4/3" resolutions, then stay with Xorg but as I don't use it, I can't help you much more with it.
    --Babaorum
  • johnpauljohnpaul February 2010
    Hi,
    Xvesa is only proposing 640x780, not better. I know that it usually allows more resolutions... maybe the graphic card is not well recognize, or there is a driver problem.
    Thank you for your help!
  • LuXLuX February 2010
    Hello Johnpaul,

    if you are using Xorg and do not have a correct resolution, you may have to look for a video driver adapted to your graphic card. To know the name of your card:
    # lspci | grep VGA

    To find if there is an xorg driver with a similar name:
    # tazpkg search xorg-xf86-video

    If you find one whose name matches the name of your card, install it with tazpkg and edit as root your /etc/X11/xorg.conf file in order to replace the default driver, named "vesa", by yours. For example if you installed the package xorg-xf86-video-trident, replace "vesa" by "trident" in xorg.conf.

    Sheers,
    LuX.
  • johnpauljohnpaul February 2010
    ok, Thanks for helping!
    lspci told me that my card is an Intel corp 82865G Integrated graphics controller.
    So I installed the xf86-video-intel driver, replacing vesa by intel in xorg.conf,
    but not better... even slim doesn't start in graphic mode ("welcome to your box" message and text mode instead).
    Maybe I used the wrong driver? I810 would be better?
    merci
    JP
  • LuXLuX February 2010
    Hello JohnPaul,

    I have asked to Google : "xorg video driver Intel corp 82865G Integrated graphics" and found various posts on various forums from various people having the same video controller as you and using successfully xorg-xf86-video-intel driver. But apparently there are at least two versions of it, xorg-xf86-video-intel and xorg-xf86-video-intel-2.4, see:

    http://forum.ubuntu-fr.org/viewtopic.php?pid=2719898#p2719898

    Strange, strange...

    Well, if it doesn't work for you, you can try something else. Re-use "vesa" driver and specify the resolution explicitly in the section "Screen" of xorg.conf. Here is an example. It comes from an old xorg.conf of mine, which I used with Ubuntu Dapper. You should adapt it to your resolution, of course:
    Section "Monitor"
    Identifier "Écran générique"
    Option "DPMS"
    HorizSync 28-51
    VertRefresh 43-60
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Device "Trident Microsystems CyberBlade XPAi1"
    Monitor "Écran générique"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 4
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 8
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1024x768"
    EndSubSection
    EndSection


    Here is another, similar one: http://forum.ubuntu-fr.org/viewtopic.php?pid=3101699#p3101699

    And here is a clear explanation on how to use xorg.conf: http://doc.fedora-fr.org/wiki/Le_fichier_xorg.conf_expliqu%C3%A9

    Sheers,
    LuX.

  • johnpauljohnpaul February 2010
    Hi LuX,

    I tried your tips, using modelines but... not working
    here's my xorg.conf


    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection

    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/X11/modules"
    FontPath "/usr/share/fonts/X11/misc/"
    FontPath "/usr/share/fonts/X11/TTF/"
    FontPath "/usr/share/fonts/X11/OTF"
    FontPath "/usr/share/fonts/X11/Type1/"
    FontPath "/usr/share/fonts/X11/100dpi/"
    FontPath "/usr/share/fonts/X11/75dpi/"
    EndSection

    Section "Module"
    Load "dbe"
    Load "xtrap"
    Load "extmod"
    Load "record"
    Load "type1"
    Load "freetype"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "fr"

    EndSection

    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection

    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
    EndSection

    Section "Device"
    ### Available Driver options are:-
    ### Values: : integer, : float, : "True"/"False",
    ### : "String", : " Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "ShadowFB" # []
    #Option "DefaultRefresh" # []
    #Option "ModeSetClearScreen" # []
    Identifier "Card0"
    Driver "vesa"
    VendorName "Intel Corporation"
    BoardName "82865G Integrated Graphics Controller"
    BusID "PCI:0:2:0"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 1
    Modes "1024x768_85.00"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 4
    Modes "1024x768_85.00"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 8
    Modes "1024x768_85.00"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 15
    Modes "1024x768_85.00"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1024x768_85.00"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1024x768_85.00"
    EndSubSection
    EndSection


    maybe I should try to write values for HorizSync and VertRefresh instead of using modelines.

    Thanks for helping,
    JP
  • LuXLuX February 2010
    Hello JohnPaul,

    the "Modeline" is not even mentioned in the web page I indicated to you in Fedora's documentation. I suppose that this option is made for more advanced users than I am...

    Here is my xorg.conf in Slitaz 2.0. As you can see, it is much simpler than yours: no Modeline, no *Sync, not even a resolution... and it works!

    Well, I have to say that videos are better displayed in my Xubuntu (where the xorg.conf contains *Sync options) than in Slitaz, and I may consider if this has something to do with *Sync options. In any case my resolution is well recognized both in Slitaz and in Xubuntu. In Xubtuntu my xorg.conf is only sightly different: it sets *Sync options and resolution, in the "Monitor" and "Screen" sections as shown in my previous post.

    Have you tried to set the resolution in "Modes" options as "1024x768" instead of "1024x768_85.00"?

    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection

    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/X11/modules"
    FontPath "/usr/share/fonts/X11/misc/"
    FontPath "/usr/share/fonts/X11/TTF/"
    FontPath "/usr/share/fonts/X11/OTF"
    FontPath "/usr/share/fonts/X11/Type1/"
    FontPath "/usr/share/fonts/X11/100dpi/"
    FontPath "/usr/share/fonts/X11/75dpi/"
    EndSection

    Section "Module"
    Load "record"
    Load "extmod"
    Load "dbe"
    Load "xtrap"
    Load "type1"
    Load "freetype"
    EndSection

    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "fr,us"
    Option "XkbVariant" "oss"
    Option "XKbOptions" "grp:menu_toggle"
    EndSection

    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection

    Section "Monitor"
    #DisplaySize 240 180 # mm
    Identifier "Monitor0"
    VendorName "TOS"
    ModelName ""
    Option "DPMS"
    EndSection

    Section "Device"
    ### Available Driver options are:-
    ### Values: : integer, : float, : "True"/"False",
    ### : "String", : " Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "AccelMethod" # []
    #Option "SWcursor" # []
    #Option "PciRetry" # []
    #Option "NoAccel" # []
    #Option "SetMClk" #
    #Option "MUXThreshold" #
    #Option "ShadowFB" # []
    #Option "Rotate" # []
    #Option "VideoKey" #
    #Option "NoMMIO" # []
    #Option "NoPciBurst" # []
    #Option "MMIOonly" # []
    #Option "CyberShadow" # []
    #Option "CyberStretch" # []
    #Option "XvHsync" #
    #Option "XvVsync" #
    #Option "XvBskew" #
    #Option "XvRskew" #
    #Option "FpDelay" #
    #Option "Display1400" # []
    #Option "Display" # []
    #Option "GammaBrightness" # []
    #Option "TVChipset" # []
    #Option "TVSignal" #
    Identifier "Card0"
    Driver "trident"
    VendorName "Trident Microsystems"
    BoardName "CyberBlade XPAi1"
    BusID "PCI:1:0: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


    Regards,
    LuX.

  • ouioui February 2010
    hi johnpaul

    I also have 2 PC's with this terrible video card and I did have one more in the past (DELL SX270 and SX280). The SX280 doesn't work any more. The one SX70 has a Pentium, the second a Celeron. This one can work with Slitaz without problem. The first one was never able to do it, I'm sorry, it is true. The bad resolution is acceptable to really work with it. The next point is, that it is the PC of my wife and she has no comprehension if her PC is not ready to work because I need an eternity to find a solution to make it able to work... so she has yet puppy or debian or ubuntu (debris linux is a small ubuntu)...

    My PC, the one with Celeron, can work perfectly with Slitaz.

    But I have to respect divers details!

    first and important detail:
    don't install Xorg after Xvesa! Just install Xorg directly! at the first start, Slitaz asks for language, keyboard and resolution. Don't select a resolution but scroll the little window with the proposed selection and you will find somewhat like "install Xorg" and select this choice and install xorg immediately.
    after that Slitaz propose you divers drivers. for you card is probably i810 better as "intel" and if you find 2 choices i810, probably the second choice ;-) !

    (if it don't work, erase the new installation, and try a new one immediately again: this need no time really in Slitaz!)

    other detail:
    install all the proposed dependencies for Xorg!

    next detail:
    Slitaz installs Xorg but perhaps not the right keyboard. you need to change it in xorg.conf

    last detail:
    you can try to change the resolution in xorg.conf according to your best screen resolution AND your RAM (probably is your grafic RAM only a shared part of you RAM; this can be different from PC to PC)

    good luck!
  • plmdayplmday February 2010
    johnpaul:

    I met similar problem weeks ago. Note that only installing the `xorg-xf86-video-intel' driver is not sufficient. You need several more kernel modules (they are not compiled into the kernel coming with the iso) for the intel driver to work, these necessary modules are packaged in `linux-agp' and `linux-drm'. First install them via `tazpkg', then you need to load these modules (I suppose you have a HD install of slitaz, otherwise, you need to make your customized live-cd image after you make any changes in the live mode): `agpgart', `intel-agp', `drm', `i915'. After the installation, check to see if you have them (`modprob -l`). Now exit X, load these modules, then change the driver line in your `xorg.conf' to use `intel'. Start X. Good luck. If it's fine now, add these module names into the auto-loading module line in /etc/rcS.conf.

    If you have further problems, read the user guide on Intel's linux video driver page.

    http://intellinuxgraphics.org/install.html
  • dmatrixdmatrix February 2010
    Identifier "Card0"
    Driver "vesa"
    VendorName "Intel Corporation"
    BoardName "82865G Integrated Graphics Controller"
    BusID "PCI:0:2:0"

    I see that has not changed the driver on xorg
    still vesa

  • johnpauljohnpaul February 2010
    dmatrix,
    I tried "intel", "i810" and "vesa" drivers in xorg and vesa is working better.

    Lux,
    I did try to set the resolution "1024x768" in "Modes" options before to use modelines but this was not working.

    I'm working on oui and plmday solutions...

    Thank you all for your help!
  • johnpauljohnpaul February 2010
    Hi,

    I tried plmday tips, but I had to install last cooking before. Then I installed linux-agp and linux-drm packages. I changed my xorg.conf to use intel and modes "1024x768", then I loaded the 4 modules in /etc/rcS.conf. And now I get 1024*768, it's working!

    Thank you so much for your help, you were all very useful!
    Slitaz is awesome!
    JP
  • plmdayplmday February 2010
    johnpaul:

    By "but I had to install last cooking before", you mean the solution fails on the current cooking release? I haven't tried it on my previous problematic box, if you met any problem, could you please say more about it, so I may be aware if I lately give the new release a go? Thanks.
  • johnpauljohnpaul February 2010
    plmday:

    I was previously using stable version. linux-drm package was only available in cooking mirrors, and using the last version of the kernel (2.6.30.6 I think). I did not manage to load drm and i915 modules using slitaz stable version, so I installed currently available cooking version (Linux cooking-firefox-20100221) and your solution worked well.

    Thanks again for your help!
  • kultexkultex March 2010
    first - I think, that the xorg-intel driver should depend on linux-drm and linux-agp and second:
    very strange, that you could load drm and i915 - I am using the normal cooking version (without firefox) and I get:

    root@slitaz:/home/tux# modprobe drm
    insmod: cannot insert '/lib/modules/2.6.30.6-slitaz/kernel drivers/gpu/drm/drm.ko.gz': unknown symbol in module
    modprobe: failed to load module drm: No such file or directory
    root@slitaz:/home/tux# modprobe i915
    insmod: cannot insert '/lib/modules/2.6.30.6-slitaz/kernel drivers/gpu/drm/drm.ko.gz': unknown symbol in module
    insmod: cannot insert '/lib/modules/2.6.30.6-slitaz/kernel drivers/gpu/drm/i915/i915.ko.gz': unknown symbol in module
    modprobe: failed to load module i915: No such file or directory
    root@slitaz:/home/tux#
  • kultexkultex March 2010
    I found another post with this problem - I think it si better to continue there:

    http://forum.slitaz.org/index.php/discussion/comment/493/#Comment_493
  • JoeTraffJoeTraff September 2010
    Yup....
    The post is quite relevant and will help in solution.

This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social