patch for suspend/resume problems in laptop asus Z53F

Bug #85344 reported by Manuel Carrasco
8
Affects Status Importance Assigned to Milestone
915resolution (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: 915resolution

The problem occurs when :
1- I start my laptop in 1280x800 graphical mode (using 915resolution).
2- I suspend/hibernate from graphical mode (using gdm buttons)
3- After the resume process, the graphical screen is wrong.

This problem does not occurs when i follow these steps:
1.- I start the laptop in graphical mode
2.- I switch to tty1 in text mode (ctrl-alt F1)
3.- I login and run: sudo "/usr/sbin/pmi action sleep"
4.- I resume my laptop.
5.- I switch to graphical mode in tty7 (ctrl-alt F7).

So I've written two scripts that solve the problem:
1.- suspend script: /etc/acpi/suspend.d/06-915-resolution-chvt.sh
#!/bin/sh
if [ -x /usr/sbin/915resolution -a -x /usr/bin/chvt -a -x /bin/fgconsole ]; then
    . /etc/default/915resolution
    if [ "$MODE" = auto ] || [ -n "$MODE" -a -n "$XRESO" -a -n "$YRESO" ]; then
        C=`/bin/fgconsole`
        if [ -n "$C" -a "$C" != 1 ]; then
                /usr/bin/chvt 1
                echo "$C" > /var/tmp/915-resolution-previous-vt
        fi
    fi
fi
2.- resume sctript: /etc/acpi/resume.d/97-915-resolution-chvt.sh
#!/bin/sh
if [ -x /usr/sbin/915resolution -a -x /usr/bin/chvt -a -f /var/tmp/915-resolution-previous-vt ]; then
    . /etc/default/915resolution
    if [ "$MODE" = auto ] || [ -n "$MODE" -a -n "$XRESO" -a -n "$YRESO" ]; then
        C=`cat /var/tmp/915-resolution-previous-vt`
        [ -n "$C" ] && /usr/bin/chvt $C
    fi
    rm -f /var/tmp/915-resolution-previous-vt
fi

More information about my configuration:
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.10
DISTRIB_CODENAME=edgy
DISTRIB_DESCRIPTION="Ubuntu 6.10"
# dpkg -l | grep 915
ii 915resolution 0.5.2-4ubuntu1 resolution modification tool for Intel graph
#dpkg -l | grep xserver-xorg-video-i810
ii xserver-xorg-video-i810 1.6.5-0ubuntu3 X.Org X server -- Intel i8xx, i9xx display d
# cat /proc/acpi/asus/info
Asus Laptop ACPI Extras Driver 0.30
Model reference : M2E
SFUN value : 0xa18f7
DSDT length : 34214
DSDT checksum : 53
DSDT revision : 1
OEM id : F3F00
OEM table id : F3F00001
OEM revision : 0x1
ASL comp vendor id : INTL
ASL comp revision : 0x2002026

# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
05:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
05:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)

# 915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.2

Chipset: 945GM
BIOS: TYPE 1
Mode Table Offset: $C0000 + $269
Mode Table Entries: 36

Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1280x800, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1280x800, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1280x800, 32 bits/pixel

Revision history for this message
unggnu (unggnu) wrote :

Could you please recheck it with latest Ubuntu Gutsy Gibbon 7.10 or the Live CD? 915 resolution has become obsolete in Gutsy since the new Intel driver is used.

Changed in 915resolution:
status: New → Incomplete
Revision history for this message
Manuel Carrasco (manuel-carrasco) wrote :

Intel driver in gutsy works fine.

Thank you

William Grant (wgrant)
Changed in 915resolution:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.