2015年9月20日日曜日

Setting up raspberry pi 2 B+

I bought raspberry pi 2 B+ at amazon.

Here are how I set up. Referenced official raspberry pi NOOBS installation video and this youtube video. (https://www.youtube.com/watch?v=qLo-0Tmmlrc)
  1. Prepare SD card
    1. Download NOOBS
    2. Download and install SDFormatter from sdcard.org (for Win/Mac)
    3. Format SD card by SDFormatter
    4. Copy NOOBS into SD card
  2. Connect all parts to raspberry pi
  3. BIOS and OS installation
When I first power on raspberry pi and installed raspbian on it, the error message "Error creating file system" showed up and the display was blacked out. I googled and found I formatted my SD card incorrectly. check here
I reformatted SD card by SDFormatter and this time checked options format size adjustment to on and named SD card "NOOBS".
Now it working!

2015年2月4日水曜日

Restoring older chromeos

Recently I failed to update pacman with
$ pacman -Syu
but it failed and partial update messed my arch system at all. So I decided reinstall arch on my chromebook.
I found when I run install.sh script that parted is not working. And this suggest that I need older version of chromeos. So I download older os on my mac and burned it on the usb and resotred my chromebook

2014年12月20日土曜日

Arch Linux Laptop Battery indicator

I wanted battery indicator for my HP chromebook11 Arch linux laptop. After some googling I found cbatticon and installed it with pacman. When install finished add it to somewhere in the pannel. Now I can see battery indicator in my panned.

2014年10月17日金曜日

Suspend (sleep) laptop Arch Linux

To suspend laptop simply run
$ pm-suspend
pm-suspend is pm-utils's command. You can install pm-utils by pacman.
$ pacman -S pm-utils
You can modify /etc/acpi/handler.sh to let your laptop suspend when it is closed.
reference

Enable audio on arch linux

source here
  1. install alsa-utils
  2. Run alsamixer as root
  3. Arrow right util you see four items starting with Left Speaker Mixer, and press M on all four channels to un-mute them.
  4. Arrow right some more until you find four more starting with Right Speaker Mixer and un-mute them as well.
  5. Arrow all the way back left to the Speaker channel and raise the volume a little, Keep it low (< 50ish), since alsa will let you get dangerously high for these speakers.
It seems simple but it wasn't actually.
It says un-mute Left Speaker Mixer and Right Speaker Mixer but for my HP Chromebook 11 there was no exactly "Left Speaker Mixer".
What I found was "Left SPK Mixer" and there were ten of them. Each are
  • Left SPK Mixer INA1
  • Left SPK Mixer INA2
  • Left SPK Mixer INB1
  • Left SPK Mixer INB2
  • Left SPK Mixer Left DAC1
  • Left SPK Mixer Left DAC2
  • Left SPK Mixer MIC1
  • Left SPK Mixer MIC2
  • Left SPK Mixer Right DAC1
  • Left SPK Mixer Right DAC2
These are same for Right SPK Mixer. I unmuted INB2, Left DAC1, Left DAC2, for Left SPK Mixer and INA2, INB1, INB2, Left DAC1, Left DAC2, for Right SPK Mixer. Though I didn't try thoroughly, for many other combinations speaker didn't work or keep beeping loudly.

2014年9月14日日曜日

After installation

After I managed to install arch linux and mate desktop environment. I found configurations about keyboard, screen, backlight, touchpad are also challenging.
I was able to set backlight brightness and set user account but still configuring touch pad and keyboard and fix problems like never come back when sleeping were seems to be not solved just skimming the web.
So I find myself to have to understand more about arch linux system itself and need to read this and this

Setting up Arch Linux on HP chromebook 11

Setting up laptop

Arch wiki

backlight

$ ls /sys/class/backlight/
$ ps8622-backlight
This is the directory for controlling my HP chromebook11's backlight. The name depends on the graphics card. intel_backlight for intel graphics card, acpi_video0 on an ATI card. I eventually found mine is from a company called Parade. A company from Taiwan.

moving on.

$ ls /sys/class/backlight/ps8622-backlight
$ actual_brightness brightness max_brightness ....
What is the maximum value of brightness
$ cat /sys/class/backlight/ps8622-backlight/max_brightness
$ 255
What is actual? $ cat /sys/class/backlight/ps8622-backlight/actual_brightness

The brightness can be set by writing number to brightness. It is possible to go any higher than the maximum brightness
$ tee /sys/class/backlight/ps8622-backlight/brightness <<< 35

touchpad

  • xorg.conf
  • about synaptics
  • Trying to enable touch pad actions like tap to click, two finger scroll or so

    Current settings are in the configuration file downloaded from here when installing the system

    It is found in /etc/X11/xorg.conf.d

    Check out available input-device and their ids

    $ xinput --list

    and verify the properties of touch pad device

    $ xinput --list-props 8

    It shows Synaptics Tap Action (261): 0, 0, 0, 0, 0, 0, 0

    It's weird because I set up TapButton1 to TapButton3 in conf file (/etc/X11/xorg.conf.d/50-synaptics.conf).
    I can enable tap action via
    $ synclient "TapButton1"="1"
    So it's not that my touchpad is not configurable but somehow it fails to configure at boot process by .conf file
    I found it is because I'm using MATE as desktop environment. MATE needs some setting for enabling configure touchpad right. (see here)