Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System fails to suspend to RAM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 93
Location: Japan

PostPosted: Sat Apr 06, 2013 8:51 am    Post subject: System fails to suspend to RAM Reply with quote

Hello all,

I just finished upgrading (--update --newuse --deep @world) my Gentoo desktop after leaving it for about a year or so, and for the most part it's working quite nicely. The only problem I can't figure out is why the system just hangs when I try to suspend to RAM. When I try to enter sleep, the system drops to console mode, and after a minute the monitor powers off, but the PC never enters the S3 state. I have to either reset or hit the power.

Here's what updates I know happened in the upgrade:
- kernel: 3.0.3 -> 3.8.5
- nvidia-drivers: 295.95 -> 313.30
- KDE: 4.8.4 -> 4.10.1

I remember having issues with hibernation before, and I remember masking >=x11-drivers/nvidia-drivers-300 at the time. But now that I've upgraded, 295.95 isn't in portage anymore, and I can't go back to test it again.

The motherboard I'm using is fairly old, it's an Asus M2N with an AMD Phenom 9650 X4 CPU.

Does anyone have any suggestions, or possibly know what log files I could start to look at to track this down?

Thanks for any help!

Oh, and my obligatory emerge --info:

Code:
Portage 2.1.11.60 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.8.5-gentoo x86_64)
=================================================================
System uname: Linux-3.8.5-gentoo-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-gentoo-2.2
KiB Mem:     4050696 total,   1366216 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 05 Apr 2013 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo pikachu sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/sunrise"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 anthy apng bash-completion branding bzip2 cairo cdda cdr cjk cli collada consolekit cracklib crypt cups curl cxx dbus declarative dri dts dvd dvdr ebook emboss encode exif fam ffmpeg firefox flac ftp g3dvl gif glibc-omitfp hpijs iconv inotify jpeg jpeg2k kde kipi lame lcms libnotify lm_sensors lzma mad minizip mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses network nptl ogg openal opencl opengl openmp pam pango pch pcre pdf phonon plasma png policykit ppds qt3support qt4 readline rle samba sdl semantic-desktop session spell sql sqlite sqlite3 sse sse2 ssl startup-notification subversion svg swat symlink tga theora threads threadsafe tiff transcode truetype udev udisks unicode upower usb v4l2 vim-syntax vorbis webdav-neon webkit win64 wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 260

PostPosted: Sat Apr 06, 2013 9:33 am    Post subject: Reply with quote

I apologize for the somewhat off-topic suggestion, but 4GB of RAM is probably not enough to run without some swap available. Also it is advisable to update much more often than yearly. (Some admins even update daily!) I hope you will find solutions for your main problem also.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Apr 06, 2013 2:40 pm    Post subject: Reply with quote

For some uses, 4GB is adequate.

OP: Can you reproduce the failure using an untainted kernel?
Back to top
View user's profile Send private message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 93
Location: Japan

PostPosted: Sun Apr 07, 2013 12:08 pm    Post subject: Reply with quote

Thanks for the reply, Hu.

I've tried to get the nouveau driver working but I'm not having any luck. I've made a separate thread on that problem, and will get back to you regarding the sleep issue once that's fixed. :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Apr 07, 2013 12:24 pm    Post subject: Reply with quote

bpoint,

All the ebuilds that were ever in the tree are in the portage attic.
If you want to test, put the ebuild into your local overlay and try to digest it. You may need to fetch the files it wants manually, or you may still have them.

After the digest step works you will be able to emerge it ... but it will not build against kernels 3.7.0 and newer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 93
Location: Japan

PostPosted: Sun Apr 07, 2013 4:41 pm    Post subject: Reply with quote

Thanks for that info, Neddy!

I've now reverted back to nvidia-drivers-295.59 with gentoo-sources-3.6.11-r2, but sadly trying to sleep still results in the system hanging at a black screen and never entering S3.

At this point, I think the best route would be to revert back to my older 3.0.3 kernel and try again. If that works, then I can start to try newer kernels until I find which one caused sleeping to break.

I am, of course, open to any other suggestions or ideas should anyone have any. :)
Back to top
View user's profile Send private message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 93
Location: Japan

PostPosted: Sun Apr 07, 2013 5:10 pm    Post subject: Reply with quote

Just a quick update: I tried gentoo-sources-3.0.35 (the oldest available in portage) still with nvidia-drivers-295.59, and my system enters S3 and resumes without a problem.

So, it's looking like a kernel issue. Now I just need to narrow down where it broke...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum