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)

2014年9月2日火曜日

Added new user on my arch linux

Added new user
# useradd -m -G wheel -s /bin/bash
and set password
# passwd username

Next to do

  • use sudo as normal user
  • setting up sound
  • find way to two finger scroll on track pad
  • find way to set brightness of screen

2014年9月1日月曜日

Yeah! I made it! Successfully install and setup arch linux on my HP Chromebook 11

Since it seemed that I lost boot.scr.uimg in someway, I forked archarm repo and added line to download it in install.sh (github repo)
And in installation process, used my install.sh and it worked! I successfully install arch linux on my chromebook and boot on it again.
I came here last time and failed post-install.sh. So this time I didn't use post-install.sh. Instead I installed packages by hand one by one for each packages in post-install.sh. Also I edited /etc/pacman.d/mirrorlist to comment out geo location based mirror selection and use Singapore, Taiwan and California.
After installed all packages successfully (sometimes systemd-journald.service got watchdog=1 message scared me but wasn't cause serious problem also I got kernel panic when I run pacman -S mate this also scared me but wasn't cause serious problem.).
Because I failed many times and take long time to come so far I couldn't feel it's gonna work even though all packages seem to be installed without problem.
I rebooted the system. After some text lines flowed as usual, graphical interface appeared to require login info. I logged in as root. The desktop appeared!! I finally got my first linux laptop!!

note: I also found an error in post-install.sh. the line echo "exec mame-session >" should be echo "exec mate-session"