*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: The Frame appears and gets in the way often  (Read 5157 times)

The Frame appears and gets in the way often

jonathan7007
Commenter

Posts: 25

Volunteering for after-school program using XOs


August 01, 2008, 02:02:24 AM

The frame for Activity choice shows up in too many situations on (I think) all of our 15 XOs. You might be trying to navigate to a menu choice along the top of the screen while in an Activity and suddenly the frame obscures the whole top row. This can happen with the cursor still in the middle of the screen. I can't find a pattern in what makes it appear. It frustrates our volunteer users a LOT.

I can't see a big improvement in this behavior after using the four-finger-salute to try to help the touch pad get recalibrated. We are on Build 650. I want to stay with this because the time to bring all the machines to 656 will be hard to find, especially if we will soon thereafter have to go to 7XX.

Any ideas? Similar experience? Or is Sugar supposed to do this?

Jonathan
Logged

marketing7007 (at) Yahew (dot) com

#1 Re: The Frame appears and gets in the way often

Dinky
Senior Contributor
**
Posts: 238


August 01, 2008, 06:13:34 AM

See topic:  XO Laptop> Help >Turn Off Frame    by Sarah Elkins ( Feb 7 2008) or search word: frame.
Logged

#2 Re: The Frame appears and gets in the way often

Jordan
Senior Contributor
**
Posts: 149


August 01, 2008, 06:15:39 AM

If I had to hazard a guess, the frame problem is related to the trackpad problem.  I noticed, a few times, the cursor flicker to the edge of the screen then almost immediately move back.

I don't know of an easy way to fix this stuff on the 650 build, but you may be happy to hear that the trackpad problems seem to be gone from later releases and recent joyride builds have a nice control panel that makes changing the behaviour of the frame easy.  To my knowledge, the only way to change the behaviour of the frame in earlier releases is to edit a python script.
Logged

#3 Re: The Frame appears and gets in the way often

AuntiMame
Master Contributor
***
Posts: 418



WWW
August 01, 2008, 06:16:08 AM

You can disable the hot corners (aka, calling the frame when the cursor gets too close to the corner) by editing the file /user/share/sugar/shell/view/frame/eventarea.py

add the # symbol as shown below and the hot corners will no longer work.

Code:
def _create_invisible(self,x,y,width,height):
  invisible= gtk.Invisible()
# invisible.connect('enter-notify-event', self._enter_notify_cb)
# invisible.connect('leave-notify-event', self._leave_notify_cb)

You can still reach the frame by using the frame button in the upper right corner of the keyboard, or by going to the home view.
Logged

Shop for XO accessories and swag at www.XOExplosion.com

Life is a banquet, and most poor suckers are starving to death!

#4 Re: The Frame appears and gets in the way often

jonathan7007
Commenter

Posts: 25

Volunteering for after-school program using XOs


August 02, 2008, 03:52:48 PM

AuntiMame,
Thank you for that solution. I need to know the Linux steps and commands for "opening" the file to make those line changes. I don't know any Linux, and have to follow steps laid out in detail.

Jonathan
Logged

marketing7007 (at) Yahew (dot) com

#5 Re: The Frame appears and gets in the way often

AuntiMame
Master Contributor
***
Posts: 418



WWW
August 02, 2008, 08:07:35 PM

These instructions are from: http://wiki.laptop.org/go/Ask_OLPC_a_Question_about_Software#How_to_disable_the_auto_Frame_appearance_when_mousing_into_hot_corners

(FYI, as Dinky mentioned a link to this is in the post by Sarah Elkins and was found by using the search box just to the right of the posts on this forums and typing in "frame". The search box at the top of the page doesn't always work for me -- I have no idea why)


Detailed instructions:

1. Open the Terminal activity.

2. Change to the "root" user by typing

       su

3. Change directory to the directory of the file you want to edit by typing:

      cd /usr/share/sugar/shell/view/frame

4. Create a backup copy of the file you are about to change by typing:

        cp eventarea.py eventarea.py.bak

5. Open an editor to edit the 'eventarea.py' file by typing the following:

       nano eventarea.py

6. Type
 
       cntl-W

  and type in

       enter_notify

 to find the two lines to comment out.

7. Using the arrow keys, move the cursor to the beginning of the 2 lines listed above.

8. Type the '#' symbol in the first column of each of the two lines above.

9. Type cntl-X to exit

10. Enter Y to save the changes and press enter to save as 'eventarea.py'.

11. Reboot your machine.
Logged

Shop for XO accessories and swag at www.XOExplosion.com

Life is a banquet, and most poor suckers are starving to death!

#6 Re: The Frame appears and gets in the way often

jonathan7007
Commenter

Posts: 25

Volunteering for after-school program using XOs


August 04, 2008, 02:39:16 PM

AuntiMame, Those instructions are much appreciated. After a bit of this I will get the command-line basics. I thought this would be a Sugar issue but the interface is "controlled by Linux?

Like many, I used to REM pieces of code in the DOS that undergirded Windows and even learned some DOS and before that played with Basic. Hard to go back to that.

Jonathan
Logged

marketing7007 (at) Yahew (dot) com

#7 Re: The Frame appears and gets in the way often

Jordan
Senior Contributor
**
Posts: 149


August 04, 2008, 05:27:12 PM

eventarea.py is part of the Sugar environment itself, and not part of Linux per se.  Unless you want to get philisophical about it, then you could say that Sugar is built on Python and GTK+, both of which are sitting on top of Linux, so yes indeed Linux is involved.  Then again, you can claim that the whole thing is controlled by physics if you want to go deep enough. Smiley

I'm one of those people who sorta likes REMing things out.  Particularly back in the days of DOS and BASIC.  Alas, modern code isn't as much fun when it comes down to REMing things out.  So thankfully it has pretty much become a thing of the past.  Also, Sugar changes too often to make such practices practical.  So thankfully they added a control panel to do that in recent Sugar builds.
Logged

#8 Re: The Frame appears and gets in the way often

teapot
OLPC News Forum Expert
****
Posts: 662



WWW
August 04, 2008, 06:23:33 PM

AuntiMame, Those instructions are much appreciated. After a bit of this I will get the command-line basics. I thought this would be a Sugar issue but the interface is "controlled by Linux?

Sugar interface is mostly in Python, and this is the easiest way of editing a Python script (or any text file) in Linux without installing any kind of development environment.

Quote
Like many, I used to REM pieces of code in the DOS that undergirded Windows and even learned some DOS and before that played with Basic. Hard to go back to that.

'#' at the start of the line is an equivalent of batch/basic "REM" in Python, shell scripts and most of configuration files.
Logged

#9 Re: The Frame appears and gets in the way often

DeniseS
Commenter

Posts: 7


August 22, 2008, 12:03:26 PM

I upgraded to 703 fr/ 656. It appeared that it did not load completely because it was done pretty fast. I immediately rebooted and held down the "O" key to revert to last build. Now I am having trouble w/ the computer suddenly shutting down, within an hour of starting. It will then NOT start up again. I have had to re-charge battery to be able to restart. Any idea what went wrong and how I can fix it?
Many thanks.
Logged
Pages: [1]
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 28
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 16
Total: 16