LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Xorg randomly switches between two different screen sizes (https://www.linuxquestions.org/questions/linux-desktop-74/xorg-randomly-switches-between-two-different-screen-sizes-598300/)

Tortanick 11-09-2007 05:58 AM

Xorg randomly switches between two different screen sizes
 
I've got an odd problem where Xorg (with KDM) seems to randomly switch between two diffrence screen sizes, however in both cases the KDE Control centre says its 1280x1040.

Dose anyone know of a problem like this? I tried looking through the logs but I don't know what to look for.

KrahnacK 11-09-2007 06:55 AM

a little more info is needed... first, when does the switch occurs? at X start? or inside a session?
are you sure that there isn't a program trying to launch at fullscreen, so changing the resolution, and then failing to run, leaving the screen as it?

you can also try to search the X log (located in /var/log/Xorg.0.log for me) for the lines containing EE or WW

rjlee 11-09-2007 07:44 AM

I don't know about your particular problem, but it may help you to know that you can assign keystrokes to switching between supported resolutions in X. By default, that means you can hold down Ctrl and Alt and press either + or - on the numeric keypad to switch resoluitions.

At a guess, 1280x1040 is your virtual screen size, which may be larger than your physical screen size (in which case, if you move the mouse past the edge of the screen then it will scroll).

Hope that's of some help,

Tortanick 11-09-2007 08:57 AM

rjllee, my screen is big enough for 1280x1040, no scrolling (either way)

Krahnack: Its visible before I login,as soon as I'm asked for the username and password. The key way to tell is the font size but its more visible when I actually log in, For example there is a gap between a colum on icons on my desktop and the bottom of my screen when its full sized, but when the size mysteriously shrinks the gap vanishes.

I used tail to check the last 100 lines for EE
(EE) AIGLX: Screen 0 is not DRI capable

Searching the last 100 for WW found nothing, so I checked the entire log, all I found was
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(WW) `fonts.dir' not found (or not valid) in "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType".


And I just realised I didn't post my xorg.conf file, so here it is
Code:

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#  sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"    "gb"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
EndSection

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "nv"
        BusID          "PCI:1:0:0"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        HorizSync      28-64
        VertRefresh    43-60
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Generic Video Card"
        Monitor        "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Modes          "1280x1024"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
EndSection


KrahnacK 11-10-2007 03:44 AM

what to say but i don't know...

your configuration seems to be normal

i think it's possible to have diffrent resolutions between desktop and login screen, but it shouldn't be changing inside a session...
can you be more precise on when does the change occur? are you using some application in full screen ? can an application in your crontab could be changing the resolution ?

it happens sometimes for me, that fullcreen games don't go back properly to desktop resolution when quitting, this is why i ask you that...

Tortanick 11-10-2007 07:11 AM

It seems to happen on bootup, like I said its visible on the login screen and lasts throught the entire session, I'm yet to see it change with a simple xorg restart, only after a full reboot.

Thanks for trying anyway :)

tredegar 11-10-2007 11:14 AM

Your xorg.conf isn't quite right, try this:

Code:

Section "Screen"
        Identifier      "Default Screen"
        Device          "Generic Video Card"
        Monitor        "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
        Depth          24
                Modes          "1280x1024"
        EndSubSection
EndSection



All times are GMT -5. The time now is 08:01 PM.