Gentoo Forums
Gentoo Forums
Quick Search: in
xorg.conf help needed.[solved] !!!
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sat Oct 18, 2008 10:50 pm    Post subject: xorg.conf help needed.[solved] !!! Reply with quote

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

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

Section "Module"
   Load  "dri"
   Load  "extmod"
   Load  "record"
   Load  "xtrap"
   Load  "glx"
   Load  "dbe"
   Load  "freetype"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
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     280   210   # mm
   Identifier   "Monitor0"
   VendorName   "GSM"
   ModelName    "20Si"
   HorizSync    30.0 - 54.0
   VertRefresh  50.0 - 120.0
   Option       "DPMS"
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     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "CacheLines"            # <i>
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "DRI"                   # [<bool>]
        #Option     "NoDDC"                 # [<bool>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "XvMCSurfaces"          # <i>
        #Option     "PageFlip"              # [<bool>]
   Identifier  "Card0"
   Driver      "intel"
   VendorName  "Intel Corporation"
   BoardName   "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
   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


this xorg.conf obtained by running X -configure

i have currently problem with x resolutions
the auto set shows

disabled 832x624(auto) 800x600 640x480 720x400 640x400
and 640x350

prior to this last X server i was getting resolution of 1024x768
800x600 640x480

i dont know how to set right video driver for the


Code:
tux1 ~ # lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
tux1 ~ #



i did not have a xorg.conf originally. it was fine.
now it behaves difficult :(

Code:
ux1 ~ # qlist -I -C x11-drivers
x11-drivers/xf86-input-evdev
x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-i810
x11-drivers/xf86-video-vesa
x11-drivers/xf86-video-vmware


Code:
ux1 ~ # emerge --info
--- Invalid atom in /etc/portage/package.mask: kde-base/kdelibs-4.1.2-r1
Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.8_p20080602-r0, 2.6.23-gentoo-r9 i686)                                                                                       
=================================================================                             
System uname: Linux-2.6.23-gentoo-r9-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-glibc2.0     
Timestamp of tree: Sat, 18 Oct 2008 02:04:01 +0000                                           
app-shells/bash:     3.2_p39                                                                 
dev-java/java-config: 1.3.7, 2.1.6-r1                                                         
dev-lang/python:     2.4.4-r6, 2.5.2-r8                                                       
dev-python/pycrypto: 2.0.1-r6                                                                 
dev-util/cmake:      2.6.2                                                                   
sys-apps/baselayout: 2.0.0                                                                   
sys-apps/openrc:     0.3.0-r1                                                                 
sys-apps/sandbox:    1.2.18.1-r3                                                             
sys-devel/autoconf:  2.13, 2.63                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                             
sys-devel/binutils:  2.18-r3                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                               
sys-devel/libtool:   2.2.6a                                                                   
virtual/os-headers:  2.6.26                                                                   
ACCEPT_KEYWORDS="x86 ~x86"                                                                   
CBUILD="i686-pc-linux-gnu"                                                                   
CFLAGS="-O2 -march=i686 -pipe"                                                               
CHOST="i686-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                                                                                   
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"       
CXXFLAGS="-O2 -march=i686 -pipe"                                                             
DISTDIR="/usr/portage/distfiles"                                                             
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                           
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                                       
LDFLAGS="-Wl,-O1"                                                                             
LINGUAS="en_US"                                                                               
MAKEOPTS="-j2"                                                                               
PKGDIR="/usr/portage/packages"                                                               
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                           
PORTAGE_TMPDIR="/var/tmp"                                                                     
PORTDIR="/usr/portage"                                                                       
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                               
USE="X acl alsa arts asf avi berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd ffmpeg firefox fortran gdbm gnome gpm gtk gui hal iconv imagemagick ipv6 isdnlog jpeg kde mad midi mp3 mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt3 qt4 readline reflection server session spl ssl sysfs tcpd unicode utempter video vorbis wav win32codecs wma wmv x86 xcomposite xorg xv yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dirdisk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrackvhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

tux1 ~ #


Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="-O2 -march=i686 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
FEATURES="parallel-fetch"
LINGUAS="en_US"
USE="gtk gui qt4 xv server utempter xcomposite imagemagick mad dbus hal firefox cups opengl yahoo
arts -net-dns/avahi jpeg png ffmpeg mad  vorbis ogg qt3 gnome wav avi wma asf wmv ffmpeg win32codecs mp3 video kde dvd alsa X cdr"
VIDEO_CARDS="i810 vesa"



advice on how to edit video driver on xorg.conf
needed. to get 1024x768 screen res.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)


Last edited by padoor on Mon Oct 20, 2008 4:21 am; edited 1 time in total
Back to top
View user's profile Send private message
krovisser
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2006
Posts: 84
Location: TX, USA

PostPosted: Sat Oct 18, 2008 11:13 pm    Post subject: Reply with quote

Try adding
Code:
Modes "1024x768"

in each Display subsection.

Or just get rid of most of those depths and have 24 bit and 16 bit, again with the code I suggested.
_________________
http://www.krovisser.com/
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sat Oct 18, 2008 11:17 pm    Post subject: Reply with quote

add it where?
exact position in the xorg.conf i cant decide.
according to xorg.conf does it use i810 driver?
i cant make out what exactly the lines mean in the conf file. :(
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
notHerbert
Veteran
Veteran


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sat Oct 18, 2008 11:32 pm    Post subject: Reply with quote

Like this:
Code:
Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth 24             <----------ADD THIS
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes "1024x768" "800x600" "640x480"    <----------ADD THIS
   EndSubSection
EndSection


This is the correct driver
Code:
Driver      "intel"


Last edited by notHerbert on Sat Oct 18, 2008 11:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sat Oct 18, 2008 11:40 pm    Post subject: Reply with quote

i will try this change.
hope X will start again
preciously if i use any xorg.conf i used to get blank screen for X
lets see what now.
will get back in an hr.
an update emerge is onway
after it finishes i will do this edit
thanks.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
Polynomial-C
Developer
Developer


Joined: 01 Jun 2003
Posts: 1177
Location: germany

PostPosted: Sun Oct 19, 2008 3:57 am    Post subject: Reply with quote

If you don't get your desired resolution, try to emerge xorg-server without the hal USE flag.
_________________
The manual said "WindowsXP or better" so I installed GNU/Linux...

my portage overlay | /me @ discogs
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sun Oct 19, 2008 7:00 am    Post subject: Reply with quote

it did not work
it still looks at auto mode 832x624 nd looks like this at the centre of the monitor
http://omploader.org/vdWtw/badres.png

i added -hal for xorg-x11 in package.use
and re emerged xorg-x11
still no change. :(
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
cyrillic
Veteran
Veteran


Joined: 18 Feb 2003
Posts: 7086
Location: Groton, Massachusetts USA

PostPosted: Sun Oct 19, 2008 10:50 am    Post subject: Re: xorg.conf help needed. Reply with quote

padoor wrote:
Code:
Section "Monitor"
   #DisplaySize     280   210   # mm
   Identifier   "Monitor0"
   VendorName   "GSM"
   ModelName    "20Si"
   HorizSync    30.0 - 54.0
   VertRefresh  50.0 - 120.0
   Option       "DPMS"
EndSection

Try changing "VertRefresh 50.0 - 120.0" to "VertRefresh 60.0" and see if that allows you to use 1024x768 resolution.
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sun Oct 19, 2008 9:33 pm    Post subject: Reply with quote

kde desktopsettings display earlier was showing 75 and 60 v sync options.
now it shows only 75
your suggestion of vsync 60 looks promising
i will try it.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Sun Oct 19, 2008 11:02 pm    Post subject: Reply with quote

it did not help in modes.
but the jagged sides of the screen has improved and there is a little v size increase.
now it allows modes 800x600 and downwards
it does not look at the modes line in the xorg.conf at all.
xorg runs its own auto sense.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
Tadeas
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2008
Posts: 113
Location: Prague

PostPosted: Mon Oct 20, 2008 12:57 am    Post subject: Reply with quote

Well, maybe it's a nonsense, but do you have the graphic card driver installed correctly? I used to have a similar problem (not being able to adjust the size of image to my wide-screen) until I installed the correct drivers...

Another trick could be to boot the LiveCD and if it displays everything properly, see it's auto-created xorg.conf for some clue...
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Mon Oct 20, 2008 1:47 am    Post subject: Reply with quote

i have only pclos,ubuntu,knoppix live cds
gentoo live cd i dont have.
ubuntu xorg.conf just does not say what driver but configured video driver it says
pclos has only 800x600 res
knoppix i will try if it can give a clue
will re merge uf udev help someway?
how to manually select a driver?
obviously it needs some other driver than i810 :(

it is p4 gegabyte mobo
xp also does not have a vga compatible driver installed.
xf86-video-vga-4.1 does not merge saying nptl not matching with mesa or some such thing.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
notHerbert
Veteran
Veteran


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon Oct 20, 2008 2:14 am    Post subject: Reply with quote

You could try using a modeline, put these in the Section "Monitor"
Code:
Section "Monitor"
   #DisplaySize     280   210   # mm
   Identifier   "Monitor0"
   VendorName   "GSM"
   ModelName    "20Si"
   HorizSync    30.0 - 54.0
   VertRefresh  50.0 - 120.0
   ModeLine "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
   ModeLine "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
   ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
   Option       "DPMS"
EndSection

And adjust the Section "Screen"
Code:
Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes "1024x768@70"    <----------CHANGE THIS
   EndSubSection
EndSection

Try the other also one at a time "1024x768@75" "1024x768@65"

You can generate some modelines here if those don't work.
Back to top
View user's profile Send private message
padoor
Veteran
Veteran


Joined: 29 Dec 2005
Posts: 2768
Location: india

PostPosted: Mon Oct 20, 2008 4:20 am    Post subject: Reply with quote

heyi that is working . now i got 1024x768 mode screen :D

i have used the entries mentioned in top
3 modelines added as shown.

it works fine.
now kde desktop configre display shows modes 1024x768 and all downwards :)

thanks notHerbert
for your persistent help :)
and others also :)
_________________
reach out a little bit more to catch it (DON'T BELIEVE the veteran part under my user name)
Back to top
View user's profile Send private message
notHerbert
Veteran
Veteran


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon Oct 20, 2008 8:42 am    Post subject: Reply with quote

Cool, glad to help. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum