LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   System Suspend (https://www.linuxquestions.org/questions/linux-newbie-8/system-suspend-202073/)

gavita 07-07-2004 04:05 AM

System Suspend
 
Hi!

I am new to Red Hat Linux and recently have encountered a problem .
Approximately every 20 - 25 minutes, the computer beeps 3 times
following a system suspension. However, when a key on the keyboard is
hit, the system resumes after the computer beeping once.

These are the messages from the system logs:

Jul 6 14:57:47 adler apmd[2822]: Normal Resume after 00:00:08 (-1%
unknown) AC power
Jul 6 15:07:46 adler su(pam_unix)[15280]: session opened for user root
by gavita(uid=500)
Jul 6 15:09:42 adler su(pam_unix)[15374]: session opened for user root
by gavita(uid=500)
Jul 6 15:11:59 adler su(pam_unix)[15459]: session opened for user root
by gavita(uid=500)
Jul 6 15:19:49 adler su(pam_unix)[15593]: session opened for user root
by gavita(uid=500)
Jul 6 15:21:16 adler su(pam_unix)[15676]: session opened for user root
by gavita(uid=500)
Jul 6 15:22:23 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
up2date for UID 500
Jul 6 15:22:37 adler network: Shutting down interface eth0: succeeded
Jul 6 15:22:37 adler network: Shutting down loopback interface:
succeeded
Jul 6 15:22:37 adler apmd[2822]: System Suspend
Jul 6 15:22:38 adler kernel: usb-ohci.c: USB suspend: usb-00:03.0
Jul 6 15:22:38 adler kernel: usb-ohci.c: USB suspend: usb-00:03.1
Jul 6 15:22:38 adler kernel: ehci-hcd 00:03.2: suspend to state 3
Jul 6 16:22:43 adler kernel: ac97_codec: AC97 Audio codec, id: ADS112
(Unknown)
Jul 6 16:22:43 adler kernel: usb-ohci.c: USB continue: usb-00:03.0 from
host wakeup
Jul 6 16:22:43 adler kernel: usb-ohci.c: USB continue: usb-00:03.1 from
host wakeup
Jul 6 16:22:43 adler kernel: ehci-hcd 00:03.2: resume
Jul 6 15:22:43 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 15:22:43 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 15:22:45 adler kernel: eth0: Media Link On 100mbps full-duplex
Jul 6 15:22:46 adler dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Jul 6 15:22:46 adler dhclient: DHCPNAK from 143.167.56.251
Jul 6 15:22:46 adler dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 6
Jul 6 15:22:46 adler dhclient: DHCPOFFER from 143.167.48.253
Jul 6 15:22:46 adler dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Jul 6 15:22:46 adler dhclient: DHCPACK from 143.167.48.253
Jul 6 15:22:46 adler dhclient: bound to 143.167.96.165 -- renewal in
17172 seconds.
Jul 6 15:22:46 adler netfs: Mounting other filesystems: succeeded
Jul 6 15:22:46 adler netfs: Mounting other filesystems: succeeded
Jul 6 15:22:47 adler apmd[2822]: Normal Resume after 00:00:10 (-1%
unknown) AC power
Jul 6 15:23:06 adler su(pam_unix)[15593]: session closed for user root
Jul 6 15:23:09 adler su(pam_unix)[15676]: session closed for user root
Jul 6 15:24:47 adler gdm(pam_unix)[3187]: session closed for user
gavita
Jul 6 15:24:55 adler gdm(pam_unix)[3187]: session opened for user
gavita by (uid=0)
Jul 6 15:25:05 adler su(pam_unix)[16387]: session opened for user root
by gavita(uid=500)
Jul 6 15:28:28 adler su(pam_unix)[16387]: session closed for user root
Jul 6 15:36:16 adler su(pam_unix)[16604]: session opened for user root
by gavita(uid=500)
Jul 6 15:38:17 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
up2date for UID 500
Jul 6 15:38:32 adler su(pam_unix)[16604]: session closed for user root
Jul 6 15:38:38 adler su(pam_unix)[16709]: session opened for user root
by gavita(uid=500)
Jul 6 15:41:48 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is only 208 seconds old, allowing
access to up2date for UID 500
Jul 6 15:41:50 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is only 2 seconds old, allowing
access to up2date for UID 500
Jul 6 15:41:51 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is only 1 seconds old, allowing
access to up2date for UID 500
Jul 6 15:41:51 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
up2date for UID 500
Jul 6 15:41:51 adler last message repeated 2 times
Jul 6 15:41:53 adler up2date(pam_unix)[16894]: auth could not identify
password for [root]
Jul 6 15:41:54 adler up2date(pam_unix)[16891]: auth could not identify
password for [root]
Jul 6 15:45:48 adler su(pam_unix)[16709]: session closed for user root
Jul 6 15:46:45 adler su(pam_unix)[16974]: session opened for user root
by gavita(uid=500)
Jul 6 15:47:39 adler network: Shutting down interface eth0: succeeded
Jul 6 15:47:39 adler network: Shutting down loopback interface:
succeeded
Jul 6 15:47:40 adler apmd[2822]: System Suspend
Jul 6 15:47:41 adler kernel: usb-ohci.c: USB suspend: usb-00:03.0
Jul 6 15:47:41 adler kernel: usb-ohci.c: USB suspend: usb-00:03.1
Jul 6 15:47:41 adler kernel: ehci-hcd 00:03.2: suspend to state 3
Jul 6 16:47:45 adler kernel: ac97_codec: AC97 Audio codec, id: ADS112
(Unknown)
Jul 6 16:47:45 adler kernel: usb-ohci.c: USB continue: usb-00:03.0 from
host wakeup
Jul 6 16:47:45 adler kernel: usb-ohci.c: USB continue: usb-00:03.1 from
host wakeup
Jul 6 16:47:45 adler kernel: ehci-hcd 00:03.2: resume
Jul 6 15:47:46 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 15:47:46 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 15:47:48 adler kernel: eth0: Media Link On 100mbps full-duplex
Jul 6 15:47:51 adler dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Jul 6 15:47:51 adler dhclient: DHCPNAK from 143.167.56.251
Jul 6 15:47:51 adler dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 5
Jul 6 15:47:51 adler dhclient: DHCPOFFER from 143.167.48.253
Jul 6 15:47:51 adler dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Jul 6 15:47:51 adler dhclient: DHCPACK from 143.167.48.253
Jul 6 15:47:51 adler dhclient: bound to 143.167.96.165 -- renewal in
299218 seconds.
Jul 6 15:47:51 adler netfs: Mounting other filesystems: succeeded
Jul 6 15:47:51 adler netfs: Mounting other filesystems: succeeded
Jul 6 15:47:51 adler apmd[2822]: Normal Resume after 00:00:11 (-1%
unknown) AC power
Jul 6 16:00:49 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-logviewer for UID 500
Jul 6 16:06:23 adler su(pam_unix)[16974]: session closed for user root
Jul 6 16:11:50 adler gdm(pam_unix)[3187]: session closed for user
gavita
Jul 6 16:11:59 adler gdm(pam_unix)[3187]: session opened for user
gavita by (uid=0)
Jul 6 16:12:39 adler network: Shutting down interface eth0: succeeded
Jul 6 16:12:39 adler network: Shutting down loopback interface:
succeeded
Jul 6 16:12:40 adler apmd[2822]: System Suspend
Jul 6 16:12:41 adler kernel: usb-ohci.c: USB suspend: usb-00:03.0
Jul 6 16:12:41 adler kernel: usb-ohci.c: USB suspend: usb-00:03.1
Jul 6 16:12:41 adler kernel: ehci-hcd 00:03.2: suspend to state 3
Jul 6 17:12:47 adler kernel: ac97_codec: AC97 Audio codec, id: ADS112
(Unknown)
Jul 6 17:12:47 adler kernel: usb-ohci.c: USB continue: usb-00:03.0 from
host wakeup
Jul 6 17:12:47 adler kernel: usb-ohci.c: USB continue: usb-00:03.1 from
host wakeup
Jul 6 17:12:47 adler kernel: ehci-hcd 00:03.2: resume
Jul 6 16:12:47 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 16:12:47 adler kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Jul 6 16:12:49 adler kernel: eth0: Media Link On 100mbps full-duplex
Jul 6 16:12:50 adler dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Jul 6 16:12:50 adler dhclient: DHCPACK from 143.167.48.253
Jul 6 16:12:50 adler dhclient: bound to 143.167.96.165 -- renewal in
262370 seconds.
Jul 6 16:12:50 adler netfs: Mounting other filesystems: succeeded
Jul 6 16:12:50 adler netfs: Mounting other filesystems: succeeded
Jul 6 16:12:50 adler apmd[2822]: Normal Resume after 00:00:10 (-1%
unknown) AC power
Jul 6 16:14:24 adler su(pam_unix)[18322]: session opened for user root
by gavita(uid=500)
Jul 6 16:15:23 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-logviewer for UID 500
Jul 6 16:17:27 adler su(pam_unix)[18322]: session closed for user root
Jul 6 16:17:39 adler su(pam_unix)[18433]: session opened for user root
by gavita(uid=500)
Jul 6 16:17:45 adler apmd[2822]: Exiting
Jul 6 16:17:46 adler apmd: apmd shutdown succeeded
Jul 6 16:20:33 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-logviewer for UID 500
Jul 6 16:20:35 adler redhat-logviewer(pam_unix)[18499]: authentication
failure; logname= uid=500 euid=0 tty= ruser=gavita rhost= user=root
Jul 6 16:20:38 adler userhelper[18499]: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-logviewer for UID 500
Jul 6 16:26:36 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-config-network for UID 500
Jul 6 16:26:39 adler gconfd (root-18531): starting (version 2.2.0), pid
18531 user 'root'
Jul 6 16:26:39 adler gconfd (root-18531): Resolved address
"xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config
source at position 0
Jul 6 16:26:39 adler gconfd (root-18531): Resolved address
"xml:readwrite:/root/.gconf" to a writable config source at position 1
Jul 6 16:26:39 adler gconfd (root-18531): Resolved address
"xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config
source at position 2
Jul 6 16:28:39 adler gconfd (root-18531): GConf server is not in use,
shutting down.
Jul 6 16:28:39 adler gconfd (root-18531): Exiting
Jul 6 16:31:09 adler su(pam_unix)[18433]: session closed for user root
Jul 6 16:31:51 adler userhelper: pam_timestamp: timestamp file
`/var/run/sudo/gavita/unknown:root' is too old, disallowing access to
redhat-config-securitylevel for UID 500
Jul 6 16:37:38 adler kernel: usb-ohci.c: USB suspend: usb-00:03.0
Jul 6 16:37:38 adler kernel: usb-ohci.c: USB suspend: usb-00:03.1
Jul 6 16:37:38 adler kernel: ehci-hcd 00:03.2: suspend to state 3
Jul 6 17:39:16 adler kernel: ac97_codec: AC97 Audio codec, id: ADS112
(Unknown)
Jul 6 17:39:16 adler kernel: usb-ohci.c: USB continue: usb-00:03.0 from
host wakeup
Jul 6 17:39:16 adler kernel: usb-ohci.c: USB continue: usb-00:03.1 from
host wakeup
Jul 6 17:39:16 adler kernel: ehci-hcd 00:03.2: resume

Can you please help?

Vlad-A 07-07-2004 07:10 AM

Does this happen independent whether you are working or the computer is
idle ?

Try to boot passing
apm=off acpi=off
to the kernel.

gavita 07-07-2004 07:17 AM

>Does this happen independent whether you are working or the computer is
>idle ?

Yes this problem occurs whether or not I am doing work on the computer or when the computer is idle.

>Try to boot passing
>apm=off acpi=off
>to the kernel.

I am sorry but I am really new to linux and I am not sure how to do what you ahve asked me to do. However, after reading some other website, I did the following using the terminal:

/sbin/chkconfig apmd off
/sbin/service apmd stop

But even after those commands and rebooting, I am still having the same problem.

Vlad-A 07-07-2004 07:26 AM

Do you use GRUB or LILO as boot loader ?

Besides that what is the output of
hdparm -C
hdparm -i
hdparm -v

gavita 07-07-2004 08:20 AM

I think I am using GRUB and when I enter the
hdparm -C
hdparm -i
hdparm -v

this is the output .....
bash: hdparm: command not found

Vlad-A 07-07-2004 08:27 AM

Depending on the distribution:
either
/sbin/hdparm
or
/bin/hdparm

with the option mentioned in my previous replay.

or change user to root and issue hdparm with the options given below.

Changing user happens in a konsole window with:
su

gavita 07-07-2004 08:43 AM

Hi this is the output:

[gavita@adler gavita]$ /sbin/hdparm -C

hdparm - get/set hard disk parameters - version v5.2

Usage: hdparm [options] [device] ..

Options:
-a get/set fs readahead
-A set drive read-lookahead flag (0/1)
-b get/set bus state (0 == off, 1 == on, 2 == tristate)
-B set Advanced Power Management setting (1-255)
-c get/set IDE 32-bit IO setting
-C check IDE power mode status
-d get/set using_dma flag
-D enable/disable drive defect-mgmt
-E set cd-rom drive speed
-f flush buffer cache for device on exit
-g display drive geometry
-h display terse usage information
-i display drive identification
-I detailed/current information directly from drive
-Istdin similar to -I, but wants /proc/ide/*/hd?/identify as input
-k get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254, 128: quiet, 254: fast) (EXPERIMENTAL)
-m get/set multiple sector count
-n get/set ignore-write-errors flag (0/1)
-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P set drive prefetch count
-q change next setting quietly
-Q get/set DMA tagged-queuing depth (if supported)
-r get/set readonly flag (DANGEROUS to set)
-R register an IDE interface (DANGEROUS)
-S set standby (spindown) timeout
-t perform device read timings
-T perform cache read timings
-u get/set unmaskirq flag (0/1)
-U un-register an IDE interface (DANGEROUS)
-v defaults; same as -mcudkrag for IDE drives
-V display program version and exit immediately
-w perform device reset (DANGEROUS)
-W set drive write-caching flag (0/1) (DANGEROUS)
-x tristate device for hotswap (0/1) (DANGEROUS)
-X set IDE xfer mode (DANGEROUS)
-y put IDE drive in standby mode
-Y put IDE drive to sleep
-Z disable Seagate auto-powersaving mode
-z re-read partition table

Vlad-A 07-07-2004 08:46 AM

Oooops sorry. I gave you an incomplete syntax.
The command shall be run against your hard disk:

So assuming /dev/hda is your harddrive

/sbin/hdparm -C /dev/hda
/sbin/hdparm -i /dev/hda
/sbin/hdparm -v /dev/hda

gavita 07-07-2004 08:53 AM

Hi!

Thank you for helping and these were the results:


[root@adler gavita]# /sbin/hdparm -C /dev/hda
/dev/hda:
drive state is: active/idle


[root@adler gavita]# /sbin/hdparm -i /dev/hda
/dev/hda:
Model=Maxtor 6Y080P0, FwRev=YAR41BW0, SerialNo=Y3KATKCE
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=160086528
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null): 1 2 3 4 5 6 7


[root@adler gavita]# /sbin/hdparm -v /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9964/255/63, sectors = 160086528, start = 0

Vlad-A 07-07-2004 09:06 AM

Well this looks fine.

Try now the boot options:
acpi=off apm=off

When you are at the GRUB boot menu hit the "e" key in order to edit the boot options.

gavita 07-07-2004 09:38 AM

I have tried to reboot my computer and have tried hitting the 'e' button, but nothing happens. Am I doing something wrong?

Vlad-A 07-07-2004 09:44 AM

Wenn you are at the GRUB menu, press first [TAB] and then "e".
Tab will stop the count-down and e will allow you to edit the boot options.

If this does not help then
edit your /boot/grub/grub.conf and add the options at the boot line for the kernel
you are using.

gavita 07-07-2004 09:55 AM

Nothing happened even after pressing the [TAB] key. I have edited the grub.conf and I am attaching the edited file below:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$s/GPqwjk$DzO2cg7G4YqPcHvzQsAEW/
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi acpi=off apm=off
initrd /initrd-2.4.20-8.img

Have I done it right?

Vlad-A 07-07-2004 09:58 AM

Yes Sir!
GOOD LUCK!

gavita 07-07-2004 10:14 AM

Hi there again, the problem still exists........


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