Tag Archives: Ubuntu

Posts tagged with “Ubuntu” on Jane Talks tech

Don’t upgrade to Ubuntu 13.10 (yet)

I installed Ubuntu 13.10 on my HP dv7 3080us laptop. This laptop’s a few years old but it’s (still) a beast. Ever since I installed this version of Ubuntu, I’ve run into problem after problem. For the first time in a long while, I’ve come to regret upgrading to a new Ubuntu version. The main problems I’ve run into:

  1. Suspending my laptop causes it to crash [this almost never happened with 13.04]
  2. Sometimes, locking my laptop causes it to crash
  3. Crashes more frequently on cpu-intensive tasks like compiling than 13.04 did

As a developer, this is pretty freaking inconvenient. I’m not sure how this release got out of the gate but I sure hope that Canonical knows that no matter how pretty they make Ubuntu, it will turn off users if we can’t use it! As always, I’m dutifully submitting crash reports and even volunteering for further bug triage if necessary. Hopefully there is someone at then end of that line listening.

In summary, stick with 13.04. I wish I did. 🙁

Setting up an external monitor to work with Ubuntu (Oneiric/11.10)

Summary: This post details a relatively simple way I got my external monitor (ASUS VH242H) to work with Ubuntu-powered notebook (HP dv7-3080us). Check out my xorg.conf or see the gallery of images if you are having trouble getting your setup to work.

Update: A video of the experience has been uploaded to my YouTube channel! Did you know I had one?

I started my new year with a sick husband and installing Ubuntu 11.10 on my notebook. This isn’t my first time around this OS-switching rodeo but this time, there is more than just curiosity driving my switch i.e. *cough*grades*cough*. I’ve never really gone “all the way” with the Linux distributions I’ve tried for a host of reasons but with each version of my favorite distro (Ubuntu), a lot of my reasons for not staying have evaporated. One of those things is a pain-free external monitor setup. Well, I am here to report that, with a little trial-and-error, I now have my external monitor connected to my laptop!

Here are the steps I took to get my external monitor working on my Ubuntu laptop:

First, backup your xorg.conf file by typing this command into your terminal:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.bak{add-a-date}. That way, if you accidentally screw things up, you can go back to a working xorg configuration file.

Next, connect your external monitor with the HDMI cable (I guess you can use whatever cord you have but I don’t know if these same instructions will apply). At your terminal prompt, type: sudo nvidia-settings. Ignore the bunch of messagesyou’ll get in the terminal.

Click “Detect Displays” and your new monitor should show up as “Disabled”. Then, click on the discovered monitor and select “TwinView”. Your screen should temporarily flicker and/or display garbled output. You will be prompted to save your new settings (save them). Click on “Save to X Configuration File” and back this configuration up like in step 1.

Settings after Ubuntu detects the external monitor
Nvidia X Server Setting for Disabled Monitor
Nvidia X Server Setting for Disabled Monitor

You may have noticed that before you added the external monitor, your laptop’s monitor configuration was set to “Separate X Server”. However, after adding the new monitor and saving the new configuration, my laptop’s monitor was automatically set to TwinView as well.

Open terminal again (Ctrl-Alt-T) and type sudo nvidia-settings again to get back in to the Nvidia X Server Settings application. The formerly disabled monitor should now display the max. resolution of the new monitor. Click on the new monitor and make sure TwinView is still the configuration selection for both monitors.

NVIDIA X Server Settings Laptop Monitor
New X Server settings for the laptop monitor
New settings for the external monitor

Click on the rectangle representing your laptop monitor and confirm that the position for your laptop monitor is now “Absolute” with the value of “+0+0”. Then, click on the newly added monitor’s rectangle and make sure that the position for that monitor is what you want it to be i.e. to the right of your laptop monitor, to the left, etc.

I’m a bit leery of messing around too much with my Nvidia X Server settings but I’m glad I finally discovered a combination that works for my laptop + external monitor set up (even after rebooting :)). Check out my current xorg.conf file on Pastebin.

Now for the bad part, if you are like me and tried other options like Separate X server or whatnot, be prepared to restart your computer to find your computer unusable i.e. graphics gone wild. The good news is since the problems were brought about by editing xorg.conf, if you have a backup of xorg.conf that works, you can simply drop to the text console instead of graphically logging in. Then, you can overwrite the bad xorg.conf. I believe the command to drop to the text console is: Ctrl-Alt-F2.

Let me know your experiences and workarounds to getting an external monitor setup in the comments!

Network Manager applet crashes periodically in Ubunty 11.04 / Natty Narwhal

Since I’ve been using Natty Narwhal a.k.a. Ubuntu 11.04, I’ve increasingly run into a scenario where the Network Manager applet crashes. Now, any old app crashing on Ubuntu doesn’t catch my attention quite like nm-applet‘s does because the crashing of nm-applet TAKES THE INTERNET WITH IT!

It’s maddening because I’m typically crash-surfing 10 sites at once and all ten of them suddenly have those “server” errors. Before, I cottoned on the the fact that nm-applet was having a crappy day, I would do the troubleshooting dance of making sure whatever proxy I was using didn’t time out on me or that Firefox hasn’t automagically started surfing in “Offline mode”.

Once I noticed that my Ubuntu wireless notification icon was gone, restarting is was as easy as:

  1. Firing up terminal. Do this by hitting the Windows/Super key and start to type “term”;
  2. Enter the words, “nm-applet” and it should bring back the notification icon. The only pitfall with this approach is that closing the terminal ends the nm-applet process you started from that terminal. My advice is to consign that particular terminal to your 4th workspace to avoid accidentally closing it.
    jane@Jumanji:~$ nm-applet
    ** (nm-applet:4258): DEBUG: old state indicates that this was not a disconnect
    ** (nm-applet:4258): DEBUG: foo_client_state_changed_cb
    ** (nm-applet:4258): DEBUG: foo_client_state_changed_cb
  3. By starting up nm-applet through the terminal, one persistent message I’ve been getting is:
    ** Message: Caught signal 15, shutting down...
    ** (nm-applet:13167): WARNING **: _nm_object_get_property: Error getting 'WpaFlags' for /org/freedesktop/NetworkManager/AccessPoint/194: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

In conclusion, as of 05/24/2011, nm-applet on Ubuntu 11.04 is pretty crashy, get in the habit of Ctrl-C-ing whatever post/email you’re handcrafting so you don’t lose any work. Cheers and see the associated images: