Author Topic: Sometimes system hangs - baytrail - help to find out the reason and to fix  (Read 7234 times)

0 Members and 1 Guest are viewing this topic.

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Hi  :)

I am using manjaro xfce; Sometimes (mostly after resume, as I noticed, but still I am not sure) the OS hangs; The ctl+alt+F1 doesn't help cause seems like the keyboard doesn't respond as well so I press power button to force switching off the notebook; Just before I faced same issue so I had to switch off manually :( The thing is I am not sure what exactly causes the issue... Maybe it is the xserver or mouse driver (cause the hangs often happens on mouse scroll event, as I noticed) or some memory leak due to lets say vlc or...

So please help me to analyze what causes the issue and how to fix it...

Thanks

manjaro 0.8.13 xfce x64
kernel-4.1.9
« Last Edit: 10. April 2016, 12:48:24 by mark001 »

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #1 on: 23. January 2016, 12:04:52 »
I am using manjaro xfce; Sometimes (mostly after resume, as I noticed, but still I am not sure) the OS hangs; The ctl+alt+F1 doesn't help cause seems like the keyboard doesn't respond

Normally random hangs like this indicates a RAM issue. Check your RAM modules are seated correctly; give them a blow of air and re-seat them.
 
Quote
manjaro 0.8.13 xfce x64
kernel-4.1.9

Seriously? Does this mean you're running software with known security vulnerabilities? You're going to end up having larger issues than random freezing...
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #2 on: 17. February 2016, 10:57:14 »
Normally random hangs like this indicates a RAM issue. Check your RAM modules are seated correctly; give them a blow of air and re-seat them.
 

I don't think it is RAM (I am still thinking but not sure it is RAM); I have changed the settings in pulse audio from "All except monitors" to "Monitors" on Input tab cause, as I was saying, hangs occurs usually when some multimedia related app runs; Since then the hangs became really rare issue; But still sometimes hangs occurs; I could read hang may happen because of Kazam or some other multimedia stuff; So maybe I have to check multimedia but I don't know how :( Anyways I have noticed the hangs occurs after resume so maybe some service is terminated or some module is kicked out by suspend mode but still I am not sure how to check that; So please help me to analyse the mentioned two points as

- services
- modules

...before moving any further cause I do suspect some software issue
« Last Edit: 17. February 2016, 11:00:10 by mark001 »

Offline wolfyrion

  • Sr. Mitglied
  • ****
  • Posts: 375
  • Branch: UNSTABLE
  • Desktop: PLASMA/KDE
  • GPU Card: ZOTAC AMP EXTREME EDITION 980
  • GPU driver: NON-FREE
  • Kernel: LATEST
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #3 on: 17. February 2016, 11:17:55 »
With Manjaro I had the most weird behavior scenarios without knowing what is causing that :

Scenarios :

1. Installed Manjaro with my pc overclocked from 3.7 Ghz to 4.5 Ghz.
I couldnt go back to normal. if my pc was not overclocked Manjaro was not booting.
in order to boot I had to have my pc overclocked...

2. Sometimes my pc was delaying to boot for some sort of reason,maybe 2-4 mins , I could see sometimes double icons on my system tray and somehow my pc misbehaving.
Normal reboot or shutdown was not fixing this. The solution was to unplug my pc from power.

3. Random Freezes from time to time.
Got frustrated I went to bios , set all options to bios optimal default.
PC booted and never touch it again.
So far no problems.

So I assume most of the problems had to do with overclocking or underclocking.


Well thats all about my experience with Manjaro...  ;D


« Last Edit: 17. February 2016, 11:19:45 by wolfyrion »

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #4 on: 17. February 2016, 11:23:53 »
With Manjaro I had the most weird behavior scenarios without knowing what is causing that :

Scenarios :

1. Installed Manjaro with my pc overclocked from 3.7 Ghz to 4.5 Ghz.
I couldnt go back to normal. if my pc was not overclocked Manjaro was not booting.
in order to boot I had to have my pc overclocked...

2. Sometimes my pc was delaying to boot for some sort of reason,maybe 2-4 mins , I could see sometimes double icons on my system tray and somehow my pc misbehaving.
Normal reboot or shutdown was not fixing this. The solution was to unplug my pc from power.

3. Random Freezes from time to time.
Got frustrated I went to bios , set all options to bios optimal default.
PC booted and never touch it again.
So far no problems.

So I assume most of the problems had to do with overclocking or underclocking.


Well thats all about my experience with Manjaro...  ;D

Interesting :) But how to do the clocking my machine requires? Please give detailed instructions

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #5 on: 17. February 2016, 13:17:12 »
Just checking before we go any further: have you updated recently (`sudo pacman -Syu` within the last few days)? There's no way you should be running 0.8.13 and kernel 4.1.9 any more.

I don't want to spend time diagnosing an issue that has been fixed already.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline Riddle-Master

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Testing
  • Desktop: XFCE4
  • GPU Card: Intel Iris 540
  • GPU driver: Non-free
  • Kernel: Linux45-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #6 on: 22. February 2016, 21:30:12 »
I can confirm to have the same issue. If I send my system to standby on purpose, I get the log in screen and can go back to my desktop. No issue.
But if I wait on the timeout for my screensaver to kick in, Boom, I log in to a black screen, no console possible but system is running (I hear e.g. audio from interrupted videos). At least I can reboot with CTRL-ALT-DEL.

I believe this is either an issue with the i915 driver, or ACPI support. No work around yet. I have kernel options intel_idle.max_cstate=1 i915.enable_rc6=0 to let my CPU and GPU run without powersaving. Otherwise my GFX will hang up on me frequently (anytime GPU/CPU switch power states).

Maybe OP could check if it is the same behavior on standby versus screenlock.
Nuc6i5SYK | 2x8 GB Kingston HyperX Impact DDR4 Ram | Samsung NVME 950 Pro | IIyama T2735MSC-B2

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #7 on: 22. February 2016, 22:19:02 »
I can confirm to have the same issue.

Do you have the same hardware (i.e. a notebook)? Are you running the same kernel? Does yours hang when you scroll with the mouse wheel? If not, it's unlikely to be the same issue.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline Riddle-Master

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Testing
  • Desktop: XFCE4
  • GPU Card: Intel Iris 540
  • GPU driver: Non-free
  • Kernel: Linux45-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #8 on: 23. February 2016, 19:46:02 »
Just additional information, I don't have a notebook, I am running on a NUC6i5SYK, which I believe has nevertheless a mobile Intel Chip (15 Watts) (Skylake, i915 driver). I am running on the 4.4 Kernel and with XFCE4.
I do not know if it is 100% identical. Nevertheless, the computer will wakeup from standby, or upon pressing a key after the screensaver kicks in. In both cases I will actually see the login screen. But in one case I get back to the desktop, and in the other case just a blank screen after confirming the password. It is not a big issue as long as I can (soft) reboot. Maybe some other users can confirm if they have the same hardware and the same issue. I am using the dedicated gfx chip on the CPU. It is also a bit of a random item. Sometimes, it works, it is just not 100% reliable.

I used to have the problem even worse in that I could only hard reboot after standby. This changed by plugging my USB keyboard dongle into a recharging USB port (always on) and also ensuring that Wake from USB was enabled in Bios. I did upgrade to the latest released Kernel too. These are just some suggestions to try if this could fix the problem. One can test from a live USB stick with one of the test versions with later kernels before modifying the system, too. Other suggestions are looking into the ACPI setup. I do run the kernel options intel_idle.max_cstate=1 and i915.enable_rc6=0 to let CPU and GPU tu run at 100% power. Otherwise my accelerated gfx will hang up on me frequently, too. But these are the only modifiers from standard systems

P.S. Don't treat it as identical issue, I cannot reliably reproduce it at this time. Maybe if there are other users that have a similar or related issue, maybe then it could be considered a trend. For me it is only an annoyance and nothing serious. So don't spend any time on me.
« Last Edit: 23. February 2016, 20:00:22 by Riddle-Master »
Nuc6i5SYK | 2x8 GB Kingston HyperX Impact DDR4 Ram | Samsung NVME 950 Pro | IIyama T2735MSC-B2

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #9 on: 08. March 2016, 10:26:40 »
Just checking before we go any further: have you updated recently (`sudo pacman -Syu` within the last few days)? There's no way you should be running 0.8.13 and kernel 4.1.9 any more.

I don't want to spend time diagnosing an issue that has been fixed already.

It hanged in 0.8.11 before and after on 0.8.13 as well; As I was saying, it hangs mostly during multimedia apps run as kazam or guvcview :P So maybe this is the driver issue or memory issue I have build-in graphics; I just installed xf86-video-intel-1:2.99.917+556+g0532031-0.1 to see how it goes; But still I am not sure how to find out is all compatible with my hardware?

« Last Edit: 08. March 2016, 10:30:50 by mark001 »

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #10 on: 08. March 2016, 11:09:20 »
Hello mark001!

Any chance your cpu is an intel baytrail like e.g. N2930, N3540 or N3050 ?

Then there are some serious freeze issues as elaborately discussed in https://bugzilla.kernel.org/show_bug.cgi?id=109051

On my Acer Notebook with N3540 cpu I could remedy this problem with kernel parameter "intel_idle.max_cstate=2".

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #11 on: 09. March 2016, 09:27:59 »
Hello mark001!

Any chance your cpu is an intel baytrail like e.g. N2930, N3540 or N3050 ?

Then there are some serious freeze issues as elaborately discussed in https://bugzilla.kernel.org/show_bug.cgi?id=109051

On my Acer Notebook with N3540 cpu I could remedy this problem with kernel parameter "intel_idle.max_cstate=2".

I have asus notebook x551ma and build-in graphics "Intel HD Graphics"
Code: [Select]
$lscpu outputs :
Code: [Select]
Model name:            Intel(R) Pentium(R) CPU  N3520  @ 2.16GHz
So it is N3520; Please give more details concerning the kernel param; you mean I have to recompile my kernel manually? But how to analyse the bug is really takes place?

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #12 on: 09. March 2016, 10:22:36 »
N3520 => intel baytrail soc series => almost sure you have the same freezing issue
as myself and those people discussing this problem in the mentioned bugzilla thread.

No need to compile a kernel! The kernel parameter can be set in the kernel boot
command line.

You are using  'grub' as your boot loader?

If yes, then on system startup there should be a menu that allows you to select
different boot options as well as editing the boot settings. You may need to press
and hold the SHIFT key on bootup to make it appear.

There you can press 'e' and find the line starting with 'linux', where you can append
intel_idle.max_cstate=2 and then press F10.

Your linux will now start with said parameter. (This is only for testing! On the next boot
you will have to enter it again. If this fixes your problem, there is a more permanent
solution, but we wouldn't want to brick your system just now, would we?)

When loaded successfully you can verify this opening a terminal and enter:
Code: [Select]
$ cat /proc/cmdline
Which on my system shows (Yours may differ, but you should see the 'intel_idle' thingy):
Code: [Select]
BOOT_IMAGE=/vmlinuz-4.4-x86_64 root=/dev/mapper/croot rw cryptdevice=/dev/sda3:croot quiet nosplash noresume intel_idle.max_cstate=2
You can now test your system as you like and *if* this parameter solves your issue,
just tell me and we will make this setting more permanent.
« Last Edit: 09. March 2016, 10:35:57 by schaschlik »

Offline mark001

  • Sr. Mitglied
  • ****
  • Posts: 263
  • Branch: stable
  • Desktop: xfce4
  • GPU Card: Intel HD Graphics
  • GPU driver: i915
  • Skill: Novice
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #13 on: 09. March 2016, 10:42:03 »
N3520 => intel baytrail soc series => almost sure you have the same freezing issue
as myself and those people discussing this problem in the mentioned bugzilla thread.

No need to compile a kernel! The kernel parameter can be set in the kernel boot
command line.

You are using  'grub' as your boot loader?

If yes, then on system startup there should be a menu that allows you to select
different boot options as well as editing the boot settings. You may need to press
and hold the SHIFT key on bootup to make it appear.

There you can press 'e' and find the line starting with 'linux', where you can append
intel_idle.max_cstate=2 and then press F10.

Your linux will now start with said parameter. (This is only for testing! On the next boot
you will have to enter it again. If this fixes your problem, there is a more permanent
solution, but we wouldn't want to brick your system just now, would we?)

When loaded successfully you can verify this opening a terminal and enter:
Code: [Select]
$ cat /proc/cmdline
Which on my system shows (Yours may differ, but you should see the 'intel_idle' thingy):
Code: [Select]
BOOT_IMAGE=/vmlinuz-4.4-x86_64 root=/dev/mapper/croot rw cryptdevice=/dev/sda3:croot quiet nosplash noresume intel_idle.max_cstate=2
You can now test your system as you like and *if* this parameter solves your issue,
just tell me and we will make this setting more permanent.

Yes, I am using grub; but the thing is the bug describes freeze after 2-3 minutes of running; but in my case the hang may occur in N hours or in N resumes or during a heavy app running; I mean the hang doesn't occur right after boot; So how to find out I have same bug not just set parameters which may effect my cpu in maybe too stressful way;

Offline schaschlik

  • Neuling
  • *
  • Posts: 13
  • Yes, it's pork!
  • Branch: testing
  • Desktop: Xfce
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Sometimes system hangs - help to find out the reason and to fix
« Reply #14 on: 09. March 2016, 11:04:51 »
As Douglas Adams states in his A hitchhiker's guide to the galaxy:
DON'T PANIC  :D

On my system those freezes occured randomly after a couple of hours
with none or medium load. Similar to your system, isn't it?

The mentioned bug report discusses in fact two distinct effects:
1: freezes on heavy load (never occured on my machine)
2: random freezes after some time with no load correlation (that's the one)

Therefore I would like to suggest to simply try out the kernel parameter.
What is there to lose?

I didn't experience any harmful stress for my cpu when using this new
parameter. Even power consumption stayed moderate.
« Last Edit: 09. March 2016, 11:13:55 by schaschlik »