Re: zaurus turns off when picogui running

Micah Dowty <[email protected]> Wed, 7 May 2003 00:51:58 -0600
Newsgroups gmane.comp.video.picogui.devel
Message-ID <[email protected]>
On Wed, May 07, 2003 at 08:39:54AM +0200, Peter Hermsdorf wrote:
> sorry for answering so late, but i managed to destroy my buildroot, so i 
> had to get that up and running again first.

no problem

> 
> it seems to have something to do with the things you suggested.
> what i did first is commenting out all timers in timer.c that had 
> something to do with switching off the zaurus or the screen of the 
> zaurus and now the problem is gone. i hadn`t time till now to figure out 
> the problem more exactly. (debugging with making an image and flashing 
> is a pain...but i guess you know that! :) )

You don't have to flash every time you want to update pgserver!
OpenZaurus uses jffs2 as its root filesystem, so you can just copy
a new pgserver binary over the one that's installed.

Other methods include:
 - Keeping pgserver in a ramdisk
 - Mounting your desktop machine over NFS


> i `ll try to get more into the problem, but maybe something comes to 
> your mind where the error could be, since you know the hole system 
> better than me.

I haven't looked at it yet, but I don't see how it could be anything but
the code in timer.c causing the problem. That code doesn't depend on
much else, so it shouldn't take much 'big picture' knowledge to find the
problem.

> 
> thx for the hints, anyway.
> 
> BTW: how to stop a running pgserver on the zaurus? i tried Fn+C and such 
> things but none of them worked.

ssh in and kill it :)

Fn+C is only mapped to ctrl-c in Qt/E's console, not in the kernel. And
besides, ctrl-c won't kill pgserver since it needs to be able to send
that to clients like pterm.

The magic key for killing pgserver is ctrl-alt-/, but there's no way
(yet) to type that on a zaurus.

> 
> oh, another (i guess maybe more zaurus related question): when pressing 
> the On/Off Key longer, the zaurus switches off, but i`m not able to 
> switch it on again. when running the normal openzaurus under opie you 
> can turn on and off the zaurus as you like. is there a setting to be 
> made somewhere or a special apmd command or something to enable this 
> behaviour?

PicoGUI suspends the zaurus by issuing a command in /proc, but it
shouldn't have any effect on poweron.

> 
> 
> thx, greets, peter
> 
> Micah Dowty wrote:
> 
> >I've seen this problem before now that you mention it, but I haven't
> >looked into it and it seems to have escaped from the collector :)
> >
> >The input driver for the zaurus includes a driver message handler to
> >support picogui's suspend timer. You can see this in server/input/zaurus.c
> >
> >The suspend timer itself is in server/gcore/timer.c
> >In README.configfile, the timers.sleep property is shown to have the
> >default value zero, meaning that the timer is disabled. Check whether
> >your pgserver.conf is overriding this. If so, try commenting out that
> >line. If it looks correct, try adding printf()s or breakpoints to
> >timer.c
> >
> >If you don't feel like fixing this right away or at all, add
> >it to the collector and it will be eventually fixed.
> >
> >--Micah
> >
> >On Fri, May 02, 2003 at 03:40:21PM +0200, Peter Hermsdorf wrote:
> > 
> >
> >>hi all,
> >>
> >>i finally got hello.c running, but there is a funny effect: after 
> >>starting pgserver the display immediately shuts down. when pressing a 
> >>key, let`s say the OK-Key, the screen turns on and i can see the hello 
> >>world window,when i release the key the screen immediately turns off. 
> >>when again pressing a key, it turns on again and i have to keep the key 
> >>pressed to see something.
> >>
> >>anybody knows what`s the problem? .... is this maybe some misconfigured 
> >>energy saving feature or something ?
> >>
> >>thx for any help!
> >>
> >>bye,peter
> >>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This sf.net email is sponsored by:ThinkGeek
> >>Welcome to geek heaven.
> >>http://thinkgeek.com/sf
> >>_______________________________________________
> >>Pgui-devel mailing list
> >>[email protected]
> >>https://lists.sourceforge.net/lists/listinfo/pgui-devel
> >>   
> >>
> >
> > 
> >
> 
> 
> 
> 
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
> 
> _______________________________________________
> Pgui-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com