This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make KDE recognize connected monitor automatically?

Tags: None
(comma "," separated)
krpan
Registered Member
Posts
29
Karma
0
Now, the recent situation is as follows. When starting opensuse and the system is booted at first a Nvidia logo is shown over the entire screen. In my case, Nvidia logo is shifted to the right and only half of it, approximately, is shown on the LCD dispaly of the notebook. Shortly afterwards, a user selection menu appears, if everything runs smoothly. In my case this user selection menu is shifted to the right to another imaginary screen. Therefore, I can not select another user, such a s root for instance, or another desktop, such as Gnome for instance. I can of course enter username and password, but in order to do so I had to make several tries to hit the proper invisible fields for each of the entries. When I made it for the first time, it is easier next time, since the username is already prefiled and I have to push the TAB button at first to move to the password field and afterwards I enter the password followed by Enter. At last I am in KDE with all the menus. Please, do not ask, how did i manage to do so, because I made a lot of experiments in Nvidia settings by disabling either of the displays shown. In addition, the KDE System settings->Display&Monitor showed two monitors. When I discovered this for the first time, I disabled one and left only that named LCD display or similar, and made it default. This is probabla the reason that desktop is shown after login in my primary and only screen.
Nevertheless, the problem with two screens still remains at the boot time. I have another machine (PC) beside said notebook with Nvidia K2000 graphich card and the same driver. On PC everything runs well. Therefore, I tried to copy xorg.cof and nvidia-settings-rc from PC to notebook, but no change has been noted. To my surprise, on PC xorg.conf exists but I think this is some sort of the legacy from previous versions of OS when this file was created by nvidia-xconfig. The third PC with almost the same hardware and OS has no xorg.conf whatsoever. So, the problem with two screens is still present at the boot time. The question would be where Linux reads display(s) settings from. At first it was my guess that something went wrong with the notebook hardware but since evertything ran flavless with nouveau driver I dropped that idea. I also entered nomodeset to boot load options and add the nouveau to a blacklist. And here is where my skills end.
luebking
Karma
0
> In my case, Nvidia logo is shifted to the right and only half of it, approximately, is shown on the LCD dispaly of the notebook.
That's not a "two screen issue". For an analogue adapter, I'd say the crtc timings are wrong - but this should not happen on a digital connection.

This is only an issue for X11, not VT1, right? (Ie. on ctrl+alt+F1 you get an entirely visible console)

> I also entered nomodeset to boot load options and add the nouveau to a blacklist.
This might not cut it.
Run "dmesg | grep NVRM", check whether it says sth. like the text on top of this post:
https://bbs.archlinux.org/viewtopic.php?id=143569

In case you need to deactivate the modesetting in grub:
https://wiki.archlinux.org/index.php/Gr ... ramebuffer

(I'm however not sure whether debian uses /etc/default/grub)
krpan
Registered Member
Posts
29
Karma
0
Yes, that is what I get on entering "dmesg | grep NVRM". I will try adding "video=vesa:off vga=normal" into my boot loader and see what will happen.
krpan
Registered Member
Posts
29
Karma
0
Well, after all possible experiments no luck. I am now back to default Nvidia settings (I have reinstalled the driver and deleted all nvidia-settings-rc and xorg.conf files). Everything work fine now but the user selection menu which is still hidden in the fantom display.
luebking
Karma
0
a) do you still have the dmesg warning?
b) > Everything work fine now but the user selection menu which is still hidden in the phantom display
Does that mean the nvidia logo is displayed correctly and the desktop works as well, just KDM is "too big"?
krpan
Registered Member
Posts
29
Karma
0
Yes, I still have dmesg warning.
No, the nvidia logo is not displayed correctly, the user selection menu is not shown but the desktop works well. That probably menas that the KDM is "too big"
luebking
Karma
0
> Yes, I still have dmesg warning.

Fix grub.
https://wiki.archlinux.org/index.php/Gr ... ramebuffer

Grub may already have allocated a framebuffer and your kernel parameters didn't close that.
As long as there's a framebuffer console, there's no point in looking for other issues.

> No, the nvidia logo is not displayed correctly
And it's for sure NOT some "phantom screen" then - the issue is either in the hardware or the driver (likely the latter and possibly because of the framebuffer console)
krpan
Registered Member
Posts
29
Karma
0
I wanted to "Fix grub" but found no lines as the link you have provided. Below is my grub. Wold you be so kind and suggest which line to uncomment, or maybe a new line is to be added.

# Modified by YaST2. Last modification on Wed Nov 12 16:14:18 CET 2014
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. c$

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg' afterwards to update
# /boot/grub2/grub.cfg.
GRUB_DISTRIBUTOR=openSUSE
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=8
GRUB_CMDLINE_LINUX_DEFAULT=" video=1920x1080 resume=/dev/disk/by-uuid/127c31af-a5f5-41ff-be3b-cdfdfaaa107$
# kernel command line options for failsafe mode
GRUB_CMDLINE_LINUX_RECOVERY="showopts apm=off noresume edd=off powersaved=off nohz=off highres=off proces$
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM=0x01234567,0xfefefefe,0x89abcdef,0xefefefef
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=gfxterm
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY=true
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
# Skip 30_os-prober if you experienced very slow in probing them
# WARNING foregin OS menu entries will be lost if set true here
GRUB_DISABLE_OS_PROBER=false
# Set to 'y' for grub to be installed on an encrypted partition
GRUB_ENABLE_CRYPTODISK=n
SUSE_BTRFS_SNAPSHOT_BOOTING=true
GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt
krpan
Registered Member
Posts
29
Karma
0
Some more observations.

When I am logged in and work on the desktop I can always lock the screen and a small menu appears in the middle of the screen to unlock. However, if I log-out a blank screen is presented again with the user selection menu hidden in the fantom screen.
luebking
Karma
0
> # Modified by YaST2. Last modification on Wed Nov 12 16:14:18 CET 2014
This suggests a SuSE installation, but you claimed to be on debian?
SuSE needs adjustments somewhere in /etc/sysconfig

To fix the grub config, you'd add EITHER

GRUB_TERMINAL_OUTPUT=console

XOR:

GRUB_GFXPAYLOAD_LINUX=text

somewhere in the file.
Then run (as root)
Code: Select all
grub-mkconfig -o /boot/grub/grub.cfg


resp. (as the file suggests)
Code: Select all
grub2-mkconfig -o /boot/grub2/grub.cfg


BEFORE DOING ANYTHING HERE, FIGURE WHAT DISTRO YOU'RE RUNNING AND WHETHER THIS IS THE CORRECT CONFIG FILE AT ALL!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]