You are not logged in.
Pages: 1
Hello,
My Arch just started hanging on shutdown, I'll post the log from everything.log from point of initiating sudo poweroff from tty to the hang:
Oct 13 20:10:25 localhost shutdown[1537]: shutting down for system halt
Oct 13 20:10:25 localhost init: Switching to runlevel: 0
Oct 13 20:10:27 localhost syslog-ng[885]: Termination requested via signal, terminating;
Oct 13 20:10:27 localhost syslog-ng[885]: syslog-ng shutting down; version='3.2.4'
Here's uname -mrsn:
3.0-ARCH x86_64
And my rc.conf:
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_GB.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
#
MODULES=()
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="clem"
# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
# - broadcast: broadcast address (ignored for DHCP) (optional)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=
interface=eth0
address=
netmask=
broadcast=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(hwclock network syslog-ng netfs sensors @fancontrol crond nvidia dbus slim wicd alsa cupsd)
Maybe -Syu broke things, here's the last one I did:
[2011-10-12 21:42] Running 'pacman -Syu'
[2011-10-12 21:42] synchronizing package lists
[2011-10-12 21:42] starting full system upgrade
[2011-10-12 21:46] upgraded dbus-core (1.4.14-1 -> 1.4.16-1)
[2011-10-12 21:46] upgraded dbus-glib (0.94-2 -> 0.98-1)
[2011-10-12 21:46] upgraded chromium (14.0.835.186-1 -> 14.0.835.202-1)
[2011-10-12 21:46] upgraded sane (1.0.22-2 -> 1.0.22-4)
[2011-10-12 21:46] upgraded colord (0.1.12-2 -> 0.1.13-1)
[2011-10-12 21:46] upgraded dbus (1.4.14-1 -> 1.4.16-1)
[2011-10-12 21:46] installed hspell (1.1-1)
[2011-10-12 21:46] upgraded enchant (1.6.0-3 -> 1.6.0-4)
[2011-10-12 21:46] upgraded fakeroot (1.18-1 -> 1.18.1-1)
[2011-10-12 21:46] upgraded x264 (20110617-1 -> 20111001-1)
[2011-10-12 21:46] upgraded ffmpeg (20110923-1 -> 20111003-1)
[2011-10-12 21:46] upgraded flashplugin (10.3.183.10-1 -> 11.0.1.152-1)
[2011-10-12 21:46] upgraded git (1.7.6.4-1 -> 1.7.7-1)
[2011-10-12 21:46] upgraded gparted (0.9.1-2 -> 0.9.1-3)
[2011-10-12 21:46] upgraded gstreamer0.10-ugly (0.10.18-2 -> 0.10.18-3)
[2011-10-12 21:46] upgraded gstreamer0.10-ugly-plugins (0.10.18-2 -> 0.10.18-3)
[2011-10-12 21:46] upgraded shared-mime-info (0.90-1 -> 0.91-1)
[2011-10-12 21:46] upgraded gtk3 (3.2.0-1 -> 3.2.0-2)
[2011-10-12 21:46] upgraded imagemagick (6.7.2.8-1 -> 6.7.3.0-1)
[2011-10-12 21:46] upgraded krb5 (1.9.1-3 -> 1.9.1-4)
[2011-10-12 21:46] installed lib32-libffi (3.0.10-1)
[2011-10-12 21:46] upgraded lib32-glib2 (2.28.8-1 -> 2.30.0-1)
[2011-10-12 21:46] upgraded lib32-atk (1.32.0-1 -> 2.2.0-1)
[2011-10-12 21:46] upgraded lib32-gdk-pixbuf2 (2.23.3-1 -> 2.24.0-2)
[2011-10-12 21:46] upgraded lib32-ncurses (5.7-6 -> 5.9-1)
[2011-10-12 21:46] upgraded xkeyboard-config (2.2.1-1 -> 2.4.1-1)
[2011-10-12 21:46] upgraded xorg-server-common (1.10.4-1 -> 1.11.1-2)
[2011-10-12 21:46] upgraded xf86-input-evdev (2.6.0-3 -> 2.6.0-4)
[2011-10-12 21:46] upgraded xorg-server (1.10.4-1 -> 1.11.1-2)
[2011-10-12 21:46] upgraded opencl-nvidia (280.13-1 -> 285.05.09-1)
[2011-10-12 21:46] upgraded nvidia-utils (280.13-1 -> 285.05.09-1)
[2011-10-12 21:46] upgraded lib32-nvidia-utils (280.13-1 -> 285.05.09-1)
[2011-10-12 21:46] upgraded lib32-openssl (1.0.0.e-1 -> 1.0.0.e-2)
[2011-10-12 21:46] upgraded lib32-pango (1.28.3-1 -> 1.29.4-1)
[2011-10-12 21:46] upgraded libass (0.9.13-1 -> 0.10.0-1)
[2011-10-12 21:46] upgraded libpulse (1.0-2 -> 1.0-3)
[2011-10-12 21:46] upgraded libsasl (2.1.23-7 -> 2.1.23-8)
[2011-10-12 21:46] upgraded mkinitcpio (0.7.2-1 -> 0.7.3-1)
[2011-10-12 21:47] >>> Updating module dependencies. Please wait ...
[2011-10-12 21:47] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2011-10-12 21:47] ==> Building image from preset: 'default'
[2011-10-12 21:47] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2011-10-12 21:47] ==> Starting build: 3.0-ARCH
[2011-10-12 21:47] -> Parsing hook: [base]
[2011-10-12 21:47] -> Parsing hook: [udev]
[2011-10-12 21:47] -> Parsing hook: [autodetect]
[2011-10-12 21:47] -> Parsing hook: [pata]
[2011-10-12 21:47] -> Parsing hook: [scsi]
[2011-10-12 21:47] -> Parsing hook: [sata]
[2011-10-12 21:47] -> Parsing hook: [filesystems]
[2011-10-12 21:47] -> Parsing hook: [usbinput]
[2011-10-12 21:47] ==> Generating module dependencies
[2011-10-12 21:47] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2011-10-12 21:47] ==> Image generation successful
[2011-10-12 21:47] ==> Building image from preset: 'fallback'
[2011-10-12 21:47] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2011-10-12 21:47] ==> Starting build: 3.0-ARCH
[2011-10-12 21:47] -> Parsing hook: [base]
[2011-10-12 21:47] -> Parsing hook: [udev]
[2011-10-12 21:47] -> Parsing hook: [pata]
[2011-10-12 21:47] -> Parsing hook: [scsi]
[2011-10-12 21:47] -> Parsing hook: [sata]
[2011-10-12 21:47] -> Parsing hook: [filesystems]
[2011-10-12 21:47] -> Parsing hook: [usbinput]
[2011-10-12 21:47] ==> Generating module dependencies
[2011-10-12 21:47] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2011-10-12 21:47] ==> Image generation successful
[2011-10-12 21:47] upgraded linux (3.0.4-1 -> 3.0.6-2)
[2011-10-12 21:47] upgraded lsof (4.84-3 -> 4.85-1)
[2011-10-12 21:47] upgraded mpfr (3.0.1.p4-2 -> 3.1.0.p1-1)
[2011-10-12 21:47] upgraded net-tools (1.60-18 -> 1.60.20110819cvs-1)
[2011-10-12 21:47] ERROR: Module nvidia is in use
[2011-10-12 21:47] In order to use the new nvidia module, exit Xserver and unload it manually.
[2011-10-12 21:47] upgraded nvidia (280.13-1 -> 285.05.09-1)
[2011-10-12 21:47] upgraded poppler-data (0.4.4-1 -> 0.4.5-1)
[2011-10-12 21:47] upgraded python2-pyenchant (1.6.3-5 -> 1.6.5-1)
[2011-10-12 21:47] upgraded python-lxml (2.3-1 -> 2.3.1-1)
[2011-10-12 21:47] upgraded python-pyenchant (1.6.3-5 -> 1.6.5-1)
[2011-10-12 21:47] upgraded upower (0.9.13-2 -> 0.9.14-1)
[2011-10-12 21:47] upgraded vlc (1.1.11-4 -> 1.1.12-1)
[2011-10-12 21:47] upgraded vte (0.28.2-1 -> 0.28.2-2)
[2011-10-12 21:47] upgraded wicd (1.7.0-10 -> 1.7.0-11)
[2011-10-12 21:47] upgraded wicd-gtk (1.7.0-10 -> 1.7.0-11)
[2011-10-12 21:47] upgraded wine (1.3.29-2 -> 1.3.30-1)
[2011-10-12 21:47] upgraded xorg-server-devel (1.10.4-1 -> 1.11.1-2)
[2011-10-12 21:47] upgraded xorg-xinit (1.3.0-3 -> 1.3.1-1)
[2011-10-12 21:47] upgraded xterm (271-1 -> 275-1)
Anyone have any ideas?
EDIT: I've fixed this, but I have no idea why. I removed hwclock from rc.conf, and suddenly I can shut things down again. Does anybody know why? Also, don't I need hwclock? How is my system time still being displayed (in XFCE, for example) without it?
Last edited by Manifold (2011-10-15 19:33:54)
Offline
I was having this same exact problem, and its good to know that I can fix it by disabling hwclock. I'd prefer not having to do so either, preferring bugfixes to workarounds. What exactly does hwclock do?
Offline
The man page states that it queries or sets the hardware (BIOS) clock. I'm not entirely sure why it's there - you can still sudo hwclock to access the time.
I'm a bit reluctant to set this as [SOLVED]... maybe [KLUDGED], though.
Last edited by Manifold (2011-10-14 21:59:03)
Offline
The man page states that it queries or sets the hardware (BIOS) clock. I'm not entirely sure why it's there - you can still sudo hwclock to access the time.
I'm a bit reluctant to set this as [SOLVED]... maybe [KLUDGED], though.
Why don't you add --debug into hwclock init script and see the output... Apparently [1] hwclock used to have such problems.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Why don't you add --debug into hwclock init script and see the output...
This is the /etc/rc.d/hwclock script,
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case $HARDWARECLOCK in
UTC) HWCLOCK_PARAMS="--utc";;
localtime) HWCLOCK_PARAMS="--localtime";;
*) HWCLOCK_PARAMS="";;
esac
case "$1" in
start)
add_daemon hwclock;;
stop)
case $HARDWARECLOCK in
UTC) hwclock --adjust --utc;;
localtime) hwclock --adjust --localtime;;
"") hwclock --adjust;;
esac
rm_daemon hwclock
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
Where exactly should I put --debug?
Apparently [1] hwclock used to have such problems.
I guess the difference between me and this guy is that my system doesn't hang when I run hwclock as root. Only when shutting down.
Offline
I think after each hwclock command in stop)...
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Thanks Leonid,
So basically, whenever the
/etc/rc.d/hwclock stop
command is issued (be it in shutdown, tty or in X), the hwclock issues something along the lines of:
sudo /etc/rc.d/hwclock stop
hwclock from util-linux 2.20
Using /dev interface to clock.
Last drift adjustment done at 945740615 seconds after 1969
Last calibration done at 973896678 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2011/10/15 18:13:37
Hw clock time : 2011/10/15 18:13:37 = 1318702417 seconds since 1969
Time since last adjustment is 372961802 seconds
Need to insert 2147483647 seconds and refer time back -144953139919.930267 seconds ago
Time elapsed since reference time has been -144953139919.930115 seconds.
Delaying further to reach the new time.
And just waits and waits...
I believe I fixed this by deleting/renaming /var/lib/hwclock/adjtime (after stopping /etc/rc.d/hwclock), and then setting a new time using
sudo hwclock --set --date="MM/DD/YY HH:MM:SS"
.
Last edited by Manifold (2011-10-15 18:27:17)
Offline
Pages: 1