Skip to content

Instantly share code, notes, and snippets.

@mugifly
Last active March 21, 2018 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mugifly/bbb6dfb0dc8ec05a495b5f0d5fa57396 to your computer and use it in GitHub Desktop.
Save mugifly/bbb6dfb0dc8ec05a495b5f0d5fa57396 to your computer and use it in GitHub Desktop.
Tips for Arch Linux on LOOX U/B50N

Tips for Arch Linux on LOOX U/B50N

I using the LOOX U with using Arch Linux + LXDE. It's fairly comfortable.

Change the keymap

$ sudo localectl set-x11-keymap jp pc106
$ logout

Calibrate the touchscreen

$ yaourt -S xinput_calibrator
$ xinput_calibrator
$ sudo vim /etc/X11/xorg.conf.d/99-calibration.conf
# NOTE: Paste the output of xinput_calibrator command

Enable the internal sound card

$ sudo pacman -S alsa-utils alsa-oss

$ sudo vim /etc/modprobe.d/snd-hda-intel.conf
options snd-hda-intel enable_msi=0
options snd-hda-intel model=auto

$ sudo vim /etc/modules-load.d/alsa-oss.conf
snd_seq_oss
snd_pcm_oss
snd_mixer_oss

$ sudo shutdown -r now

$ amixer sset Master unmute
$ aplay /usr/share/sounds/alsa/Front_Center.wav

Toggle the keyboard led light

http://spareinfo.blogspot.jp/2010/07/linux-on-fujitsu-u810-u820-keyboard.html

$ wget http://sites.google.com/site/spareinfosite/Home/fujitsu-kbdlights-0.1.0.tar.gz
$ tar zxf fujitsu-kbdlights-0.1.0.tar.gz
$ cd fujitsu-kbdlights-0.1.0/
$ make
$ sudo make install

$ fujitsu_kbdlights toggle

Toggle the screen rotatation

NOTE: This shell script was modified from https://ubuntuforums.org/showthread.php?t=1271786

$ mkdir -p ~/.sh/
$ vim ~/.sh/toggle-screen-rotation
#!/bin/bash
if [ ` xrandr  | grep LVDS-1 | cut -f 4 -d ' ' ` == 'left' ]; then
    xrandr --output LVDS-1 --rotate normal
else
    xrandr --output LVDS-1 --rotate left
fi

$ chmod u+x ~/.sh/rotate-screen
$ ~/.sh/toggle-screen-rotation

Enable the hotkeys

LOOX U has several hotkeys on the screen, such as toggle button of the Keyboard led light.

$ sudo pacman -S xbindkeys tk
$ touch ~/.xbindkeysrc
$ vim ~/.xbindkeys

# Hotkey for keyboard led light 
"fujitsu_kbdlights toggle"
  XF86ScrollDown

# Hotkey for rotate screen
"~/.sh/toggle-screen-rotation"
  XF86RotateWindows

$ xbindkeys -p
$ xbindkeys_show

Enable the suspend

$ sudo pacman -S pm-utils pm-quirks
$ echo "ADD_PARAMETERS='--quirk-vbemode-restore'" > /etc/pm/config.d/gma500 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment