Bosch PS10 Disassembly

A couple of months ago an extension bit broke off in my Bosch PS10 drill driver. The picture below shows the part that got stuck – I couldn’t mange to extract it with pliers or tweezers; so I set about dissembling the drill.

image

Since most of my experience dissembling things is with various consumer electronics  this was a night and day comparison.   You can clearly tell the bosch was designed to be serviced.  First off the screws holding the housing together were clearly visible – none of this hiding behind rubber feet or anything.  The only small complication was that after taking out all the screws there was a little white clip which slid into a slot in the bottom holding the two halves together.  Since that area is fairly thin I assume there wasn’t enough material to use a screw.

image

After the clip issue everything was smooth sailing.  Another example of the serviceability of the bosch with the housing removed all the components just slid out of their various slots and cubby holes.  Not a single funny little snap together connection to be found.  I found it pretty interesting how the control components worked – from the outside I would have expected them to be more complex.  All except for the clutch control they were just simple switches.  The clutch control seemed to be some sort of linear conditional resistor which was neat. Here’s a picture after I removed the innards from the housing with the control components labeled and arrows indicating where they came from.

image

Now that everything was exposed it was on to the chuck.  There are four screws holding it together.  Once those are removed the two halves come apart and you can remove it from the motor assembly.  Turns out everything is held in place by the housing and so with it off you can just pop out all the parts.  At this point I was able to push out the broken bit end out from the back as shown in the photo.

image

After that it only took about half an hour to put everything back together.  Most of that was spent screwing around with the chuck assembly.  Since its held together entirely by the housing itself and has 5 or 6 parts it required some manual dexterity to hold in the right position.  Even though the reassembly process was a little tricky overall I am very pleased.  Since the disassembly process was relatively easy I can always clean the mechanicals or add grease if I feel like it which is reassuring.

MythTV TIP – Power Button

Every once and a while mythfrontend gets stuck for one reason or another.  Now when this happens I just ssh into the mythbox and restart gdm.  This almost always brings thing back up and running.  While I do usually have my laptop about its still a bit of a pain to break out of TV mode and start sshing in.  Seeing this gave me the idea to put my power button to good use but I felt the script was overly complicated given how well the gdm restart worked.  But since  restarting gdm requires root privileges and thus a password to run I was stymied.  Until I learned about the sudoers file that is.  Editing this file lets you gives users the ability to sudo certain commands without a password – it actually does way more than that but its not relevant to the post.  Now if you are not careful editing sudoers can scrap your system so precede with caution.  Now on to the good stuff.  To edit sudoers use the following command.

sudo visudo

This will apply some basic sanity checking before you save the file; making it every so slightly more difficult to slag your system.  Anyway add the following line. (replace user_name with the user mythfrontend runs under)

user_name ALL=NOPASSWD: /etc/init.d/gdm restart

Make sure to put this at the end of the file otherwise rules may override it.   That took me about half an hour and countless fiddle logout/login cycles.

Now add something like the following your your lirc file.

#Power Button
begin
    remote = remote_name
    prog = irexec
    button = Power
    config = sudo /etc/init.d/gdm restart
end

Now after you logout and log back in your power button should restart gdm allowing you to ‘fix’ any frontend hanging issues from your remote.

*Note – This tip has no warranty or support.  If it deletes your files or blows up your computer don’t come crying to me.

MythTV Tip – MythWeb Memory Limit

Once you start getting more than 150 recordings you start hitting the memory limit of 32MB when you try to view all recordings in Mythweb.  The obvious solution is to just up the memory limit but its not obvious where to do that – at least not to me.  After some searching I found this post.  Which gives the correct location(at least for me on Mythbuntu 8.10) /etc/mythtv/mythweb-config.php.  Then I just upped the limit to 64MB so I figure I’ll be good till around 300 recordings. Obviously you can increase it even higher if you like. 

As an aside I imagine it is the on demand creation of all the thumbnails that sucks up all the memory.

*Note – This tip has no warranty or support.  If it deletes your files or blows up your computer don’t come crying to me.

Hosting Hiccup

Earlier today I was trying to edit one of my posts using live writer. But I kept getting this error.

image 

So I open up firefox and try to open my blog and get back a nice 404 error – not good!  I had been playing with installing some software on the site a few days ago and figured maybe I had messed something up along the way.  But after 15 minutes or so I couldn’t figure anything out so I fire off a support request to my hosting service Dreamhost.  Since the web site is just for my blog I gave it low level priority and didn’t really expect a response for a couple of hours given that its was a Saturday night.  However much to my surprise I got a reply in about 15 minutes from Dreamhost support saying everything is backup and running.  Now that’s what I call service!  Considering that I have had this site a little over a year and this is my first issue I must say I am pretty happy.  So in conclusion.

Thanks Dreamhost!

 

*Note – I didn’t receive any incentive, except for good service, to write this post. 

MythTV Tip – Guide Button

Although I don’t use it much MythTV has a nice ‘Guide Screen’ where you can see what is coming up on TV.  And the remote I use for MythTV has a guide button on it so I figured I’d set it up so when you press it the ‘Guide Screen’ comes up.  There are a couple of things you need to do to set this up.

  1. Have your remote setup to control MythTV. 
  2. Check/Edit the MythTV keybindings – this is where you setup how keyboard shortcuts are interpreted by MythTV.
  3. Edit your lircrc config file – this is where you setup what commands each button sends to MythTV.

One is outside the scope of this post so for the rest of the post I’ll just assume you have the remote setup and working.

Two is pretty easy.  Just open up MythWeb -> settings -> key bindings.

image

After some searching I found the following two shortcuts that concern the guide, the ‘TV Frontend -> Guide’ command and the ‘Program Guide’ jump point, shown below.

image 

image 

After some experimentation I determined that the ‘Program Guide’ jump point works anywhere but when you exit from the guide screen you are dumped back into the MythTV Main Menu.  The  ‘TV Frontend -> Guide’ on the other had only works if you are watching a show/recording but it pauses it before you enter the guide and when you exit brings you back to where you left off which is nice.  Now this is probably just a coincidence and may change in future MythTV versions but if you set both you actually get the best of both worlds.  If watching a show/recording it pauses for you and if your in the menu somewhere it still goes to the “Guide screen”.  So set both of these to the same key, I used S, and your half way there.

Step three isn’t bad but it depends on exactly how you have your remote setup. But I’ll outline the basic steps.

  1. Find your ‘lircrc’ file its probably in /username/.mythtv directory
  2. Add/modify an entry for the guide button – it should look something like this

# Guide button (EPG)
begin
    remote = YourRemoteName #Optional
    prog = mythtv
    button = RemoteButtonName
    config = S
end

And that’s it, after a quick reboot you should be able to press the guide button and have the ‘Guide Screen’ come up.

*Note – This tip has no warrenty or support.  If it deletes your files or blows up your computer don’t come crying to me.