Re: Drag & Drop on GTK + Maemo 5 (was: Re: [pymaemo] DnD on N900)
Claudio Saavedra wrote: > El mié, 06-01-2010 a las 19:44 -0400, Anderson Lizardo escribió: > There is no drag 'n drop in Maemo GTK+. This has been deliberately > disabled. > > Claudio Is there a way to enable drag & drop, ideally on a per-application basis? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Drag & Drop on GTK + Maemo 5 (was: Re: [pymaemo] DnD on N900)
Claudio Saavedra wrote: > El jue, 07-01-2010 a las 10:08 -0400, Anderson Lizardo escribió: >> On Thu, Jan 7, 2010 at 5:37 AM, Claudio Saavedra >> wrote: >> > There is no drag 'n drop in Maemo GTK+. This has been deliberately >> > disabled. >> >> I believe that pretty much answers Jeff's issue... Was this done for >> Maemo 5 ? Because according to Jeff it used to work on the N810 >> (Diablo). I haven't tested it myself on N810 , though. > > Yes, only since Maemo 5. Out of curiousity, do you have any idea why it was disabled in Maemo 5? Is there DnD in Maemo Qt? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
NFS on N900
Any idea why it is not possible to mount an NFS share on an N900? I get: mount: mounting host:/home/jeffbarish on /mnt/host failed: Input/output error I have installed nfs-common and portmap. Works on my N810. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Dbus on Mer
I am trying to activate the display on an N800 using dbus. On maemo, my code works fine. On Mer, I get osso.OssoException: Cannot initialize context. I have fiddled with the X-Osso-Service entry in my .desktop file in /usr/share/applications and with the Name entry in my .service file in /usr/share/dbus-1/services. Everything that I have tried produces the same error message. Has anyone had any luck using osso.Context on Mer? BTW, is Mer still alive? I see that there has been some occasional chat about it, but the release schedule for version 0.17 hasn't been updated for a long time. Nor, I believe, has the hardware support table. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
I have now tried installing python2.5-gnome2-extras on 3 other N8x0's. In every case I get: Nokia-N800-23-14:/etc/apt# apt-get install python2.5-gnome2-extras Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: python2.5-gnome2-extras: Depends: python-support (>= 0.3.4) but it is not installable E: Broken packages and Nokia-N800-23-14:/etc/apt# apt-get install python-support Reading package lists... Done Building dependency tree Reading state information... Done Package python-support is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package python-support has no installation candidate Although the installation worked for Kamen in scratchbox, it still appears that the package is broken. I would report a bug except for two things: 1. There does not seem to be a category for reporting bugs of this nature. 2. Nokia plans no further releases for diablo, so I presume that the bug will never be fixed. I also tried Mer. Under Mer it is possible to install the package and it is then possible to import gtkmozembed. However, when I run my program, I get the message SystemError: dynamic module not initialized properly Anyone know how to fix this problem? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
Kamen Bundev wrote: > http://repository.maemo.org/pool/diablo/free/p/python-support/python- support_0.6.4_all.deb > http://repository.maemo.org/extras/pool/diablo/free/libg/libgda3/libgda3-3_3.1.15- maemo2_armel.deb I certainly appreciate the suggestions because I am completely stuck. However, when I try to install python-support using your link, I still get: Nokia-N810-43-7:/home/user# dpkg -i python-support_0.6.4_all.deb (Reading database ... 15843 files and directories currently installed.) Preparing to replace python-support 1.0.2maemo1 (using python- support_0.6.4_all.deb) ... Unpacking replacement python-support ... dpkg: dependency problems prevent configuration of python-support: python-support depends on python (>= 2.3); however: Package python is not installed. dpkg: error processing python-support (--install): dependency problems - leaving unconfigured Errors were encountered while processing: python-support Needless to say, Python is installed (version 2.5), despite the message. libgda also does not install because libgda3-common is missing. However, it isn't clear to me that I need libgda. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
Kamen Bundev wrote: > http://repository.maemo.org/extras/pool/diablo/free/g/gnome-python-extras/ > You probably look in the wrong place ;) I still get: Nokia-N810-43-7:/home/user# dpkg -i python2.5-gnome2- extras_2.19.1-0maemo0_armel.deb Selecting previously deselected package python2.5-gnome2-extras. (Reading database ... 15812 files and directories currently installed.) Unpacking python2.5-gnome2-extras (from python2.5-gnome2- extras_2.19.1-0maemo0_armel.deb) ... dpkg: dependency problems prevent configuration of python2.5-gnome2-extras: python2.5-gnome2-extras depends on libgda3-3; however: Package libgda3-3 is not installed. python2.5-gnome2-extras depends on python-support (>= 0.3.4); however: Package python-support is not configured yet. python2.5-gnome2-extras depends on python (<< 2.6); however: Package python is not installed. dpkg: error processing python2.5-gnome2-extras (--install): dependency problems - leaving unconfigured Errors were encountered while processing: python2.5-gnome2-extras The only python-support I have found is for fremantle. Although you found python2.5-gnome2-extras in a repository for diablo, I have a hunch that the gnome2 version is for fremantle so that I actually need python2.5-gnome- extras. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
Jeffrey Barish wrote: > Jeffrey Barish wrote: > >> Jeffrey Barish wrote: >> >>> What is the status of embedded browsers with Python bindings for OS2008 >>> (N8x0)? I am using gtkmozembed on Ubuntu, so it would be great if the >>> same were available on maemo. >> >> I have a hunch that mozembed is in python2.5-gnome2-extras, but that >> package >> is not installable because python-support does not exist. Any clues? > > I found python2.5-gnome-extras at > > http://talk.maemo.org/showpost.php?p=150211&postcount=40 > > It provides gtkmozembed, but when I try to run my program using it I get > > User defined signal 1 > > and the program exits. It appears that python2.5-gnome2-extras is not > installable because it is for fremantle, not diablo. It seems as if there > would be a python2.5-gnome-extras at maemo.org, but I can't find it. According to the listing at http://www.gronmayer.com/it/index.php?lang=en&system=maemo4&sort=hits&show_pck=243 of the contents of the Diablo extras repository, python2.5-gnome-extras should be in the repository. It is not. I get Package python2.5-gnome-extras is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package python2.5-gnome-extras has no installation candidate Any idea why it was removed? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
Jeffrey Barish wrote: > Jeffrey Barish wrote: > >> What is the status of embedded browsers with Python bindings for OS2008 >> (N8x0)? I am using gtkmozembed on Ubuntu, so it would be great if the >> same were available on maemo. > > I have a hunch that mozembed is in python2.5-gnome2-extras, but that > package > is not installable because python-support does not exist. Any clues? I found python2.5-gnome-extras at http://talk.maemo.org/showpost.php?p=150211&postcount=40 It provides gtkmozembed, but when I try to run my program using it I get User defined signal 1 and the program exits. It appears that python2.5-gnome2-extras is not installable because it is for fremantle, not diablo. It seems as if there would be a python2.5-gnome-extras at maemo.org, but I can't find it. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Embedded browsers
Jeffrey Barish wrote: > What is the status of embedded browsers with Python bindings for OS2008 > (N8x0)? I am using gtkmozembed on Ubuntu, so it would be great if the > same were available on maemo. I have a hunch that mozembed is in python2.5-gnome2-extras, but that package is not installable because python-support does not exist. Any clues? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Embedded browsers
What is the status of embedded browsers with Python bindings for OS2008 (N8x0)? I am using gtkmozembed on Ubuntu, so it would be great if the same were available on maemo. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: ssh permission denied
Kees Jongenburger wrote: > On Sun, Aug 23, 2009 at 9:27 PM, Jeffrey > Barish wrote: >> There was an update to openssh recently. Since installing it, I cannot >> ssh to the N800. I copied id_rsa.pub to /home/user/.ssh/authorized_keys >> even though it had not changed. I edited /etc/ssh/ssh_config so that it >> contains PubkeyAuthentication yes >> RSAAuthentication yes > usually you need to use authorized_keys2 and not authorized_keys is > you use ssh2 >> ssh is still asking me for user's password when I do ssh u...@nokia. I >> even tried >> PasswordAuthentication no >> The permission on authorized_keys is 600 and the owner is user.users. >> When I changed PasswordAuthentication to no in /etc/ssh/sshd_config, I >> get Permission denied (publickey) > > try using ssh -v n810 to get more information about where is goes wrong Your suggestion to try ssh -v led me to debug mode for sshd: /etc/init.d/ssh stop /usr/sbin/sshd -d I discovered that user user was "not allowed because account is locked". /etc/passwd had ! as the password for user. I changed it to *, at which point I was able to ssh in. It's hard to imagine what the openssh upgrade did to create this problem. Thanks for the response. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
ssh permission denied
There was an update to openssh recently. Since installing it, I cannot ssh to the N800. I copied id_rsa.pub to /home/user/.ssh/authorized_keys even though it had not changed. I edited /etc/ssh/ssh_config so that it contains PubkeyAuthentication yes RSAAuthentication yes ssh is still asking me for user's password when I do ssh u...@nokia. I even tried PasswordAuthentication no The permission on authorized_keys is 600 and the owner is user.users. When I changed PasswordAuthentication to no in /etc/ssh/sshd_config, I get Permission denied (publickey) Not sure what to try next. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: N810 RIP
Ryan Abel wrote: > On Jan 29, 2009, at 9:30 PM, Jeffrey Barish wrote: > >> Judging from the clearance pricing of the N810 at buy.com ($219.99), I >> surmise that Nokia has now discontinued it as well as the N800 and >> the N810 >> Wimax Edition. So, let's see. That leaves... nothing. Nothing but >> fond >> memories of 2 years spent developing for a platform that no longer >> exists. > > Well, I suppose ignorance can be forgiven since an announcement hasn't > actually been made yet, but I'd recommend reading up a bit before you > jump to the melodrama.[1][2][3][4] The rumors are fascinating. In the meantime, I am nearly ready to start shipping my software but my potential customers have nothing on which to run it, unless they happen to own an N8x0 already. Nokia opened their platform to encourage developers to contribute their expertise, but their capriciousness and opacity about their hardware roadmap are tolerable only to hobbyists or companies porting software from another platform as a sideline. If I postpone delivery until after the rumored next-generation platform appears, what assurance do I have that Nokia will not balk again? What assurance do I have that Nokia will not price me out of the market with an upgrade burdened with features I don't need? If you see only melodrama in these concerns, then perhaps you have never tried to run a business in the face of such uncertainty. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
N810 RIP
Judging from the clearance pricing of the N810 at buy.com ($219.99), I surmise that Nokia has now discontinued it as well as the N800 and the N810 Wimax Edition. So, let's see. That leaves... nothing. Nothing but fond memories of 2 years spent developing for a platform that no longer exists. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
JPEG loader module failure
Anyone know what I should do with this error: Internal error: Image loader module 'jpeg' failed to complete an operation, but didn't give a reason for the failure The same command with the same jpeg works fine on Ubuntu. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Python logging.config missing
Anyone using the logging package? logging.config is missing, so how do you specify the location of a configuration file? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Integration with hildon desktop
On Tuesday 07 October 2008 00:56:58 you wrote: > Hi, > > ext Jeffrey Barish wrote: > > I don't specify the WM_CLASS in the .desktop file because the application > > whose .desktop I stole doesn't specify it. I tried previously putting > > StartupWMClass in the .desktop file, but it had no effect. In any case, > > xprop reports that the WM_CLASS is the main Python module (not binary) in > > my package. > > Well, WM Class in .desktop file and in the application window property > needs to match for things to work properly. > > > - Eero With all due respect, that assertion does not seem to be true. As I said, I started with a .desktop that worked. That is, the application shows the correct icons both in the menu and the navigator bar. It is only when I modified the .desktop by having it start my program instead of the application for which it was designed that the icon in the navigator bar reverted to the default. The .desktop file did not have a StartupWMClass specification when it worked, so I did not put one in (although I had previously tried it, without effect). The WM Class specifications seem to match anyway. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Integration with hildon desktop
Eero Tamminen wrote: > Hi, > > ext Jeffrey Barish wrote: >> Thanks to everyone for the excellent suggestions. I tried them all, but >> nothing worked. >> >> Here's a report on my latest effort. I started with a known >> working .desktop file and replaced the name of the other application with >> the name of my application everywhere except the fields related to the >> icon. When I ran my program, I got the logo for the other application in >> the menu but the default logo in the navigation bar. I conclude that >> there >> must be something wrong in my program. Maybe I did not Hildonize it >> correctly, though I don't see anything wrong. I'm thinking that I will >> just run the application in full-screen mode so that no one can see that >> the icon is wrong. > > To see which WM_CLASS your application uses (i.e. does it correspond > to what you've specified in the .desktop file), install "x-debug-tools" > package[1], do "xprop|grep WM_CLASS" from SSH console and click your > application window. > > Or if you have your application running in Scratchbox, you can use > the xprop tool from your Linux desktop[2], just tell it to use your > Xephyr display. > > By default Gtk sets the WM_CLASS to the name of the binary (not script > calling it...). > > > - Eero > > [1] See: http://maemo.org/development/tools/ > [2] Depending on your distribution and its version, the package > name for that differs, it could be xbase-clients, x11-utils... I don't specify the WM_CLASS in the .desktop file because the application whose .desktop I stole doesn't specify it. I tried previously putting StartupWMClass in the .desktop file, but it had no effect. In any case, xprop reports that the WM_CLASS is the main Python module (not binary) in my package. FYI, I do not use Scratchbox. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: RE: Integration with hildon desktop
Thanks to everyone for the excellent suggestions. I tried them all, but nothing worked. Here's a report on my latest effort. I started with a known working .desktop file and replaced the name of the other application with the name of my application everywhere except the fields related to the icon. When I ran my program, I got the logo for the other application in the menu but the default logo in the navigation bar. I conclude that there must be something wrong in my program. Maybe I did not Hildonize it correctly, though I don't see anything wrong. I'm thinking that I will just run the application in full-screen mode so that no one can see that the icon is wrong. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: PyGTK upgrade
Lauro Moura wrote: > After looking the gtk headers and GTK docs, get_cells is available > only in GTK 2.12 and upper, while the GTK+ provided in maemo is 2.10. > So, pygtk checks for it but as it can't be found, bypasses it. Thank you for solving this mystery. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: PyGTK upgrade
Lauro Moura wrote: > On Wed, Oct 1, 2008 at 1:36 AM, Jeffrey Barish > <[EMAIL PROTECTED]> wrote: >> When is PyGTK going to be upgraded to 2.12? gtk.CellLayout has 7 methods >> that all require the cellrenderer. gtk.ComboBoxEntry creates and packs >> the cellrenderer automatically, so without the get_cells method there >> doesn't appear to be a way to use any of those methods nor to change >> attributes of >> the cellrenderer. get_cells is available only in PyGTK version >= 2.12. >> I've been waiting since April for the upgrade. > > Jeffrey, PyGtk 2.12 is available in Diablo extras since early July[1] > and in chinook since last october[2], but maybe these functions aren't > exported. Could you provide a more detailed list of these functions? > > > [1] http://repository.maemo.org/extras/pool/diablo/free/p/python-gtk2/ > [2] http://repository.maemo.org/extras/pool/chinook/free/p/python-gtk2/ First, I learned a better way to get version information. Here's what I have: gtk.gtk_version = 2.10.12 gtk.pygtk_version = 2.12.1 It appears that the implementation of gtk.CellLayout is incomplete: import gtk c = gtk.CellLayout() Traceback (most recent call last): File "", line 1, in NotImplementedError: gtk.CellLayout can not be constructed According to the documentation, CellLayout has been available since version 2.4 of PyGTK. I am actually using a ComboBoxEntry, but it inherits from CellLayout. The 7 methods that I mentioned are pack_start, pack_end, set_attributes, add_attributes, clear_attributes, set_cell_data_func, and reorder. They all appear as methods of ComboBoxEntry, although they are actually supposed to be methods of CellLayout. The one method of CellLayout that is missing from ComboBoxEntry is get_cells. My point in the previous message was that the 7 extant methods of CellLayout all require a cell as an argument. Normally, one would get the cell by calling get_cells, but get_cells is not extant. Although CellLayout has supposedly been available since version 2.4, get_cells has been available only since 2.12. I mistakenly believed that I had version 2.10 of PyGTK, hence my eagerness for version 2.12. However, assuming that gtk.pygtk_version is the reliable way to get the version of PyGTK, it seems that I do, in fact, have version 2.12 already. Accordingly, it seems that get_cells should be available. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: RE: Integration with hildon desktop
Matan Ziv-Av wrote: > > Just to be on the safe side - put a 64x64 icon in scalable/ as well. A > lot of applications only have scalable and 26x26 icons, and that seems > to work fine. Thanks for the suggestion. I copied the icon in the 26x26 directory to the scalable directory. I still get the default icon on the navigator bar. It still seems likely that I have something wrong in my .desktop file. Here is what it contains. Perhaps someone will notice something. [Desktop Entry] Encoding=UTF-8 Name=My_application GenericName=My_application Exec=/usr/bin/my_application.sh Type=Application X-Icon-path=/usr/share/icons Icon=my_application X-Window-Icon=my_application X-HildonDesk-ShowInToolbar=true X-Osso-Service=my_application X-Osso-Type=application/x-executable -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
PyGTK upgrade
When is PyGTK going to be upgraded to 2.12? gtk.CellLayout has 7 methods that all require the cellrenderer. gtk.ComboBoxEntry creates and packs the cellrenderer automatically, so without the get_cells method there doesn't appear to be a way to use any of those methods nor to change attributes of the cellrenderer. get_cells is available only in PyGTK version >= 2.12. I've been waiting since April for the upgrade. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: RE: Integration with hildon desktop
Daniel Martin Yerga wrote: > While I don't know as it's your .desktop file, I always add everyone of > this parameters to .desktop files of my apps, perhaps some of them are > useful in your case: > > Icon=name of the icon without the suffix > X-Icon-path=/usr/share/icons > X-Window-Icon=again the name of the icon without the suffix > > Note, you should have a 26x26 icon in > /usr/share/icons/hicolor/26x26/hildon/, but I think this step is in the > documentation. Yes, I have all three of those parameters in my .desktop file. My icon is in the directory that you indicated. One of the many mysteries I encountered during this exercise was that making the icon 26x26 resulted in an icon that was much smaller than all the other icons in the menu. I had to make it 64x64 before it was the same size as the others. So I have a 64x64 icon in the 26x26 directory. I got the default icon in the task navigator bar even when my logo was 26x26. Another mystery was that changing the icon did not change what appeared in the menu. I tried gtk-update-icon-cache -f /usr/share/icons/hicolor. That command updated the icon-theme.cache in the hicolor directory, but I still got the old icon. The only way I could get the new icon to display was to reboot. Evidently, there is another cache. The Diablo Reference Manual says to create a symbolic link in /etc/others-menu/extra-applications to control the order in which applications are listed in the menu. I find that what I put in that directory has no effect. Buried deep in documentation I discovered that the application must create and hold an osso Context or the application will run for ~2 minutes and spontaneously exit. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Problem with Treeview drag and drop
Glade sets the POINTER_MOTION_HINT_MASK by default. With that flag set, GTK produces only one motion-notify event on pointer motion. Pretty much kills DnD. If Nokia had an FAQ, this tip could go in it. It's strange that GTK seems to ignore the mask in an empty treeview. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Integration with hildon desktop
Jun Xu wrote: > To my knowledge, there are many parameters to determine what to show in > the navigator bar. So I guess that you can try the parameters > "StartupWMClass" in your desktop file. To know more info about desktop's > parameters file see: > http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.4.html > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Barish > Sent: 2008?9?27? 3:52 To: maemo-developers@maemo.org > Subject: Integration with hildon desktop > > After much fiddling, I managed to integrate my application in the hildon > desktop. It appears in the Extras menu along with its logo. I get the > loading message when it's starting, and then it runs. However, when it's > running, I get the default icon in the task navigator bar. Any idea what > I forgot to do? Thanks for the suggestion. I didn't see anything in that document that looked relevant, but perhaps I just missed it. I really don't understand why the Icon parameter isn't responsible for setting the icon in the navigator bar. I wish that Nokia had a document summarizing the steps for integrating an application into the desktop. The required information seems to be buried in many unrelated documents. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Problem with Treeview drag and drop
Here's more: When I remove all items from the treeview, motion-notify event works again. As long as there is an item in the treeview, I get only button-press and one motion-notify. I tried catching the event signal. With an item present in the treeview, I am not getting any other events either after the first motion-notify signal. Here's the exact sequence of events when I tap and trace in an open area with an item present in the treeview: event = event position (no button1_mask) = 224 281 event = event = event = START position = 224 281 event = event position = 224 281 event = Notice that the first event is a motion-notify that I didn't know about because there was no button1_mask. The second motion-notify is the one I knew about. Apparently the first motion-notify event is associated with the change in position from where the previous actions left off and the present ones began. I also noticed that there is no button-release at the end of the drag that moved the item into the treeview (which immediately preceded the sequence above). With no item in the treeview, I get this sequence of events: event = event position (no button1_mask) = 39 337 event = event = event = START position = 39 337 event = event position = 38 338 ... other MOTION_NOTIFY events ... event = No difference, except that with an item present I get only the one motion-notify event. The only anomaly I'm seeing is that there is no button-release event on completion of the drag. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Problem with Treeview drag and drop
As I reported a month ago, I am having a problem with Treeview drag and drop. I am not able to pick up a row unless I trace out of the treeview. I discovered something interesting today. I am catching motion-notify-event and printing out the position of the event. I observe that with a fresh treeview, I get a barrage of new event positions as I move the stylus in the treeview -- as expected. Then I drag a row from another treeview and drop it in the treeview in question. At that point, tracing on the remaining open space elicits exactly two events, the initial tap and one motion event. If I am aggressive, I can sometimes move the stylus quickly enough that the one motion event is far enough from the initial tap to trigger the drag. It's clear that I can't pick up a row because gtk is not registering stylus movement -- until I move it out of the treeview. But why would it happen that I would stop receiving motion events after dropping into the treeview? I do not get this behavior when I run the program on Ubuntu. Can anyone suggest a way to "reset" the treeview so that it starts receiving motion events again? Here's more: The drag from the source treeview doesn't start until the stylus exits the treeview. I investigated further and discovered that the same problem occurs there. So it isn't just dragging something into the treeview that initiates the problem, it's also writing something into the treeview programmatically. A test program that I wrote does not demonstrate the problem, so it seems that something is wrong with my code, but I am at a loss as to what to look for. Moreover, if something is wrong with my code, it seems odd that it works fine on Ubuntu. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Integration with hildon desktop
Antonio Aloisio wrote: > > On Fri, Sep 26, 2008 at 10:52 PM, Jeffrey Barish > <[EMAIL PROTECTED]>wrote: > >> After much fiddling, I managed to integrate my application in the hildon >> desktop. It appears in the Extras menu along with its logo. I get the >> loading message when it's starting, and then it runs. However, when it's >> running, I get the default icon in the task navigator bar. Any idea what >> I forgot to do? >> -- >> Jeffrey Barish > > Check the Icon field in the .desktop file. > > Antonio For what? I wouldn't get an icon in the menu if it weren't specified correctly, would I? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Integration with hildon desktop
After much fiddling, I managed to integrate my application in the hildon desktop. It appears in the Extras menu along with its logo. I get the loading message when it's starting, and then it runs. However, when it's running, I get the default icon in the task navigator bar. Any idea what I forgot to do? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Python compiler package missing
I am using configobj.py with my Python application. configobj.py uses the compiler package, which seems to be missing in maemo. Is there a way to install it? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: New theme
Jeffrey Barish wrote: > However, there is still something strange going on. When I write text to > the progress bar, the two buttons adjacent to the progress bar move 1 > pixel to the right (while the progress bar remains stationary). As a > result, the button on the left collides with the progress bar and the gap > on the right between the progress bar and the button on the right > increases from 1 pixel to 2 pixels. When the progressbar gets text, it receives a size-allocate signal. As a consequence, its enclosing hbox reallocates. I thought that possibly the hbox moved 1 px to the right when it reallocated, but that is not the case. The button to the left of the progressbar does not get a size-allocate signal after it is first realized, at which time its abscissa is 0. Is there a way for its abscissa to change to 1 -- which I know is happening because I see the button move -- without getting a size-allocate signal? Does anyone have an idea of what could be happening to account for the movement of the button 1 px to the right when I write text in the progressbar? I was thinking that I could design around the bug in maemo by catching the signal that caused the erroneous movement and then moving the button back where it belongs, but I haven't been able to find a signal related to the movement. I tried moving the button back where it belongs everytime the hbox resizes (using size_allocate), but the button remains 1 px to the right of its correct position. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: New theme
Eero Tamminen wrote: > Hi, > > ext Jeffrey Barish wrote: >> I would like to experiment with the parameters in the gtkrc file, but to >> avoid damaging any of the themes shipped with diablo, I thought that I >> would work on a copy of one of the standard themes. When I do that, the >> new theme is not offered as an option in Control panel | Themes. I must >> need to do something else to let maemo know that the theme exists. > > Did you change the theme name from its theme.index file? > > # cd /usr/share/themes > # cp -a echo/ echo2 > # vi echo2/index.theme > ... > > - Eero Thanks! I modified the two qgn_plat_progress_bar_*.png images so that the progress bar now has the same height as the buttons. Success! However, there is still something strange going on. When I write text to the progress bar, the two buttons adjacent to the progress bar move 1 pixel to the right (while the progress bar remains stationary). As a result, the button on the left collides with the progress bar and the gap on the right between the progress bar and the button on the right increases from 1 pixel to 2 pixels. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: New theme
Jeffrey Barish wrote: > I would like to experiment with the parameters in the gtkrc file, but to > avoid damaging any of the themes shipped with diablo, I thought that I > would work on a copy of one of the standard themes. When I do that, the > new theme is not offered as an option in Control panel | Themes. I must > need to do something else to let maemo know that the theme exists. I am also stuck on what changes to make to effect the desired change. Here's the problem: I have a button next to a progress bar. They look like this: || -- || | || -- The height of the progress bar is less than the height of the button. In Gnome, they line up -- and that's what I want. When I request a greater height for the progress bar in GTK, the buttons get higher too. It seems that there is an invisible space above and below the progress bar. I assume that it is set in gtkrc somehow. I would like to find out how so that I can override it. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
New theme
I would like to experiment with the parameters in the gtkrc file, but to avoid damaging any of the themes shipped with diablo, I thought that I would work on a copy of one of the standard themes. When I do that, the new theme is not offered as an option in Control panel | Themes. I must need to do something else to let maemo know that the theme exists. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Stock icons
Mike Morrison wrote: > There is a bug open for this. I posted a comment on it a while back > . > > https://bugs.maemo.org/show_bug.cgi?id=223#c11 > > On Mon, Sep 8, 2008 at 10:22 AM, Jeffrey Barish > <[EMAIL PROTECTED]>wrote: > >> I don't understand where stock icons come from on Hildon. I looked >> in /usr/share/icons and /usr/share/themes, but I am finding mostly pngs >> with names that start with qgn which do not seem to be icons. For >> example, >> I am using the "redo" stock image. Where is Hildon getting it from? >> -- >> Jeffrey Barish I would like to see the bug that you cited fixed, but I was interested only in knowing where maemo gets the icon for redo. I did a find from / for anything with redo in it and come up with one icon (/usr/share/icons/hicolor/26x26/hildon/qgn_toolb_sketch_redo.png), but that's not the icon that appears in my program. I have browsed the obvious folders but did not see the icon that appears in my program. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Stock icons
I don't understand where stock icons come from on Hildon. I looked in /usr/share/icons and /usr/share/themes, but I am finding mostly pngs with names that start with qgn which do not seem to be icons. For example, I am using the "redo" stock image. Where is Hildon getting it from? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Unicode characters in GTK
I have a gtk.Label with an exotic unicode character (\u21B7). It displays correctly in Ubuntu, but on the N800 I get "21B7". Is the problem that (a) Hildon doesn't support Unicode, (b) I am not invoking unicode support correctly, or (c) I am insane even to attempt this. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview drag and drop
Owen Williams wrote: > I find I have to tape and select the item, then tap and hold to get it > to drag and drop. If I tap to select and immediately start dragging, I > get the multi-select thing. No, actually for me it works fine to drag at the same time that I select, but the drag still doesn't register until I leave the widget where the drag started. The behavior is the same whether or not the item (a row in a treeview) was selected first. > If your treeview does not have multiselect, that sounds like a gtk bug. My treeview does not have multiselect. The mode of the treeview is the default SELECTION_SINGLE. I tried activating the drag explicitly using drag_begin in a motion_notify handler and also implicitly without such a handler. I presume that the implicit method uses the same drag_check_threshold, so it isn't surprising that I observe the same behavior in both cases. I think that there is something wrong with the way drag_check_threshold works on maemo. I had the idea that I should write my own drag_check_threshold. I learned that I get one event when I first tap. When I then drag the stylus, I get no more events until I leave the treeview. I have GDK_BUTTON_MOTION_MASK set (in Glade), so I expect to receive a barrage of events when I move the stylus. I also expect that the distance of the first tap will always be 0, but it is not. Often it is 0, sometimes it is a small number (e.g., 1-3), and rarely it is a large number (e.g., 14.0, 39.1). If I set my threshold to > 0.0, then I am sometimes able to initiate a drag without tracing to a point outside the treeview. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Treeview drag and drop
I have a treeview in which it is possible to reorder rows by drag and drop. (It is also possible to drag a row into the treeview from another treeview.) It all works fine on Ubuntu, but on maemo I find that to drag a row from the treeview in question to itself, I have to move the stylus to a point outside the treeview before the movement registers as a drag. Any movements confined to the treeview itself will not trigger the drag. I suppose that there must be a problem with drag_check_threshold. Has anyone else has observed this behavior? Is there a workaround? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: GStreamer and ogg on N800
According to Stefan Kost, who is one of the GStreamer developers, the symptoms that I described indicate that "the alsasink/dsppcmsink volume is too low. It's not in the gstreamer side of things", so there is nothing that I can do to circumvent the problem. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
GStreamer and ogg on N800
I followed the directions at http://ogg.garage.maemo.org/ to install ogg support for GStreamer. Success. Thanks for the very helpful package! One problem, though: Although my application now runs on the N800 and produces sound, the loudness of the sound is low. When I play the same soundfile using Media player, it is louder. I tried multiplying the volume parameter. When I multiply by 8.0, the volume is about right, but then the sound is distorted (overloading). Evidently, the gain is wrong somewhere else. I am using a playbin. Its packaging eliminates most places where I could have made a mistake. Has anyone used a playbin successfully on maemo with an ogg? Does anyone know whether Media player uses playbin? Any suggestions where the gain error could be? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Gtk error from ComboBoxEntry
Marius Gedminas wrote: > This function appeared in Gtk+ 2.12. > > Maemo 4.0 has Gtk+ 2.10. Ah. Thanks for the information. I presume, then, that there is no way to get the cell renderer. Any idea when Maemo will update its Gtk? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Gtk error from ComboBoxEntry
I am getting the error message AttributeError: 'gtk.ComboBoxEntry' object has no attribute 'get_cells' I suppose that this error must result from a maemo abridgement because the gtk documentation describes this method (in gtk.CellLayout). A ComboBoxEntry installs the renderer automatically, so how am I supposed to get it so that I can change its attributes? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
PySexy
Does anyone know whether a port of PySexy (and libsexy) for maemo exists? It provides some useful gtk widgets. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Thickness of border of popup window
Does anyone know what parameter in the default theme controls the thickness of the border of a popup window? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Python Launcher released
[EMAIL PROTECTED] wrote: > It's a bit strange because it uses "which" to discover the real path. Did > you put your script in a visible path (e.g.: /usr/bin) with execution flag > (chmod +x)? If you run "which myapplication.py" it returns a valid path? Before Python Launcher, I always started myapplication.py using "python myapplication.py", which doesn't require changes to execution flag or path. As starting myapplication.py under Python Launcher uses the same command, it didn't occur to me that I needed to make any changes. With those changes, the program starts up fine under Python Launcher without the "./" prefix. Thanks. > By now the daemon only supports shutdown (python-launcher-daemon -s). This > stops the daemon but keeps running processes alive. The only way to kill > the last application is "ps -aux | grep python" and "kill -9 PID" where > PID is the last started python-daemon-launcher process. But would be > better to use this only if your app freezes. I asked because I am running myapplication from another machine using ssh and I am viewing the program from that machine using vnc. myapplication runs fullscreen, so there is no quit button that I can activate through the vnc interface. The only way to quit my application that I know of is to go to the N800 and push the Home key. It was more convenient to hit ^c in ssh, but the faster startup with Python Launcher may be worth the inconvenience. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Python Launcher released
Luciano Miguel Wolf wrote: > Pylauncher shows this message when wasn't possible to find the script to > be executed. Try to use "python ./myapplication.py" or the full path to > the script. > > Regards, > Luciano Wolf Yes, prefixing ./ does the trick. Seems a little strange, though, that Pylauncher doesn't find a script in the cwd. One other question: Is there a way to kill myapplication.py once it starts running under Pylauncher? I used to use ^c, but Pylauncher exits once it gets myapplication running. Can I send a signal to the daemon (kill -something)? Start up is definitely faster -- by about 2 seconds. Nice work. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Python Launcher released
I installed Python Launcher. It appears to be running: $ ps aux 5142 user 18352 SW /usr/bin/python-launcher-daemon -f5 However, when I try to run my application, I get: $ python myapplication.py Realloc script: Success Possible incorrect script name. I have no idea what that error message means. In fact, I'm not even sure that it is an error message, but myapplication does not run. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Product roadmap
I am distressed that Nokia has not provided a product roadmap to developers. I learned at CES that Nokia plans to discontinue the N800 soon in favor of the N810. The application that I am developing will, of course, run on the N810, but the N810 is now about twice the price of the N800 (on the street) and is inherently more expensive because of the GPS and the keyboard. An application that does not require those features incurs a significant cost burden when run on the N810. Why would Nokia abandon an attractive price point when there clearly are applications that do not require the additional features of the N810? It would be helpful for Nokia to provide a product roadmap so that developers can assess whether a suitable platform will still be shipping at the time their development is completed. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Tap and hold in PyGTK
I am not finding information about how to use tap-and-hold in PyGTK. I found gtk_widget_tap_and_hold_setup in the GTK+ Reference Manual, but tap_and_hold_setup is not in gtk.Widget. Am I barking up the wrong tree? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: pyro for maemo?
Antonio Orlando wrote: > Much thanks, very useful! Do you know if it's *necessary* to run the setup > script? That is, I'd be interested in some way to try the module without > risking to break the python installation (which, in my case, cannot be > updated to the last version because of a bug even INdT doesn't know how to > solve...) It's a package in site-packages. You can copy it there manually and delete it if you don't like it. There are also some programs that normally get installed in /usr/bin. I didn't install them on my Nokia, but I am using Pyro only as a client on the N800. You might need them if you plan to use Pyro as a server. In any case, I don't see how a complete install could break Python, but I already had Pyro installed on my desktop system, so I just copied over what I needed. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: pyro for maemo?
Antonio Orlando wrote: > Does anyone know if Pyro (PYthon Remote Objects - > http://pyro.sourceforge.net) works with Python for maemo? > If not, are there any tutorials explaining how to perform the port? It works. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Leaving N800 connected to AC for long periods
For development, I have my N800 running all day. Surely, it's bad for the battery to run it down every day and charge it every night. But how is it for the battery to leave the N800 connected to AC all day? Is it possible to run the N800 without a battery and would that be better? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview multiple selection mode
The problem occurs when the GUI is created using Glade. By default, Glade sets the event mask GDK_POINTER_MOTION_HINT_MASK on the treeview. Unsetting this mask eliminates the problem. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview multiple selection mode
Jeffrey Barish wrote: > Jeffrey Barish wrote: > >> I just got multiple selection to work in a test application using PyGTK, >> so something is wrong in my application. > > Although I have multiple selection working in a test program, I still have > not been able to get it to work in my application. Only the first item > that I touch gets selected. I am now capturing button-press-event and > button-release-event, so I can see the press when I contact the first row > and the release after I sweep out a region, but none of the other rows get > selected. I have confirmed that the mode is SELECTION_MULTIPLE when I > receive the first selection event. I disabled the handler for the tree > selection changed signal, so the problem cannot be in my handler. I can't > think what else to try. Any suggestions? Considering that multiple selection works in my application on the desktop (albeit in a slightly different fashion), I still suspect that something is wrong with the maemo implementation of PyGTK or GTK. Moreover, the maemo implementation had to be changed from the standard version because multiple selection works differently with a stylus than it does with a mouse and keyboard. Making those changes provided an opportunity for a bug to sneak in. Clearly, the implementation is not completely wrong (if it is wrong at all) because I was able to get multiple selection to work in a test application. I am wondering whether it is possible that there is a weird interaction along the lines of one that I reported previously (tapping the scrollbar sends execution to the handler for popup menu selection done). Maybe something is interfering with the stylus tap signal so that even though the stylus did not lose contact with the screen (and there was no button-release-event), the library code behaves as if the stylus tapped only the first item. The only way I could find something like this is to start whittling down my application code until it starts working or to build up the test code until it stops working. I am hoping that someone might be able to give me some direction on things to eliminate (or add) that are more likely to contain the interfering element. Also, it would be interesting to know whether anyone has successfully used multiple selection under PyGTK in a large application. If so, then I would have to refocus my suspicions on my own code again, although I would probably still approach the diagnosis the same way. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: mpd
Austin Che wrote: > Creating the mpd user manually should let you run it. I would edit > /etc/mpd.conf and uncomment the libao section. I was getting > segfaults with alsa output while ao output worked fine. I find that uncommenting any of the audio output sections seems to do the trick. I have the ALSA section uncommented now. mpd is running now (according to ps), but I still can't get it to index any sound files. I stuck a symbolic link in /var/lib/mpd/music to the directory containing my soundfiles (ogg). I run mpd --create-db. The only output I get is: current locale is "C" setting filesystem charset to ISO-8859-1 The files in /var/log/mpd are empty. Everything is owned by user mpd and mpd has permission to read and write. I must have missed an important step. Any idea? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Python and GStreamer
Austin Che wrote: > So I went ahead and ported mpd and mpg321 to maemo. In > case anyone else wants these packages as I couldn't find them > already out there: http://austin.mit.edu/maemo I'm having trouble installing mpd. I installed all the packages that mpd requires. When I try to install mpd, I get: /media/mmc1 # dpkg -i mpd_0.13.0-1_armel.deb Selecting previously deselected package mpd. (Reading database ... 15122 files and directories currently installed.) Unpacking mpd (from mpd_0.13.0-1_armel.deb) ... Setting up mpd (0.13.0-1) ... chage: can't open shadow password fileStopped: `/usr/bin/chage -M 9 mpd' returned error code 1. Exiting. Removing user `mpd' ... dpkg: error processing mpd (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: mpd I tried shadowconfig on, but then I get "bash: not found". Installing bash would change everything. I tried creating the mpd user by running adduser manually, but then I get segmentation fault whenever I run mpd. Hints? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview multiple selection mode
Jeffrey Barish wrote: > I just got multiple selection to work in a test application using PyGTK, > so something is wrong in my application. Although I have multiple selection working in a test program, I still have not been able to get it to work in my application. Only the first item that I touch gets selected. I am now capturing button-press-event and button-release-event, so I can see the press when I contact the first row and the release after I sweep out a region, but none of the other rows get selected. I have confirmed that the mode is SELECTION_MULTIPLE when I receive the first selection event. I disabled the handler for the tree selection changed signal, so the problem cannot be in my handler. I can't think what else to try. Any suggestions? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview multiple selection mode
Jeffrey Barish wrote: > Jeffrey Barish wrote: > >> I have enabled multiple selection mode for a treeview. On the desktop, I >> am able to make multiple selections by holding down the ctrl key while >> clicking on items in the treeview. On the N800, there is no ctrl key. >> To perform a multiple selection, the Nokia user guide says that I >> should "place the stylus on a non-highlighted item, and drag the stylus >> over the items". When I follow these directions, only the first item >> gets >> selected. I tried calling the treeview method set_rubber_banding(), but >> it doesn't exist on maemo. How do I get the behavior described in the >> user guide? > > I noticed that the Contacts application permits multiple selection using > the technique described in the user guide (touch and drag). My > application does not, even though I enabled gtk.SELECTION_MULTIPLE on the > TreeSelection. I'm guessing that there is a bug in PyGTK (which is what I > am using) whereas Contacts uses GTK. Has anyone gotten multiple selection > to work using PyGTK? I just got multiple selection to work in a test application using PyGTK, so something is wrong in my application. I should have written the test application first to avoid wasting bandwidth. Sorry. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Setting environment variables at start up
Jeffrey Barish wrote: > Jeffrey Barish wrote: > >> Does anyone know how to set environment variables at log in or at shell >> start up? I have one (PYTHONPATH) that is being set incorrectly so I >> would like either to set it correctly wherever it is being set now or >> override the setting. > > Well, I found a way to prevent the erroneous setting of the environment > variable: I reinstalled the OS. I bet there's an easier way. /etc/profile -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Setting environment variables at start up
Jeffrey Barish wrote: > Does anyone know how to set environment variables at log in or at shell > start up? I have one (PYTHONPATH) that is being set incorrectly so I > would like either to set it correctly wherever it is being set now or > override the setting. Well, I found a way to prevent the erroneous setting of the environment variable: I reinstalled the OS. I bet there's an easier way. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Treeview multiple selection mode
Jeffrey Barish wrote: > I have enabled multiple selection mode for a treeview. On the desktop, I > am able to make multiple selections by holding down the ctrl key while > clicking on items in the treeview. On the N800, there is no ctrl key. To > perform a multiple selection, the Nokia user guide says that I > should "place the stylus on a non-highlighted item, and drag the stylus > over the items". When I follow these directions, only the first item gets > selected. I tried calling the treeview method set_rubber_banding(), but > it doesn't exist on maemo. How do I get the behavior described in the > user guide? I noticed that the Contacts application permits multiple selection using the technique described in the user guide (touch and drag). My application does not, even though I enabled gtk.SELECTION_MULTIPLE on the TreeSelection. I'm guessing that there is a bug in PyGTK (which is what I am using) whereas Contacts uses GTK. Has anyone gotten multiple selection to work using PyGTK? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Treeview multiple selection mode
I have enabled multiple selection mode for a treeview. On the desktop, I am able to make multiple selections by holding down the ctrl key while clicking on items in the treeview. On the N800, there is no ctrl key. To perform a multiple selection, the Nokia user guide says that I should "place the stylus on a non-highlighted item, and drag the stylus over the items". When I follow these directions, only the first item gets selected. I tried calling the treeview method set_rubber_banding(), but it doesn't exist on maemo. How do I get the behavior described in the user guide? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Rotated tabs not supported by Hildon
It is possible to get the theme to work on rotated tabs using the procedure that I outlined. The only useful documentation I found was at the maemo site: http://maemo.org/development/documentation/how-tos/3-x/howto_customization_bora.html I never did find any documentation on parameters in gtkrc (e.g., the border and gap_side parameters in the image structure). However, I made some guesses that seem to work. It would still be interesting to know where the documentation is hiding. I'll check with the gtk+ newsgroup. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Setting environment variables at start up
Does anyone know how to set environment variables at log in or at shell start up? I have one (PYTHONPATH) that is being set incorrectly so I would like either to set it correctly wherever it is being set now or override the setting. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Rotated tabs not supported by Hildon
I previously reported (in June) that rotated tabs on notebooks do not look right. I learned recently that they are not supported in Hildon even though they are supported in GTK and Nokia does not plan to support them. I was told that it should be possible to work around the problem by modifying gtkrc (in /usr/share/themes/default/gtk-2.0/). I have found in gtkrc where the theme is specified for tabs on top of the notebook. I have found the images (in /usr/share/themes/default/images/) used to create the tabs. I suppose that I can rotate the relevant images using a suitable bitmap editor and I can guess at some of the changes I need to make in gtkrc. But I'm wondering: - Has anyone already solved the problem of rotated notebook tabs? - Has anyone solved a similar problem that I can use as a model? - Is there documentation for the theme engine? I found http://library.gnome.org/devel/gtk/unstable/gtk-Resource-Files.html, but it only mentions the engine keyword without explaining the engine-specific settings. - What do I do with the modified gtkrc to make my changes appear? - Am I on the right track? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Setting an environment variable on bootup
Somewhere along the line, I figured out how to set an environment variable on bootup. Now I need to change the setting, but I can't figure out what I did. I'm looking for something like a .bash_profile or .bashrc. Can anyone tell me where to look without making me feel even more foolish? Thanks. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Identifying platform in Python code
Frantisek Dufka wrote: > But the real question is why you want to know it in the first place. > Maybe there is better way to check some specific feature instead of > checking hardware version. Thanks, all, for the informative answers. Another good answer came from Mark Waite, who forgot to copy the mailing list: the Python platform module provides some useful functions. I need to know the platform so that I can adjust the GUI. For example, on the N800, I probably want to open in fullscreen mode. It appears that I will also have to adjust spacing of some GUI elements. For now, I am using platform.machine(), although I still wonder why one of os.name or sys.platform doesn't return "maemo". -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Weirdness with events
Lauro wrote: > No Jeffrey, you're not crazy. I tried putting a TextView inside and it > kept this 'strange' behavior. > > Did you try to make a C version of this program? Just to check if this > is a binding problem of something from maemo-gtk+. Making a C version is a great idea, but unfortunately my C skills are pretty rusty. Since discovering Python, I have trouble justifying programming in C. Are you saying that you wonder whether the problem is in the Python wrapper for GTK+ (i.e., PyGTK)? It's a good question. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Weirdness with events
Run the attached program and then tell me I'm crazy. When I scroll the tree view, I get an output telling me the current popup menu selection, which means that I got to on_menu_selection_done even though on_menu_selection_done isn't connected to anything but the selection-done signal of the popup menu. Needless to say, this doesn't happen when I run the program on Ubuntu. -- Jeffrey Barish treescrolltest.py Description: application/python ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Notebook tabs on the right are not right
Lauro wrote: > > Looks like this happens to every position other than GTK_POS_TOP. > Probably these kinds of tab styles are missing from the default hildon > theme. Sounds right. So what happens now? Is Nokia responsible for the default Hildon theme? Will this problem be fixed? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Identifying platform in Python code
How do I determine in my code that I am running on the N800? Neither os.name nor sys.platform gets the job done. The former returns "posix", the latter "linux2", and I get the same strings when I run on Ubuntu. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Weirdness with events
Lauro wrote: > Jeffrey, did you set the treeview's property "allow-checkbox-mode" to > false? I was running into some strange problems with toggle cells and > selections when this mode was enabled (And it is by default). > > More info: http://maemo.org/community/wiki/MaemoGtk210Migration#M42 I tried your suggestion, but it had no effect. In any case, the document you referred me to says "the checkbox mode will automatically enable once you create a tree view with a column with a toggle renderer", but my columns all have a text renderer. I appreciate the suggestion, though. I wonder whether it is important to mention that I am using Glade 3.2.2. Is it possible that something is going wrong with the signal_autoconnect? Could there be a versions issue? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Weirdness with events
I am noticing weird behavior with events when I run my application on the N800. For example, when I tap on the vertical scrollbar of the first treeview, I wind up in my event handler for popup menu selection done. When I click on the vertical scrollbar of a second treeview, I wind up in my event handler for treeview selection changed for the first treeview. Has anyone else seen anything like this? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Notebook tabs on the right are not right
Compare the tabs of the two notebooks in the attached program. In one notebook, tabs are positioned on top. In the other, they are positioned on the right side. They do not look the same. Most noticeably, the background shading of the unselected tabs is different. Also notice that the selected tab has a blue line when the tab is on top but nothing when it is on the side. However, what is ruining my application is that the borders are different. When the tabs are on top, the borders on the top and bottom are much smaller than the borders on the left and right for the right-positioned tab. I don't observe these differences when I run the application on Ubuntu. -- Jeffrey Barish tabtest.py Description: application/python ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
Kalle Valo wrote: > "ext Mike Cowlishaw" <[EMAIL PROTECTED]> writes: > >>> And what do you mean by dropping? Does UI inform that connection is >>> disconnected or is the WLAN connections just "jammed", ie. no data is >>> transferred? >> >> It's the VNC client-server connection that drops, not necessarily the >> WLAN. > > Ah, it's an application issue? I was worried that it's a problem in > the WLAN driver. I don't think it's safe to conclude yet that it isn't a problem in the WLAN driver. I have not used VNC today. Four times so far I have observed that my ssh stops working after a period of inactivity. At that point, the N800 no longer responds to a ping. That's three applications that stop working. The N800 says that it is still connected to the network and the IP address is unchanged. Disconnecting and reconnecting always gets the connection to work again. However, I just observed ping getting restored without disconnecting/reconnecting. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Failing to connect with flasher
On Tuesday 10 April 2007 09:39:30 Frantisek Dufka wrote: > Jeffrey Barish wrote: > > ioctl(3, USBDEVFS_IOCTL, 0xbfd27320)= -1 ENOTTY (Inappropriate ioctl > > for device) > > I have no such line when trying flasher-3.0 in ubuntu 6.10. Attached is > gzipped output of > strace -o flasher.out ./flasher-3.0 --query-root-device > It was run as root. Thanks for checking, although I am now stumped. To be precise, I am running Kubuntu 6.10, not Ubuntu, but surely that difference is irrelevant. Here's my strace output, in case anyone is willing to look. I ran sudo strace -o strace-jb.out ./flasher --query-root-device I used split to lop off most of the output. The correct usb device is /dev/bus/usb/005/030. -- Jeffrey Barish strace-jb.out.gz Description: GNU Zip compressed data ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Installing NFS
Frantisek Dufka wrote: > In fact you don't need another kernel. You just need nfs kernel modules. > I think they are in bora repository so you can apt-get them on device > > [sbox-SDK_ARMEL: ~] > apt-cache search nfs > rx-34-kernel-nfs-modules - NFS modules for rx-34 kernel > nfs-common - NFS support files common to client and server > portmap - The RPC portmapper I like this suggestion, but the nfs-common package is broken: The following packages have unmet dependencies: nfs-common: Depends: adduser but it is not installable E: Broken packages I get this using the sources.list that came on the N800: #maemo:name Nokia Catalogue #maemo:essential deb http://catalogue.tableteer.nokia.com/certified/ bora user #maemo:name Nokia Catalogue (3rd party software) deb http://catalogue.tableteer.nokia.com/non-certified/ bora user #maemo:name extras deb http://repository.maemo.org/extras bora free non-free #maemo:name base-repository deb http://repository.maemo.org bora free non-free Incidentally, I also get a warning when I run apt-get update: Reading package lists... Done W: GPG error: http://catalogue.tableteer.nokia.com bora Release: The following signatures were invalid: BADSIG CBFC2BECC6903E72 Nokia Internet Tablet Archive Automatic Signing Key <[EMAIL PROTECTED]> W: You may want to run apt-get update to correct these problems It's the third line that produces this warning. Does everyone get this message? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Failing to connect with flasher
Marius Gedminas wrote: > That's normal. You run the flasher as root, then power off your N800, > plug the USB cable, then power on the N800. It will start talking to > the flasher during its boot process. > > You can also hold down the Home key on the N800 while it's booting, to > make sure it waits for the flasher. I tried both of your suggestions without success. And of course as soon as I run flasher, before it even prints the message that it's waiting for a suitable USB device, it has already made the error I reported previously: ioctl(3, USBDEVFS_IOCTL, 0xbfd27320)= -1 ENOTTY (Inappropriate ioctl for device) If you were willing to run flasher under strace, it would be very interesting to know what you see when flasher opens the USB device. Maybe flasher expects the ioctl call to fail, in which case something else is wrong here. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
On Monday 09 April 2007 23:40:13 Kalle Valo wrote: > "ext Jeffrey Barish" <[EMAIL PROTECTED]> writes: > > Also, the N800 has an annoying habit of dropping the WiFi connection > > because it is not detecting any taps on the screen. > > We don't have such functionality at all. We do have idle timer which > disconnects the connection after a specified timeout if there's no > traffic. But if I recall correctly, it should be disabled for WLAN by > default I presume you are referring to the setting in Connection manager to which Visti Andresen referred me earlier in this thread. The WLAN idle time is set to Unlimited. > You must be seeing something else. What AP are you using and what are > it's settings? What is an AP? > And what do you mean by dropping? Does UI inform that connection is > disconnected or is the WLAN connections just "jammed", ie. no data is > transfered? I confess that yesterday I myself began to suspect it was something else. I went away for a few hours and found on my return that both the VNC and ssh connections were still fine even though the N800 appeared to be sleeping soundly. However, this morning I found that the VNC viewer had lost its connection. I did not leave ssh connected, but attempts to connect were refused. I also got no response to a ping. To reestablish the VNC connection, I had to restart x11vnc because of its annoying habit of terminating when it loses its connection. I'm not sure what I did to make it possible for ssh to connect again, but once I started using the N800, it mysteriously became possible both to connect by ssh and to ping. (And the IP number did not change even though I am using DHCP.) I have no idea what happened last night to terminate connections that did not happen during my afternoon break. I will collect more data. Perhaps others have had similar experiences that would shed light on the issue. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
Visti Andresen wrote: > At least on my N770 I have the possibility to use the "Connection > manager"->Tools->Connectivity settings This window has an "Idle times" > tab, I have set "WLAN idle time" to Unlimited. Yes, I see the same things on my N800. However, WLAN idle time was already set to Unlimited. I also have Packet data idle time: Unlimited and Data call idle time: 5 minutes. Those 2 can't be set. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Installing NFS
According to the directions in http://maemo.org/maemowiki/HowToNFS_06?highlight=%28NFS%29 I need to install a kernel with NFS support to enable NFS. This seems to be the right one as I have an N800: Linux N800 with Ext2/3, smbfs and nfs at http://downloads.maemo.org/product/kernel The download button is deactivated, so I click on the Homepage link. It seems that the server it connects to is down. If this is the right kernel, does anyone know of another place to find it or does anyone know when the server (http://skler.techlab.info/) will be restored? I won't be able to install it anyway because I can't get flasher to work (see separate thread), but I figure that I should prepare in case someone is able to suggest a solution to the problem with flasher. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
Marius Gedminas wrote: > Where did you get x11vnc for the N800? Or are you using the 770 > version? I found it at this site: http://mike.saunby.googlepages.com/x11vncfornokia7702 The web site claims that the package is for both the 770 and N800. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
Scott Prive wrote: > For the Python question, all you need is the 'xterm' package. It's called > OssoXterm or something. This was the key that I was missing, believe it or not. Once I installed xterm I was able to configure ssh and get it working. With ssh working, it isn't clear to me that I am going to need xterm much, but I couldn't have gotten to this point without it. Thanks for the suggestion. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
Kees Jongenburger wrote: > I have played with this I was using the mud x11vnc found here > http://box.mmapps.net/~keesj/mud/repository_it2007/x11vnc_0.8.4-1_armel.deb > . The only problem I had was that I had to start the program again > after each connect . I have several more problems with this package. First, it requires the installation of libxdamage1. Second, it does not create an entry in the task navigator, so I must start it from a command prompt. There's the problem you mentioned. Finally, my mouse pointer disappears when it enters the viewer window, so I don't know what I'm tapping on. Only the last one is serious. Is it possible that I got the wrong libxdamage1? The version that I installed is 1:1.0.3-2osso1. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Failing to connect with flasher
Marius Gedminas wrote: > On Sat, Apr 07, 2007 at 01:35:21PM -0600, Jeffrey Barish wrote: >> I am trying to connect to my N800 with flasher. It freezes with >> >> Suitable USB device not found, waiting >> > ... >> >> I am on Kubuntu 6.10 using flasher 0.8.7. Does anyone have a suggestion? > > You need flasher 3.0 for the N800. You can get it at the usual place at > maemo.org. > > Marius Gedminas I am using the program described as flasher-3.0 40236 flasher utility (Linux on Intel x86) for the Nokia N800 and 770 at http://maemo.org/downloads/d3.php I checked the md5sum. I downloaded the program again to be sure that this is what I was using. The program does run, but flasher --query-root-device produces the above message. I tried running the command first and then plugging in the USB connection from the N800. I tried connecting USB first and then running the command. I tried running the command as root. There seem to be two problems. The first is the one I mentioned before (flash fails to open the device). The ownership of the usb device is root.root, which seems to be the case for all usb devices created at least on Ubuntu. When I change the ownership so that I have read/write permission, flasher gets past the open command that produced the error I reported originally. However, the ioctl command then fails with open("/dev/bus/usb/005/025", O_RDWR)= 3 ioctl(3, USBDEVFS_IOCTL, 0xbfe10400)= -1 ENOTTY (Inappropriate ioctl for device) close(3)= 0 I don't see anything I can do to get around this one. In fact, it looks like a bug. But how, then, is anyone else using flash-3.0 with an N800? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: x11vnc no response to taps on left of screen
On Saturday 07 April 2007 20:20:46 Acadia Secure Networks wrote: > Jeffrey, > > are you certain that the VNC problem you are experiencing is causing the > 802.11 to be dropped? My theory was that the N800 drops the WiFi connection when the screen blanks, and I know that the screen blanks when the N800 does not detect any user events. So my guess was that the problem was due to lack of taps or button pushes, not inactivity of the VNC connection. I did not mean to suggest that dropping WiFi was related to my other question about insensitivity on the left side of the screen. My theory may be completely wrong. It seems to me that VNC activity is insufficient to prevent the screen from blanking, but perhaps the N800 drops the WiFi connection when it goes into a state beyond blanking the screen, and perhaps VNC activity is sufficient to keep the N800 out of that state. What I see is that my VNC viewer becomes catatonic after a period of inactivity and at the same time I can no longer ping the N800. I have to wake up the N800 by tapping the screen. The N800 then reestablishes the WiFi connection and I can again use the VNC viewer. It's possible that I lose the connection to my VNC viewer after a period of both no user events and no VNC activity. In any case, I would like for the VNC connection to stay alive so that I don't have to physically access the N800. Is there a way to configure the N800 so that it stays fully awake as long as it is on external power? > I also use VNC and experience the problem of the > left hand side of the virtual screen not responding to mouse clicks. I > am using Tightvnc as the VNC client running on Windows XP SP2. However, > I do not experience loss of the 802.11 connection due to inactivity of > the VNC connection. Interesting to know that you see the same behavior, even though we are using different VNC viewers. Sounds like a bug in x11vnc, no? I looked at the HowTo for setting up usbnet (https://maemo.org/maemowiki/HowToSetUpUsbNetworkingDebian). I hope that I don't have to go that way (although I suspect that usbnet would work faster and more reliably than WiFi) because there is much in that document that I don't understand. For example, step 5 says: > Now you need to configure the network on the device. Add the following > lines to /etc/network/interfaces on the 770 and comment out or delete the > existing usb0-entry: Once again, I am baffled as to how I am supposed to modify the contents of a file on the N800. Is there a console that permits me to navigate to the appropriate directory? Is there an editor that permits me to make the necessary changes? Am I supposed to install these things? I hate to expose such prodigious ignorance, but I must have missed something in the tutorial. My goal is to get VNC working (pretty much there) so that I can view and interact with the N800 from my desktop system. Then I would like to get NFS working so that I can mount the desktop system on the N800. I will do program development on the desktop, and test the program by switching to the VNC viewer to run the program on the N800. The transfer of the program to the N800 would happen transparently thanks to NFS. I need to mention that I am writing the program in Python, so there is no issue of cross-compiling. As far as I can tell, I don't need scratchbox, although I am installing it now anyway. Speaking of Python, there's something else I haven't figured out: How do I run Python? It's already installed, right? Again, I seem to need a console so that I can run the python command -- or a Python shell. Jeff___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
x11vnc no response to taps on left of screen
Well, I finally got something to work. I was getting pretty discouraged. I installed x11vnc and connected to it with Krdc. I get a nice display of the N800 desktop and I can tap on most things and get an appropriate response. However, when I tap on items on the left side of the screen (in the task navigation area) such as the globe, nothing happens. Also, the N800 has an annoying habit of dropping the WiFi connection because it is not detecting any taps on the screen. I wonder whether connecting with usbnet would be a good way to avoid the latter problem. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Installing SSH
In InstallSsh (https://maemo.org/maemowiki/InstallSsh), I am directed to store the public key in ~/.ssh/authorized_keys-file. Then it says, "To get the public key-file to the Nokia 770 [800, in my case], use USB, bluetooth, mail ...". I am missing something basic here. When I connect the N800 to my Kubuntu 6.10 machine, it gets mounted under /media and two icons appear on the desktop. (Why two? One is labeled usbdisk and looks like a USB key, the other usbdisk-1 and looks like a folder. I see the same contents whichever I open.) I presume that I can copy the authorized_keys-file to the folder to get it to the N800, but then how do I get it into the ~/.ssh directory? I can create a new folder in the Konqueror window I get when I click on either icon, but if I call it .ssh, will it be ~/.ssh? In other words, where am I when I open /media/usbdisk? I was hoping to find a console on the N800 in which I could type Unix commands, but there doesn't seem to be one. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Failing to connect with flasher
I am trying to connect to my N800 with flasher. It freezes with Suitable USB device not found, waiting lsusb lists the N800 at Bus 005 Device 010. With strace I can see that flasher is trying to open the right device, but it fails: open("/dev/bus/usb/005/010", O_RDWR)= -1 EACCES (Permission denied) open("/dev/bus/usb/005/010", O_RDONLY) = 3 ioctl(3, USBDEVFS_IOCTL, 0xbf814600)= -1 EPERM (Operation not permitted) close(3)= 0 open("/dev/bus/usb/005/001", O_RDWR)= -1 EACCES (Permission denied) open("/dev/bus/usb/005/001", O_RDONLY) = 3 I get the same thing running flasher as root. I tried disconnecting/connecting the USB cable. I am on Kubuntu 6.10 using flasher 0.8.7. Does anyone have a suggestion? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Kiwi on maemo
I started reading documentation for pyGTK and quickly stumbled on kiwi. Is there any problem running kiwi on maemo? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Questions about GUI design on N800
I am still considering a port to the N800 of an application I wrote. In response to a previous posting I learned that there is no port of wxPython extant. Because my application needs to run on multiple platforms (at least Windows in addition to the handheld), I considered this gap serious. However, I have since learned that GTK+ and PyGTK have been ported to Windows, so I can satisfy the multiplatform requirement with either toolkit. However, I still have other concerns about GUI design on the N800 that I have not been able to resolve by searching the archive of this mail list. 1. Is it possible to use the display of the N800 in portrait orientation? My application currently runs on a display that is 640x480. 800x480 would be a big advantage, but I can't figure out how to reorganize my layout for 480x800. 2. Is it difficult to run an application in full-screen mode so that controls such as the task navigator and application switcher do not appear? 3. Is it possible to run an application in kiosk mode, such that the application runs automatically when the N800 boots and is the only thing that runs? 4. Is it possible to control stand-by mode programmatically? How does the N800 decide that the system is idle? If an application is running and is updating a progress bar, is that activity sufficient to keep the N800 out of standby mode? I would still prefer to stick with wxPython because of my investment in it. It's probably impossible to answer this question, but is it likely that wxPython will eventually be ported? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Re: wxPython
Dave Cridland wrote: > On Thu Jan 11 16:28:30 2007, Jeffrey Barish wrote: >> Is anyone aware of a port of wxPython to the 770 or 800? > > Before you think seriously about wxPython, I'd recommend > reconsidering - pygtk is just as good, and better in some areas. > Given the reduction in the number of layers, I'd assume that working > with pyGTK would be more efficient anyway. > > I'm speaking as someone who's worked heavily with wxPython and > started using pyGTK specifically for the 770 - I'm free from bias in > that respect. > > Dave. Nor am I entranced by wxPython, but my application needs to run both on a portable platform and Windows. -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] wxPython
Is anyone aware of a port of wxPython to the 770 or 800? -- Jeffrey Barish ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers