Author Topic: Suspend Crashes  (Read 70240 times)

gen2

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • http://www.planetofidiots.com/zaurus/
Suspend Crashes
« Reply #60 on: May 12, 2007, 05:26:48 pm »
Quote
Quote
So there is an issue with lidsuspend, but it dosn't result in complete catastrophic device lockup.
Just noticed the following from 3.9 changes located here: http://www.openbsd.org/plus39.html

Quote
On Zaurus, allow sysctl machdep.lidsuspend=1 to cause suspend on screen closure. Opening does not yet wake it up though.
The Z wakes up it just fails to turn the back light back on.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161181\"][{POST_SNAPBACK}][/a][/div]

Current testing here produces full lockup on lidsuspend, no ssh'ing in possible, no status lights a flashin.  I'm running 6 partitions, sleep DOES work as advertised using # zzz -S. Unable to verify any specific link between 6 partition scheme and suspend/wake problems.

I can handle typing instead of just closing the lid. Moving on.
« Last Edit: May 12, 2007, 05:29:53 pm by gen2 »
c3200 : openbsd4.3 -current : pretec-wifiCF

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Suspend Crashes
« Reply #61 on: May 13, 2007, 05:01:33 am »
Just another update:

I have tried suspending with closing lid, zzz and power off button several times under the 4.1 release version, with at least half an hour interval between suspend and resume. Everything works so far.  
Pray that the issue won't come back again...
« Last Edit: May 13, 2007, 05:01:53 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Suspend Crashes
« Reply #62 on: May 15, 2007, 12:42:57 pm »
More update:

I've updated the kernel to 4.1-current (GENERIC) #100 (8 May 2007).
Suspend and resumes now works like a charm!
Even closing lid is no longer a problem.
Tried two days and haven't experienced any resume failure yet, except on one occasion after building stuff overnight the system refused to suspend. A reboot fixed that.

Thanks for the hard work!

[Update+]
Shortly after posting I ran into one incidence of failing to resume.

A handy tip:
Just create either a tiny shell script or alias as shortcuts to the backlight commands: wsconsctl display.backlight=100, wsconsctl display.brightness+=1, wsconsctl display.brightness-=1.
For example, i am using don ("Display On"), bup ("Brightness Up") and bdn ("Brightness Down") respectively.    
« Last Edit: May 16, 2007, 08:08:58 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Suspend Crashes
« Reply #63 on: May 18, 2007, 01:26:34 pm »
Updated to GENERIC#110 last night. Suspend by closing lid and pressing power button quite a few times. Resume hasn't failed yet.

GREAT JOB!  THANK YOU FOR THE CONSTANT AND PERSISTENT UPDATING!  

I really hope I can contribute my small part soon by submitting packages to the repository.  
I've been collecting OBSD tips and making notes of them. Will try to make a newbie starter guide in addition to the great installation documentations.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #64 on: May 20, 2007, 03:31:31 pm »
Great piece of news ! I think i ll be back to openbsd as soon as i come back from holidays
any news about bluetooth and sd card support in latest builds ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #65 on: June 04, 2007, 06:04:26 am »
well, it seems suspend/resume troubles are now gone
i've zzz -S a couple of time and resume always worked for me  let's touch some wood ! (french proverb

however i've some troubles when i suspend and the usb host cable is plugged (and perhaps pppd is running): when i resume i got lot of messages which fills the screen and i cannot do anything other than reboot.....

messages are:
uhub0: device problem, disabling port 2

would someone help?
« Last Edit: June 04, 2007, 06:05:26 am by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Suspend Crashes
« Reply #66 on: June 04, 2007, 07:32:49 am »
Quote
however i've some troubles when i suspend and the usb host cable is plugged (and perhaps pppd is running): when i resume i got lot of messages which fills the screen and i cannot do anything other than reboot.....

messages are:
uhub0: device problem, disabling port 2

would someone help?

Disconnect usb host cable before suspending?  

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #67 on: June 04, 2007, 08:03:33 am »
Quote
Quote

however i've some troubles when i suspend and the usb host cable is plugged (and perhaps pppd is running): when i resume i got lot of messages which fills the screen and i cannot do anything other than reboot.....

messages are:
uhub0: device problem, disabling port 2

would someone help?
Disconnect usb host cable before suspending?  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162531\"][{POST_SNAPBACK}][/a][/div]

lol i didn't thought about it  
you know this weekend i let the zaurus plugged to the nokia and internet up for quite all saturday and sunday   compilation stories    then i said to myself : perhaps the zaurus would need some pause to rest a little  so sometimes i just switched the backlight off (i created scripts) .
but sometimes you also need to zzz it no? perhaps the suspend/resume process should be modified to disconnect the usb bus before and reconnect it on resume?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #68 on: June 12, 2007, 07:46:54 am »
guys,
i'm running into a new problem : suspend just doesn't work !
nothing happens as i type zzz -S ........
just a "suspending system..." message then back to prompt......

any clue before i reboot ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

gaarder

  • Newbie
  • *
  • Posts: 18
    • View Profile
Suspend Crashes
« Reply #69 on: June 12, 2007, 11:39:33 pm »
I've tried zzz -S, zzz -z, with and without sd card, cf card, and cf wifi card, with apm -A, apm -At 300, apm -t 300, machdep.maxspeed=520 or #machdep.maxspeed=520...

my new z (3200) fails to shut down its charge light during an overnight suspend charge session (~6hrs)

any idea? when I boot back to sharp rom the charge light usually disappears after a few hours.

Also, if suspend charging under OpenBSD works for anyone, can someone post their configurations?

I am using OpenBSD #current 114 dual booting OpenBSD and sharp original rom. Resume works, but I prefer not to use lidsuspend.
« Last Edit: June 12, 2007, 11:41:29 pm by gaarder »

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #70 on: June 13, 2007, 07:32:07 am »
Quote
I've tried zzz -S, zzz -z, with and without sd card, cf card, and cf wifi card, with apm -A, apm -At 300, apm -t 300, machdep.maxspeed=520 or #machdep.maxspeed=520...

my new z (3200) fails to shut down its charge light during an overnight suspend charge session (~6hrs)

any idea? when I boot back to sharp rom the charge light usually disappears after a few hours.

Also, if suspend charging under OpenBSD works for anyone, can someone post their configurations?

I am using OpenBSD #current 114 dual booting OpenBSD and sharp original rom. Resume works, but I prefer not to use lidsuspend.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163097\"][{POST_SNAPBACK}][/a][/div]

well,
with apmd -A   that didn't work for me too...
but with apmd="" or -t 300    it does work
but it probably depends on what you're doing with your Zaurus (wifi ? bluetooth?)
when i let the zaurus up to  compile, i'm used to plug my nokia via its usb cable so power requirements are at low level
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Suspend Crashes
« Reply #71 on: June 16, 2007, 07:49:17 am »
Quote
guys,
i'm running into a new problem : suspend just doesn't work !
nothing happens as i type zzz -S ........
just a "suspending system..." message then back to prompt......

any clue before i reboot ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163044\"][{POST_SNAPBACK}][/a][/div]

any news about how to solve this bug ? i'm having it again....
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Suspend Crashes
« Reply #72 on: October 27, 2007, 01:20:11 pm »
Quote from: jpmatrix
Quote
guys,
i'm running into a new problem : suspend just doesn't work !
nothing happens as i type zzz -S ........
just a "suspending system..." message then back to prompt......

any clue before i reboot ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163044\"][{POST_SNAPBACK}][/a][/div]

any news about how to solve this bug ? i'm having it again....

Here's some new news:

"Revision 1.3, Mon Oct 8 20:18:19 2007 UTC (2 weeks, 4 days ago)
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -1 lines
Diff to previous 1.2
Align the suspend saved data to a cache line boundary, apparently prevents issues upon resume."
« Last Edit: October 27, 2007, 01:22:45 pm by mathemajikian »