Suspend and Hibernate Fail with i830MG (on Mitac 8355/ThinkPad)

Bug #46680 reported by SonWon
12
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: acpi-support

Suspend:
Causes my laptop to shutoff but the laptop locks up and I have to reset by holding the power button down on startup. Suspend works with Win XP.

Hibernate:
Everything appears to be okay during shutdown but on startup the laptop locks up with wide and narrow vertical bars.

History in bug # 43114.

Hardware specifications:
The laptop is a Mitac 8355 and sold under many different brand names. Mine is a ,

Hypersonic Aviator AX6
AMD Athlon 64 Processor 3400+
1GB RAM
BIOS Insyde Software SCU V1.09

cat /var/lib/acpi-support/*-* returns:
R1.06
MiTAC

5a

You will have to let me know what other information you need?

Revision history for this message
Luka Renko (lure) wrote :

Are you sure that it locks? Does switching consoles (Ctrl-Alt-F1, Ctrl-Alt-F7) helps? Does closing and reopening the lid helps?
Does Ctrl-Alt-Del restarts the computer?

Revision history for this message
SonWon (jtmitche) wrote :

Yes, the laptop is locked up.

Switching consoles (Ctrl-Alt-F1, Ctrl-Alt-F7), Caps Lock, Num Lock, closing/opening lid, and Ctrl-Alt-Del does nothing.

Revision history for this message
SonWon (jtmitche) wrote :

Also, I have been apply every update since installing Flight 7.

Revision history for this message
simo (idra) wrote : Re: Suspend and Hibernate Fail on Mitac 8355

I have exactly the same problem on my ThinkPad T43p.

After I repartiotioned my disk and moved (and enlarged) the swap partition I am not able to successfully resume anymore.

It was working perfectly before the repartitioning.

Revision history for this message
Paul Sladen (sladen) wrote :

simo: Can you provide:

  cat /proc/swaps

  sudo fdisk -l /dev/hda (or /dev/sda)

After your machine has frozen during Resume from Hibernate, please can you do either ssh into the machine, or:

  Alt-SysRq-s Alt-SysRq-u Alt-SysRq-b (Sync, Unmount, reBoot)
  Use (recovery mode)

and either by SSH, or that, make a copy of the files:

  /var/log/Xorg.0.log
  /var/log/messages

and attach them to this bug report, along with:

  lspci -nv -s 2

so that we can see what graphics card is in the machine.

Changed in acpi-support:
status: Unconfirmed → Needs Info
Revision history for this message
simo (idra) wrote :

Paul, when the machine freezes it is really completely freezed, there's no way to recover from that state, it is not an X server failure.
No SSH and no Alt-SySrq can help, the kernel is dead.

Also as I already posted on the connected bug (# 43114) it was perfectly working before I changed the partiotion layout of the HD, and now it is not working anymore (no software has changed, no drivers no nothing).

$ cat /proc/swaps
Filename Type Size Used Priority/dev/sda3 partition 2096472 0 -1

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 1919 15414336 7 HPFS/NTFS
/dev/sda2 1920 3387 11791710 83 Linux
/dev/sda3 3388 3648 2096482+ 83 Linux
/dev/sda4 3649 7143 28073587+ 83 Linux

There's nothing in the Xorg.0.log or messgaes file about the failed boot.

(the following command is what you requested but it shows the ethernet card)
# lspci -nv -s 2
0000:04:02.0 0280: 8086:4220 (rev 05)
        Subsystem: 8086:2711
        Flags: bus master, medium devsel, latency 64, IRQ 66
        Memory at a8401000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [dc] Power Management version 2

This is the ATI graphic card pci data:

0000:01:00.0 0300: 1002:3154 (rev 80)
        Subsystem: 1014:0570
        Flags: fast devsel, IRQ 169
        Memory at c0000000 (32-bit, prefetchable) [size=128M]
        I/O ports at 3000 [size=256]
        Memory at a8100000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at a8120000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] #10 [0001]
        Capabilities: [80] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-

Revision history for this message
simo (idra) wrote :

I just updated all packages to make sure it wasn't a fixed bug, it isn't :-(

Out of curiosity I just tried to hibernate in (recovery mode), the machine unfrozed ok except for the video card, but at that point I was able to type in a reboot command and the machine rebooted correctly.

I then tried the same from a console (with the X server running) using the default kernel and it frozed again, so it may be indeed connected with some problem reinitializing the video card. :-(

Revision history for this message
Paul Sladen (sladen) wrote :

simo: Can you paste the contents of:

  /etc/fstab

looking at that 'fdisk -l' output, the partition type of your swap partition is wrong and should be labelled 'Linux/Swap'. You can fix this using 'fdisk'.

Revision history for this message
simo (idra) wrote :

Yes the partition table is incorrect right now, I tested with a smaller partition just to see if it was some kind of problem with >2G swap size (it wasn't), but I guarantee you the swap is working fine and the problem was assessed previously with a correctly label Linux swap partiotion (type 82).

This is the fstab:

proc /proc proc defaults 0 0
/dev/sda4 / ext3 defaults,errors=remount-ro 0 1
/dev/sda3 none swap sw 0 0
/dev/sda2 /home/RC ext3 defaults 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
#/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

Revision history for this message
simo (idra) wrote :

Ok, I have been playing with settings (thanks Paul for the support on IRC).

Now I seem to have a case that works.

If I set SAVE_VBE_STATE=false in /etc/default/acpi-support

AND

remove the splash boot option for grub, the resume works fine

Going on with experiments

Revision history for this message
simo (idra) wrote :

I've tried some other settings too like setting DOUBLE_CONSOLE_SWITCH=true, but nothing helps when the splash screen is used.

I set everything back to the defaults and just disabled the splash screen on boot.

It seem all about the splash screen.

It triggers a bad interaction between hte resume code and the video driver.

It was working fine previously, so I presume it must be some fairly minor change in the latest X video driver updates or something related.

Revision history for this message
SonWon (jtmitche) wrote :

Whoa, I go away for two days and you guys are way ahead.

I have the following line in /boot/grub/menu.lst

# defoptions=quiet splash

So I think the slash screen is already off if I understand this section, please confirm?

Revision history for this message
SonWon (jtmitche) wrote :

I also changed the SAVE_VBE_STATE to false since it was true. Still locks on my laptop?

Revision history for this message
SonWon (jtmitche) wrote :

I notice the status is needs info, isn't that incorrect?

SonWon (jtmitche)
Changed in acpi-support:
status: Needs Info → Unconfirmed
status: Unconfirmed → Confirmed
Revision history for this message
atha (a-ubuntu-siilit) wrote :

I'm not sure if this is related, but I had same kind of problem with my Thinkpad T40p (with FireGL 9000 - basically same as Radeon) - after waking from hibernation laptop froze with these narrow vertical bands on screen.

I was using the default "ati" driver then, but waking from hibernation seems to be working now, after I switched to "fglrx" driver.

https://wiki.ubuntu.com/BinaryDriverHowto/ATI

Revision history for this message
SonWon (jtmitche) wrote :
Download full text (5.2 KiB)

I had already installed the ATI drivers from their website. While looking through the instructions I noticed I have two Section "Screen" sections in my /etc/X11/xorg.conf. Do you think this is causing the problem? I know the 3D acceleration is working. Here is the contents of the xorg.conf file:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
 Identifier "Default Layout"
 Screen 0 "aticonfig-Screen[0]" 0 0
 InputDevice "Generic Keyboard"
 InputDevice "Configured Mouse"
 InputDevice "stylus" "SendCoreEvents"
 InputDevice "cursor" "SendCoreEvents"
 InputDevice "eraser" "SendCoreEvents"
 InputDevice "Synaptics Touchpad"
EndSection

Section "Files"

 # path to defoma fonts
 FontPath "/usr/share/X11/fonts/misc"
 FontPath "/usr/share/X11/fonts/cyrillic"
 FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
 FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
 FontPath "/usr/share/X11/fonts/Type1"
 FontPath "/usr/share/X11/fonts/100dpi"
 FontPath "/usr/share/X11/fonts/75dpi"
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "type1"
 Load "vbe"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc104"
 Option "XkbLayout" "us"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ExplorerPS/2"
 Option "ZAxisMapping" "4 5"
 Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
 Identifier "Synaptics Touchpad"
 Driver "synaptics"
 Option "SendCoreEvents" "true"
 Option "Device" "/dev/psaux"
 Option "Protocol" "auto-dev"
 Option "HorizScrollDelta" "0"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
 Identifier "stylus"
 Driver "wacom"
 Option "Device" "/dev/wacom" # Change to
 Option "Type" "stylus"
 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                             ...

Read more...

Revision history for this message
SonWon (jtmitche) wrote :

Tonight I installed all of the newest patches and I still have the problem?

I did notice that after the hibernate the caps lock key was working and I tried typing in the user name and password and I seemed to get a response from the hard drive? Hard to tell sense the video was completely dead with the vertical bars.

Is this being worked on or has development moved onward?

Revision history for this message
SonWon (jtmitche) wrote :

FYI, I have all of the newest patches installed as of 8/2/2006 and the suspend and hibernate problems still exist.

Revision history for this message
SonWon (jtmitche) wrote :

Hmm, another month passes by and no progress that I can see. Why are the developers working on the next release (Edgy) if Dapper still has bugs?

Revision history for this message
SonWon (jtmitche) wrote :

Where are all the developers? Why isn't this bug receiving any attention?

Revision history for this message
SonWon (jtmitche) wrote :

I just tried suspend and had a very scary thing happen.

I noticed an error message in dmesg,

ACPI-0412: *** Error: Handler for [EmbeddedControl] returned AE_TIME

So I did some Internet research and found this to fix.

Added,

noapictimer ec_burst=1

to the kernel line in /boot/grub/menu.lst. Also did a,

update-grub.

Reboot and the ACPI-0412 message was gone. Great I thought. Then I wondered if suspend would now work so I tested. Laptop shutdown normally and I had the flashing light telling me the laptop had suspended. Then I press the power button laptop powered up and promptly froze like before. Then I forced a reset by holding down the power button. Then when I tried to turn the laptop back on the power lights would only flash on for 1 second then shutdown.

I thought I bricked my laptop. However pulling the battery and waiting a few minutes brought her back to life.

I am also getting a,

ACPI: Looking for DSDT ... not found!

message.

I hope this can help to isolate the problem.

Revision history for this message
SonWon (jtmitche) wrote :

I tried hibernate and it kills the swap partition. I have to do the following to restore:

mkswap
swapon -a

Hibernate does shutdown the laptop, on restart it boots up normally.

What else can be done to make this work?

Revision history for this message
SonWon (jtmitche) wrote :

Something I do not understanding and would appreciate some enlightenment. Why is work continuing on Edgy and now Feisty when the bugs with Dapper Drake are still not addressed/fixed?

Also, when will Gnome be updated on Dapper or am I now responsible for my own maintenance of Dapper? I want to install a software package but it requires a newer version of Gnome.

Do I need to dump Dapper and upgrade to Edgy just to repeat again in six months with Feisty?

It appears to me, if Ubuntu wants to be a mainstream desktop OS that these issues need to be addressed.

Confused Dapper User,

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Do you still have this laptop? Does this bug still happen?

Changed in acpi-support (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
simo (idra) wrote : Re: [Bug 46680] Re: Suspend and Hibernate Fail with i830MG (on Mitac 8355/ThinkPad)

On Wed, 2012-10-03 at 09:52 +0000, Thomas Hotz wrote:
> Do you still have this laptop? Does this bug still happen?
>
> ** Changed in: acpi-support (Ubuntu)
> Status: Confirmed => Incomplete

The laptop died in 2009, and I am not using Ubuntu on the newest one
anymore, sorry.

Simo.

--
Simo Sorce
Samba Team GPL Compliance Officer <email address hidden>
Principal Software Engineer at Red Hat, Inc. <email address hidden>

Changed in acpi-support (Ubuntu):
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.