Nokia N900 with Maemo and Android? Yes please ...

Its more proof of concept, but its real and it could be spectacular :-) 

Loading mentions Retweet
Filed under  //  android   maemo   n900   nokia  
Comments (23)
Posted 1 month ago

Wubble : Controlling Bluetooth DUN with upstart on the n900

Wow, it’s been a long time since I posted anything. But I’ve got something worth coming out of hibernation for.

Perhaps, unsurprisingly, I got myself an n900 and it’s a great device; I’m using it as my primary phone and it really is impressive.

One thing that doesn’t work out of the box is DUN (Dial-Up Networking) over Bluetooth. DUN is one of the simplest ways to tether a computer to a phone, so it’s a useful feature to have. (The n900 does support DUN over USB by default). Fortunately, it’s very easy to turn on, as documented on the maemo wiki. However, if you want the feature to always be ready to go (say, after you restart your phone), you need to do a little more.

Like modern versions of Ubuntu, the n900 with Maemo 5 uses upstart to control most startup services, such as bluetooth. So, if we want the DUN service to be nicely coordinated, we should start it with upstart too. Here’s my script:


description "DUN over Bluetooth"
author "Philip Langdale"

respawn
console none

start on started bluetoothd
stop on stopping bluetoothd

pre-start script
sdptool add --channel 1 DUN
end script

exec rfcomm -S -- listen -1 1 /usr/bin/pnatd '{}'

post-stop script
sdptool del `sdptool browse local | grep Dial-Up -A 1 -m 1 | tail -n 1 | cut -d ' ' -f 3`
sleep 1
end script

So, what is this doing? As upstart is pretty new, and quite different from old style init-scripts, it’s worth explaining a bit.

The description and author fields are just for documentation. respawn means to restart if the main process exits. console none means don’t log stdout or stderr anywhere.

Now, the start on and stop on directives are the heart of Upstart. They allow you to express dependencies between services, events, and each other. In this case, we want to start the DUN server after bluetoothd is started and stop it as soon as we start stopping bluetoothd. You can express multiple start and stop conditions and the upstart site documents these.

With that done, we can move on to the functional code. From the wiki page, we see that the invocation of rfcomm is the key call. What happens here is rfcomm will wait for an incoming connectio request on channel 1 and then spawn pnatd and connect it to that channel. When the connection is complete, pnatd will exit and then rfcomm will too. Upstart either tracks a particular binary or a script. In either case, it execs the binary or script and watches the resulting process to see when it exits. So, we can conveniently transfer the rfcomm command line to an upstart exec directive.

However, there’s more to do. We have to register the service with sdpd so that clients know we offer DUN, and we have to unregister when the service is terminated. This can be done with the pre-start and post-stop blocks. This also gives us a place to enforce the one second delay suggested by the example script.

Registering the service is easy, but unregistering it is a bit of a chore. The example script can avoid it because it uses the while loop, but for upstart, the entire service is ‘inside’ the loop, so we must unregister to avoid adding an extra registration each time. The problem arises because you can only unregister by the service record ID which is selected at registration time, but not provided back to us. So, we must look for it ourselves. The long command line searches the list of services for DUN and then extracts the ID.

Now, all you have to do is drop the script into /etc/event.d/ and then execute start bluetooth-dun, assuming you name the script “bluetooth-dun”. Obviously, you must be root for both these steps.

You can download the script from here. I’ll probably package it up as a deb in due course, but I don’t have a working scratchbox environment right now.

Enjoy!

Loading mentions Retweet
Comments (0)
Posted 2 months ago

The Nokia N900 needs to DEHUNGERIZE!

8 hours is all I can squeeze of the N900. This is with the 3G radio turned off all day, no push email, no wifi, no bluetooth, no gps, screen turned all the way down. Something has gotta give or this will be the most expensive paperweight I carry everyday.

Anyone have any other tips to improve battery life?

Loading mentions Retweet
Comment (1)
Posted 3 months ago

Nokia N900 First Impressions

I've had the much anticipated Nokia N900 for a little over a week now, and decided to give some first impressions about the device. To give a little background, I am coming from a T-Mobile G1 running Android 1.6. Prior to that I used a Blackberry Curve, Nokia E61i, and a T-Mobile Wing, and also have owned the Nokia N800 so I'm familiar with previous versions of Maemo.


Things I like:
  1. Build Quality - the N900 is very nicely built. It definitely feels solid in the hand, and feels like it can take a drop or two. I like my phone with a little weight on it, and the N900 doesn't disappoint. It doesn't feel much heavier than my G1 which was about the same size.
  2. Screen - coming from the T-Mobile G1, I only went from a 3.2'' screen to a 3.5'' screen, but the resolution makes all the difference. The screen is crisp, and bright enough for me even on the lowest setting. Even though the screen is resistive, I enjoy using the screen once I got used it coming from a capacitive screen.
  3. Camera - I'm not much of a photographer, but I could instantly tell the difference in speed and quality of pictures with the N900. I can see myself taking more pictures just because its fast and the pictures come out very nice. Plus the N900 comes with picture editing tools out of the box which already came in handy during Thanksgiving.
  4. Multiple Desktops - having multiple customizable desktops is nice, as I can set them up however I want to with whatever I want to. I had this option before, but was restricted to a grid of icons and 3 desktops on the stock Android device, even though you can get additional desktops. The N900 desktop is only limited by the amount of stuff you are willing to stuff on it.
  5. Media Player - it feels good to finally have a media player that can play videos without any conversion. So far I've only found 1 video that wouldn't play on the N900, and it was due to an unsupported audio codec, but options KMplayer from the repository was able to play the video. Videos look great and play very smoothly.
  6. Developer support - Maemo has a wide range of options for developers. Whether your a casual developer like me or serious software developer, there are many different languages that are supported and documentation is available.

Things I love:
  1. Web Browser - I spend alot of time browsing on my mobile phone and the N900 web browser has handled every web page I have thrown at it so far. Coming from the Android browser I almost had to change the way I went about browsing websites. Browsing on the n900 is the best I've ever used. Its not perfect, but it suits my needs very nicely. Flash pages load with ease, and I'm getting alot more use of the browser then I was able to previously.
  2. Keyboard - I love hardware keyboards, and even with the 3-row keyboard the N900 keys feel nice to type on. The keyboard was a bit of an adjustment with the offset space bar, but after a few minutes I was able to crank out messages with ease.
  3. Speed - the N900 is fast, fast, and did I mention fast? The overall operating system is very speedy. Transitions, apps, webpages all load up quickly, even when i'm running multiple apps at the same time. The cpu and available ram in the N900 definitely make for a better overall experience than what I previously had.
  4. Connectivity - wifi, bluetooth, gps, 3G data, threaded conversations, skype, and it finally makes *real* phone calls :-)
  5. Freedom - Maemo is based on linux, which I use as my primary operating system, so the linux geek in me loves to have a full blown linux computer in my pocket. It gives me the option to pretty much do whatever I want with MY phone.

Things I don't like (things that need improvement):
  1. Web Browser - although I love the web browser, its still missing a few features I would like to have. Features such as browser reflowing of text (I don't like playing finger shortcut twister). Being able to use the directional keys more in the browser is something I also would like to see. I know the phone has a touchscreen, but I also like using the hardware keys, and I think aren't being used as much as possible. Occasional browser crashes have also occurred here and there with no apparent reason.
  2. Battery Life - The battery life is my biggest hurdle so far. My day usually consists of taking the phone off the charger at 6 a.m., and my phone is consistently just about dead by 2 p.m. even with light/moderate use. There are many contributing factors, mine being signal strength, but its still an issue nonetheless. I'm not expecting spectacular battery life with all of the features the N900 has, but being able to get through a full day of moderate usage would be very nice.
  3. Navigation - even though overall Maemo is pretty easy to use, I think its almost too simple. Applications seem to take too many clicks to get back and forth in some places.
  4. Community - I know that the N900 isn't a consumer device, but consumers(non linux geeks) are going to buy this device and when they need help, they have to resort to using the forums, which I find incredibly painful at times. I think the linux community has a certain stereotype that comes with it in general, and while this isn't the case all the time, I think people hold up the stereotype almost too well sometimes.

Things I don't care about either way  (yet)
  1. Apps - there are a few number of good apps available for Maemo 5 already, with more supposedly on the way. The browser takes care of most of my needs, but things like dedicated social networking apps, location-aware apps, and games are definitely needed.
  2. Missing features - MMS, portrait mode support, and other features are already in the works, so I'm not too worried about these at this point in time. Maemo has very good community support from a developer standpoint that has been established for years, and will continue to push open source, which ultimately is a good thing.
  3. Polish - Maemo 5 definitely needs some polish in certain areas, but seeing as how its supposed to be an early adopter device, fixing those things will only enhance the overall experience which isn't bad at all.

Overall, Maemo 5 and the Nokia N900 is exactly what I hoped it would be. Its fast, responsive, and a well needed change of pace, and for the most part pretty feature complete. I can only hope that Nokia builds on these positive steps they have made with Maemo. There are lots of people who want to see Maemo thrive, myself included.

I hope to do a full review after some more time with the Nokia N900, but its definitely here to stay. If you have any questions, thoughts, or anything you would like me to test out, feel free to leave a comment or send me a reply on twitter to @bdogg64

Loading mentions Retweet
Filed under  //  n900   nokia  
Comments (0)
Posted 3 months ago

Nokia N900 + Posterous Bookmarklet = Instant Blogification

 

If you love the ease of use of Posterous and you are one of the lucky people to own a Nokia N900 right now, you will find the two combined make it easy to post from web pages. You can use the Posterous Bookmarklet in the N900 web browser.

1. Go to http://posterous.com/help/bookmarklet
2. Long press the "Share on Posterous" and click "Add Bookmark".
3. Give it a name and save it.

If you want to share a page, just go to that page, Go to your Bookmarks and Click on your Posterous Bookmark and up pops the Posterous window.

I imagine this will work with other Bookmarklets as well.

       
Click here to download:
Nokia_N900_Posterous_Bookmarkl.zip (218 KB)

Loading mentions Retweet
Filed under  //  n900   posterous  
Comment (1)
Posted 3 months ago

I love that new toy smell #n900

After a long wait.  Here it is.

Loading mentions Retweet
Comments (0)
Posted 3 months ago

Still waiting on the N900? I think this about sums up the Nokia pre-order process

It was reported on http://www.thenokiablog.com that the Nokia Flagship store in the US started selling the Nokia N900 to those lucky people who put there name down on a calling list (what year is this?) to be notified when they could pick up the new phone. As the rest of us wait on our N900 to magically drop from the preorder ferry, one lucky guy has already picked is up and is probably playing with it as we speak. How much longer do we have to wait? How much longer are you willing to wait? Head over to the forums and sound off.

Loading mentions Retweet
Comments (0)
Posted 3 months ago

Nokia makes the N900 official for the US ... Go jump on your preorder

Here it is folks ... an official press release of the Nokia N900. Its "available" at nokia flagship stores and online retailers, so if your like me your waiting on a shipping confirmation email.

http://www.nokia.com/press/press-releases/showpressrelease?newsid=1355897

Loading mentions Retweet
Comments (0)
Posted 3 months ago

Nokia shows its true love, releases the N900 in the UK on Thursday

At least some people are gonna be getting some N900 action this week.

According to @NokiaFlagshipUK: "Flagship News: This is it! The #N900 selling on Thursday 19th November in our Flagship Store. £499 Sim Free. Be the first to have it."

There is supposed to an N900 meetup tonight in London which will surely be full of people wishing they purchase the N900 today.

As for the rest of the world, we're still waiting on the ships to dock and unload.

Are you waiting on the edge of your seat for the Nokia N900?

Loading mentions Retweet
Comments (0)
Posted 3 months ago

Somewhere Adrian Peterson's pockets are burning: 25th Anniversary Air Jordans

Trey Kerby of The Blowtorch searches high and low across the Internet for NBA-related goods you never knew you needed.

Its been years since I had a pair of Jordans, and while I don't see myself getting some anytime soon, you can't argue that when Jordan's come out, people lose their minds. In case you didn't know Adrian Peterson is a shoe fanatic, so I know he is probably chomping at the bit to get his bear claws on these.

Loading mentions Retweet
Filed under  //  jordan   nba   nokia  
Comments (0)
Posted 3 months ago