Bug 119831

Summary: "nomodeset" required to boot - MSI laptop G72 6QE, nouveau graphics
Product: Drivers Reporter: Sam (m.paniez)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEEDINFO ---    
Severity: normal CC: bruno.n.pagani, peter, pierre.morrow
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 4.7-rc2 Subsystem:
Regression: No Bisected commit-id:
Attachments: kern.log from 4.6 kernel
kern.log from 4.7-rc4 kernel
kern.log from 4.7-rc4 kernel with nomodeset
kern.log from 4.7-rc7 kernel no-option and nomodeset option
kern.log + Xorg.log from 4.7-rc7 kernel with nouveau.runpm=0

Description Sam 2016-06-09 05:19:24 UTC
[1.] One line summary of the problem:
"acpi=off" required to boot.


[2.] Full description of the problem/report:
Hi,
I just install Ubuntu 16.04 on my new MSI laptop G72 6QE.
My touchpad doesn't work and recognize at all.
Furthermore "acpi=off" required to boot.

After tests with Christopher M. Penalver (penalvch), my touchpad problem comes from ACPI but I need disable it to boot.
I try with kernel 4.6 and 4.7-rc2. With kernel 4.7-rc2, I can't go to login page because the start freezes (gnome-shell) ; so I need use 4.6 to work.

My bug report on launchpad :
Launchpad link : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1584479/comments/31


[3.] Keywords


[4.] Kernel version (from /proc/version):
Linux version 4.7.0-040700rc2-generic (kernel@tangerine) (gcc version 5.3.1 20160528 (Ubuntu 5.3.1-21ubuntu11) ) #201606051831 SMP Sun Jun 5 22:33:44 UTC 2016


[5.] Output of Oops.. message
cf. syslog : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1584479/+attachment/4679536/+files/syslog_20160608.log


[6.] A small shell script or example program which triggers the problem (if possible)


Thanks
Comment 1 Zhang Rui 2016-06-20 03:24:36 UTC
for ubuntu 16.04 default kernel, you need acpi=off to boot, right?
what about 4.6 kernel? what about 4.7-rc2 kernel? does the same workaround work?

Please remove "quiet splash" boot options, and reboot without acpi=off, what can you see in the screen? can you get the kernel log when the system hangs during boot?
Comment 2 Sam 2016-06-21 07:46:07 UTC
Hi,
Yes, since my install (for install from a liveCD, I need it too in boot options).
I put my daily kern.log without "acpi=off quiet splash" with 4.6 kernel.
I try with the lastest in few hours.
Thanks
Comment 3 Sam 2016-06-21 07:47:57 UTC
Created attachment 220781 [details]
kern.log from 4.6 kernel

This is kern.log from 4.6 kernel without "acpi=off quiet splash" options.
Comment 4 Zhang Rui 2016-06-22 01:47:14 UTC
(In reply to Sam from comment #3)
> Created attachment 220781 [details]
> kern.log from 4.6 kernel
> 
> This is kern.log from 4.6 kernel without "acpi=off quiet splash" options.

hmmm, I guess the kernel freezes at 44s when the nouveau debug trace log occurs, right?
can you please check if the kernel can boot with nouveau built out?
Comment 5 Sam 2016-06-22 07:26:54 UTC
Created attachment 220911 [details]
kern.log from 4.7-rc4 kernel

Hi,
This is my kern.log from the latest kernel (4.7 rc4) without "acpi=off quiet splash" options.
Without "acpi=off" option, boot freezes at gdm start.

Thanks
Comment 6 Zhang Rui 2016-06-22 08:37:29 UTC
what if you add boot option "nomodeset"?
what if you built nouveau driver out and boot into text mode?
Comment 7 Sam 2016-06-23 07:10:02 UTC
Created attachment 221071 [details]
kern.log from 4.7-rc4 kernel with nomodeset

Hi,
I boot with only "nomodeset" option (so with "nomodeset" and without "acpi=off quiet splash" options) and my touchpad works (and I have my battery infos).
But, in my GUI (Gnome-shell), I haven't effects for all menus/windows transitions : ie, when I click on a menu, I have like a grey screen and, then, my normal screen with the menu (not easy to explain).
For the others tests (build nouveau driver and boot in text mode), if you can explain me how to do that (for the nouveau driver, I try, but it doesn't work ; I think this driver problem comes from acpi).

Thanks
Comment 8 Sam 2016-06-23 07:42:52 UTC
Re,

My effect problem isn't just for menus or windows transition, it's for all animation, including video (like a 15fps video). So, it's a problem with my video card (I use only Intel HD for the moment).
I'll make some new tests.
Thanks
Comment 9 Zhang Rui 2016-06-27 06:01:06 UTC
This seems to be a graphics issue to me.
Reassign to the graphics expert.
Comment 10 Jani Nikula 2016-06-27 13:24:17 UTC
[   14.841410] nouveau 0000:01:00.0: DRM: evicting buffers...
[   14.841411] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
[   14.841425] nouveau 0000:01:00.0: DRM: suspending client object trees...
[   14.844180] nouveau 0000:01:00.0: DRM: suspending kernel object tree...
[   16.953255] pci_raw_set_power_state: 36 callbacks suppressed
[   16.953262] nouveau 0000:01:00.0: Refused to change power state, currently in D3
[   17.028340] nouveau 0000:01:00.0: Refused to change power state, currently in D3
[   17.044404] nouveau 0000:01:00.0: Refused to change power state, currently in D3
[   17.044421] nouveau 0000:01:00.0: DRM: resuming kernel object tree...
[   17.044479] nouveau 0000:01:00.0: pci: failed to adjust cap speed
[   17.044496] nouveau 0000:01:00.0: pci: failed to adjust lnkctl speed
Comment 11 Sam 2016-07-12 08:49:27 UTC
Created attachment 222951 [details]
kern.log from 4.7-rc7 kernel no-option and nomodeset option

Hi,
I try latest kernel (4.7-rc7) and :
- in a normal boot, I have again my problems
- with nomodeset option, all seem to work normaly (I have my battery state, touchpad works fine, Fn + keys work, ...).

So, this new kernel version is better for my problems if I put nomodeset option.

Thanks
Comment 12 Pierre Moreau 2016-07-12 09:43:02 UTC
Hello,

You could use `nouveau.runpm=0` on the kernel command line to prevent the NVIDIA card from auto-suspending, that should "get rid" of the fail to resume error.

FYI, with nomodeset you are disabling both GPU drivers. This is mostly responsible for the lost of effects in your DE, as your DE could prefer to not use effects if there is no 3D hardware acceleration available. If you want to try disabling only Nouveau, use `nouveau.modeset=0` on the kernel command line.

Could you attach the Xorg.log from a run without `acpi=off` and `nomodeset` please? When you say that boot freezes when gdm starts, I guess switching to a tty does not work, nor pressing the power button of your laptop, or trying to connect over SSH from another computer?
Comment 13 Sam 2016-07-12 12:27:30 UTC
Created attachment 222991 [details]
kern.log + Xorg.log from 4.7-rc7 kernel with nouveau.runpm=0

Re,
I post kern.log and Xorg.log with nouveau.runpm=0 option in boot.
This new option is better again than nomodeset option :
- I have my luminosity option and Fn shortcut for luminosity works great
- my touchpad sensivity is very great to work (with nomodeset option, I need to overwrite sensivity parameters).

When I boot without option (without nomodeset and acpi=off), my boot freezes and I can't open a ssh connection or tty. So, I haven't log to show you because they are overwrited with the next boot (if you can explain me how to make more log to Xorg, I can do it).
Thanks
Comment 14 Pierre Moreau 2016-08-16 13:21:09 UTC
Eh sorry, completely forgot that you answered.

So, you usually have a Xorg.0.log and a Xorg.0.log.old, with the former one being the log for the current session, and the latter one, of the previous session.
If you use systemd, you can get the previous kernel log using `journalctl -b -1`.

By the way, you should remove the xf86-video-nouveau driver as it does not support your chipset. X will, and already does, fallback to the modesetting driver.

It might be related to https://bugs.freedesktop.org/show_bug.cgi?id=94725. Could you try if that patch https://bugs.freedesktop.org/attachment.cgi?id=122653 helps?
Comment 15 Peter Wu 2016-09-09 14:30:21 UTC
The lockup issue was reported for a similar model (MSI GE62 6QE) in Bug 156341. To workaround that issue on that specific machine, he had to boot with:

 acpi_osi=! acpi_osi="Windows 2009"

Sam, can you upload the tarball (with acpidump and others) according to
https://bugs.launchpad.net/lpbugreporter/+bug/752542?