Bug#433872: uswsusp: nx6325 fails to resume from s2ram

2008-12-28 Thread Ludovic Brenta
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-1LGPL 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



Bug#433873: Bug#433872: uswsusp: nx6325 fails to resume from s2ram

2007-08-19 Thread Ludovic Brenta
Tim Dijkstra [EMAIL PROTECTED] writes:
 Before I forward this to the suspend list for some more input. I
 have some questions:

 What video driver do you use? (If you use the binary nvidia or ati
 drivers, could you try with the floss ones?)

I use the Free Software driver only (radeon).

 Are you using framebuffer? (If so could you try without?)

No, I don't.  I normally pass vga=791 to the kernel, but the
symptoms are the same even without this option.

 Can you maybe first try the latest version?

OK, will do, but not this week as I won't have the time.  Note that
the CVS head doesn't seem to have a lot of changes relative to the
version in testing, apart from the machine-specific hints I mentioned.

-- 
Ludovic Brenta.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#433872: uswsusp: nx6325 fails to resume from s2ram

2007-08-17 Thread Tim Dijkstra
Hi Ludovic,

Before I forward this to the suspend list for some more input. I have some 
questions:

What video driver do you use? (If you use the binary nvidia or ati
drivers, could you try with the floss ones?)

Are you using framebuffer? (If so could you try without?)

Can you maybe first try the latest version?

Grts Tim


signature.asc
Description: PGP signature


Bug#433872: uswsusp: nx6325 fails to resume from s2ram

2007-07-19 Thread Ludovic Brenta
Package: uswsusp
Version: 0.3~cvs20060928-7
Severity: important
Justification: renders package unusable on this particular machine

I notice that my HP Compaq nx6325 has been in the whitelist since
2007-05-31 (whitelist.c, rev 1.100).  I run testing and the version of
uswsusp does not have that entry in the whitelist.  Nevertheless, I
bravely did:

# s2ram --force --vbe_save --vbe_post

as suggested in the whitelist.  The machine switches to a VT and seems
to suspend properly, but hitting the power button just gives a blank
screen.

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

Kernel: Linux 2.6.21-2-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.13   Debian configuration management sy
ii  libc6   2.6-2GNU C Library: Shared libraries
ii  libgcrypt11 1.2.4-2  LGPL Crypto library - runtime libr
ii  libgpg-error0   1.4-2library for common error values an
ii  zlib1g  1:1.2.3.3.dfsg-5 compression library - runtime

Versions of packages uswsusp recommends:
ii  initramfs-tools   0.89   tools for generating an initramfs

-- debconf information:
  uswsusp/compute_checksum: false
  uswsusp/no_snapshot:
  uswsusp/suspend_loglevel:
  uswsusp/no_swap:
  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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#433872: uswsusp: nx6325 fails to resume from s2ram

2007-07-19 Thread Ludovic Brenta
Forgot to add the output of s2ram -i:

This machine can be identified by:
sys_vendor   = Hewlett-Packard
sys_product  = HP Compaq nx6325 (EQ423AV)
sys_version  = F.00
bios_version = 68TT2 Ver. F.00
See http://en.opensuse.org/S2ram for details.

If you report a problem, please include the complete output above.

-- 
Ludovic Brenta.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]