Announcement

Collapse
No announcement yet.

kdm login screen wrong size - how can I repair it?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    kdm login screen wrong size - how can I repair it?

    Hello!

    I installed kubuntu gutsy - clean install, but I kept my /home intact, because the upgrade didn't work - and now the kdm login screen is oversized. I tried reinstalling kdm with apt-get install --reinstall kdm, tried dpkg-reconfigure - nothing worked. It looks like this:


    [img width=400 height=300]http://lh6.google.com/CsabaMolnar/RxoLfhIJxFI/AAAAAAAAAFE/D4bTTfxBbGo/kdm.jpg?imgmax=512[/img]

    Since then, I narrowed the problem down to the new intel driver. With my old xorg.conf it works (it uses the i810 driver, but without the i915resolution package, it only displays in 1024x768 instead of 1280x800). Using the old driver (I have an integrated 945 card) with the i915resolution package would probably work, but I'd rather have a proper solution...

    #2
    Re: kdm login screen wrong size - how can I repair it?

    Can you post, or attach your xorg.conf?

    Comment


      #3
      Re: kdm login screen wrong size - how can I repair it?

      Hi,

      Wow never thouth it is a real problem. I happened to discover this problem when i did install kubuntu 7.10 in VMware server ( but first i need to say i have two monitors (dual screen)). KDM starts in big resolution, then i log in, and change resolution through run->Kcontrol.
      If You manage to log in, make sure U change your default screen resolution and perhaps do auto log in, then it should be fine ( thats quiky resolving of problem).

      Comment


        #4
        Re: kdm login screen wrong size - how can I repair it?

        Thanks for your replies. The default (automatically generated) xorg.conf is this:

        Code:
        # xorg.conf (xorg X Window System server configuration file)
        Section "Files"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Generic Keyboard"
        	Driver		"kbd"
        	Option		"CoreKeyboard"
        	Option		"XkbRules"	"xorg"
        	Option		"XkbModel"	"pc105"
        	Option		"XkbLayout"	"us"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Configured Mouse"
        	Driver		"mouse"
        	Option		"CorePointer"
        	Option		"Device"		"/dev/input/mice"
        	Option		"Protocol"		"ImPS/2"
        	Option		"ZAxisMapping"		"4 5"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Synaptics Touchpad"
        	Driver		"synaptics"
        	Option		"SendCoreEvents"	"true"
        	Option		"Device"		"/dev/psaux"
        	Option		"Protocol"		"auto-dev"
        	Option		"HorizEdgeScroll"	"0"
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"stylus"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"		"stylus"
        	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"eraser"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"		"eraser"
        	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"cursor"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"		"cursor"
        	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
        EndSection
        
        Section "Device"
        	Identifier	"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        	Driver		"intel"
        	BusID		"PCI:0:2:0"
        EndSection
        
        Section "Monitor"
        	Identifier	"Generic Monitor"
        	Option		"DPMS"
        EndSection
        
        Section "Screen"
        	Identifier	"Default Screen"
        	Device		"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        	Monitor		"Generic Monitor"
        	DefaultDepth	24
        	SubSection "Display"
        		Modes		"1280x800"
        	EndSubSection
        EndSection
        
        Section "ServerLayout"
        	Identifier	"Default Layout"
        	Screen		"Default Screen"
        	InputDevice	"Generic Keyboard"
        	InputDevice	"Configured Mouse"
        
        # Uncomment if you have a wacom tablet
        #	InputDevice   "stylus"	"SendCoreEvents"
        #	InputDevice   "cursor"	"SendCoreEvents"
        #	InputDevice   "eraser"	"SendCoreEvents"
        	InputDevice	"Synaptics Touchpad"
        EndSection
        I have tried several variations, and all work perfectly fine after login, but none produce a readable login screen. The current one I use (with the same problem) looks like this, and it is closer to the original (after-install) one (the modelines section):
        Code:
        # xorg.conf (xorg X Window System server configuration file)
        
        Section "Files"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Generic Keyboard"
        	Driver		"kbd"
        	Option		"CoreKeyboard"
        	Option		"XkbRules"	"xorg"
        	Option		"XkbModel"	"pc105"
        	Option		"XkbLayout"	"us"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Configured Mouse"
        	Driver		"mouse"
        	Option		"CorePointer"
        	Option		"Device"	"/dev/input/mice"
        	Option		"Protocol"	"ImPS/2"
        	Option		"ZAxisMapping"	"4 5"
        	Option		"Emulate3Buttons"	"true"
        EndSection
        
        Section "InputDevice"
        	Identifier	"Synaptics Touchpad"
        	Driver		"synaptics"
        	Option		"SendCoreEvents"	"true"
        	Option		"Device"	"/dev/psaux"
        	Option		"Protocol"	"auto-dev"
        	Option		"HorizEdgeScroll"	"0"
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"stylus"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"	"stylus"
        	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"eraser"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"	"eraser"
        	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
        EndSection
        
        Section "InputDevice"
        	Driver		"wacom"
        	Identifier	"cursor"
        	Option		"Device"	"/dev/input/wacom"
        	Option		"Type"	"cursor"
        	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
        EndSection
        
        Section "Device"
        	Identifier	"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        	Boardname	"intel"
        	Busid		"PCI:0:2:0"
        	Driver		"intel"
        	Screen	0
        	Option		"AccelMethod"	"EXA"
        	Option		"XvMCSurfaces" "6"
        EndSection
        
        Section "Monitor"
        	Identifier	"Generic Monitor"
        	Vendorname	"Plug 'n' Play"
        	Modelname	"Plug 'n' Play"
        	Option		"DPMS"
         modeline "1280x800@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
        	Gamma	1.0
        EndSection
        
        Section "Screen"
        	Identifier	"Default Screen"
        	Device		"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        	Monitor		"Generic Monitor"
        	Defaultdepth	24
        	SubSection "Display"
        		Depth	24
        		Virtual	1280	800
        		Modes		"1280x800@60"
        	EndSubSection
        EndSection
        
        Section "ServerLayout"
        	Identifier	"Default Layout"
         screen 0 "Default Screen" 0 0
        	Inputdevice	"Generic Keyboard"
        	Inputdevice	"Configured Mouse"
        	
        	# Uncomment if you have a wacom tablet
        	#	InputDevice   "stylus"	"SendCoreEvents"
        	#	InputDevice   "cursor"	"SendCoreEvents"
        	#	InputDevice   "eraser"	"SendCoreEvents"
        	Inputdevice	"Synaptics Touchpad"
        EndSection
        Section "Module"
        	Load		"glx"
        	Load		"GLcore"
        	Load		"v4l"
        EndSection
        Section "device" # 
        	Identifier	"device1"
        	Boardname	"intel"
        	Busid		"PCI:0:2:0"
        	Driver		"intel"
        	Screen	1
        EndSection
        Section "screen" # 
        	Identifier	"screen1"
        	Device		"device1"
        	Defaultdepth	24
        	Monitor		"monitor1"
        EndSection
        Section "monitor" # 
        	Identifier	"monitor1"
        	Gamma	1.0
        EndSection
        Section "ServerFlags"
        EndSection
        I have an intel based laptop (CLEVO M66N type, but a local brand). The relevant lshw output:
        Code:
           *-pci
             description: Host bridge
             product: Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub
             vendor: Intel Corporation
             physical id: 100
             bus info: pci@0000:00:00.0
             version: 03
             width: 32 bits
             clock: 33MHz
             configuration: driver=agpgart-intel module=intel_agp
            *-display:0
               description: VGA compatible controller
               product: Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
               vendor: Intel Corporation
               physical id: 2
               bus info: pci@0000:00:02.0
               version: 03
               width: 32 bits
               clock: 33MHz
               capabilities: msi pm vga bus_master cap_list
               configuration: latency=0
            *-display:1 UNCLAIMED
               description: Display controller
               product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controlle
        r
               vendor: Intel Corporation
               physical id: 2.1
               bus info: pci@0000:00:02.1
               version: 03
               width: 32 bits
               clock: 33MHz
               capabilities: pm bus_master cap_list
               configuration: latency=0

        Comment


          #5
          Re: kdm login screen wrong size - how can I repair it?

          While im guessing it wont be the desired resolution, can you try and replace the line: Modes "1280x800"
          For: Modes "1024x768"
          and remove the line: Virtual 1280 800

          My only thought is that it is having an issues with a less common resolution. So might be worth quickly trying this to see if it alters the screen to be viewable in KDM.

          Comment


            #6
            Re: kdm login screen wrong size - how can I repair it?

            Sorry for my late reply. I've tried everything! Removing every line from xorg.conf that sets the resolution to changing resolution to more standard settings. Nothing works except changing back to the i810 driver, but then I'll have to install the i915resolution package to patch it up so it would work in 1280x800. I even tried my old xorg.conf (that loads the i810 driver, and I can see the login screen "normally" in 1024x768 - the max resolution without the i915res. package). After logging-in, everything works fine btw - I can set the resolution, and it works fine, I just can't get the login screen display properly.

            I was hoping someone could help me getting this right with the intel driver (now the default) - but alas, if no one else has this problem. It doesn't bother me _that_ much, only that it's damn ugly

            Comment


              #7
              Re: kdm login screen wrong size - how can I repair it?

              Originally posted by molnarcs
              Sorry for my late reply. I've tried everything! Removing every line from xorg.conf that sets the resolution to changing resolution to more standard settings. Nothing works except changing back to the i810 driver, but then I'll have to install the i915resolution package to patch it up so it would work in 1280x800. I even tried my old xorg.conf (that loads the i810 driver, and I can see the login screen "normally" in 1024x768 - the max resolution without the i915res. package). After logging-in, everything works fine btw - I can set the resolution, and it works fine, I just can't get the login screen display properly.

              I was hoping someone could help me getting this right with the intel driver (now the default) - but alas, if no one else has this problem. It doesn't bother me _that_ much, only that it's damn ugly
              Have you tried googling to find an xorg.conf file that matches your video card and monitor? It's worth a try to see if that fixes the problem. I have had similar problems before and this helped.

              Comment


                #8
                Re: kdm login screen wrong size - how can I repair it?

                Well, I tried at least 20 xorg.conf files. My monitor/chipset is fairly standard - Intel 945GM chipset, and a 15.4 lcd panel that is used in many CLEVO laptops, the edid details (from xorg's logfile) :

                Code:
                (II) intel(0): LGPhilipsLCD
                (II) intel(0): LP154W01-TLB5
                (II) intel(0): EDID (in hex):
                No hits on the specific model I'm confident that this is a new driver issue, for feisty worked fine (and I guess the i815 driver with the i915resolution package would still work).

                I know this is a "fringe" problem - but it can be rather embarrassing in public places (when I start up my laptop, my name is visible from a hundred metre, giving the wrong narcissistic impression of myself to people who happen to notice) So, for now, I enabled autologin with the option locking the session immediately after startup.

                Comment


                  #9
                  Re: kdm login screen wrong size - how can I repair it?

                  Have a look at this thread:

                  http://kubuntuforums.net/forums/inde...opic=3088382.0

                  Flintan: "Try going to /var/log/kdm.log (kde) instead of gdm (gnome)"

                  Explanation:

                  http://ubuntuforums.org/archive/index.php/t-4457.html

                  Comment


                    #10
                    Re: kdm login screen wrong size - how can I repair it?

                    Thanks!

                    I looked at those posts, but they seem to have different problems. For instance, after login, everything works just fine for me, even without setting any resolution/modelines in xorg.conf. It seems to me that xorg now automatically probes the monitor for resolutions (and the relevant lines are there in the logfile).

                    I combed through all kdm config files, but didn't find anything relevant (even tried deleting all /etc/kdm just to see what's happening - making a backup first of course). The single thing that seems to affect kdm_greet size is the driver section (I mean if xorg starts up at all): changing "intel" back to the old "i810" driver will get me a 1024x768 login screen, using "intel" produces the effect on the photo.

                    Thanks anyway for your help, I appreciate it

                    Originally posted by nilsA
                    Have a look at this thread:

                    http://kubuntuforums.net/forums/inde...opic=3088382.0

                    Flintan: "Try going to /var/log/kdm.log (kde) instead of gdm (gnome)"

                    Explanation:

                    http://ubuntuforums.org/archive/index.php/t-4457.html

                    Comment


                      #11
                      Re: kdm login screen wrong size - how can I repair it?

                      At the moments some things are like.

                      The login screen is wrong size - don't fit the monitor.

                      After login I briefly see the blue background as four tiled ones - in a higher resolution. Then I get into the preferred resolution. Or possibly sort of. But, as the last may be different from your problem, I'll skip that. My guess is, if you find the solution, it will help me, fully or partly. And, if I find the solution to what is described here, it should be helpful to you.

                      The files I have looked in does not contain any monitor specification, just graphics board.

                      So ... well, I'm giving up for tonight.

                      Comment


                        #12
                        Re: kdm login screen wrong size - how can I repair it?

                        Ok, I found the solution. I knew that something happins right when X is started, so I looked at the options passed to X in kdmrc (after a finally realized where they can be found). The default is this:
                        Code:
                        [X-:*-Core]
                        AllowNullPasswd=true
                        AllowShutdown=All
                        NoPassEnable=false
                        NoPassUsers=
                        ServerArgsLocal=-nolisten tcp
                        ServerCmd=/usr/bin/X -br
                        (to be clear - this is in /etc/kde3/kdm/kdmrc)

                        It was obvious that the login screen wasn't any standard size (it's not like it was set to anything sane like 640x480) - so it dawned on me that it might be that the new driver misdetects the dpi - and surely enough, after changing the ServerCMD line to
                        Code:
                        ServerCmd=/usr/bin/X -br -dpi 100
                        , the problem went away.

                        I must say this: Gutsy shouldn't have been released with so many bugs and regressions - or at least Kubuntu. While Feisty worked fine, I encountered several (mostly minor, but still annoying problems). While my laptop hotkeys worked fine for setting the sound volume, they no longer work (the max volume now is 11%). KNetworkManager is acting up, and once you set your wireless in control center, you have to manually edit /etc/network/interfaces to reenable automatic wireless handling. Sometimes the Help system does not work (simply nothing would happen when I click on help) - but recovers after a reboot. When I disable then enable an interface in manual network configuration, processor usage goas to 100% and stays there for a minute (obviously, something is wrong here, this shouldn't happen). Oh, and this is a clean install, because the upgrade process was a complete disaster (and I dared only to upgrade a few days after final came out). Still, I love Kubuntu, that's why I'm saying this - I hope next time they will have some quality control/testing before doing a release... especially a release that (as far as kubuntu is concerned) doesn't bring anything new to the table except for minor changes here and there...

                        Comment


                          #13
                          Re: kdm login screen wrong size - how can I repair it?

                          Originally posted by molnarcs
                          Ok, I found the solution. I knew that something happins right when X is started, so I looked at the options passed to X in kdmrc (after a finally realized where they can be found). The default is this:
                          Code:
                          [X-:*-Core]
                          AllowNullPasswd=true
                          AllowShutdown=All
                          NoPassEnable=false
                          NoPassUsers=
                          ServerArgsLocal=-nolisten tcp
                          ServerCmd=/usr/bin/X -br
                          (to be clear - this is in /etc/kde3/kdm/kdmrc)

                          It was obvious that the login screen wasn't any standard size (it's not like it was set to anything sane like 640x480) - so it dawned on me that it might be that the new driver misdetects the dpi - and surely enough, after changing the ServerCMD line to
                          Code:
                          ServerCmd=/usr/bin/X -br -dpi 100
                          , the problem went away.

                          While this does not change my login screen, by using dpi 72, I got a much better balance in my normal 1600x1200 resolution.

                          So, thank you - and I will go back to reading other details in this file.

                          Comment


                            #14
                            Re: kdm login screen wrong size - how can I repair it?

                            hi molnarcs!
                            you don't have any idea how much did you help me!
                            I have like you mobile intel 945 and i had like you login big screen and narrow
                            screen when i run dvd or divx movie no matter which program, and your code solve
                            both problems.can be
                            I saw how much energy you put in it and after that, you must be an expert on kubuntu,
                            i thought maybe you can help me on another problem with my sound, I have Realtek 861
                            and ,the sound is very weak, i hear it in maximum volume but sometimes when kubuntu is up i hear it ok
                            what can it be?
                            thanks

                            Comment


                              #15
                              Re: kdm login screen wrong size - how can I repair it?

                              OMG! THANK YOU! THANK YOU! THANK YOU! And so simple - it doesn't make sense.

                              I've been through 4 computers, 2 HDTVs, 2 versions of 2 distributions (Suse and Kubuntu), probably hundreds of xorg.conf's, and many forums over the past 6 months or so. I've been told I'm a n00b, I've been told I'm too old, and I've been told simply not to enable 3D acceleration because I have f'ed up hardware. (The hardware is fine.) For me, everything always worked great in KDE until I enabled the proprietary Nvidia driver - then boom - No KDE, No Gnome. About the only thing that worked was the Framebuffer and XFCE. I wonder if I would have had the same problem using gdm or xdm - but I was looking in the wrong place, namely xorg.conf.

                              And what fixes the problem is telling KDM to use 100 DPI fonts. How crazy is that?

                              I am attaching a pic for posterity.
                              Attached Files

                              Comment

                              Working...
                              X