Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After Alt+Ctrl+Backsp. Xorg change resolution to VGA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Fri Jan 11, 2008 5:59 pm    Post subject: After Alt+Ctrl+Backsp. Xorg change resolution to VGA Reply with quote

After migrating my gentoo installation from PC to laptop I ran into problem described above - when I kill my Xsession, resolution in _all new Xsessions_ changes to VGA. What could cause a problem like this?
Back to top
View user's profile Send private message
WakkaDojo
Apprentice
Apprentice


Joined: 26 Sep 2007
Posts: 174
Location: Massachusetts

PostPosted: Sat Jan 12, 2008 3:42 am    Post subject: Reply with quote

Can you post egrep "WW|EE" /var/log/Xorg.0.log?

Last edited by WakkaDojo on Sat Jan 12, 2008 4:01 am; edited 1 time in total
Back to top
View user's profile Send private message
shrimp123
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 199
Location: Here!

PostPosted: Sat Jan 12, 2008 3:50 am    Post subject: Reply with quote

did you connect the monitor *after* xdm started?

S
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Sat Jan 12, 2008 4:05 am    Post subject: Reply with quote

you must logout of a session so the session properties saved by session manager.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Sat Jan 12, 2008 11:20 am    Post subject: Reply with quote

egrep otput was (truncated some font warnings)
egrep "WW|EE" /var/log/Xorg.0.log:

(WW) System lacks support for changing MTRRs
(WW) RADEON(0): Failed to detect secondary monitor, MergedFB/Clone mode disabled
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0): MC_FB_LOCATION was: 0xe3ffe000 is: 0xe3ffe000
(WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xd07fd000
(WW) RADEON(0): Option "NoDRI" is not used
(WW) AIGLX: 3D driver claims to not support visual 0x23
..

The problem is - I experiment to find right xorg.config, so I have to restart Xorg somehow and then - VGA!!
padoor: once Xorg has started o.k., why should I save something??
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Sat Jan 12, 2008 1:19 pm    Post subject: Reply with quote

you are not manually saving . every session of x is saved in its config folder like .kde,.gnome,.xfce etc.
the session usually follows the last config of the desktop.
if you dont have any saved session default xorg.conf is taken start a new session.
X -configure should provide you a xorg.conf.new in your home.
copy it to /etc/X11/xorg.conf to have more control over X.

alt ctl F1 will get you to vt1
there you stop the x server and restart -- i think is better than alt ctl bkspace repeatedly getting you back to vt1
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Sun Jan 13, 2008 9:56 am    Post subject: Reply with quote

Unfortunately, my problem has not been solved yet.

1. How to restart Xorg from vt1? If I type: /etc/init.d/xdm restart, it restarts in VGA again.
2. By default, when I start xdm, something tries to restart it after each crash - I don't like that - it would be better, if X just stops and I can do startx later (and, if session has been locked, it sould logout). As to me, it looks like there is no way to stop Xorg, if xdm has started it, but there are cases, when I need to stop it and start later!

I really want to solve this, because, if I have to restart comp. after each xorg.conf modification, it waste so much time and it feels like I have absolutely no control of what is happening. :(
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Sun Jan 13, 2008 12:14 pm    Post subject: Reply with quote

#/etc/init.d/xdm stop X will stop
#/etc/init.d/xdm start will start it
i have not tried restart.
you can stop and start manually.
for making changes in xorg.conf stop X and start again after making changes.
some critical changes like video drivers etc will need reboot.
good luck
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Sun Jan 13, 2008 3:27 pm    Post subject: Reply with quote

Oh, no.

I could stop xdm, but, there was quick blink of VGA and error message "would send signal 15 to ..".
Only when tried to stop again, it gave output "stopped". All later efforts gave me same VGA.

What additional information should I provide?
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Sun Jan 13, 2008 4:07 pm    Post subject: Reply with quote

do not stop xdm while in X ...i think you are just killing the X from xterm or konsole
alt ctl F1 or any vt only you must stop xdm

shutdown -F now
after it comoletes fsck of all mounts run revdep-rebuild
if the X still gives problem emerge xorg-server again
followed with xf86-input-mouse, evdev
how vga comes up have you mentioned it in any conf files?
do you mean there is no X coming up?
alt ctl F1--F6 brings up vt1--6?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Sun Jan 13, 2008 7:13 pm    Post subject: Reply with quote

>do not stop xdm while in X
I didn't!
fsck can't find errors. revdep-rebuild: all ok.

X is coming up, but in VGA resolution. I'll post in my xorg.config:

==============================================

Section "ServerLayout"
Identifier "X.Org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
#InputDevice "TouchPad" "CorePointer"
InputDevice "USB Mouse" "CorePointer"
EndSection

#Section "ServerFlags"
# Option "AllowMouseOpenFail" "true"
#EndSection

Section "Files"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/local/share/fonts"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/baekmuk-fonts"
FontPath "/usr/share/fonts/kacst-fonts"
FontPath "/usr/share/fonts/default/ghostscript"
EndSection

#Section "Module"
# Load "ddc"
# Load "vbe"
# Load "GLcore"
# Load "dbe"
# Load "dri"
# Load "extmod"
# Load "glx"
# Load "bitmap"
# Load "type1"
# Load "freetype"
# Load "record"
# Load "synaptics"
#EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc89"
# Option "XkbOptions" "grp:toggle,grp_led:scroll"
# Option "XkbVariant" ",winkeys"
EndSection

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "off"
#Option "DragLockButtons" "Z"
Option "Emulate3TimeOut" "50"
Option "EmulateWheel" "on"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
Option "ZAxisMapping" "4 5"
EndSection

#Section "InputDevice"
# Driver "synaptics"
# Identifier "TouchPad"
# Option "SendCoreEvents"
# Option "Protocol" "auto-dev"
# Option "SHMConfig" "on"
# Option "EmulateWheel" "on"
# Option "EmulateWheelButton" "2"
# Option "YAxisMapping" "4 5"
# Option "XAxisMapping" "6 7"
#EndSection

Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0 - 48.5
VertRefresh 50.0 - 70.0
Option "DPMS" "true"
EndSection

Section "Device"
### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
Option "Accel"
Option "AGPMode" "1"
Option "AGPFastWrite" "Yes"
Option "DDCMode" "Yes"
Option "EnablePageFlip" "on"
Option "DynamicClocks" "on"
#Option "NoDRI"
#Option ``ReferenceClock'' ``frequency''
Identifier "Card0"
# The following line is auto-generated by x11-misc/mkxf86config
Driver "radeon"
VendorName "All"
BoardName "All"
# BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
Depth 16
Modes "1024x768" "800x600" "640x480"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

=====================================================

it is quite a crap (comments and options, I don't know meaning of).
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Mon Jan 14, 2008 2:39 am    Post subject: Re: After Alt+Ctrl+Backsp. Xorg change resolution to VGA Reply with quote

mansniks wrote:
After migrating my gentoo installation from PC to laptop I ran into problem described above - when I kill my Xsession, resolution in _all new Xsessions_ changes to VGA. What could cause a problem like this?


are you still using the same video driver which was in the desktop pc?
see with lspci in your laptop what video driver you have to use for the displaypanel
you dont seem to have mentioned which laptop anywhere.
by vga resolution you mean screen size is 800x600? 640x480?
looks like you are driving with vga monitor driver still.
give more details about the hardware of laptop chipset or atleast model and make
we can take up from there again.
[1]you can also check moving / renaming the /etc/X11/xorg.conf and try X without xorg.conf
[2] temporarily edit all mode lines in xorg.conf to have only "1024x768" dlete others.
one or other should help you short of doing xorg-x11 again.
basically it is mismatch of pc xorg and laptop hardware . after transferring installation it needs repair of tehse small things.
try try untill success.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Mon Jan 14, 2008 7:16 pm    Post subject: Reply with quote

Dammit, I renamed xorg.conf -> xorg.conf.1 and everything seams to be ok even trackpoint scrolling works.
This is better. I'll try some further experiments later. Isn't this ridiculous - I tried so hard to write that config file! *****.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4025
Location: india

PostPosted: Tue Jan 15, 2008 2:02 am    Post subject: Reply with quote

xorg-x11 new ones dont make xorg.conf .
it can work automatically selecting your hardware.
only in case of special settings for drivers and other input devices you need to have a xorg.conf.
:)
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
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