severity 433872 wishlist
found 433872 0.7-1.2
retitle 433872 uswsusp: nx6325 fails to resume from s2ram if X is
displayed
thanks

Package: uswsusp
Version: 0.7-1.2
Severity: important

Since I first reported this bug, I upgraded the kernel and uswsusp
several times and I'd like to report the current situation.

>From a Linux console, s2ram works and resume works but I have to use
options different from the ones in the white list, and different from
the ones I used with Linux 2.6.22.  Specifically I have to use:

# s2ram --force --vbe_save

i.e. the other option from the white list, --vbe_post, causes the
machine to hang on resume.  Also, for this to work, the framebuffer
must be disabled (i.e. pass vga=0 to the kernel).  It works if X is
running on another virtual console, even with DRI enabled.

If running X, resume is broken again.  With DRI enabled, the screen
flashes white as X reinitialises it, then the machine goes back to
sleep (i.e. the power LED blinks).  With DRI disabled, the machine
simply hangs, the screen does not even blink.

Here is how I got suspend to RAM working on my machine; I hope this
helps other people.

#!/bin/sh

# 1. As root, make s2ram setuid so all users can suspend:

chmod u+s   /usr/sbin/s2ram

# 2. Teach the X server about the sleep button (Alt+F3):

cat "keycode 223 = XF86Sleep" >> /etc/X11/Xmodmap

# 3. Bind the sleep button to s2ram:

cat >> /etc/X11/Xbindkeys <<EOF

"/usr/bin/chvt 1; sleep 1; /usr/sbin/s2ram --force --vbe_save"
XF86Sleep
EOF

# (the sleep is necessary in my experience; without it, resume hangs
# as described above).

# 4. Tell the session manager to apply the above settings whenever a
# user opens an X session:

cat >> /etc/X11/Xsession.d/00x11-hp-compaq-nx6325 <<EOF
/usr/bin/xmodmap /etc/X11/Xmodmap
/usr/bin/xbindkeys -f /etc/X11/Xbindkeys
EOF

# 5. Restart the X server, i.e. log out then Ctrl+Alt+Backspace.
# To suspend from X, press Alt+F3.
# To suspend from a Linux console, type:
#   s2ram --force --vbe_save
# To resume, press the power button.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages uswsusp depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration
management sy
ii  libc6                         2.7-16     GNU C Library: Shared
libraries
ii  libgcc1                       1:4.3.2-1  GCC support library
ii  libgcrypt11                   1.4.1-1    LGPL Crypto library - runtime
libr
ii  liblzo2-2                     2.03-1     data compression library
ii  libpci3                       1:3.0.0-6  Linux PCI Utilities (shared
librar
ii  libsplashy1                   0.3.10-2.1 Library to draw splash screen
on b
ii  libx86-1                      1.1+ds1-2  x86 real-mode library

Versions of packages uswsusp recommends:
ii  initramfs-tools               0.92n      tools for generating an
initramfs
ii  mount                         2.13.1.1-1 Tools for mounting and
manipulatin

Versions of packages uswsusp suggests:
pn  splashy                       <none>     (no description available)

-- debconf information:
  uswsusp/compute_checksum: false
  uswsusp/no_snapshot:
  uswsusp/suspend_loglevel:
  uswsusp/no_swap:
  uswsusp/resume_offset:
  uswsusp/early_writeout: true
  uswsusp/image_size: 909930577
  uswsusp/compress: true
  uswsusp/create_RSA_key: false
  uswsusp/snapshot_device:
  uswsusp/RSA_key_file: /etc/uswsusp.key
  uswsusp/max_loglevel:
  uswsusp/resume_device: /dev/sda2
  uswsusp/shutdown_method: platform
  uswsusp/encrypt: false
  uswsusp/splash: false
  uswsusp/RSA_key_bits: 1024
  uswsusp/continue_without_swap: true


-- 
Ludovic Brenta.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to