Skip to main content

Gadget Wisdom

0 Responses

Simple Power Management Under Fedora

SATA-Kabeladapter
Image via Wikipedia

This post is a result of experimentation, but also of some information from the RHEL6 Power Management Guide. Most people tend to ignore power management, but remember, power management can result in lower utility bills as well as increased life of components.

First, turn on CPUSpeed if it isn’t on. It may require enabling BIOS settings. Look for names like SpeedStep, Cool’n’Quiet, PowerNow!, ACPI, SMART to enable in BIOS. Then, set CPUSpeed to run. CPUSpeed dynamically adjusts the speed and voltage of the CPU based on demand.

While you’re in BIOS, take the opportunity to disable any system piece you aren’t using. For example, your parallel port.

Tuned is a daemon that monitors the use of system components and dynamically tunes system settings based on that monitoring information. A detailed system configuration might be too time-consuming for most. Most people will not do certain things unless it is easy and does not inconvenience them too much. Thus, tuned comes with preset profiles.

Active-State Power Management (ASPM) saves power in the Peripheral Component Interconnect Express (PCI Express or PCIe) subsystem by setting a lower power state for PCIe links when the devices to which they connect are not in use. ASPM controls the power state at both ends of the link, and saves power in the link even when the device at the end of the link is in a fully powered-on state.

Aggressive Link Power Management (ALPM) is a power-saving technique that helps the disk save power by setting a SATA link to the disk to a low-power setting during idle time (that is when there is no I/O). ALPM automatically sets the SATA link back to an active power state once I/O requests are queued to that link.

tuned has the following profiles:

  • default – lowest impact on power savings, only enables CPU and Disk Power Savings
  • desktop-powersave – designed for desktops. Enables CPU, Disk, and Ethernet savings, as well as ALPM power saving for SATA.
  • server-powersave – Designed for Servers. Enables ALPM powersaving for SATA host adapters, disables CD-ROM polling through HAL (refer to the hal-disable-polling man page) as well as the CPU and disk power controls.
  • laptop-ac-powersave – medium-impact profile for laptops on AC. Enables CPU, ethernet, disk, wi-fi, and ALPM power saving for SATA.
  • laptop-battery-powersave – high-impact profile for laptops on battery. All the same from the AC-powersave, plus multi-core power-savings
    scheduler for low wakeup systems and makes sure that the ondemand governor is active and that AC97 audio power-saving is enabled. Will work for any system, not just a laptop, there will be a noticeable impact on performance.
  • throughput-performance – server profile for throughput performance. Disables power saving mechanisms and enables sysctl settings that improve the throughput performance of your disk and network I/O, and switches to the deadline scheduler
  • latency-performance – server profile for typical latency performance tuning. It disables power saving mechanisms and enables sysctl settings that improve the latency performance of your network I/O.

To list available profiles,  use the command tuned-adm list.

To switch to another profile, use tuned-adm profile profile_name.

Reducing the amount of work performed by the hardware is the best way to save power. Applications that request unnecessary work prevent hardware from entering a reduced state. Fedora has already done a lot of work in reducing unnecessary processes, but it can’t do everything. Audit running processes and discontinue anything unnecessary.

But, let’s address one concern. By turning things off or slowing them down, it means you may have a few seconds wait while they reactivate. That may be a downside, but the secret is to find a balance between always on and always off. It is better to turn it on than leave it off. Plan well early on.

We’ll have more on this later.

Published on July 19, 2010
Full Post
0 Responses

So You Want to Only Use One Microblogging Service

A highly simplified version of the RSS feed ic...
Image via Wikipedia

Last time, we discussed some of the things we’d learned about Status.net and the OStatus standard. Now, our understanding is far from perfect, but we keep trying to learn more. This is some of our attempt to summarize it.

So, here we are once again looking at how other services play with Status.net. We’ve covered the fact that Twitter doesn’t. Although, since Twitter has an API, a bridge has been created that imports the tweets into your timeline as notices. There is a Facebook bridge as well, but we have yet to test it, as we aren’t Facebook users.

But many sites do support standards that Status.net can use. A service has to be PuSh enabled. OStatus is reliant on the fact that most sites noawadays put out an Atom or RSS feed. The problem is real-time notification. That is where PubSubHubbub(PuSh) comes in. It is a simple extension to RSS and Atom feeds for real-time subscriptions. Basically, the feed declares a URL for the Hub server. Now, instead of the subscriber server/reader repeatedly polling the site to look for updates, it can register with the hub to be notified of updates.

That is how OStatus is built. Each site builds a feed of updates and uses PuSh subscriptions to send relevant updates to other sites, and each site is responsible for pushing those updates to the correct user. The rest of OStatus is also built on top of Atom feeds, including extensions to describe social activities like replies, following, user profile information, etc. As their wiki describes it: “the real beauty of it is that at this point we[OStatus] already have something useful, without anything StatusNet-specific. In fact you can already subscribe to someone’s public Google Buzz feed as an OStatus remote user, and they haven’t done anything special for us!

So, there is one example. You don’t need to be on Google Buzz. If Google Buzz supports PuSh and OStatus, you can subscribe to their feed. Let’s go a step further:

  • WordPress – All the blogs on WordPress.com have PuSh enabled. If you run a WordPress blog elsewhere, you can set up your site as a Hub using a plugin like PushPress. If you are using Feedburner with Pingshot enabled, PuSh is already enabled and no plugin is needed. Sound useful? Why not subscribe to this blog, which is PuSh enabled, by entering the URL into the Remote Subscription option on your identi.ca/status.net account?
  • Tumblr – We tried the test-tumblr that the Status.net wiki used and that was recognized, but a random Tumblr site would not work.
  • Google Buzz – As mentioned above…we tried a few accounts and it does work. It is, of course, one-way.
  • Posterous – It would allow us to subscribe to a random posterous account we picked.

Status.net is working on some workarounds for additional integrations, but any established site can become PuSh enabled and thus support subscriptions in status.net. With a little extra work supporting the standard, they can support activity streams, replies, and other user events without any change in the user experience, except opening it up to interaction with any other site that supports those standards.

Imagine this a few months/years down the road if people support it. It would be like Email. Anyone can self-host or sign up for a social media account on whatever server they want, but anyone on any other server can communicate with them.

We’re in on the ground floor. We’re on our status.net which imports Twitter and lets us subscribe to any PuSh enabled site. And since we run it, we don’t have to worry about the service being discontinued or falling out of favor, because the next service is likely to be…if not immediately compatible, eventually bridged.

In the meantime, check out supporting PuSh on your site. Next time, we hope to have more to say about WebFinger…or how to tie your identity to a website.

Published on July 11, 2010
Full Post
3 Responses

So You Want to Take Control of Your MicroBlogging

Image representing StatusNet as depicted in Cr...
Image via CrunchBase

If you haven’t heard of Twitter, you may have been living under a rock for the last few years. If you aren’t quite sure what it is, then you are not alone. People who have Twitter accounts aren’t quite sure what to do with them, and some people will disagree on the point of Twitter.

Twitter is the most popular example of microblogging, although Facebook, extremely popular, is mostly such a service. Twitter limits updates…or tweets to 140 characters. This limit has made URL shorteners popular. There are advantages to the brevity of microblogging, and inserting URL allows you to elaborate elsewhere. We use it not only to interact with those who share interests, but as a real-time substitute for RSS. RSS, or Really Simple Syndication, is the standard for subscribing to blogs.

So, although some have agreed with us, it is important we don’t miss important information. Many Twitter clients only go back so far. And your Tweets are held closely by Twitter itself. Twitter can cancel your account at any time…they don’t need a reason. While you can appeal it, they owe you nothing. You aren’t paying for the service.

As Backupify, a service that backs up cloud services to its site for you, and provides them in downloadable form, stated, “Imagine if your phone company behaved in a similar fashion, disconnecting your phone number(s) because it didn’t care for the phone conversations you were having. Of course, that could never happen — and not (just) because of government regulation. You pay for your phone service, so the phone company has a certain financial incentive to care for your business. Facebook, Twitter, and most web apps are free. Zero dollars buys you zero service level guarantees. Never forget that you have access to Twitter and Facebook only so long as it is convenient and beneficial to them.

Now, we do have an account with them, but we chose a different route. Being open-source enthusiasts, we looked for an open-source solution. We came up with StatusNet. It is a microblogging server written in PHP that implements the OStatus standard. OStatus is an open standard that allows people on different social networks to follow each other. It supports PUSH notification.

Diaspora, if it gets off the ground, is a proposal to replace Facebook with an open distributed platform. Anyone could run the software, thus allowing them to control their user data locally. Their local software would interact with other people’s to form a decentralized social network. It would thus work like an email address. Anyone could host your email…but you could choose to contract with someone to do so, and thus ensure a greater responsibility on the part of the provider, or choose a free option. The idea sounds great, and we wish them luck…

Unfortunately, without interoperability with existing services, it will likely occupy the same space as Identi.ca, the most popular and the original Status.net service. There are a lot of people happily on Identi.ca, but it is not a mainstream product.

We already had an Identi.ca account, but now we are running our own Status.net server. And Status.net supports a Twitter Bridge. It allows you to automatically send your notices to Twitter, send local “@” replies to Twitter, subscribe to your Twitter friends on the service, and import your Friends Timeline. The last is not enabled for Identi.ca, but allows you to import your friend’s tweets into your timeline. So, the Status.net server imports the Twitter data, which means that you have it on a server controlled by you.

Now, running your own server somewhere may be a bit too much for you. So Status.net offers single user instances, as well as private community instances. It is extensible with plugins. So any functionality you want could be built on top of it, or interact with.

Using the open standards it supports out of the box, you can subscribe to people from your status.net account who are on Google Buzz, Tumblr, Posterous, WordPress.com, Livejournal…etc.  140 characters isn’t required. You can set your instance to support 140 characters(Twitter Standard), or more or less than that.

Interoperability will hopefully lead to longevity. Even famous Twitter account ShitMyDadSays, has migrated to a Status.net instance. Having accounts on every single service can be confusing. If you can have an account on one service…and link to people on other services, isn’t that better?

We tried to ask a few questions of the founder of Status.net, in regards to how people were using the Twitter integration specifically, but the question was a bit open-ended, and thus we did not quite get all the answers we’re still looking for. Either way, it’s fun to play with.

More on this to come. In the meantime, any questions?

Published on June 27, 2010
Full Post
0 Responses

SouthEast Linux Fest is Over

This weekend, our Editor was down at the SouthEast Linux Fest in South Carolina. Three fun filled days of interacting, speakers, vendors, free stuff, and oddly enough, playing board games. The panels put a lot of interesting thoughts on the table, and over the coming weeks, we plan to discuss a few of them.

These sort of discussions always light a fire under us. Already, we’ve started hardening our servers in various ways, started looking at a new way to explain MythTV to the guys over at HTPCentric, got scared about IPV6, etc.

SELF’s speakers were all filmed, and the video will be available eventually. We’ll post links when available.

Published on June 15, 2010
Full Post
1 Response

Planning for and Optimizing Solid State Drives

This past week, we installed our first Solid State Drive. We had a lot of concern about this technology early on. There were reports of gradual performance degradation.This has been improved, however, and we’ll discuss some ways to better optimize your experience. Hopefully, in future Linux releases some of these options will be configured automatically

The biggest development that has been made to preserve longevity on these drives is TRIM. The TRIM command allows the operating system to inform the drive which data blocks are no longer in use and can be wiped. TRIM is supported beginning in kernel 2.6.33 and can be enabled under Linux by editing the mount options to include the discard option, such as in the below example.

/dev/sda1 / ext4 discard,defaults

Other suggestions include removing journaling and limiting read and writes to the drive. This will extend life as well, but without journaling, there is some risk of data loss in the event of a crash. However, Theodore Tso debunked this thought last year in a blog post, in which he concluded that the overhead is minimal.

  • Another Linux-based tuning technique is to disable Linux from writing the last accessed time to files. This can be done by adding noatime to the above command. Realistically, on many computers the last accessed time is not extremely important. Do not confuse accessed time with the last modified time.
  • Add the option elevator=deadline to your grub boot configuration to use the deadline disk scheduler. If you have a slower CPU go for the noop scheduler. The default schedulers are optimized for traditional hard drives.
  • Move your Firefox Cache to RAM – Open Firefox and enter about:config in the location bar.  Right-click and choose the option New->String.  Enter “browser.cache.disk.parent_directory” for the preference name, and for the string value enter “/dev/shm/”. That will also reduce writes and improve performance.
  • Reduce kernel swappiness(the tendency for the OS to swap from physical memory to a hard drive based swap file). Add vm.swappiness  = ? to /etc/sysctl.conf. Default is 60, out of 0-100. Some suggest lowering it all the way to 0. Experiment with what works for you. This suggestion is not limited to systems with SSDs.

Bear in mind for the Firefox and Swappiness suggestions, you should have enough RAM to support reducing the swap and moving the cache to memory.

Now that we’ve covered optimizing the solid state drive, let’s discuss usage. We used the Kingston 30GB SSD, reviewed here in comparison to the Intel value SSD, which we also considered. The SSD, because of price and size considerations, is not ideal for all functions. You can see a picture of it just before install in the laptop we used to write this blog entry above.

SSDs are small in size, but speedy. Their best use is as an operating system drive. In our first test case, which is a laptop, they are the only drive. However, the laptop is mostly OS only. All media and other files are stored on a file server. With this drive, the laptop flies along and is extremely quiet as an SSD makes no noise. We have not done any battery life tests, but there is some evidence from those who have that some SSDs may be less energy efficient than conventional hard drives.

In conclusion, with the price of SSDs continuing to drop, it is a good time to start considering it as a boot/OS drive for your systems. Now that we’ve grown comfortable with its usage, we plan on expanding it to future renovations, including in our file server.

Update(06/03/10): The day after we wrote this, AnandTech released a review of three SSDs, including our Kingston 30GB as well as the Onyx and Intel budget SSDs. Certainly makes us feel better about our purchase.

Published on June 2, 2010
Full Post
0 Responses

Review: MJSI Hydroright Dual Flush Converter

After writing about a dual flush retrofit kit, we became enthused about the idea of installing one of these ourselves. We don’t have a plumber on staff, so our intrepid editor was forced to play with his own toilet. Please excuse if our terminology falls short as we try to explain basic toilet technology.

Our toilet is a 1.6 Gallon model installed around 2000. A traditional toilet uses a simple system. The ballcock floats on top of the water. when the tank is emptied, the ballcock lowers, thus activating the fill valve until the ballcock is lifted up to the off position by the water. The fill valve on this toilet was replaced with a newer, more reliable design, the concentric-float fill valve, and thus there is no ballcock. The concentric design is required for this retrofit kit.

The model is the MJSI HYR270 HydroRight Drop-In Dual Flush Converter, purchased at a local Home Depot. The nice thing about this design is that it does not require removal of the toilet tank to install. If you have to go as far as to remove the toilet tank, you might as well buy a new toilet with integrated dual flush, which we recommend if you have a really old toilet.

If you need to replace your fill valve with a concentric float one, which as mentioned is required, MJSI makes an adjustable one that can also help you save water, and sometimes it is better to get components from the same manufacturer, as you can be reasonably certain they work together.

As you can see in the image, this toilet has a typical flapper. The flapper is a rubber stopper that is connected to the handle by a chain. When you press the handle, it pulls up, allowing water to empty from tank to bowl. For this retrofit, we will be replacing the flapper with the retrofit unit.

Installation was surprisingly easy. First we shut off the water and drained the tank. Then we removed the handle and the flapper and set them inside in case the mechanism did not work. The retrofit mechanism slips in place of the flapper and is a tall unit, so you need sufficient clearance. It is then secured with a zip tie in the back to the overflow tube. The overflow tube is next to the drain(where the flapper is normally inserted), and serves the purpose of preventing the tank from overflowing.

A button is then inserted into the hole where the handle once was, and attached to the control box, which is connected to the retrofit unit by a blue cable(as pictured)

Then, after following some calibration tests, your toilet is ready to be more water efficient. Fun, huh? The actual installation only took about twenty minutes, and we’re sure it would be faster the second time. We’ve given some time to test and the toilet is running without problem. The button mechanism has a low flush for liquid waste and a high flush for solid waste.

The only problem is making sure guest know how to properly use the new mechanism, but that is fairly easy to explain. So, for less than thirty dollars, we’ve committed to water savings, efficiency…and it makes for an interesting conversation piece.

Any questions?

[asa]B002NKRR7Y[/asa]

Published on June 2, 2010
Full Post
0 Responses

Froyo is Coming…Are you Ready?

Giant Google Android statue with puppy and cupcake
Image by ToastyKen via Flickr

Android 2.2 is here…well, not on our Android devices. But Google announced the new version, codenamed Froyo. Here are some highlights:

  • Dedicated shortcuts on the Home Screen for Phone, Launcher, and Browser.
  • Password unlock in addition to pattern unlock
  • New UI for camera controls
  • Portable Hotspot built-in
  • Improved Browser Performance
  • Improved Application and Memory Performance
  • New Media Framework
  • Voice Dialing over Bluetooth
  • App Storage on SD card
  • Apps Can Now do Data Backup and Restore
  • Car Mode and Night Mode controls and configurations to adjust their user interface for these situations
  • Adobe Flash support(More on this here)
  • Desktop to Mobile functions

We don’t have any pictures, but Engadget does, and they can be found here.

Well, voice dialing over Bluetooth has been sadly missing, and is a safety concern. With the increased public program to prevent texting while driving, and to encourage safety, it seems this is the best move. We were outraged this option wasn’t enabled initially, as were many.

The keynote also demonstrated being able to initiate app installation and other functions on your desktop, and transfer that to the phone. This, and automatic updates, also coming, are two features that people have felt are lacking in the Android marketplace. Third party apps have tried to fill the gaps, such as AppBrain, which is very useful, but still needs to call the Android Market to install.

Hopefully, it will be in our hands soon.

Published on May 20, 2010
Full Post
0 Responses

LED Lightbulbs That Don’t Stink Coming Soon

LED lamp with E27 Edison screw.
Image via Wikipedia

We love the idea of LED lightbulbs. Like so many technologies, CFLs just started to get good, and adopted by the mainstream when the latest thing comes. LED lightbulbs last over ten times longer, use less electricity, and…are dim. Very very dim.

We can’t even find equivalency on most LED bulb packages we’ve seen. We’re used to CFLs being categorized as the equivalent of a specific watt incandescent. Those stats are suspiciously missing from LED packaging. They use the more accurate lumens…but how many people have a sense of what a lumen is?

We checked the lumens on a  CFL and compared them to the LED and found it…again. DIM.

The New York Times reports that Osram Sylvania’s  Ultra bulb, available in August, and Philips’s EnduraLED, which will be in stores in the fourth quarter, will use just 12 watts of power to equal the light output of a 60-watt bulb. The 60-watt bulb is the standard of light bulbs.

The prices for these bulbs will be $30-$60…and hopefully in 2 or 3 years, down to $20, which is more expensive than a CFL bulb…but it does last ten times longer, uses less electricity, and doesn’t have some of the CFL issues, such as mercury usage.

Perhaps we’re skeptical, but we’ll believe it when we see it. We’ll gladly be early adopters, and hope LED bulbs get to where we’d invest.

Published on May 17, 2010
Full Post
0 Responses

Reading News and Such on the Android

Information consumption is one of the primary reasons for going with an advanced phone over a simpler option.

Traditional media has been slow to get into the online game. That is not to say they don’t have an online presence, but with some considering putting their content behind paywalls and such, it is clear things cannot continue as they are.

The New York Times released its Android app, apparently very similar to its iPhone app. We had been using Newspapers(pictured right). It is a simple web application. Essentially, it allows you to scroll the various news sources in a menu format and pull the mobile sites up…so it is more like a directory. But directories still have their place.

Our current favorite app for reading news on the Android is Newsrob, available in pro and free versions. It is an RSS reader that syncs to Google Reader. It also caches articles locally. Recently, during a plane trip, in airplane mode, we could read all full content RSS feeds that had been cached to the phone. It encouraged us to buy the pro version. Developers need to be rewarded, or they won’t continue to develop.

It may not be encouraging for newspapers and other sources that a mobile phone app can make purchasing the paper obsolete. Hopefully, papers will find ways to monetize this sort of reading in such a way that allows them to stay in business, but does not make readers jump ship to free sources of information. Putting the content behind a pay wall has not worked so far.

But at the least, we are as well informed as we want to be. What do you use to get your information fix? Do you put news widgets on your home screens? Share with us.

Published on May 13, 2010
Full Post
0 Responses

Dropbox Comes to Android

Image representing Dropbox as depicted in Crun...
Image via CrunchBase

Yesterday, we joined the Dropbox for Android Beta program, planning on using it for a day or two and then writing about it. Today, Dropbox is in the Android market. Either we got in on the tail end of that beta, or Dropbox decided to press forward.

Dropbox is a file sync service that gives you a default 2GB of storage in the form of a directory on your computer. Anything in that directory is synced to their service. More memory is available for an additional charge. We use it to keep our documents and data files synced between computers.

Now, we can access our important synced files using the dedicated Dropbox app. One more way of making the information we want available anywhere. We’re excited, are you?

Published on May 5, 2010
Full Post

Get New Posts By Email