Author Topic: Oz3.5.3 (collie) On/off Button Problem  (Read 53640 times)

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Oz3.5.3 (collie) On/off Button Problem
« Reply #45 on: May 13, 2005, 12:02:21 pm »
A structured approach to fixing this bug would be to first learn how apmd and suspend/resume works on Linux, then trying to track the code path in kernel and userland, inserting printk() respectively printf() statements to see where exactly things differ from the way they're supposed to work.

Sorry if this is not detailed enough for you, but I'm not a kernel developer.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #46 on: May 13, 2005, 01:07:16 pm »
Quote
A structured approach to fixing this bug would be to first learn how apmd and suspend/resume works on Linux, then trying to track the code path in kernel and userland, inserting printk() respectively printf() statements to see where exactly things differ from the way they're supposed to work.

Sorry if this is not detailed enough for you, but I'm not a kernel developer.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=79626\"][{POST_SNAPBACK}][/a][/div]
It's hard to tell if you're begin sarcastic or not , but I do understand. I may not be a Z or kernel developer, but I am a developer, so I do understand what you mean. It just requires some basic troubleshooting, which requires someone to be able to devote some time to it. Not an easy thing, I know.

So it's possibly a (mis)interaction between the kernel & apm? That makes sense. Are there any other known issues with apm right now? I've noticed that opie's been locking up on me quite a bit in the last day or so. I can ssh in & restart it, but if I'm not next to a pc, then I have to hard boot. Trying to figure out what changes I may have made to cause it. At first I thought it might have been the opie-networkapplet, I seem to remember some issue with that, but I removed it & no fix.

I wish I had the time to set up a development environment, grab the kernel sources & play around. Maybe one day.  thanks Mickey.
GROG!

ironstorm

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #47 on: May 13, 2005, 01:22:56 pm »
Quote
I wish I had the time to set up a development environment, grab the kernel sources & play around. Maybe one day.  thanks Mickey.

You could have a go at building with my QEMU virtual machine image of a bitbake build environment...
( see https://www.oesf.org/forums/index.php?showtopic=12564 )

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #48 on: May 13, 2005, 03:43:17 pm »
Quote
Quote
I wish I had the time to set up a development environment, grab the kernel sources & play around. Maybe one day.  thanks Mickey.
You could have a go at building with my QEMU virtual machine image of a bitbake build environment...
( see https://www.oesf.org/forums/index.php?showtopic=12564 )
[div align=\"right\"][a href=\"index.php?act=findpost&pid=79645\"][{POST_SNAPBACK}][/a][/div]
Interesting. So I could have a dev environment even on my 'doze box (it's all I have available)? kewl. I thought I'd have to get linux installed back on there first (which is yet another thing I want to eventually make time for anyway, after all).

I just may get into this game sooner than I thought. As soon as I can make time I'll give'er a whirl. thanks ironstorm.
GROG!

ironstorm

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #49 on: May 14, 2005, 09:50:47 pm »
Quote
I just may get into this game sooner than I thought. As soon as I can make time I'll give'er a whirl. thanks ironstorm.

I wouldn't waste your time till the devs get around to addressing the problem with the build system...
http://bugs.openembedded.org/show_bug.cgi?id=2

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Oz3.5.3 (collie) On/off Button Problem
« Reply #50 on: May 15, 2005, 11:00:05 am »
That's not the build system, that's one of the patches for a package built by the build system, and specifically for users wanting a uclibc based system.

As OZ hasn't moved to using uclibc yet - we still use libc like the rest of the world, but a later version thankfully - it won't make any difference (unless you want to build your own bleeding edge image and feed).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

deusiah

  • Newbie
  • *
  • Posts: 16
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #51 on: June 02, 2005, 03:55:28 am »
I'm glad I stumbled across this topic now the suspend resume finally works, now I can give that reset button a rest.

Shame about this right arrow reset thing, personally I hadn't noticed it except for when playing the odd game. I wasn't sure what was causing it, I just though the game was crashing it lol.

Gouri

  • Newbie
  • *
  • Posts: 5
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #52 on: June 03, 2005, 04:39:09 pm »
I've filed a bug report about the problem, see
http://bugs.openembedded.org/show_bug.cgi?id=54
and add possible relevant comments there.

samac

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #53 on: June 04, 2005, 05:20:22 am »
Quote
-Remove the line containing /dev/apm_bios from /etc/device_table
-Reboot

I did this and as noted by other people it fixes the on/off button problem, however the USB network will now only connect after a reboot. It will not reconnect after a suspend.

Any suggestions ?

samac
Zaurus SL5500
Hentges 1.0.x
64mb CF card
256mb SD card
Pocket-top Keyboard
Slackware 11.0 (2.6.17.13)

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #54 on: June 04, 2005, 11:29:25 am »
Quote
Quote
-Remove the line containing /dev/apm_bios from /etc/device_table
-Reboot

I did this and as noted by other people it fixes the on/off button problem, however the USB network will now only connect after a reboot. It will not reconnect after a suspend.[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
You need to save & run the script from [a href=\"https://www.oesf.org/forums/index.php?showtopic=9765&st=0&p=60420&#entry60420]this message[/url] (read the whole thread for more info) & set up a desktop shortcut for it to make it painless to run. HTH
GROG!

samac

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #55 on: June 04, 2005, 11:53:31 am »
Quote
You need to save & run the script from this message (read the whole thread for more info) & set up a desktop shortcut for it to make it painless to run. HTH

I remember that thread, I even contributed very late to it.

I just restored the /etc/device_table as it is breaks more than it fixes, and I will just have to remember to suspend from the menu.

samac
Zaurus SL5500
Hentges 1.0.x
64mb CF card
256mb SD card
Pocket-top Keyboard
Slackware 11.0 (2.6.17.13)

deusiah

  • Newbie
  • *
  • Posts: 16
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #56 on: June 06, 2005, 05:46:32 am »
I second that samac. At first it seems removing that line makes everything better but as time goes on you see how much stuff is failing to work.

Is there no way to remap what the buttons do?

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Oz3.5.3 (collie) On/off Button Problem
« Reply #57 on: June 06, 2005, 10:57:53 am »
Quote
Is there no way to remap what the buttons do?[div align=\"right\"][a href=\"index.php?act=findpost&pid=82959\"][{POST_SNAPBACK}][/a][/div]
I was wondering that too. Is there any way to at least disable the cancel button, or remap it so something else?
GROG!

conn-fused

  • Newbie
  • *
  • Posts: 35
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #58 on: June 08, 2005, 05:41:50 am »
Quote
Quote
You need to save & run the script from this message (read the whole thread for more info) & set up a desktop shortcut for it to make it painless to run. HTH

I remember that thread, I even contributed very late to it.

I just restored the /etc/device_table as it is breaks more than it fixes, and I will just have to remember to suspend from the menu.

samac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82777\"][{POST_SNAPBACK}][/a][/div]

Foolishly, I seem to have deleted the /etc/device_table apm line, instead of commenting it out. I don't want to go through a complete reinstall to find out what it said, so could someone please post the line here? Thanks.

samac

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Oz3.5.3 (collie) On/off Button Problem
« Reply #59 on: June 08, 2005, 10:58:11 am »
/dev/apm_bios c 660 0 46 10 134 - - -

it is just below the line /boot/var/empty

You will have to space it out so that it looks nice in the table.

samac
Zaurus SL5500
Hentges 1.0.x
64mb CF card
256mb SD card
Pocket-top Keyboard
Slackware 11.0 (2.6.17.13)