maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   A small utility program to soft reboot your tablet (https://talk.maemo.org/showthread.php?t=15223)

bunanson 2008-06-29 06:22

Re: A small utility program to soft reboot your tablet
 
1 Attachment(s)
Quote:

Originally Posted by ; Snoshrk
...You don't have any of the options commented out?!?...

Very carefully, move the "<!--" to the last 6th line position, and looked like
.
.
.
</callback>
</menuitem>
<!---->
</menuitem priority="0" ......
<return>5</return>
<po>...
</menuitem>
</powerkeymenu>


This way you got all the options. That is what my tablet look like, see screenshots here, http://www.internettablettalk.com/fo...254#post192254 , thread #2



bun

buma 2008-07-15 18:04

Re: A small utility program to soft reboot your tablet
 
is there a way to comment out specific menu items without affecting the other menu options? For example, I'd like to remove the following items:
lock device
top in x-term

can I just add a "<!--" and a "-->" before / after each <menuitem> / </menuitem> in the systemui.xml?

and too, it seems that when coming back from the softpoweroff option with a long key.press, it restores my network connections - is there a way to:
1. change it to NOT restore my net.connections
2. change it to come back on with a short key press / square button press similar to returning from a lock screen & button menu select?

(as always, small words / simple concepts / long explanations for a linux newbie is always appreciated)

thanks in advance

Benson 2008-07-15 18:24

Re: A small utility program to soft reboot your tablet
 
Yes, you can comment things out exactly that way.

Edit /etc/mce/mce.ini, I think, to change the softpoweroff details. It's got comments explaining what each item does. (I don't think 2. is possible, though...)

buma 2008-07-15 23:33

Re: A small utility program to soft reboot your tablet
 
thanks Benson,
got #1 to work perfectly the first time (surprisingly - had to dig deep to remember my dos-editing days...) so now I have no options to lock my device or go to xterm in my power menu and I got softpoweroff to not restore my connections (double-woohoo!)

just gotta figure out that longkeypress / softpoweroff return-thing now... anyone else have any clues?

lazuli 2008-07-16 14:49

Re: A small utility program to soft reboot your tablet
 
thanks for this tip! however when i resume from soft poweroff the power button and the touchscreen becomes unresponsive.. normal?

qwerty12 2008-07-16 14:50

Re: A small utility program to soft reboot your tablet
 
Yes, it is normal. Just hold down the power key for a few seconds and let go and the buttons work again.

bunanson 2008-07-16 15:16

Re: A small utility program to soft reboot your tablet
 
Quote:

Originally Posted by lazuli (Post 203587)
thanks for this tip! however when i resume from soft poweroff the power button and the touchscreen becomes unresponsive.. normal?

Same here.

bun

nhanquy 2008-07-16 23:56

Re: A small utility program to soft reboot your tablet
 
Quote:

Originally Posted by bunanson (Post 129193)
All I want is a .deb file on the desktop that would,

- xterm
- sudo gainroot
- shutdown -r now

Do you have "Statusbar Graph Control" installed? If you do, add this "shutdown" command:
sh -c 'echo shutdown -r now | sudo gainroot'

bunanson 2008-07-17 00:09

Re: A small utility program to soft reboot your tablet
 
Quote:

Originally Posted by nhanquy (Post 203799)
Do you have "Statusbar Graph Control" installed? If you do, add this "shutdown" command:
sh -c 'echo shutdown -r now | sudo gainroot'

Wow, that is truly amazing. It works like magic. THANK YOU, nhanquy. I like it very much. I think this is the most important app, I used it quite often. I shortened it down just a bit,
sh -c 'echo reboot | sudo gainroot' to save a couple of strokes. Thanks, it is always good to see you hang around, you always have GOOD ideas :)


bun

lazuli 2008-07-19 05:23

Re: A small utility program to soft reboot your tablet
 
Quote:

Originally Posted by qwerty12 (Post 203588)
Yes, it is normal. Just hold down the power key for a few seconds and let go and the buttons work again.

thank you! i just wonder what the short power key press is for. it seems to power on the device but leaves the tablet in offline mode, correct? or does it serve another purpose like underclock the processor or something?


All times are GMT. The time now is 06:17.

vBulletin® Version 3.8.8