LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Linux freezing (https://www.linuxquestions.org/questions/linux-hardware-18/linux-freezing-4175640578/)

anon047 10-17-2018 10:43 AM

Linux freezing
 
I'm not sure if I am at the correct topic, but this problem is with me for quite a while.

I posted in this forum some time ago because any linux distro I've installed on my laptop couldn't work, always freezing when something related to using the nouveau drivers would happen, like switching from the Login Screen to the Desktop Evironment.

Link to the thread: https://www.linuxquestions.org/quest...op-4175634199/

I've found that if I disable the ACPI, linux could bootup correctly.
But my laptop was getting very hot even when doing nothing.

Some weeks ago I've found that disabling the nouveau drivers with nouveau.modeset=0 would also works, but still getting hot.

Anyone have an idea of what is happening?

Thanks in advance.

PC Specs:
Acer Nitro 5 AN515-51 50U2
NVIDIA GeForce GTX 1050 4 GB gDDR5
Intel Core i5-7300HQ

ondoho 10-17-2018 02:24 PM

https://ubuntuforums.org/showthread.php?t=2375169
https://bugs.launchpad.net/ubuntu/+s...x/+bug/1735024
https://www.reddit.com/r/linux4noobs...51_with_linux/
seems to be a tricky laptop.
which distro do you have on this?
i would recommend something that is not ubuntu-based, maybe manjaro or antergos.

business_kid 10-17-2018 02:49 PM

I think you should reread that other thread. The answers were good.
There's a good link to the Ubuntu wiki regarding ACPI boot options. Another one is to kill acpid, and restart it at once with 'acpid -l' which logs stuff to syslog. Leave 'top' running in a terminal, and flick to it when X freezes to see what's hogging resources.

Some comments also refer to special instructions; use instructions for your distro. Also there was mention of Bumblebee or Prime Drivers, and it's a bit disingenuous to ask for help without declaring what you did regarding these.

What's your card? Drivers? Mesa Version? Distro? Version? Without posting Xorg.0.log, give us a snip of any warnings/errors/advice it has on the graphics setup.

/Ruefully
A couple of us became experts on incompatible cards by buying them. You might have joined that club

anon047 10-18-2018 08:23 PM

Sorry for the late response, but I've been doing some tests.
I tried some parameters on the kernel and I got some weird results. OK here we go:

I tested acpi=off, acpi=ht, pci=noacpi, nomodeset, nouveau.modeset=0, nouveau.accel=1, noapic
And only a few would bootup my laptop.
One search I made at google said to disable nouveau drivers, and install from nvidia. But that was the worst experience because not only my laptop stopped booting but it made a really low but high pitched noise that was painful to hear.

The only way to make everything works correctly is using nouveau.modeset=0, but I had to do this just for the first time because I removed this parameter(after logged in) from /etc/default/grub and the linux kernel loaded anyways after restart. I really would like to know the reason for this.

The problem is that my laptop gets really hot, and I will show you the tests I made with different kernel parameters(the results are basically identical) and the ACPI log I got from the Log Tool from linux Mint.

If there's any more information you need, I'd like to help;

Xorg Log:
https://pastebin.com/fmfuSBWH

ACPI Logs:
[acpi_osi=Linux]
https://pastebin.com/ijDqVR2e
[nouveau.modeset=0]
https://pastebin.com/NDigUxK5

Temperature Tests:
[without kernel parameters, using nvidia card]
https://imgur.com/AKh1FW4
[acpi_osi=Windows, using nvidia card]
https://imgur.com/amIuBwI
[without kernel parameters, using intel driver]
https://imgur.com/kOV1e67
[nouveau.modeset=0, using nvidia card]
https://imgur.com/0wlkFfB
[also i tried to run overwatch to take the temperature to its limits]
https://imgur.com/f85rOHX

ondoho 10-19-2018 02:50 AM

Quote:

Originally Posted by AGneX (Post 5916518)
The only way to make everything works correctly is using nouveau.modeset=0, but I had to do this just for the first time because I removed this parameter(after logged in) from /etc/default/grub and the linux kernel loaded anyways after restart. I really would like to know the reason for this.

is this the situation you're at right now?
so it's installed to hard drive, and you're booting without any added parameters, and it's getting hot?
the images suggest that
a) it's the CPU that's getting hot, not the GPU
b) it's somewhere between 30 and 60 degrees celsius? closer to 60, so say 50?

i think you should make sure we're talking about the CPU here.

you should also make sure what the nominal temperature for this CPU is.

you should also look what is eating your resources, with 'top' or 'htop'.

and we should have a closer look at your GPU drivers:
Code:

lspci -k

business_kid 10-19-2018 03:53 AM

I had more of a look than you probably did at that Xorg.0.log. It's a total disaster area, and I have never seen such a long winded output on graphics. If there's a config (a conf file or conf.d directory in /usr/lib(64)/X11 overwritten by stuff in /etc/X11/) take it out of circulation and try again. Two drivers you don't want are fbdev and vesa. fbdev is a framebuffer driver from the last millenium, and vesa is what passed for graphics when graphics cards hadn't been invented yet. I know vesa is limited to 4:3 monitors, and I think fbdev is also. They were developing those in the 1980s :-/.

It threw out the nouveau driver and is not using that. It couldn't find the monitor, and set up 640x480@60hz, which is a default mode. If you start X with no config, it should find stuff

All this points to a kernel module not being loaded as one possible explanation. Anyhow, it's a total mess, and you'll have to configure X with whatever tools your distro offers.

anon047 10-21-2018 10:24 AM

lspci -k
https://pastebin.com/dNqiGiEg

Ok, now I tried to use FreeBSD, it worked pretty well, until I installed SLIM, the Display Manager.
Before installing Slim, I rebooted and started the X(with startx, and using mate) without any problems, everything is good, but then I decided to have a Display Manager... Tried to login and freezed.

Now I'm testing Manjaro and it is one of my favorites since Pop!_OS. (still have to use nouveau.modeset=0)

Talking about the long Xorg log, it happened only when using Linux Mint, after that I installed Ubuntu and it was a very short file.
But now with Manjaro, it's a little longer than Ubuntu's log file and less than Mint's log file.

xorg log in manjaro:
https://pastebin.com/mhTSZMpB

sevendogsbsd 10-21-2018 10:58 AM

To the OP - FYI: FreeBSD is Unix, not Linux. Because of it's existence on distrowatch, many people think it is Linux.

Does your laptop have 2 video cards (optimus?) I don't have a laptop so can't intelligently comment but I believe there are laptops out there with 2 video cards: one for gaming/3d and the other for just "normal" work. Is this the case with your laptop?

anon047 10-21-2018 12:43 PM

I know freebsd is not linux and I knew people would think that.
But the case is that I wanted to show that even without using linux, the problem is there.

My laptop has intel integrated graphics and a nvidia video card.

ondoho 10-22-2018 01:19 AM

re lspci output:
it says intel Xeon processor, i don't see a problem there.
it has, however, dual/hybrid graphics: intel and nvidia.
these need special setup to work together, it used to be bumblebee, now there's a different software (prime? optimus?) whose name i keep forgetting.
as you can see i am by no means a specialist here, never had such a setup.

you will have to search various wikis and the wild web in addition to reading our answers here.

it will be very difficult to get results if you keep switching distros, and almost impossible to help.

personally i think your intel might require some firmware, and your nvidia will benefit from the proprietary driver.

anon047 10-22-2018 11:55 PM

I think I now what is happening, while using Windows, the fans make noise and on linux not.
Looks like something related to that, maybe the fan control system not working as my expectations.

I just have one more question and I'll mark this thread as solved. Does setting nouveau.modeset=0 bad for my laptop's performance or anything else?

business_kid 10-23-2018 05:14 AM

I'm presuming that's a kernel option or bootup parameter. It disables kernel modesetting.

mrmazda 10-24-2018 02:55 AM

If you are still using Manjaro I suggest based upon https://forum.manjaro.org/t/manjaro-...l-nvidia/43356 and https://forum.manjaro.org/t/bumblebe...tel-card/43657 that your problem stems from not following Optimus hardware user installation instructions. You've mentioned using neither bumblebee nor prime nor primusrun, which indicates to me you're not done installing required software and suggest you read https://forum.manjaro.org/t/howto-se...y-driver/40225 and if necessary its references.


All times are GMT -5. The time now is 09:23 AM.