![]() ![]() |
Sep 12 2007, 08:20 PM
Post
#1
|
|
|
Group: Members Posts: 119 Joined: 8-July 04 Member No.: 3,955 |
Is there an easy way (or even a difficult way) to achieve this on the 3100 (Sharp ROM)? Since it takes a second or two to wake up fully (ie respond to keystrokes) and I wouldn't open it if I didn't want to switch it on, it would seem logical for it to switch on automatically as on opening (at least, for this to be possible). There's an option for switching off (or not) when closed, after all...
James |
|
|
|
Sep 13 2007, 01:15 AM
Post
#2
|
|
![]() Group: Members Posts: 1,565 Joined: 7-April 05 From: Sydney, Australia Member No.: 6,806 |
posibly, however as far as i amaware it would need a kernel patch.
i belive the open close screen hindge buttons are connected to the GPIOs rather tahn the keyboard scanning matrix, if it is then it shouldnt be to hard to tell them to cause an interupt on a level change (close open) funnily enough on my c3000 i can wake up from suspend by pushing one of the round buttons (home calender or one of them) dont know if this is a bug or a feature |
|
|
|
Sep 15 2007, 04:03 PM
Post
#3
|
|
|
Group: Members Posts: 1,497 Joined: 12-November 03 From: Germany Member No.: 907 |
As far as I remember, the GPIO where the hinge is connected to can't be configured as a wake-up source.
|
|
|
|
Sep 16 2007, 01:58 PM
Post
#4
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
QUOTE(Mickeyl @ Sep 16 2007, 01:03 AM) As far as I remember, the GPIO where the hinge is connected to can't be configured as a wake-up source. thanks Mickey, I have wondered about this myself. so, you could only have resume-on-open by not fully suspending the zaurus and leave kernel running in some slowed-down state to poll, and thereby losing significant battery life |
|
|
|
Sep 16 2007, 03:26 PM
Post
#5
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
On a related note, can you have the device NOT turn on if it is closed (and not suffer battery loss)? I have issues with my C3100 turning on in my pocket, which is quite annoying.
|
|
|
|
Sep 16 2007, 07:56 PM
Post
#6
|
|
|
Group: Members Posts: 369 Joined: 6-September 04 From: Brisbane, Australia Member No.: 4,488 |
It should be pretty trivial to write an /etc/apm/resume.d script which calls chkhinge and resuspends if required, maybe something like this:
CODE #!/bin/sh
chkhinge if [ $? = 3 ]; then apm -s fi |
|
|
|
Sep 17 2007, 03:47 AM
Post
#7
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
Awesome. I'll probably need more specific instructions later (never done anything with /etc/apm/resume.d), though.
|
|
|
|
Sep 17 2007, 02:51 PM
Post
#8
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
OK, I copied that script, put it in /etc/apm/resume.d, and chmodded it, but it still turns on when the lid is closed (and doesn't resuspend). Do I need to put something in /etc/apm/scripts or something?
Thanks. |
|
|
|
Sep 17 2007, 03:52 PM
Post
#9
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
QUOTE(Capn_Fish @ Sep 18 2007, 08:51 AM) OK, I copied that script, put it in /etc/apm/resume.d, and chmodded it, but it still turns on when the lid is closed (and doesn't resuspend). Do I need to put something in /etc/apm/scripts or something? Thanks. that's because the new pdaXrom that you are using no longer supports chkhinge... |
|
|
|
Sep 17 2007, 04:52 PM
Post
#10
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
QUOTE(Meanie @ Sep 17 2007, 06:52 PM) QUOTE(Capn_Fish @ Sep 18 2007, 08:51 AM) OK, I copied that script, put it in /etc/apm/resume.d, and chmodded it, but it still turns on when the lid is closed (and doesn't resuspend). Do I need to put something in /etc/apm/scripts or something? Thanks. that's because the new pdaXrom that you are using no longer supports chkhinge... No wonder "which chkhinge" returned nothing. Is there an alternate way to do this? |
|
|
|
Sep 20 2007, 03:34 AM
Post
#11
|
|
![]() Group: Members Posts: 1,565 Joined: 7-April 05 From: Sydney, Australia Member No.: 6,806 |
dont know if its handy to anyone but i did have a chkhinge script that turns the PDA off when the lid is clesed but not if my music was playing
also have another one to pause the music when you close the lid and suspend (otherwise when i resumed it and had removed the headphones the teded to be a bit of embaressment) |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 04:06 AM |