Bug 16269 - After KDE4 is starting I get low resolution used by grub2 boot-menu screen
Summary: After KDE4 is starting I get low resolution used by grub2 boot-menu screen
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 22:45 CEST by Piotr Mierzwinski
Modified: 2015-11-10 11:43 CET (History)
4 users (show)

See Also:
Source RPM: grub2-2.02-0.git9752.18.mga5
CVE:
Status comment:


Attachments
output from lspcidrake -v (3.36 KB, text/plain)
2015-07-03 20:26 CEST, Piotr Mierzwinski
Details
Xorg.0.log (17.17 KB, text/plain)
2015-07-03 20:27 CEST, Piotr Mierzwinski
Details
grub2 configuration: etc_default_grub (382 bytes, application/octet-stream)
2015-07-03 20:35 CEST, Piotr Mierzwinski
Details
output from lspcidrake -v after Alt+Ctrl+Backspace (kdm screen) (3.36 KB, text/plain)
2015-07-03 20:43 CEST, Piotr Mierzwinski
Details
Xorg.0.log after Alt+Ctrl+Backspace (kdm screen) (16.43 KB, text/plain)
2015-07-03 20:43 CEST, Piotr Mierzwinski
Details
fixed grub2 configuration (401 bytes, text/plain)
2015-07-05 00:00 CEST, Piotr Mierzwinski
Details

Description Piotr Mierzwinski 2015-07-01 22:45:49 CEST
Description of problem:
In my PC I have legacy nvidia (integrated) graphics card. In Mageia I've activated grub2 using mcc. After that I nothing changed in configuration. I restart Mageia and in boot menu I selected first entry (referring to the newest kernel, here it is 3.19.8-server-3). I have turned on automatically login to KDE4 desktop. When KDE4 began to run I noticed that resolution is really low. My monitor is working usual with following resolution: 1680x1050 and here I got 1024x765 (I've checked this by xrandr command). Later I've found out that this is default resolution, which grub2 is using to display boot menu.
I had also other kernel, so I checked it, starting system using it. Unfortunately turned out that happens the same as with default kernel.

I did another test. When KDE4 session launched I was killing the X Window System (using Ctrl+Alt+Backspace) and was getting login screen. I noticed that it had normal resolution. I mean that resolution wasn't low (1024x768).

I didn't want so quick back to grub1, so I've also checked kernel rescue mode (for default kernel), where kernel is starting in text mode. Here turned out that KDE4 starts with normal resolution, i.e.: 1680x1050.

Version-Release number of selected component (if applicable):
grub2-2.02-0.git9752.18.mga5

How reproducible:
every time

Steps to Reproduce:
1. turn on grub2
2. restart system
3. in boot menu select default entry (or wait till will be called automatically, after couple of seconds)
4. in kdm try to login to KDE4 session

Screen has the same resolution as grub2 boot-menu 

Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2015-07-02 09:09:00 CEST
Please attach the output of lspcidrake -v and /var/log/Xorg.0.log after autologin to KDE4 desktop, and also after killing X with Ctrl+Alt+Backspace.

I don't know if the problem comes from grub2 for sure. I'm adding some packagers in CC so that they can comment.

CC: (none) => anssi.hannula, thierry.vignaud, tmb, zen25000

Comment 2 Piotr Mierzwinski 2015-07-03 20:26:52 CEST
Created attachment 6804 [details]
output from lspcidrake -v
Comment 3 Piotr Mierzwinski 2015-07-03 20:27:25 CEST
Created attachment 6805 [details]
Xorg.0.log
Comment 4 Piotr Mierzwinski 2015-07-03 20:35:00 CEST
Created attachment 6806 [details]
grub2 configuration: etc_default_grub
Comment 5 Piotr Mierzwinski 2015-07-03 20:43:06 CEST
Created attachment 6807 [details]
output from lspcidrake -v after Alt+Ctrl+Backspace (kdm screen)
Comment 6 Piotr Mierzwinski 2015-07-03 20:43:50 CEST
Created attachment 6808 [details]
Xorg.0.log after Alt+Ctrl+Backspace (kdm screen)
Comment 7 Piotr Mierzwinski 2015-07-03 21:13:11 CEST
Earlier (in Mageia 5) I used grub1 and everything was fine as I remember. Or maybe recent update something broke :/. BTW. I didn't change system configuration after upgrade from rc version. Only I changed media source to be able to get  properly updates.
Additionally I've removed old kernels, and because grub2 menu has not correctly updated I executed command: update-grub

Please note that when I'm choosing kernel "Rescue mode" from boot menu then I meet KDE4 working in native resolution of monitor, i.e.: 1680x1050.
Using regular kernel I get KDE4 working in 1024x768. After killing X server (Ctrl+Alt+Backspace) and login from kdm I get again low resolution. Basically just after pressing OK in login screen monitor is switching to low resolution.

All happens on last Mageia kernel: kernel-server-3.19.8-3.mga5-1-1.mga5 and  grub2-2.02-0.git9752.18.mga5.
When I met this issue I was trying also start Mageia with older kernel (kernel-server-3.19.7-2), but unfortunately I met the same result. In this reason I think that issue is not related with kernel.
Comment 8 Piotr Mierzwinski 2015-07-04 23:59:17 CEST
I think I fixed it.

I've installed package kcm-grub2-0.5.8-12.mga5 to be able to configure grub2 comfortably. I've changed option referring to resolution and related to Linux kernel from "Boot in text mode" to "Keep GRUB's Resolution". In configuration file it looks like this:
Option calling: 
GRUB_GFXPAYLOAD_LINUX=text
I've changed to:
GRUB_GFXPAYLOAD_LINUX=keep

I restarted system and called default (3.19.8-server-3.mga5) kernel (not rescue mode as before). When KDE4 session started I got native resolution on monitor.
Fixed grub configuration attached.

You can consider to close this issue, if you think this is fix is enough.
Comment 9 Piotr Mierzwinski 2015-07-05 00:00:25 CEST
Created attachment 6813 [details]
fixed grub2 configuration
Comment 10 Samuel Verschelde 2015-07-05 20:14:57 CEST
I'll let grub2 maintainer decide if this bug needs to remain open.

Assignee: bugsquad => zen25000

Barry Jackson 2015-07-21 15:29:00 CEST

Attachment 6813 mime type: application/octet-stream => text/plain

Comment 11 Piotr Mierzwinski 2015-07-21 22:30:42 CEST
Recently I realized that the reason of that could be related to turned off KDE4 service calling: "Power Management". I remember that when I requested this issue I had turned off this service. I thought I don't need it, because I have PC not laptop and working service will be useless for me. Unfortunately it could caused my problem. Anyway. Afterwards I turned on this service and I didn't observe such behavior. In this moment I'm using grub2 and have set above parameter and resolution for grub2 starting screen to 1024x768.

Anyway I think turning on this parameter is safety for user. And probably prevents before breaking KDE4 native resolution after turning off some service (here: "Power Management").
Comment 12 Barry Jackson 2015-07-21 23:00:10 CEST
(In reply to Samuel VERSCHELDE from comment #10)
> I'll let grub2 maintainer decide if this bug needs to remain open.

Seems it's not a grub2 issue if I understand #11 correctly.
Comment 13 Piotr Mierzwinski 2015-07-21 23:41:09 CEST
Most likely :/.
I didn't test with default value of option: GRUB_GFXPAYLOAD_LINUX, but it (turned off: "Power Management" service) could be the reason. Probably it happens only in KDE4. I don't remember if I tested other WMs.
Anyway. Mea culpa :S
Comment 14 Barry Jackson 2015-11-10 11:43:05 CET
Closing then.

If you find a repeatable way of reproducing this then please feel free to re-open this or file another bug against whichever package appears to be the culprit.

Thanks.

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.