OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: bit_bucket on December 01, 2004, 04:29:30 pm

Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: bit_bucket on December 01, 2004, 04:29:30 pm
I love the 3.5.2 OZ GPE image, however as mentioned elsewhere in this board, you cannot turn the device back on after turing it off without having to reset the unit.  Is there a work around for this???  I know there have to be some 5500 users out there using the GPE OZ image.
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: MonkeyMuffins on December 01, 2004, 08:52:13 pm
Had the same problem.  Had to switch to OPIE for the moment.  I saw in a forum that it is being worked on but there is not a workarund that I have seen yet.
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: lardman on December 02, 2004, 05:56:27 am
Have you tried the snooze binary? Not sure if it'd still work, but worth a try.

http://handhelds.org/~mallum/snooze (http://handhelds.org/~mallum/snooze)

(I just tried this and gave up waiting, is hh.org back up? If not I'm sure someone has a copy, as do I at home).


Si
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: papercrane on December 03, 2004, 03:59:07 pm
I use a simple suspend.sh. No need for a binary.

#!/bin/sh
echo 1 > /proc/sys/pm/suspend
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: macwiz on December 08, 2004, 11:10:24 am
I have this problem too.

Worked out how to use snooze (put it in /bin of course) and type snooze from command line. Only works if using root shell or logged in as root. Also does not add On/Off button functionality.

Any other ideas folks?

Thanks
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: anunakin on December 14, 2004, 02:58:55 pm
How I create a icon to it on GPE?
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: fido on December 15, 2004, 12:45:55 pm
i did a quick hack to make the extra buttons (calendar, power button, ..) work under gpe.

file to map extra keys for X collie.xmodmap:
keycode 96 = XF86Calendar
keycode 97 = telephone
keycode 48 = XF86Start
keycode 98 = XF86Mail

# xmodmap collie.xmodmap

the matchbox-wm has builtin keylaunch support which isn't compatible with the keylaunch-daemon started in /etc/X11/Xsession.d/90keylaunch. So i removed the file.

/usr/share/matchbox/kbdconfig:
### Extra keys:
XF86Calendar=!!gpe-calendar  
telephone=!!gpe-contacts    
XF86Start=desktop          
XF86Mail=!!dillo                                    
XF86Music=!!gpe-nmf        
Escape=close                
XF86PowerDown=!apm --suspend

So when the Cancel-Button is pressed for a few seconds, the XF86PowerDown Keycode is sent and as a consequence apm --suspend is called.

there is one drawback when loading the usbdmonitor module (to get rid of the "device not accepting address 3, error -71" problem):
suspending needs about 10 secondes becaue the module is waiting for a synchronisation (writing to /proc/usb-monitor ) of the hotplug script.
but the /proc/usb-monitor is read-only!!
so there is a need for a kernel-patch i think

for the first i hope this helps someone.

hermann
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: stars on January 06, 2005, 09:18:05 pm
Is there a patch for this? hmm....  
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: stars on January 08, 2005, 01:03:10 pm
Fido, Mine is a SL5600. Tried your method and it does not work for me.
Any suggestion?
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: fido on January 09, 2005, 03:40:24 pm
Sorry, but  I don't know anything abour the SL-5600, I have a SL-5500.
The key settings are now in openembedded in will be included in the next OZ release.
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: stars on January 09, 2005, 09:59:35 pm
seems like xmodmap is missing in the GPE release for the 5600.
How can I get it?
Title: 3.5.2 Gpe On Collie No Suspend/resume?
Post by: drs9222 on February 09, 2005, 09:21:04 am
Quote
So when the Cancel-Button is pressed for a few seconds, the XF86PowerDown Keycode is sent and as a consequence apm --suspend is called.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=57497\"][{POST_SNAPBACK}][/a][/div]

hermann

I can't get my Collie to resume after holding in cancel.  I think I might be misunderstanding your post.  So, this is what I did and maybe you can tell me where I went wrong:

1.  executed:
ipkg install xmodmap
   
2. created file collie.xmodmap:
keycode 96 = XF86Calendar
keycode 97 = telephone
keycode 48 = XF86Start
keycode 98 = XF86Mail

3. executed:
xmodmap collie.xmodmap
rm /etc/X11/Xsession.d/90keylaunch

4. insetred into /usr/share/matchbox/kbdconfig under ### Extra keys:
XF86Calendar=!!gpe-calendar
telephone=!!gpe-contacts
XF86Start=desktop
XF86Mail=!!dillo
XF86Music=!!gpe-nmf
Escape=close
XF86PowerDown=!apm --suspend