Showing posts with label chromebook. Show all posts
Showing posts with label chromebook. Show all posts

Saturday, 28 March 2015

The Chromebook strikes back

I had some woes with the Ubuntu 14.10 install on my Acer C720 Chromebook. (See previous post) Even after things improved with fixing display polling and swapdisk usage issues, the compiz/unity managed to produce tiny hiccups and browsing could still bring the system to a standstill. I also encountered unexplainable behavior, such as Processing refusing to run sketches when on battery power. (Hey, I'm just describing what I've seen.)

Now I have both switched to a MyDigital 128GB SSD drive and installed Ubuntu/LXDE using this one weird trick. Now the ChromeOS and the LXDE happily co-exist and they can also share stuff in the Downloads folder. Yes, the desktop might look a bit bare but that's what I like nowadays.

Taking a screenshot using scrot, outputting to Downloads directory and adding the images to this very blog entry in the ChromeOS browser.

I expected the whole thing (both the SSD and the crouton install) to be difficult or timeconsuming but in fact it was all very simple. After you have the ChromeOS recovery USB stick, you can experiment with almost whatever and get your ChromeOS back if you mess things.

The new C720

On the positive side: I've encountered no speed hiccups, halts or other major problems. The touchpad works and I've yet to see any wifi problems either. The switch between the ChromeOS side and the LXDE sides is rapid and thus awesome. My Processing sketches run smoothly and browsing does not choke.


Now, when I turn on the computer, It'll go to ChromeOS after pressing CTRL+D at the start. There I press CTRL+ALT+t to invoke the chrosh developer shell, and type shell to get to the Linux terminal, where again sudo startlxde runs LXDE. It sounds like a rigmarole but I think in the end I'm at the desk faster than with the previous Ubuntu install, which, bear in mind, did not have the handy ChromeOS switch.

Some small issues:
  • Despite setting the keyboard layout via setxkbmap, Scandinavian characters don't either function or display universally. To an extent this was already a problem with the previous Ubuntu install.
    • It's a locale issue. File called /etc/default/locale ought to have LANG=en_US.utf8. The setxkbmap se can be inserted into /etc/xdg/lxsession/LXDE/autostart. These work after restarting.
  • Trying to add a Volume Control element into the bottom panel resulted in a non-response. Using alsamixer from the terminal I could at least alter the master volume level.
    • Erm, it does seem to add it now without problems. I don't know what's different.
  • Inserting USB sticks and SD cards don't seem to register well on the ChromeOS side, but it remembers to whine about them even if the devices have been both mounted and ejected on the LXDE desktop.
  • The filesystem seems to have a mistaken idea about the time/date of files from another system (memorystick etc), they can be two hours off. This goes so far that if a file brought from another computer is "in the future" it may not be shown in the desk windows.
  • The Chromebook does not have F11 or F12, which are often important keys in emulators. (Because old computers mostly had only F1-F10)
    • xmodmap -e "keycode 133 = F11" makes the Magnifying Glass key into F11, and xmodmap -e "keycode 49 = F12" will make the key below ESC into F12.
      • Putting these in the autostart (see above) seems to be a bit hit/miss. I might blame the crouton integration. (see below)
  • Some adventurous attempts at getting Steam to run on this setup resulted in the startlxde failing to take me to chroot, with message "unable to connect to X server: No such file or directory"
    • sudo sh -e ~/Downloads/crouton -n precise -u brought it back to life. (Where 'precise' is the name of the chroot in question.)
    • Tip: Perhaps it's too much to expect Steam to work on this install. Well, some people on the net have managed to do it.
  • It may be worth of note that copy/paste clipboard does not work between the ChromeOS and chroot side. 
    • Creative uses of the shared Download folder helps this somewhat. For example I can set up a textfile for the purposes of sharing snippets. The need does not come up that often, though.
    • A more definite solution comes out from loading the crouton integration from the Chrome Web store. It also needs the crouton extension, from the command line.
  • MIDI did not immediately work, this was due to some permission issues related to the drivers.
    • sudo setfacl -m u:yourusername:rw /dev/snd/*
  • If the chroot desktop offers to upgrade the distribution version, don't do it, it's a waste of time. It's a bit unclear how to proceed with a version upgrade.
So the Chromebook dualboot does require a bit of tinkering, but I'm already much happier with this than the previous Ubuntu install. Currently my uses for the LXDE side are fairly narrow and my first priority is not to make it into a modern desktop computer anyway. Plus that I'm a bit hesitant to install something that might compromise the smooth working of the desk. The ChromeOS side does certain things well enough.

Thanks again for marq for helping sort many of these issues out.

Sunday, 22 February 2015

Chromebook C720


Long after the ChromeOS has stopped being the topic of the day, I got myself a Acer Chromebook C720 (2gb, 16gb SSD, Intel® Celeron(R) 2955U @ 1.40GHz × 2). So I guess it's an "old machine" by now. After using it for a few weeks I thought I'd give my impressions.

I was largely motivated by the possibility of installing Linux on it, but was also curious about the ChromeOS. Yes, the Google Drive/Docs environment works quite well on it. But I am a bit surprised that also some interesting (for me) off-line apps can be installed on it, DosBox, A Spectrum emulator, ScummVM, Arduino stuff etc. 
Looks like fun could be had with the ChromeOS too...
This feature does not make the C720 a full-blown computer, though. For example, Caret seems a reasonably good environment for typing code, but as there's no broad "ecosystem" for compiling and doing other computery-type things, it remains an isolated piece of software. Although I can imagine a cloud-type-environment might make it more powerful.

Because of this, on the overall the ChromeOS is not very satisfying for me, but certainly more interesting than I thought it would be.

Some apps on board. Some are "just" Chrome extensions, but some are genuine off-line apps.

Ubuntu on Chromebook

To the Linuxmobile, then. The Ubuntu 14.10 (chrubuntu) install was quite easy to do even if I'm not Linux-guru. (I used these instructions.) This way ChromeOS and Linux can co-exist as separate bootable systems.

I have to say that this did not result automatically in a smooth-running computer. I had trouble making the touchpad work, the scandinavian letters (ä,ö,å) do not display universally, and also the wifi side is not as reliable as on the ChromeOS side.

VICE X64 on the background, Processing editor and a Processing sketch running.

Browsing is pretty good with Chromium (with the little hassle of making Adobe Flash work), emulators (C64 on VICE, Amiga 500 on UAE) seem to have full speed and most of my Processing sketches were noticeably faster than on my 5-year old minimac. (This may also have something to do with how Processing has been implemented on Mac vs Linux). Also I could have my favourite code editor, Komodo Edit, on it and start compiling C64 code much like I did on the mac.
Makes for a good C64 cross-development environment.
The biggest problem currently is that although the Ubuntu speed is generally very impressive, the Linux side seems to suffer from occasional slowdown which then results in inconveniences and "choppiness" on whatever program happens to be running. This ranges from hiccups in the Processing sketches to browsing session grinding to a halt on Chromium. 

I'm unsure if this is result of the Ubuntu being too big after all for the C720, lack of memory, or if I've managed to mess something, but I think I encountered these problems already quite early on.

Edit:

I have managed to make my Ubuntu smoother. Marq's suggestion might have removed the occasional choppiness...

http://www.kameli.net/marq/?p=3830

sudo echo 0 >/sys/module/drm_kms_helper/parameters/poll

However, the kswapd0 seems to be associated with the harshest halting. It seems Ubuntu tries to move things to swap even if memory is not full:

http://askubuntu.com/questions/259739/kswapd0-is-taking-a-lot-of-cpu

sudo echo vm.swappiness=0 >> /etc/sysctl.conf

(Both have to be run as root, i.e. sudo su)

More RAM might be helpful, too.

Also, this Chromebook has only a 16gig SSD, and makes it a bit tough to work around what to install and what not. If I keep the stuff light (small editors and retro etc) the space won't be a huge problem. Memorysticks improve the situation somewhat but I'm considering changing the install to something smaller and expanding the drive capacity.

So, I'll be looking forward to improving the Linux experience, and perhaps try out more ChromeOS apps and extensions just out of curiosity.