LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-25-2007, 08:49 PM   #1
expatCM
Member
 
Registered: Apr 2006
Location: Chiang Mai, Thailand
Distribution: Ubuntu 14.04 64 bit
Posts: 104

Rep: Reputation: 15
Need to Power Down


Ubuntu 7.10 fully up to date. Nothing exotic ... a very basic P4 on an Asus P4S8X-MX

This is a new event .... started happening about two weeks ago. When I shut Ubuntu down the computer does not power off. It used to. Ubuntu exits and leaves a white underscore in the top left corner of a black screen.

If I boot from the Live CD the computer will shut down AND power off.

It was suggested that this could be the Bios settings but I do not understand how since the Live CD works. But also ... there is not a lot to play with in Bios and .... it used to work....

What did I do this time / how do I fix it?
 
Old 11-25-2007, 09:30 PM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
I think I've seen this problem before. Did you check dmesg, syslog, and Xorg.log?

Try shutting down from the command line as root or using sudo.
 
Old 11-25-2007, 10:29 PM   #3
expatCM
Member
 
Registered: Apr 2006
Location: Chiang Mai, Thailand
Distribution: Ubuntu 14.04 64 bit
Posts: 104

Original Poster
Rep: Reputation: 15
Yes, sudo shutdown now takes Ubuntu down immediately but the machine still runs -- white underscore with black screen.

dmesg does not seem to show anything out of the ordinary. A lot of information there but no warnings or errors.

The last few lines from the /var/log as the system shutdown but not powered off are as follows

Code:
Nov 26 10:55:01 p4s8xmx kernel: [   75.575070] EXT3 FS on sdb1, internal journal
Nov 26 10:55:01 p4s8xmx kernel: [   75.575077] EXT3-fs: mounted filesystem with ordered data mode.
Nov 26 10:55:01 p4s8xmx kernel: [   77.900362] No dock devices found.
Nov 26 10:55:01 p4s8xmx kernel: [   77.974953] input: Power Button (FF) as /class/input/input4
Nov 26 10:55:01 p4s8xmx kernel: [   77.980804] ACPI: Power Button (FF) [PWRF]
Nov 26 10:55:01 p4s8xmx kernel: [   78.019051] input: Power Button (CM) as /class/input/input5
Nov 26 10:55:01 p4s8xmx kernel: [   78.024762] ACPI: Power Button (CM) [PWRB]
Nov 26 10:55:01 p4s8xmx kernel: [   79.687671] eth0: Media Link Off
Nov 26 10:55:01 p4s8xmx kernel: [   79.756837] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
Nov 26 10:55:01 p4s8xmx kernel: [   79.770479] ppdev: user-space parallel port driver
Nov 26 10:55:02 p4s8xmx kernel: [   80.238291] audit(1196049301.997:3):  type=1503 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=4883 profile="/usr/sbin/cupsd"
Nov 26 10:55:02 p4s8xmx kernel: [   80.301189] apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
Nov 26 10:55:02 p4s8xmx kernel: [   80.301197] apm: overridden by ACPI.
Nov 26 10:55:02 p4s8xmx kernel: [   80.522600] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Nov 26 10:55:02 p4s8xmx kernel: [   80.607199] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Nov 26 10:55:02 p4s8xmx kernel: [   80.641753] NFSD: starting 90-second grace period
Nov 26 10:55:03 p4s8xmx kernel: [   80.848558] Failure registering capabilities with primary security module.
Nov 26 10:55:03 p4s8xmx dhcdbd: Started up.
Nov 26 10:55:03 p4s8xmx kernel: [   81.742249] NET: Registered protocol family 10
Nov 26 10:55:03 p4s8xmx kernel: [   81.742478] lo: Disabled Privacy Extensions
Nov 26 10:55:03 p4s8xmx kernel: [   81.742657] ADDRCONF(NETDEV_UP): eth0: link is not ready
Nov 26 10:55:05 p4s8xmx dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.reason
Nov 26 10:55:07 p4s8xmx kernel: [   85.615607] NET: Registered protocol family 17
Nov 26 10:55:18 p4s8xmx dhcdbd: dhco_parse_option_settings: bad option setting: old_server_name =  
Nov 26 10:55:20 p4s8xmx dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.domain_name
Nov 26 10:55:20 p4s8xmx dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.nis_domain
Nov 26 10:55:20 p4s8xmx dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.nis_servers
but I cannot see a lot wrong here.

xorg only came up with the following
Code:
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
(EE) AIGLX: Screen 0 is not DRI capable
which again do not appear to be major issues?
 
Old 11-26-2007, 12:06 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Do you have any control when you get to the black screen with the white underscore? Can you at least do a three finger salute from there?

Does it do this if you boot into recovery/single user mode?
Does it shutdown if you do it as real root (from a root terminal)?
Did you upgrade or install any software just before you noticed this problem?

This problem has happened to me before and it always seems to come randomly and go away randomly- one of the annoying things about Ubuntu. Nothing useful showed in my logs either. I had to shutdown as root for a day or two and then the problem seemed to disappear. It doesn't seem to be an uncommon problem, either, but I have never seen any concrete reasons as to why it happens.

Hopefully someone may be able to finally offer an explanation. Or, perhaps, my questions will lead you to an answer/workaround. Or, perhaps, all that's needed is that next security fix, a bit of time, or a couple of hard shutdowns to make Ubuntu obey.
 
Old 11-26-2007, 01:10 AM   #5
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
try the command "poweroff"
 
Old 11-26-2007, 01:51 AM   #6
expatCM
Member
 
Registered: Apr 2006
Location: Chiang Mai, Thailand
Distribution: Ubuntu 14.04 64 bit
Posts: 104

Original Poster
Rep: Reputation: 15
Ctrl Alt Backspace does nothing as does Ctrl C and Ctrl Z

I have found that after a short delay that Ctrl Alt Del makes a reboot.

From a real root shutdown now has the same behavior

poweroff does the same as shutdown ....

I also looked at the hdd activity light just in case there was something running after shutdown ... but nothing ...

Recovery mode is interesting ........ if I use shutdown the system goes through the motions of stopping the running processes but then loops back and returns the command prompt. If I enter the command again the same thing happens.

So I thought ... enter poweroff and see what happens. Life then started getting interesting.

poweoff starts to go down but then autofsck appears to kick in and starts to check the file system. But it stalls on one particular file which appears to be a file written in Thai where the file syntax is not recognized. An option is presented to rename or delete the file but if you make a selection the process hangs.

So I rebooted and deleted the file. Then I started again in recovery mode. AutoFsck again kicked in but this time ran the full process and to my utter amazement shutdown the machine on completion.

Thinking this was an interesting event I then started up the system normally, logged in a user and used the normal shutdown process. Ubuntu closed and then the machine shutdown.

So it looks like the problem has been solved. Thanks to you all for helping my thinking process .... I could not have worked this one out without your suggestions
 
Old 11-26-2007, 03:22 AM   #7
rockaway
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
Cool

Quote:
Originally Posted by expatCM View Post
Ubuntu 7.10 fully up to date. Nothing exotic ... a very basic P4 on an Asus P4S8X-MX

This is a new event .... started happening about two weeks ago. When I shut Ubuntu down the computer does not power off. It used to. Ubuntu exits and leaves a white underscore in the top left corner of a black screen.

If I boot from the Live CD the computer will shut down AND power off.

It was suggested that this could be the Bios settings but I do not understand how since the Live CD works. But also ... there is not a lot to play with in Bios and .... it used to work....

What did I do this time / how do I fix it?
The best place that I suggest you visit is the ubuntu forums.
 
Old 11-26-2007, 03:54 AM   #8
expatCM
Member
 
Registered: Apr 2006
Location: Chiang Mai, Thailand
Distribution: Ubuntu 14.04 64 bit
Posts: 104

Original Poster
Rep: Reputation: 15
read the last post and you will see that the problem is solved
 
Old 11-26-2007, 12:27 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Glad to hear you figured it out!

Just out of curiosity, when you ran the shutdown command did you use any arguments?

I had intended you to run it as
Code:
/sbin/shutdown -ah now
The '-a' isn't really necessary, but the '-h' halts it (poweroff) and the 'now' says "Do it now!".

Sorry about that; I should have been more specific. Again, glad to hear it worked out!
 
Old 11-27-2007, 01:44 AM   #10
expatCM
Member
 
Registered: Apr 2006
Location: Chiang Mai, Thailand
Distribution: Ubuntu 14.04 64 bit
Posts: 104

Original Poster
Rep: Reputation: 15
no ... I just did $sudo shutdown now or #shutdown now

From following though with others it appears there "may" but a little bug with dosfsck when in this case it finds Thai language. Please note that this really is "may", it has not yet been confirmed. I am just happy it now works
 
  


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
USB IR receivers supporting power on/off via mb power header dblade Linux - Hardware 0 09-16-2007 01:22 AM
LXer: Linux Networx partners with CEI to power 2X visualization power of ... LXer Syndicated Linux News 0 04-26-2006 03:03 AM
set iBook to automatically power-up after power failure peachy Other *NIX 4 04-19-2006 12:44 PM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration