LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-17-2013, 08:23 AM   #1
kox444
Member
 
Registered: Aug 2012
Posts: 114

Rep: Reputation: Disabled
Debian Wheezy freezes


I'm experiencing very annoying problem. The shell just hangs randomly. It has happened for months when wheezy was still in testing. But not as frequently as now. On saturday I had like 3 freezes. But that was sid. Yesterday I have updated sid and some things got screwed. I've returned to Wheezy. Now when it is stable I really didn't expect gnome shell to hang 2 times within 15 minutes time. I like gnome shell but I can't stand the freezes. I noticed it freezes when I'm watching something on youtube. Maybe it's flash fault. Do such freezes occur to you?
My comp is definately not to weak to handle this os.
 
Old 06-17-2013, 10:07 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, FreeBSD
Posts: 1,338

Rep: Reputation: Disabled
Without more info, this is simply a "complaint"...

It could be flash...

It could be related to the video driver...

You could install a simple window manager, start x and then go to a page which uses flash and see if the freezes occur.

Post more info about your system and hardware and someone may be able to advise you.
 
Old 06-17-2013, 11:14 AM   #3
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
When it freezes, can you still Ctrl+Alt+F1 to another console/tty?

On Squeeze, I received perhaps one or two freezes in 12+ months.
On Wheezy, I have received a half-dozen in the past month.

By "freeze", I mean a lack of response (and update) from gnome display. If I ctrl+Alt+F1 and switch to another tty, I can see if any processes are eating huge amounts of CPU, etc.
Or as a second-to-last resort, I have been able to do something like (I can't remember the exact command);
gnome-shell --replace --screen=0
... then after 10 or 20 seconds, switch back to gnome with Ctrl+Alt+F7, save my work, then reboot or logoff/logon, etc.

In my case, it has also happened with video display of some sort (video playback), using driver "radeon". I also have a few gnome extensions, and have not yet attempted to dig deeper in to where the problem lies.
 
Old 06-17-2013, 03:43 PM   #4
kox444
Member
 
Registered: Aug 2012
Posts: 114

Original Poster
Rep: Reputation: Disabled
I have used squeeze for some time and it has never frozen in such a way. I think it's shell porblem. The display is freezenig, audio is still playing for a while then stops. I don't know if I can go back to console. I didn't know about these shortcuts before, I will check it out when it hangs again. But how did you replace shell? I mean when I go back to console I have only x log or something like that. Do you replace shell for tty1 while being on tty2?

My system: Debian Wheezy with gnome shell, cpu amd phenom x4 965, gpu radeon hd 4850, 4GB ram.
 
Old 06-17-2013, 05:14 PM   #5
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
Yes, from another tty ... (such as getting to tty1 with CTRL+ALT+F1), log in as yourself, and issue the command "w" to show who is logged on, from where, and what they're doing.
One of the lines will probably contain your username, tty7, and show ":0" as the screen (in the "FROM" column).

This is the screen/display that I provided in the --screen=0 parameter of the command above.
I believe you can also define this with;
Code:
export DISPLAY=:0
gnome-shell --replace
You can even do this from another PC (or your android phone, etc) via SSH.
I'm new to window managers and desktop environments so if anything I'm saying is incorrect, I hope someone tells me.

All of this is just a workaround for your problem. There are a few ways to narrow down the problem (such as /var/log/Xorg.0.log, for any obvious errors/problems when X was started).
If this is something specific to gnome, you can install another desktop environment (like 'lxde' or 'xfce4', then pick that from the window manager login screen) or even a new window manager and see if the problems disappear.
 
1 members found this post helpful.
Old 06-17-2013, 11:54 PM   #6
kox444
Member
 
Registered: Aug 2012
Posts: 114

Original Poster
Rep: Reputation: Disabled
I'd rather stay using gnome shell. I'll try your solution next time it freezes, and I will also check logs. How does switiching between desktop environments looks if I don't have any display managers? It boots much faster without it. I login and type startx and that's it. I think x will always load the default DE. How about loading a different one? Is there a parameter for that or is it required to have a display manager to do that?
Edit: It has just got frozen. I started x in another tty and it couldn't start at first but it finally did and it unlocked tty1. Thanks. And I think it got to be something with iceweasel or/and flash. It looks like the freeze starts from browser.

Last edited by kox444; 06-18-2013 at 07:25 AM.
 
Old 06-18-2013, 09:31 AM   #7
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,197

Rep: Reputation: 164Reputation: 164
Are you using the (blob) nvidia driver?
 
Old 06-18-2013, 10:41 AM   #8
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
Quote:
Originally Posted by kox444 View Post
I login and type startx and that's it. I think x will always load the default DE. How about loading a different one? Is there a parameter for that or is it required to have a display manager to do that?
To have it applied to just your user - edit or make the file ~/.xinitrc
In that file, you'd have a line, something like;
Code:
exec startkde
You can also change it for all users, I think it's "dpkg-reconfigure kde" (or whatever the desktop environment package is called).

P.S. Glad to hear it's not your entire system that's freezing.
 
1 members found this post helpful.
Old 06-18-2013, 11:18 AM   #9
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
I was just performing a couple of tasks (gzip edit on a ~1GB file, with about 100 files inside), and a couple of nautilus windows open. My gnome appeared to lock up.
I switched over to tty1, and found entries similar to the following appearing in /var/log/syslog
Code:
Jun 18 08:59:26 mypcname kernel: [62029.666582] INFO: task gnome-shell:8081 blocked for more than 120 seconds.
Jun 18 08:59:26 mypcname kernel: [62029.671505] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jun 18 08:59:26 mypcname kernel: [62029.676510] gnome-shell     D ffff88021fc73780     0  8081   7992 0x00000000
Jun 18 08:59:26 mypcname kernel: [62029.676517]  ffff8801cb5bf1e0 0000000000000082 0000000000000000 ffff880216e46f60
Jun 18 08:59:26 mypcname kernel: [62029.676533]  0000000000013780 ffff880202c2dfd8 ffff880202c2dfd8 ffff8801cb5bf1e0
Jun 18 08:59:26 mypcname kernel: [62029.676548]  0000000000000246 000000018134eb39 ffff880212908498 ffff880212908400
Jun 18 08:59:26 mypcname kernel: [62029.676564] Call Trace:
Jun 18 08:59:26 mypcname kernel: [62029.676582]  [<ffffffffa015c50c>] ? log_wait_commit+0xbc/0x10e [jbd]
Jun 18 08:59:26 mypcname kernel: [62029.676595]  [<ffffffff8105fadf>] ? add_wait_queue+0x3c/0x3c
Jun 18 08:59:26 mypcname kernel: [62029.676613]  [<ffffffffa0168ab5>] ? ext3_sync_file+0x129/0x198 [ext3]
Jun 18 08:59:26 mypcname kernel: [62029.676625]  [<ffffffff8111b8d3>] ? sys_fsync+0x20/0x31
Jun 18 08:59:26 mypcname kernel: [62029.676635]  [<ffffffff81353b52>] ? system_call_fastpath+0x16/0x1b
Similar lines with kjournald, and two other tasks.
After a few minutes, my gzip process finished, and gnome started responding again.

Wheezy, AMD64, 8GB RAM, 3.2.0-4-amd64.
 
Old 06-18-2013, 01:13 PM   #10
kox444
Member
 
Registered: Aug 2012
Posts: 114

Original Poster
Rep: Reputation: Disabled
Thanks it works. The file needs to be edited everytime I want to change DE, doesn't it? It isn't a problem anyway. I will make 2 bash scripts like start-gnome and start-xfce that will put in the file what needs to be and execute x afterwards.
It jsut looks like the new gnome isn't too stable. But that's not a big problem if I can unlock it without losing anything. Thanks again.
 
Old 06-19-2013, 01:05 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,869

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
I wanted to bring up this same subject & have been folowing this thread closely, because my system(Acer Aspire 3620) freezes when I'm watching Hulu & even while just listening to music on Pandora. My default system is gnome3 on Debian Jessie.
It even does it on Hulu in TWM haven't tried Pandora though.
 
Old 06-19-2013, 10:34 AM   #12
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,259

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by kox444 View Post
Thanks it works. The file needs to be edited everytime I want to change DE, doesn't it? It isn't a problem anyway. I will make 2 bash scripts like start-gnome and start-xfce that will put in the file what needs to be and execute x afterwards.
It jsut looks like the new gnome isn't too stable. But that's not a big problem if I can unlock it without losing anything. Thanks again.
No. It doesn't need edited at all.

At your tty prompt to start Gnome you are entering your user name, password and then at the user prompt, startx.

If you install Xfce4 you would do all the same things except use "startxfce4". For KDE it would be "startkde" judging from the "exec kde" which is simply calling up the kde DE.

Your user has permission to open any DE. The start command will open them at the prompt with no problem. I don't swear by the KDE command (startkde) but think it is correct. The one for Gnome you already know. I use Xfce4 so I do know that startxfce4 works just as well.

You do need to have Gnome listed as the default to use startx to start it though. So you will need to edit that file to show that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Linux vs. Debian kFreeBSD With Squeeze & Wheezy LXer Syndicated Linux News 0 12-12-2012 10:00 PM
Debian Squeeze on Raspberry Pi faster than Debian Wheezy patrick295767 Debian 8 07-23-2012 12:09 AM
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 07:43 PM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 01:50 AM
LXer: Debian looking at a June 2012 freeze for Debian Wheezy LXer Syndicated Linux News 0 08-10-2011 10:00 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration